当前位置: 首页>>代码示例>>Java>>正文


Java EditingUtils.setID方法代码示例

本文整理汇总了Java中org.eclipse.emf.eef.runtime.ui.utils.EditingUtils.setID方法的典型用法代码示例。如果您正苦于以下问题:Java EditingUtils.setID方法的具体用法?Java EditingUtils.setID怎么用?Java EditingUtils.setID使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.eclipse.emf.eef.runtime.ui.utils.EditingUtils的用法示例。


在下文中一共展示了EditingUtils.setID方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: createOverflowCheckbox

import org.eclipse.emf.eef.runtime.ui.utils.EditingUtils; //导入方法依赖的package包/类
protected Composite createOverflowCheckbox(FormToolkit widgetFactory, Composite parent) {
	overflow = widgetFactory.createButton(parent, getDescription(MetamodelViewsRepository.Storage.Properties.overflow, MetamodelMessages.StoragePropertiesEditionPart_OverflowLabel), SWT.CHECK);
	overflow.addSelectionListener(new SelectionAdapter() {

		/**
		 * {@inheritDoc}
		 *
		 * @see org.eclipse.swt.events.SelectionAdapter#widgetSelected(org.eclipse.swt.events.SelectionEvent)
		 * 	
		 */
		public void widgetSelected(SelectionEvent e) {
			if (propertiesEditionComponent != null)
				propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(StoragePropertiesEditionPartForm.this, MetamodelViewsRepository.Storage.Properties.overflow, PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.SET, null, new Boolean(overflow.getSelection())));
		}

	});
	GridData overflowData = new GridData(GridData.FILL_HORIZONTAL);
	overflowData.horizontalSpan = 2;
	overflow.setLayoutData(overflowData);
	EditingUtils.setID(overflow, MetamodelViewsRepository.Storage.Properties.overflow);
	EditingUtils.setEEFtype(overflow, "eef::Checkbox"); //$NON-NLS-1$
	FormUtils.createHelpButton(widgetFactory, parent, propertiesEditionComponent.getHelpContent(MetamodelViewsRepository.Storage.Properties.overflow, MetamodelViewsRepository.FORM_KIND), null); //$NON-NLS-1$
	// Start of user code for createOverflowCheckbox

	// End of user code
	return parent;
}
 
开发者ID:cetic,项目名称:SimQRI,代码行数:28,代码来源:StoragePropertiesEditionPartForm.java

示例2: createIsNonVolatileCheckbox

import org.eclipse.emf.eef.runtime.ui.utils.EditingUtils; //导入方法依赖的package包/类
protected Composite createIsNonVolatileCheckbox(Composite parent) {
	isNonVolatile = new Button(parent, SWT.CHECK);
	isNonVolatile.setText(getDescription(HrmViewsRepository.General.Properties.isNonVolatile,
			HrmMessages.GeneralPropertiesEditionPart_IsNonVolatileLabel));
	isNonVolatile.addSelectionListener(new SelectionAdapter() {

		/**
		 * {@inheritDoc}
		 *
		 * @see org.eclipse.swt.events.SelectionAdapter#widgetSelected(org.eclipse.swt.events.SelectionEvent)
		 * 
		 */
		public void widgetSelected(SelectionEvent e) {
			if (propertiesEditionComponent != null)
				propertiesEditionComponent
						.firePropertiesChanged(new PropertiesEditionEvent(GeneralPropertiesEditionPartImpl.this,
								HrmViewsRepository.General.Properties.isNonVolatile, PropertiesEditionEvent.COMMIT,
								PropertiesEditionEvent.SET, null, new Boolean(isNonVolatile.getSelection())));
		}

	});
	GridData isNonVolatileData = new GridData(GridData.FILL_HORIZONTAL);
	isNonVolatileData.horizontalSpan = 2;
	isNonVolatile.setLayoutData(isNonVolatileData);
	EditingUtils.setID(isNonVolatile, HrmViewsRepository.General.Properties.isNonVolatile);
	EditingUtils.setEEFtype(isNonVolatile, "eef::Checkbox"); //$NON-NLS-1$
	SWTUtils.createHelpButton(parent, propertiesEditionComponent.getHelpContent(
			HrmViewsRepository.General.Properties.isNonVolatile, HrmViewsRepository.SWT_KIND), null); // $NON-NLS-1$
	// Start of user code for createIsNonVolatileCheckbox

	// End of user code
	return parent;
}
 
