本文整理汇总了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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}