當前位置: 首頁>>代碼示例>>Java>>正文


Java EditingUtils.setEEFtype方法代碼示例

本文整理匯總了Java中org.eclipse.emf.eef.runtime.ui.utils.EditingUtils.setEEFtype方法的典型用法代碼示例。如果您正苦於以下問題:Java EditingUtils.setEEFtype方法的具體用法?Java EditingUtils.setEEFtype怎麽用?Java EditingUtils.setEEFtype使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在org.eclipse.emf.eef.runtime.ui.utils.EditingUtils的用法示例。


在下文中一共展示了EditingUtils.setEEFtype方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: createIsStaticSchedulingFeatureCheckbox

import org.eclipse.emf.eef.runtime.ui.utils.EditingUtils; //導入方法依賴的package包/類
protected Composite createIsStaticSchedulingFeatureCheckbox(Composite parent) {
	isStaticSchedulingFeature = new Button(parent, SWT.CHECK);
	isStaticSchedulingFeature.setText(getDescription(SrmViewsRepository.Other.Properties.isStaticSchedulingFeature,
			SrmMessages.OtherPropertiesEditionPart_IsStaticSchedulingFeatureLabel));
	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(OtherPropertiesEditionPartImpl.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$
	SWTUtils.createHelpButton(parent, propertiesEditionComponent.getHelpContent(
			SrmViewsRepository.Other.Properties.isStaticSchedulingFeature, SrmViewsRepository.SWT_KIND), null); // $NON-NLS-1$
	// Start of user code for createIsStaticSchedulingFeatureCheckbox

	// End of user code
	return parent;
}
 
開發者ID:polarsys,項目名稱:time4sys,代碼行數:35,代碼來源:OtherPropertiesEditionPartImpl.java

示例2: 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(HrmViewsRepository.General.Properties.isProtected,
			HrmMessages.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,
								HrmViewsRepository.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, HrmViewsRepository.General.Properties.isProtected);
	EditingUtils.setEEFtype(isProtected, "eef::Checkbox"); //$NON-NLS-1$
	SWTUtils.createHelpButton(parent, propertiesEditionComponent
			.getHelpContent(HrmViewsRepository.General.Properties.isProtected, HrmViewsRepository.SWT_KIND), null); // $NON-NLS-1$
	// Start of user code for createIsProtectedCheckbox

	// End of user code
	return parent;
}
 
開發者ID:polarsys,項目名稱:time4sys,代碼行數:34,代碼來源:GeneralPropertiesEditionPartImpl.java

示例3: createIsModifierCheckbox

import org.eclipse.emf.eef.runtime.ui.utils.EditingUtils; //導入方法依賴的package包/類
protected Composite createIsModifierCheckbox(FormToolkit widgetFactory, Composite parent) {
	isModifier = widgetFactory.createButton(parent, getDescription(SrmViewsRepository.General.Properties.isModifier,
			SrmMessages.GeneralPropertiesEditionPart_IsModifierLabel), SWT.CHECK);
	isModifier.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,
								SrmViewsRepository.General.Properties.isModifier, PropertiesEditionEvent.COMMIT,
								PropertiesEditionEvent.SET, null, new Boolean(isModifier.getSelection())));
		}

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

	// End of user code
	return parent;
}
 
開發者ID:polarsys,項目名稱:time4sys,代碼行數:33,代碼來源:GeneralPropertiesEditionPartForm.java

示例4: createIsPeriodicCheckbox

import org.eclipse.emf.eef.runtime.ui.utils.EditingUtils; //導入方法依賴的package包/類
protected Composite createIsPeriodicCheckbox(FormToolkit widgetFactory, Composite parent) {
	isPeriodic = widgetFactory.createButton(parent, getDescription(GrmViewsRepository.General.Properties.isPeriodic,
			GrmMessages.GeneralPropertiesEditionPart_IsPeriodicLabel), SWT.CHECK);
	isPeriodic.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.isPeriodic, PropertiesEditionEvent.COMMIT,
								PropertiesEditionEvent.SET, null, new Boolean(isPeriodic.getSelection())));
		}

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

	// End of user code
	return parent;
}
 
開發者ID:polarsys,項目名稱:time4sys,代碼行數:33,代碼來源:GeneralPropertiesEditionPartForm.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: createIsPeriodicCheckbox

import org.eclipse.emf.eef.runtime.ui.utils.EditingUtils; //導入方法依賴的package包/類
protected Composite createIsPeriodicCheckbox(Composite parent) {
	isPeriodic = new Button(parent, SWT.CHECK);
	isPeriodic.setText(getDescription(GrmViewsRepository.General.Properties.isPeriodic,
			GrmMessages.GeneralPropertiesEditionPart_IsPeriodicLabel));
	isPeriodic.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.isPeriodic, PropertiesEditionEvent.COMMIT,
								PropertiesEditionEvent.SET, null, new Boolean(isPeriodic.getSelection())));
		}

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

	// End of user code
	return parent;
}
 
開發者ID:polarsys,項目名稱:time4sys,代碼行數:34,代碼來源:GeneralPropertiesEditionPartImpl.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: createIsActiveCheckbox