开发者ID:polarsys,项目名称:time4sys,代码行数:34,代码来源:GeneralPropertiesEditionPartImpl.java

示例3: createIsPreemptableCheckbox

import org.eclipse.emf.eef.runtime.ui.utils.EditingUtils; //导入方法依赖的package包/类
protected Composite createIsPreemptableCheckbox(Composite parent) {
	isPreemptable = new Button(parent, SWT.CHECK);
	isPreemptable.setText(getDescription(SrmViewsRepository.Timing.Properties.isPreemptable,
			SrmMessages.TimingPropertiesEditionPart_IsPreemptableLabel));
	isPreemptable.addSelectionListener(new SelectionAdapter() {

		/**
		 * {@inheritDoc}
		 *
		 * @see org.eclipse.swt.events.SelectionAdapter#widgetSelected(org.eclipse.swt.events.SelectionEvent)
		 * 
		 */
		public void widgetSelected(SelectionEvent e) {
			if (propertiesEditionComponent != null)
				propertiesEditionComponent
						.firePropertiesChanged(new PropertiesEditionEvent(TimingPropertiesEditionPartImpl.this,
								SrmViewsRepository.Timing.Properties.isPreemptable, PropertiesEditionEvent.COMMIT,
								PropertiesEditionEvent.SET, null, new Boolean(isPreemptable.getSelection())));
		}

	});
	GridData isPreemptableData = new GridData(GridData.FILL_HORIZONTAL);
	isPreemptableData.horizontalSpan = 2;
	isPreemptable.setLayoutData(isPreemptableData);
	EditingUtils.setID(isPreemptable, SrmViewsRepository.Timing.Properties.isPreemptable);
	EditingUtils.setEEFtype(isPreemptable, "eef::Checkbox"); //$NON-NLS-1$
	SWTUtils.createHelpButton(parent, propertiesEditionComponent
			.getHelpContent(SrmViewsRepository.Timing.Properties.isPreemptable, SrmViewsRepository.SWT_KIND), null); // $NON-NLS-1$
	// Start of user code for createIsPreemptableCheckbox

	// End of user code
	return parent;
}
 
开发者ID:polarsys,项目名称:time4sys,代码行数:34,代码来源:TimingPropertiesEditionPartImpl.java

示例4: createIsMaskableCheckbox

import org.eclipse.emf.eef.runtime.ui.utils.EditingUtils; //导入方法依赖的package包/类
protected Composite createIsMaskableCheckbox(FormToolkit widgetFactory, Composite parent) {
	isMaskable = widgetFactory.createButton(parent, getDescription(SrmViewsRepository.Other.Properties.isMaskable,
			SrmMessages.OtherPropertiesEditionPart_IsMaskableLabel), SWT.CHECK);
	isMaskable.addSelectionListener(new SelectionAdapter() {

		/**
		 * {@inheritDoc}
		 *
		 * @see org.eclipse.swt.events.SelectionAdapter#widgetSelected(org.eclipse.swt.events.SelectionEvent)
		 * 
		 */
		public void widgetSelected(SelectionEvent e) {
			if (propertiesEditionComponent != null)
				propertiesEditionComponent
						.firePropertiesChanged(new PropertiesEditionEvent(OtherPropertiesEditionPartForm.this,
								SrmViewsRepository.Other.Properties.isMaskable, PropertiesEditionEvent.COMMIT,
								PropertiesEditionEvent.SET, null, new Boolean(isMaskable.getSelection())));
		}

	});
	GridData isMaskableData = new GridData(GridData.FILL_HORIZONTAL);
	isMaskableData.horizontalSpan = 2;
	isMaskable.setLayoutData(isMaskableData);
	EditingUtils.setID(isMaskable, SrmViewsRepository.Other.Properties.isMaskable);
	EditingUtils.setEEFtype(isMaskable, "eef::Checkbox"); //$NON-NLS-1$
	FormUtils.createHelpButton(widgetFactory, parent, propertiesEditionComponent
			.getHelpContent(SrmViewsRepository.Other.Properties.isMaskable, SrmViewsRepository.FORM_KIND), null); // $NON-NLS-1$
	// Start of user code for createIsMaskableCheckbox

	// End of user code
	return parent;
}
 
