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


Java SWTUtils類代碼示例

本文整理匯總了Java中org.eclipse.emf.eef.runtime.ui.widgets.SWTUtils的典型用法代碼示例。如果您正苦於以下問題:Java SWTUtils類的具體用法?Java SWTUtils怎麽用?Java SWTUtils使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


SWTUtils類屬於org.eclipse.emf.eef.runtime.ui.widgets包,在下文中一共展示了SWTUtils類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: createSupplierDelaySingleCompositionEditor

import org.eclipse.emf.eef.runtime.ui.widgets.SWTUtils; //導入依賴的package包/類
/**
 * @param parent the parent composite
 * 
 */
protected Composite createSupplierDelaySingleCompositionEditor(Composite parent) {
	createDescription(parent, MetamodelViewsRepository.Supplier.Properties.supplierDelay, MetamodelMessages.SupplierPropertiesEditionPart_SupplierDelayLabel);
	//create widget
	supplierDelay = new SingleCompositionEditor(parent, SWT.NONE);
	GridData supplierDelayData = new GridData(GridData.FILL_HORIZONTAL);
	supplierDelay.setLayoutData(supplierDelayData);
	supplierDelay.addEditorListener(new SingleCompositionListener() {
		
		public void edit() {
			propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(SupplierPropertiesEditionPartImpl.this,  MetamodelViewsRepository.Supplier.Properties.supplierDelay, PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.EDIT, null, null));				
			supplierDelay.refresh();
		}
		
		public void clear() {
			propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(SupplierPropertiesEditionPartImpl.this,  MetamodelViewsRepository.Supplier.Properties.supplierDelay, PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.UNSET, null, null));
			supplierDelay.refresh();
		}
	});
	supplierDelay.setID(MetamodelViewsRepository.Supplier.Properties.supplierDelay);
	SWTUtils.createHelpButton(parent, propertiesEditionComponent.getHelpContent(MetamodelViewsRepository.Supplier.Properties.supplierDelay, MetamodelViewsRepository.SWT_KIND), null); //$NON-NLS-1$
	// Start of user code for createSupplierDelaySingleCompositionEditor

	// End of user code
	return parent;
}
 
開發者ID:cetic,項目名稱:SimQRI,代碼行數:30,代碼來源:SupplierPropertiesEditionPartImpl.java

示例2: createDurationSingleCompositionEditor

import org.eclipse.emf.eef.runtime.ui.widgets.SWTUtils; //導入依賴的package包/類
/**
 * @param parent the parent composite
 * 
 */
protected Composite createDurationSingleCompositionEditor(Composite parent) {
	createDescription(parent, MetamodelViewsRepository.ConveyorBelt.Properties.duration, MetamodelMessages.ConveyorBeltPropertiesEditionPart_DurationLabel);
	//create widget
	duration = new SingleCompositionEditor(parent, SWT.NONE);
	GridData durationData = new GridData(GridData.FILL_HORIZONTAL);
	duration.setLayoutData(durationData);
	duration.addEditorListener(new SingleCompositionListener() {
		
		public void edit() {
			propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(ConveyorBeltPropertiesEditionPartImpl.this,  MetamodelViewsRepository.ConveyorBelt.Properties.duration, PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.EDIT, null, null));				
			duration.refresh();
		}
		
		public void clear() {
			propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(ConveyorBeltPropertiesEditionPartImpl.this,  MetamodelViewsRepository.ConveyorBelt.Properties.duration, PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.UNSET, null, null));
			duration.refresh();
		}
	});
	duration.setID(MetamodelViewsRepository.ConveyorBelt.Properties.duration);
	SWTUtils.createHelpButton(parent, propertiesEditionComponent.getHelpContent(MetamodelViewsRepository.ConveyorBelt.Properties.duration, MetamodelViewsRepository.SWT_KIND), null); //$NON-NLS-1$
	// Start of user code for createDurationSingleCompositionEditor

	// End of user code
	return parent;
}
 
開發者ID:cetic,項目名稱:SimQRI,代碼行數:30,代碼來源:ConveyorBeltPropertiesEditionPartImpl.java

示例3: createOutputSingleCompositionEditor

import org.eclipse.emf.eef.runtime.ui.widgets.SWTUtils; //導入依賴的package包/類
/**
 * @param parent the parent composite
 * 
 */