import org.eclipse.emf.eef.runtime.ui.utils.EditingUtils; //導入方法依賴的package包/類
protected Composite createIsActiveCheckbox(Composite parent) {
	isActive = new Button(parent, SWT.CHECK);
	isActive.setText(getDescription(GrmViewsRepository.General.Properties.isActive,
			GrmMessages.GeneralPropertiesEditionPart_IsActiveLabel));
	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(GeneralPropertiesEditionPartImpl.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$
	SWTUtils.createHelpButton(parent, propertiesEditionComponent
			.getHelpContent(GrmViewsRepository.General.Properties.isActive, GrmViewsRepository.SWT_KIND), null); // $NON-NLS-1$
	// Start of user code for createIsActiveCheckbox

	// End of user code
	return parent;
}
 
開發者ID:polarsys,項目名稱:time4sys,代碼行數:34,代碼來源:GeneralPropertiesEditionPartImpl.java

示例10: createIsSchedulableCheckbox

import org.eclipse.emf.eef.runtime.ui.utils.EditingUtils; //導入方法依賴的package包/類
protected Composite createIsSchedulableCheckbox(FormToolkit widgetFactory, Composite parent) {
	isSchedulable = widgetFactory.createButton(parent,
			getDescription(GqamViewsRepository.General.Properties.isSchedulable,
					GqamMessages.GeneralPropertiesEditionPart_IsSchedulableLabel),
			SWT.CHECK);
	isSchedulable.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,
								GqamViewsRepository.General.Properties.isSchedulable, PropertiesEditionEvent.COMMIT,
								PropertiesEditionEvent.SET, null, new Boolean(isSchedulable.getSelection())));
		}

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

	// End of user code
	return parent;
}
 
開發者ID:polarsys,項目名稱:time4sys,代碼行數:35,代碼來源:GeneralPropertiesEditionPartForm.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: createIsStaticCheckbox

import org.eclipse.emf.eef.runtime.ui.utils.EditingUtils; //導入方法依賴的package包/類
protected Composite createIsStaticCheckbox(FormToolkit widgetFactory, Composite parent) {
	isStatic = widgetFactory.createButton(parent, getDescription(HrmViewsRepository.General.Properties.isStatic,
			HrmMessages.GeneralPropertiesEditionPart_IsStaticLabel), SWT.CHECK);
	isStatic.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.isStatic, PropertiesEditionEvent.COMMIT,
								PropertiesEditionEvent.SET, null, new Boolean(isStatic.getSelection())));
		}

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

	// End of user code
	return parent;
}
 
開發者ID:polarsys,項目名稱:time4sys,代碼行數:33,代碼來源:GeneralPropertiesEditionPartForm.java

示例13: createIsSynchronousCheckbox

import org.eclipse.emf.eef.runtime.ui.utils.EditingUtils; //導入方法依賴的package包/類
protected Composite createIsSynchronousCheckbox(Composite parent) {
	isSynchronous = new Button(parent, SWT.CHECK);
	isSynchronous.setText(getDescription(LibraryViewsRepository.General.Properties.isSynchronous, LibraryMessages.GeneralPropertiesEditionPart_IsSynchronousLabel));
	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(GeneralPropertiesEditionPartImpl.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$
	SWTUtils.createHelpButton(parent, propertiesEditionComponent.getHelpContent(LibraryViewsRepository.General.Properties.isSynchronous, LibraryViewsRepository.SWT_KIND), null); //$NON-NLS-1$
	// Start of user code for createIsSynchronousCheckbox

	// End of user code
	return parent;
}
 
開發者ID:polarsys,項目名稱:time4sys,代碼行數:29,代碼來源:GeneralPropertiesEditionPartImpl.java

示例14: createIsSerialCheckbox

import org.eclipse.emf.eef.runtime.ui.utils.EditingUtils; //導入方法依賴的package包/類
protected Composite createIsSerialCheckbox(FormToolkit widgetFactory, Composite parent) {
	isSerial = widgetFactory.createButton(parent, getDescription(HrmViewsRepository.General.Properties.isSerial,
			HrmMessages.GeneralPropertiesEditionPart_IsSerialLabel), SWT.CHECK);
	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(GeneralPropertiesEditionPartForm.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$
	FormUtils.createHelpButton(widgetFactory, parent, propertiesEditionComponent
			.getHelpContent(HrmViewsRepository.General.Properties.isSerial, HrmViewsRepository.FORM_KIND), null); // $NON-NLS-1$
	// Start of user code for createIsSerialCheckbox

	// End of user code
	return parent;
}
 
開發者ID:polarsys,項目名稱:time4sys,代碼行數:33,代碼來源:GeneralPropertiesEditionPartForm.java

示例15: createIsWatchdogCheckbox

import org.eclipse.emf.eef.runtime.ui.utils.EditingUtils; //導入方法依賴的package包/類
protected Composite createIsWatchdogCheckbox(FormToolkit widgetFactory, Composite parent) {
	isWatchdog = widgetFactory.createButton(parent, getDescription(SrmViewsRepository.General.Properties.isWatchdog,
			SrmMessages.GeneralPropertiesEditionPart_IsWatchdogLabel), SWT.CHECK);
	isWatchdog.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,
								SrmViewsRepository.General.Properties.isWatchdog, PropertiesEditionEvent.COMMIT,
								PropertiesEditionEvent.SET, null, new Boolean(isWatchdog.getSelection())));
		}

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

	// End of user code
	return parent;
}
 
開發者ID:polarsys,項目名稱:time4sys,代碼行數:33,代碼來源:GeneralPropertiesEditionPartForm.java


注:本文中的org.eclipse.emf.eef.runtime.ui.utils.EditingUtils.setEEFtype方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。