开发者ID:polarsys,项目名称:time4sys,代码行数:33,代码来源:OtherPropertiesEditionPartForm.java

示例5: createIsProtectedCheckbox

import org.eclipse.emf.eef.runtime.ui.utils.EditingUtils; //导入方法依赖的package包/类
protected Composite createIsProtectedCheckbox(FormToolkit widgetFactory, Composite parent) {
	isProtected = widgetFactory.createButton(parent,
			getDescription(GrmViewsRepository.General.Properties.isProtected,
					GrmMessages.GeneralPropertiesEditionPart_IsProtectedLabel),
			SWT.CHECK);
	isProtected.addSelectionListener(new SelectionAdapter() {

		/**
		 * {@inheritDoc}
		 *
		 * @see org.eclipse.swt.events.SelectionAdapter#widgetSelected(org.eclipse.swt.events.SelectionEvent)
		 * 
		 */
		public void widgetSelected(SelectionEvent e) {
			if (propertiesEditionComponent != null)
				propertiesEditionComponent
						.firePropertiesChanged(new PropertiesEditionEvent(GeneralPropertiesEditionPartForm.this,
								GrmViewsRepository.General.Properties.isProtected, PropertiesEditionEvent.COMMIT,
								PropertiesEditionEvent.SET, null, new Boolean(isProtected.getSelection())));
		}

	});
	GridData isProtectedData = new GridData(GridData.FILL_HORIZONTAL);
	isProtectedData.horizontalSpan = 2;
	isProtected.setLayoutData(isProtectedData);
	EditingUtils.setID(isProtected, GrmViewsRepository.General.Properties.isProtected);
	EditingUtils.setEEFtype(isProtected, "eef::Checkbox"); //$NON-NLS-1$
	FormUtils.createHelpButton(widgetFactory, parent, propertiesEditionComponent
			.getHelpContent(GrmViewsRepository.General.Properties.isProtected, GrmViewsRepository.FORM_KIND), null); // $NON-NLS-1$
	// Start of user code for createIsProtectedCheckbox

	// End of user code
	return parent;
}
 
开发者ID:polarsys,项目名称:time4sys,代码行数:35,代码来源:GeneralPropertiesEditionPartForm.java

示例6: createIsActiveCheckbox