protected Composite createOutputSingleCompositionEditor(Composite parent) {
	createDescription(parent, MetamodelViewsRepository.ConveyorBelt.Properties.output, MetamodelMessages.ConveyorBeltPropertiesEditionPart_OutputLabel);
	//create widget
	output = new SingleCompositionEditor(parent, SWT.NONE);
	GridData outputData = new GridData(GridData.FILL_HORIZONTAL);
	output.setLayoutData(outputData);
	output.addEditorListener(new SingleCompositionListener() {
		
		public void edit() {
			propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(ConveyorBeltPropertiesEditionPartImpl.this,  MetamodelViewsRepository.ConveyorBelt.Properties.output, PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.EDIT, null, null));				
			output.refresh();
		}
		
		public void clear() {
			propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(ConveyorBeltPropertiesEditionPartImpl.this,  MetamodelViewsRepository.ConveyorBelt.Properties.output, PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.UNSET, null, null));
			output.refresh();
		}
	});
	output.setID(MetamodelViewsRepository.ConveyorBelt.Properties.output);
	SWTUtils.createHelpButton(parent, propertiesEditionComponent.getHelpContent(MetamodelViewsRepository.ConveyorBelt.Properties.output, MetamodelViewsRepository.SWT_KIND), null); //$NON-NLS-1$
	// Start of user code for createOutputSingleCompositionEditor

	// End of user code
	return parent;
}
 
開發者ID:cetic,項目名稱:SimQRI,代碼行數:30,代碼來源:ConveyorBeltPropertiesEditionPartImpl.java

示例4: createQuantitySingleCompositionEditor

import org.eclipse.emf.eef.runtime.ui.widgets.SWTUtils; //導入依賴的package包/類
/**
 * @param parent the parent composite
 * 
 */
protected Composite createQuantitySingleCompositionEditor(Composite parent) {
	createDescription(parent, MetamodelViewsRepository.ProcessOutputFlow.Properties.quantity, MetamodelMessages.ProcessOutputFlowPropertiesEditionPart_QuantityLabel);
	//create widget
	quantity = new SingleCompositionEditor(parent, SWT.NONE);
	GridData quantityData = new GridData(GridData.FILL_HORIZONTAL);
	quantity.setLayoutData(quantityData);
	quantity.addEditorListener(new SingleCompositionListener() {
		
		public void edit() {
			propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(ProcessOutputFlowPropertiesEditionPartImpl.this,  MetamodelViewsRepository.ProcessOutputFlow.Properties.quantity, PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.EDIT, null, null));				
			quantity.refresh();
		}
		
		public void clear() {
			propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(ProcessOutputFlowPropertiesEditionPartImpl.this,  MetamodelViewsRepository.ProcessOutputFlow.Properties.quantity, PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.UNSET, null, null));
			quantity.refresh();
		}
	});
	quantity.setID(MetamodelViewsRepository.ProcessOutputFlow.Properties.quantity);
	SWTUtils.createHelpButton(parent, propertiesEditionComponent.getHelpContent(MetamodelViewsRepository.ProcessOutputFlow.Properties.quantity, MetamodelViewsRepository.SWT_KIND), null); //$NON-NLS-1$
	// Start of user code for createQuantitySingleCompositionEditor

	// End of user code
	return parent;
}
 
開發者ID:cetic,項目名稱:SimQRI,代碼行數:30,代碼來源:ProcessOutputFlowPropertiesEditionPartImpl.java

示例5: createProcessOutputFlowDelaySingleCompositionEditor

import org.eclipse.emf.eef.runtime.ui.widgets.SWTUtils; //導入依賴的package包/類
/**
 * @param parent the parent composite
 * 
 */
protected Composite createProcessOutputFlowDelaySingleCompositionEditor(Composite parent) {
	createDescription(parent, MetamodelViewsRepository.ProcessOutputFlow.Properties.processOutputFlowDelay, MetamodelMessages.ProcessOutputFlowPropertiesEditionPart_ProcessOutputFlowDelayLabel);
	//create widget
	processOutputFlowDelay = new SingleCompositionEditor(parent, SWT.NONE);
	GridData processOutputFlowDelayData = new GridData(GridData.FILL_HORIZONTAL);
	processOutputFlowDelay.setLayoutData(processOutputFlowDelayData);
	processOutputFlowDelay.addEditorListener(new SingleCompositionListener() {
		
		public void edit() {
			propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(ProcessOutputFlowPropertiesEditionPartImpl.this,  MetamodelViewsRepository.ProcessOutputFlow.Properties.processOutputFlowDelay, PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.EDIT, null, null));				
			processOutputFlowDelay.refresh();
		}
		
		public void clear() {
			propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(ProcessOutputFlowPropertiesEditionPartImpl.this,  MetamodelViewsRepository.ProcessOutputFlow.Properties.processOutputFlowDelay, PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.UNSET, null, null));
			processOutputFlowDelay.refresh();
		}
	});
	processOutputFlowDelay.setID(MetamodelViewsRepository.ProcessOutputFlow.Properties.processOutputFlowDelay);
	SWTUtils.createHelpButton(parent, propertiesEditionComponent.getHelpContent(MetamodelViewsRepository.ProcessOutputFlow.Properties.processOutputFlowDelay, MetamodelViewsRepository.SWT_KIND), null); //$NON-NLS-1$
	// Start of user code for createProcessOutputFlowDelaySingleCompositionEditor

	// End of user code
	return parent;
}
 