import org.eclipse.emf.eef.runtime.ui.utils.EditingUtils; //导入方法依赖的package包/类
protected Composite createIsActiveCheckbox(FormToolkit widgetFactory, Composite parent) {
	isActive = widgetFactory.createButton(parent, getDescription(GrmViewsRepository.General.Properties.isActive,
			GrmMessages.GeneralPropertiesEditionPart_IsActiveLabel), SWT.CHECK);
	isActive.addSelectionListener(new SelectionAdapter() {

		/**
		 * {@inheritDoc}
		 *
		 * @see org.eclipse.swt.events.SelectionAdapter#widgetSelected(org.eclipse.swt.events.SelectionEvent)
		 * 
		 */
		public void widgetSelected(SelectionEvent e) {
			if (propertiesEditionComponent != null)
				propertiesEditionComponent
						.firePropertiesChanged(new PropertiesEditionEvent(GeneralPropertiesEditionPartForm.this,
								GrmViewsRepository.General.Properties.isActive, PropertiesEditionEvent.COMMIT,
								PropertiesEditionEvent.SET, null, new Boolean(isActive.getSelection())));
		}

	});
	GridData isActiveData = new GridData(GridData.FILL_HORIZONTAL);
	isActiveData.horizontalSpan = 2;
	isActive.setLayoutData(isActiveData);
	EditingUtils.setID(isActive, GrmViewsRepository.General.Properties.isActive);
	EditingUtils.setEEFtype(isActive, "eef::Checkbox"); //$NON-NLS-1$
	FormUtils.createHelpButton(widgetFactory, parent, propertiesEditionComponent
			.getHelpContent(GrmViewsRepository.General.Properties.isActive, GrmViewsRepository.FORM_KIND), null); // $NON-NLS-1$
	// Start of user code for createIsActiveCheckbox

	// End of user code
	return parent;
}
 
开发者ID:polarsys,项目名称:time4sys,代码行数:33,代码来源:GeneralPropertiesEditionPartForm.java

示例7: createIsActiveCheckbox

import org.eclipse.emf.eef.runtime.ui.utils.EditingUtils; //导入方法依赖的package包/类
protected Composite createIsActiveCheckbox(FormToolkit widgetFactory, Composite parent) {
	isActive = widgetFactory.createButton(parent, getDescription(LibraryViewsRepository.General.Properties.isActive, LibraryMessages.GeneralPropertiesEditionPart_IsActiveLabel), SWT.CHECK);
	isActive.addSelectionListener(new SelectionAdapter() {

		/**
		 * {@inheritDoc}
		 *
		 * @see org.eclipse.swt.events.SelectionAdapter#widgetSelected(org.eclipse.swt.events.SelectionEvent)
		 * 	
		 */
		public void widgetSelected(SelectionEvent e) {
			if (propertiesEditionComponent != null)
				propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(GeneralPropertiesEditionPartForm.this, LibraryViewsRepository.General.Properties.isActive, PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.SET, null, new Boolean(isActive.getSelection())));
		}

	});
	GridData isActiveData = new GridData(GridData.FILL_HORIZONTAL);
	isActiveData.horizontalSpan = 2;
	isActive.setLayoutData(isActiveData);
	EditingUtils.setID(isActive, LibraryViewsRepository.General.Properties.isActive);
	EditingUtils.setEEFtype(isActive, "eef::Checkbox"); //$NON-NLS-1$
	FormUtils.createHelpButton(widgetFactory, parent, propertiesEditionComponent.getHelpContent(LibraryViewsRepository.General.Properties.isActive, LibraryViewsRepository.FORM_KIND), null); //$NON-NLS-1$
	// Start of user code for createIsActiveCheckbox

	// End of user code
	return parent;
}
 
开发者ID:polarsys,项目名称:time4sys,代码行数:28,代码来源:GeneralPropertiesEditionPartForm.java

示例8: createIsProtectedCheckbox

import org.eclipse.emf.eef.runtime.ui.utils.EditingUtils; //导入方法依赖的package包/类
protected Composite createIsProtectedCheckbox(Composite parent) {
	isProtected = new Button(parent, SWT.CHECK);
	isProtected.setText(getDescription(GrmViewsRepository.General.Properties.isProtected,
			GrmMessages.GeneralPropertiesEditionPart_IsProtectedLabel));
	isProtected.addSelectionListener(new SelectionAdapter() {

		/**
		 * {@inheritDoc}
		 *
		 * @see org.eclipse.swt.events.SelectionAdapter#widgetSelected(org.eclipse.swt.events.SelectionEvent)
		 * 
		 */
		public void widgetSelected(SelectionEvent e) {
			if (propertiesEditionComponent != null)
				propertiesEditionComponent
						.firePropertiesChanged(new PropertiesEditionEvent(GeneralPropertiesEditionPartImpl.this,
								GrmViewsRepository.General.Properties.isProtected, PropertiesEditionEvent.COMMIT,
								PropertiesEditionEvent.SET, null, new Boolean(isProtected.getSelection())));
		}

	});
	GridData isProtectedData = new GridData(GridData.FILL_HORIZONTAL);
	isProtectedData.horizontalSpan = 2;
	isProtected.setLayoutData(isProtectedData);
	EditingUtils.setID(isProtected, GrmViewsRepository.General.Properties.isProtected);
	EditingUtils.setEEFtype(isProtected, "eef::Checkbox"); //$NON-NLS-1$
	SWTUtils.createHelpButton(parent, propertiesEditionComponent
			.getHelpContent(GrmViewsRepository.General.Properties.isProtected, GrmViewsRepository.SWT_KIND), null); // $NON-NLS-1$
	// Start of user code for createIsProtectedCheckbox

	// End of user code
	return parent;
}
 
开发者ID:polarsys,项目名称:time4sys,代码行数:34,代码来源:GeneralPropertiesEditionPartImpl.java

示例9: createIsSerialCheckbox

import org.eclipse.emf.eef.runtime.ui.utils.EditingUtils; //导入方法依赖的package包/类
protected Composite createIsSerialCheckbox(Composite parent) {
	isSerial = new Button(parent, SWT.CHECK);
	isSerial.setText(getDescription(HrmViewsRepository.General.Properties.isSerial,
			HrmMessages.GeneralPropertiesEditionPart_IsSerialLabel));
	isSerial.addSelectionListener(new SelectionAdapter() {

		/**
		 * {@inheritDoc}
		 *
		 * @see org.eclipse.swt.events.SelectionAdapter#widgetSelected(org.eclipse.swt.events.SelectionEvent)
		 * 
		 */
		public void widgetSelected(SelectionEvent e) {
			if (propertiesEditionComponent != null)
				propertiesEditionComponent
						.firePropertiesChanged(new PropertiesEditionEvent(GeneralPropertiesEditionPartImpl.this,
								HrmViewsRepository.General.Properties.isSerial, PropertiesEditionEvent.COMMIT,
								PropertiesEditionEvent.SET, null, new Boolean(isSerial.getSelection())));
		}

	});
	GridData isSerialData = new GridData(GridData.FILL_HORIZONTAL);
	isSerialData.horizontalSpan = 2;
	isSerial.setLayoutData(isSerialData);
	EditingUtils.setID(isSerial, HrmViewsRepository.General.Properties.isSerial);
	EditingUtils.setEEFtype(isSerial, "eef::Checkbox"); //$NON-NLS-1$
	SWTUtils.createHelpButton(parent, propertiesEditionComponent
			.getHelpContent(HrmViewsRepository.General.Properties.isSerial, HrmViewsRepository.SWT_KIND), null); // $NON-NLS-1$
	// Start of user code for createIsSerialCheckbox

	// End of user code
	return parent;
}
 
开发者ID:polarsys,项目名称:time4sys,代码行数:34,代码来源:GeneralPropertiesEditionPartImpl.java

示例10: createIsStaticSchedulingFeatureCheckbox