開發者ID:cetic,項目名稱:SimQRI,代碼行數:30,代碼來源:ProcessOutputFlowPropertiesEditionPartImpl.java

示例6: createDurationSingleCompositionEditor

import org.eclipse.emf.eef.runtime.ui.widgets.SWTUtils; //導入依賴的package包/類
/**
 * @param parent the parent composite
 * 
 */
protected Composite createDurationSingleCompositionEditor(Composite parent) {
	createDescription(parent, MetamodelViewsRepository.BatchProcess.Properties.duration, MetamodelMessages.BatchProcessPropertiesEditionPart_DurationLabel);
	//create widget
	duration = new SingleCompositionEditor(parent, SWT.NONE);
	GridData durationData = new GridData(GridData.FILL_HORIZONTAL);
	duration.setLayoutData(durationData);
	duration.addEditorListener(new SingleCompositionListener() {
		
		public void edit() {
			propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(BatchProcessPropertiesEditionPartImpl.this,  MetamodelViewsRepository.BatchProcess.Properties.duration, PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.EDIT, null, null));				
			duration.refresh();
		}
		
		public void clear() {
			propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(BatchProcessPropertiesEditionPartImpl.this,  MetamodelViewsRepository.BatchProcess.Properties.duration, PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.UNSET, null, null));
			duration.refresh();
		}
	});
	duration.setID(MetamodelViewsRepository.BatchProcess.Properties.duration);
	SWTUtils.createHelpButton(parent, propertiesEditionComponent.getHelpContent(MetamodelViewsRepository.BatchProcess.Properties.duration, MetamodelViewsRepository.SWT_KIND), null); //$NON-NLS-1$
	// Start of user code for createDurationSingleCompositionEditor

	// End of user code
	return parent;
}
 
開發者ID:cetic,項目名稱:SimQRI,代碼行數:30,代碼來源:BatchProcessPropertiesEditionPartImpl.java

示例7: createQuantitySingleCompositionEditor

import org.eclipse.emf.eef.runtime.ui.widgets.SWTUtils; //導入依賴的package包/類
/**
 * @param parent the parent composite
 * 
 */
protected Composite createQuantitySingleCompositionEditor(Composite parent) {
	createDescription(parent, MetamodelViewsRepository.StorageOutputFlow.Properties.quantity, MetamodelMessages.StorageOutputFlowPropertiesEditionPart_QuantityLabel);
	//create widget
	quantity = new SingleCompositionEditor(parent, SWT.NONE);
	GridData quantityData = new GridData(GridData.FILL_HORIZONTAL);
	quantity.setLayoutData(quantityData);
	quantity.addEditorListener(new SingleCompositionListener() {
		
		public void edit() {
			propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(StorageOutputFlowPropertiesEditionPartImpl.this,  MetamodelViewsRepository.StorageOutputFlow.Properties.quantity, PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.EDIT, null, null));				
			quantity.refresh();
		}
		
		public void clear() {
			propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(StorageOutputFlowPropertiesEditionPartImpl.this,  MetamodelViewsRepository.StorageOutputFlow.Properties.quantity, PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.UNSET, null, null));
			quantity.refresh();
		}
	});
	quantity.setID(MetamodelViewsRepository.StorageOutputFlow.Properties.quantity);
	SWTUtils.createHelpButton(parent, propertiesEditionComponent.getHelpContent(MetamodelViewsRepository.StorageOutputFlow.Properties.quantity, MetamodelViewsRepository.SWT_KIND), null); //$NON-NLS-1$
	// Start of user code for createQuantitySingleCompositionEditor

	// End of user code
	return parent;
}
 