import org.eclipse.emf.eef.runtime.ui.utils.EditingUtils; //导入方法依赖的package包/类
protected Composite createIsStaticSchedulingFeatureCheckbox(FormToolkit widgetFactory, Composite parent) {
	isStaticSchedulingFeature = widgetFactory.createButton(parent,
			getDescription(SrmViewsRepository.Other.Properties.isStaticSchedulingFeature,
					SrmMessages.OtherPropertiesEditionPart_IsStaticSchedulingFeatureLabel),
			SWT.CHECK);
	isStaticSchedulingFeature.addSelectionListener(new SelectionAdapter() {

		/**
		 * {@inheritDoc}
		 *
		 * @see org.eclipse.swt.events.SelectionAdapter#widgetSelected(org.eclipse.swt.events.SelectionEvent)
		 * 
		 */
		public void widgetSelected(SelectionEvent e) {
			if (propertiesEditionComponent != null)
				propertiesEditionComponent
						.firePropertiesChanged(new PropertiesEditionEvent(OtherPropertiesEditionPartForm.this,
								SrmViewsRepository.Other.Properties.isStaticSchedulingFeature,
								PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.SET, null,
								new Boolean(isStaticSchedulingFeature.getSelection())));
		}

	});
	GridData isStaticSchedulingFeatureData = new GridData(GridData.FILL_HORIZONTAL);
	isStaticSchedulingFeatureData.horizontalSpan = 2;
	isStaticSchedulingFeature.setLayoutData(isStaticSchedulingFeatureData);
	EditingUtils.setID(isStaticSchedulingFeature, SrmViewsRepository.Other.Properties.isStaticSchedulingFeature);
	EditingUtils.setEEFtype(isStaticSchedulingFeature, "eef::Checkbox"); //$NON-NLS-1$
	FormUtils.createHelpButton(widgetFactory, parent, propertiesEditionComponent.getHelpContent(
			SrmViewsRepository.Other.Properties.isStaticSchedulingFeature, SrmViewsRepository.FORM_KIND), null); // $NON-NLS-1$
	// Start of user code for createIsStaticSchedulingFeatureCheckbox

	// End of user code
	return parent;
}
 
开发者ID:polarsys,项目名称:time4sys,代码行数:36,代码来源:OtherPropertiesEditionPartForm.java

示例11: createIsSynchronousCheckbox

import org.eclipse.emf.eef.runtime.ui.utils.EditingUtils; //导入方法依赖的package包/类
protected Composite createIsSynchronousCheckbox(FormToolkit widgetFactory, Composite parent) {
	isSynchronous = widgetFactory.createButton(parent, getDescription(LibraryViewsRepository.General.Properties.isSynchronous, LibraryMessages.GeneralPropertiesEditionPart_IsSynchronousLabel), SWT.CHECK);
	isSynchronous.addSelectionListener(new SelectionAdapter() {

		/**
		 * {@inheritDoc}
		 *
		 * @see org.eclipse.swt.events.SelectionAdapter#widgetSelected(org.eclipse.swt.events.SelectionEvent)
		 * 	
		 */
		public void widgetSelected(SelectionEvent e) {
			if (propertiesEditionComponent != null)
				propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(GeneralPropertiesEditionPartForm.this, LibraryViewsRepository.General.Properties.isSynchronous, PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.SET, null, new Boolean(isSynchronous.getSelection())));
		}

	});
	GridData isSynchronousData = new GridData(GridData.FILL_HORIZONTAL);
	isSynchronousData.horizontalSpan = 2;
	isSynchronous.setLayoutData(isSynchronousData);
	EditingUtils.setID(isSynchronous, LibraryViewsRepository.General.Properties.isSynchronous);
	EditingUtils.setEEFtype(isSynchronous, "eef::Checkbox"); //$NON-NLS-1$
	FormUtils.createHelpButton(widgetFactory, parent, propertiesEditionComponent.getHelpContent(LibraryViewsRepository.General.Properties.isSynchronous, LibraryViewsRepository.FORM_KIND), null); //$NON-NLS-1$
	// Start of user code for createIsSynchronousCheckbox

	// End of user code
	return parent;
}
 
开发者ID:polarsys,项目名称:time4sys,代码行数:28,代码来源:GeneralPropertiesEditionPartForm.java

示例12: createIsAtomicCheckbox

import org.eclipse.emf.eef.runtime.ui.utils.EditingUtils; //导入方法依赖的package包/类
protected Composite createIsAtomicCheckbox(Composite parent) {
	isAtomic = new Button(parent, SWT.CHECK);
	isAtomic.setText(getDescription(GqamViewsRepository.General.Properties.isAtomic,
			GqamMessages.GeneralPropertiesEditionPart_IsAtomicLabel));
	isAtomic.addSelectionListener(new SelectionAdapter() {

		/**
		 * {@inheritDoc}
		 *
		 * @see org.eclipse.swt.events.SelectionAdapter#widgetSelected(org.eclipse.swt.events.SelectionEvent)
		 * 
		 */
		public void widgetSelected(SelectionEvent e) {
			if (propertiesEditionComponent != null)
				propertiesEditionComponent
						.firePropertiesChanged(new PropertiesEditionEvent(GeneralPropertiesEditionPartImpl.this,
								GqamViewsRepository.General.Properties.isAtomic, PropertiesEditionEvent.COMMIT,
								PropertiesEditionEvent.SET, null, new Boolean(isAtomic.getSelection())));
		}

	});
	GridData isAtomicData = new GridData(GridData.FILL_HORIZONTAL);
	isAtomicData.horizontalSpan = 2;
	isAtomic.setLayoutData(isAtomicData);
	EditingUtils.setID(isAtomic, GqamViewsRepository.General.Properties.isAtomic);
	EditingUtils.setEEFtype(isAtomic, "eef::Checkbox"); //$NON-NLS-1$
	SWTUtils.createHelpButton(parent, propertiesEditionComponent
			.getHelpContent(GqamViewsRepository.General.Properties.isAtomic, GqamViewsRepository.SWT_KIND), null); // $NON-NLS-1$
	// Start of user code for createIsAtomicCheckbox

	// End of user code
	return parent;
}
 
开发者ID:polarsys,项目名称:time4sys,代码行数:34,代码来源:GeneralPropertiesEditionPartImpl.java

示例13: createMemoryProtectionCheckbox

import org.eclipse.emf.eef.runtime.ui.utils.EditingUtils; //导入方法依赖的package包/类
protected Composite createMemoryProtectionCheckbox(FormToolkit widgetFactory, Composite parent) {
	memoryProtection = widgetFactory.createButton(parent,
			getDescription(HrmViewsRepository.General.Properties.memoryProtection,
					HrmMessages.GeneralPropertiesEditionPart_MemoryProtectionLabel),
			SWT.CHECK);
	memoryProtection.addSelectionListener(new SelectionAdapter() {

		/**
		 * {@inheritDoc}
		 *
		 * @see org.eclipse.swt.events.SelectionAdapter#widgetSelected(org.eclipse.swt.events.SelectionEvent)
		 * 
		 */
		public void widgetSelected(SelectionEvent e) {
			if (propertiesEditionComponent != null)
				propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(
						GeneralPropertiesEditionPartForm.this,
						HrmViewsRepository.General.Properties.memoryProtection, PropertiesEditionEvent.COMMIT,
						PropertiesEditionEvent.SET, null, new Boolean(memoryProtection.getSelection())));
		}

	});
	GridData memoryProtectionData = new GridData(GridData.FILL_HORIZONTAL);
	memoryProtectionData.horizontalSpan = 2;
	memoryProtection.setLayoutData(memoryProtectionData);
	EditingUtils.setID(memoryProtection, HrmViewsRepository.General.Properties.memoryProtection);
	EditingUtils.setEEFtype(memoryProtection, "eef::Checkbox"); //$NON-NLS-1$
	FormUtils
			.createHelpButton(widgetFactory, parent,
					propertiesEditionComponent.getHelpContent(
							HrmViewsRepository.General.Properties.memoryProtection, HrmViewsRepository.FORM_KIND),
					null); // $NON-NLS-1$
	// Start of user code for createMemoryProtectionCheckbox

	// End of user code
	return parent;
}
 
开发者ID:polarsys,项目名称:time4sys,代码行数:38,代码来源:GeneralPropertiesEditionPartForm.java

示例14: createIsProtectedCheckbox