開發者ID:cetic,項目名稱:SimQRI,代碼行數:30,代碼來源:StorageOutputFlowPropertiesEditionPartImpl.java

示例8: createValueTextarea

import org.eclipse.emf.eef.runtime.ui.widgets.SWTUtils; //導入依賴的package包/類
protected Composite createValueTextarea(Composite parent) {
	Label valueLabel = createDescription(parent, MetamodelViewsRepository.Query.Properties.value, MetamodelMessages.QueryPropertiesEditionPart_ValueLabel);
	GridData valueLabelData = new GridData(GridData.FILL_HORIZONTAL);
	valueLabelData.horizontalSpan = 3;
	valueLabel.setLayoutData(valueLabelData);
	value = SWTUtils.createScrollableText(parent, SWT.BORDER | SWT.WRAP | SWT.MULTI | SWT.V_SCROLL);
	GridData valueData = new GridData(GridData.FILL_HORIZONTAL);
	valueData.horizontalSpan = 2;
	valueData.heightHint = 80;
	valueData.widthHint = 200;
	value.setLayoutData(valueData);
	value.addFocusListener(new FocusAdapter() {

		/**
		 * {@inheritDoc}
		 * 
		 * @see org.eclipse.swt.events.FocusAdapter#focusLost(org.eclipse.swt.events.FocusEvent)
		 * 
		 */
		public void focusLost(FocusEvent e) {
			if (propertiesEditionComponent != null)
				propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(QueryPropertiesEditionPartImpl.this, MetamodelViewsRepository.Query.Properties.value, PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.SET, null, value.getText()));
		}

	});
	EditingUtils.setID(value, MetamodelViewsRepository.Query.Properties.value);
	EditingUtils.setEEFtype(value, "eef::Textarea"); //$NON-NLS-1$
	SWTUtils.createHelpButton(parent, propertiesEditionComponent.getHelpContent(MetamodelViewsRepository.Query.Properties.value, MetamodelViewsRepository.SWT_KIND), null); //$NON-NLS-1$
	// Start of user code for createValueTextArea

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

示例9: createOverflowCheckbox

import org.eclipse.emf.eef.runtime.ui.widgets.SWTUtils; //導入依賴的package包/類
protected Composite createOverflowCheckbox(Composite parent) {
	overflow = new Button(parent, SWT.CHECK);
	overflow.setText(getDescription(MetamodelViewsRepository.Storage.Properties.overflow, MetamodelMessages.StoragePropertiesEditionPart_OverflowLabel));
	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(StoragePropertiesEditionPartImpl.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$
	SWTUtils.createHelpButton(parent, propertiesEditionComponent.getHelpContent(MetamodelViewsRepository.Storage.Properties.overflow, MetamodelViewsRepository.SWT_KIND), null); //$NON-NLS-1$
	// Start of user code for createOverflowCheckbox

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

示例10: createIsPeriodicCheckbox

import org.eclipse.emf.eef.runtime.ui.widgets.SWTUtils; //導入依賴的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

示例11: createIsProtectedCheckbox

import org.eclipse.emf.eef.runtime.ui.widgets.SWTUtils; //導入依賴的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

示例12: createIsActiveCheckbox

import org.eclipse.emf.eef.runtime.ui.widgets.SWTUtils; //導入依賴的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

示例13: createIsSchedulableCheckbox

import org.eclipse.emf.eef.runtime.ui.widgets.SWTUtils; //導入依賴的package包/類
protected Composite createIsSchedulableCheckbox(Composite parent) {
	isSchedulable = new Button(parent, SWT.CHECK);
	isSchedulable.setText(getDescription(GqamViewsRepository.General.Properties.isSchedulable,
			GqamMessages.GeneralPropertiesEditionPart_IsSchedulableLabel));
	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(GeneralPropertiesEditionPartImpl.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$
	SWTUtils.createHelpButton(parent, propertiesEditionComponent.getHelpContent(
			GqamViewsRepository.General.Properties.isSchedulable, GqamViewsRepository.SWT_KIND), null); // $NON-NLS-1$
	// Start of user code for createIsSchedulableCheckbox

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

示例14: createIsAtomicCheckbox

import org.eclipse.emf.eef.runtime.ui.widgets.SWTUtils; //導入依賴的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

示例15: createIsSporadicCheckbox

import org.eclipse.emf.eef.runtime.ui.widgets.SWTUtils; //導入依賴的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.widgets.SWTUtils類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。