import org.eclipse.emf.eef.runtime.ui.utils.EditingUtils; //导入方法依赖的package包/类
protected Composite createIsProtectedCheckbox(FormToolkit widgetFactory, Composite parent) {
	isProtected = widgetFactory.createButton(parent, getDescription(LibraryViewsRepository.General.Properties.isProtected, LibraryMessages.GeneralPropertiesEditionPart_IsProtectedLabel), SWT.CHECK);
	isProtected.addSelectionListener(new SelectionAdapter() {

		/**
		 * {@inheritDoc}
		 *
		 * @see org.eclipse.swt.events.SelectionAdapter#widgetSelected(org.eclipse.swt.events.SelectionEvent)
		 * 	
		 */
		public void widgetSelected(SelectionEvent e) {
			if (propertiesEditionComponent != null)
				propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(GeneralPropertiesEditionPartForm.this, LibraryViewsRepository.General.Properties.isProtected, PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.SET, null, new Boolean(isProtected.getSelection())));
		}

	});
	GridData isProtectedData = new GridData(GridData.FILL_HORIZONTAL);
	isProtectedData.horizontalSpan = 2;
	isProtected.setLayoutData(isProtectedData);
	EditingUtils.setID(isProtected, LibraryViewsRepository.General.Properties.isProtected);
	EditingUtils.setEEFtype(isProtected, "eef::Checkbox"); //$NON-NLS-1$
	FormUtils.createHelpButton(widgetFactory, parent, propertiesEditionComponent.getHelpContent(LibraryViewsRepository.General.Properties.isProtected, LibraryViewsRepository.FORM_KIND), null); //$NON-NLS-1$
	// Start of user code for createIsProtectedCheckbox

	// End of user code
	return parent;
}
 
开发者ID:polarsys,项目名称:time4sys,代码行数:28,代码来源:GeneralPropertiesEditionPartForm.java

示例15: createIsSporadicCheckbox

import org.eclipse.emf.eef.runtime.ui.utils.EditingUtils; //导入方法依赖的package包/类
/**
 * @generated
 */

protected Composite createIsSporadicCheckbox(Composite parent) {
	isSporadic = new Button(parent, SWT.CHECK);
	isSporadic.setText(getDescription(AnalysisViewsRepository.EventModel.Properties.isSporadic, AnalysisMessages.EventModelPropertiesEditionPart_IsSporadicLabel));
	isSporadic.addSelectionListener(new SelectionAdapter() {

		/**
		 * {@inheritDoc}
		 *
		 * @see org.eclipse.swt.events.SelectionAdapter#widgetSelected(org.eclipse.swt.events.SelectionEvent)
		 * 	@generated
		 */
		public void widgetSelected(SelectionEvent e) {
			if (propertiesEditionComponent != null)
				propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(EventModelPropertiesEditionPartImpl.this, AnalysisViewsRepository.EventModel.Properties.isSporadic, PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.SET, null, new Boolean(isSporadic.getSelection())));
		}

	});
	GridData isSporadicData = new GridData(GridData.FILL_HORIZONTAL);
	isSporadicData.horizontalSpan = 2;
	isSporadic.setLayoutData(isSporadicData);
	EditingUtils.setID(isSporadic, AnalysisViewsRepository.EventModel.Properties.isSporadic);
	EditingUtils.setEEFtype(isSporadic, "eef::Checkbox"); //$NON-NLS-1$
	SWTUtils.createHelpButton(parent, propertiesEditionComponent.getHelpContent(AnalysisViewsRepository.EventModel.Properties.isSporadic, AnalysisViewsRepository.SWT_KIND), null); //$NON-NLS-1$
	// Start of user code for createIsSporadicCheckbox

	// End of user code
	return parent;
}
 
开发者ID:polarsys,项目名称:time4sys,代码行数:33,代码来源:EventModelPropertiesEditionPartImpl.java


注:本文中的org.eclipse.emf.eef.runtime.ui.utils.EditingUtils.setID方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。