本文整理汇总了Java中org.eclipse.emf.eef.runtime.ui.widgets.SWTUtils.createHelpButton方法的典型用法代码示例。如果您正苦于以下问题:Java SWTUtils.createHelpButton方法的具体用法?Java SWTUtils.createHelpButton怎么用?Java SWTUtils.createHelpButton使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.eclipse.emf.eef.runtime.ui.widgets.SWTUtils
的用法示例。
在下文中一共展示了SWTUtils.createHelpButton方法的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: 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;
}
示例4: createIsSerialCheckbox
import org.eclipse.emf.eef.runtime.ui.widgets.SWTUtils; //导入方法依赖的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;
}
示例5: createMinOpenCheckbox
import org.eclipse.emf.eef.runtime.ui.widgets.SWTUtils; //导入方法依赖的package包/类
protected Composite createMinOpenCheckbox(Composite parent) {
minOpen = new Button(parent, SWT.CHECK);
minOpen.setText(getDescription(NfpViewsRepository.General.Properties.minOpen, NfpMessages.GeneralPropertiesEditionPart_MinOpenLabel));
minOpen.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, NfpViewsRepository.General.Properties.minOpen, PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.SET, null, new Boolean(minOpen.getSelection())));
}
});
GridData minOpenData = new GridData(GridData.FILL_HORIZONTAL);
minOpenData.horizontalSpan = 2;
minOpen.setLayoutData(minOpenData);
EditingUtils.setID(minOpen, NfpViewsRepository.General.Properties.minOpen);
EditingUtils.setEEFtype(minOpen, "eef::Checkbox"); //$NON-NLS-1$
SWTUtils.createHelpButton(parent, propertiesEditionComponent.getHelpContent(NfpViewsRepository.General.Properties.minOpen, NfpViewsRepository.SWT_KIND), null); //$NON-NLS-1$
// Start of user code for createMinOpenCheckbox
// End of user code
return parent;
}
示例6: 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(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;
}
示例7: createIsSerialCheckbox
import org.eclipse.emf.eef.runtime.ui.widgets.SWTUtils; //导入方法依赖的package包/类
protected Composite createIsSerialCheckbox(Composite parent) {
isSerial = new Button(parent, SWT.CHECK);
isSerial.setText(getDescription(LibraryViewsRepository.Other.Properties.isSerial, LibraryMessages.OtherPropertiesEditionPart_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(OtherPropertiesEditionPartImpl.this, LibraryViewsRepository.Other.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, LibraryViewsRepository.Other.Properties.isSerial);
EditingUtils.setEEFtype(isSerial, "eef::Checkbox"); //$NON-NLS-1$
SWTUtils.createHelpButton(parent, propertiesEditionComponent.getHelpContent(LibraryViewsRepository.Other.Properties.isSerial, LibraryViewsRepository.SWT_KIND), null); //$NON-NLS-1$
// Start of user code for createIsSerialCheckbox
// 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: createIsMaskableCheckbox
import org.eclipse.emf.eef.runtime.ui.widgets.SWTUtils; //导入方法依赖的package包/类
protected Composite createIsMaskableCheckbox(Composite parent) {
isMaskable = new Button(parent, SWT.CHECK);
isMaskable.setText(getDescription(SrmViewsRepository.Other.Properties.isMaskable,
SrmMessages.OtherPropertiesEditionPart_IsMaskableLabel));
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(OtherPropertiesEditionPartImpl.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$
SWTUtils.createHelpButton(parent, propertiesEditionComponent
.getHelpContent(SrmViewsRepository.Other.Properties.isMaskable, SrmViewsRepository.SWT_KIND), null); // $NON-NLS-1$
// Start of user code for createIsMaskableCheckbox
// End of user code
return parent;
}
示例10: 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(LibraryViewsRepository.General.Properties.isActive, LibraryMessages.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, 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$
SWTUtils.createHelpButton(parent, propertiesEditionComponent.getHelpContent(LibraryViewsRepository.General.Properties.isActive, LibraryViewsRepository.SWT_KIND), null); //$NON-NLS-1$
// Start of user code for createIsActiveCheckbox
// 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: createIsStaticCheckbox
import org.eclipse.emf.eef.runtime.ui.widgets.SWTUtils; //导入方法依赖的package包/类
protected Composite createIsStaticCheckbox(Composite parent) {
isStatic = new Button(parent, SWT.CHECK);
isStatic.setText(getDescription(HrmViewsRepository.General.Properties.isStatic,
HrmMessages.GeneralPropertiesEditionPart_IsStaticLabel));
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(GeneralPropertiesEditionPartImpl.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$
SWTUtils.createHelpButton(parent, propertiesEditionComponent
.getHelpContent(HrmViewsRepository.General.Properties.isStatic, HrmViewsRepository.SWT_KIND), null); // $NON-NLS-1$
// Start of user code for createIsStaticCheckbox
// 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: createMaxOpenCheckbox
import org.eclipse.emf.eef.runtime.ui.widgets.SWTUtils; //导入方法依赖的package包/类
protected Composite createMaxOpenCheckbox(Composite parent) {
maxOpen = new Button(parent, SWT.CHECK);
maxOpen.setText(getDescription(NfpViewsRepository.General.Properties.maxOpen, NfpMessages.GeneralPropertiesEditionPart_MaxOpenLabel));
maxOpen.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, NfpViewsRepository.General.Properties.maxOpen, PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.SET, null, new Boolean(maxOpen.getSelection())));
}
});
GridData maxOpenData = new GridData(GridData.FILL_HORIZONTAL);
maxOpenData.horizontalSpan = 2;
maxOpen.setLayoutData(maxOpenData);
EditingUtils.setID(maxOpen, NfpViewsRepository.General.Properties.maxOpen);
EditingUtils.setEEFtype(maxOpen, "eef::Checkbox"); //$NON-NLS-1$
SWTUtils.createHelpButton(parent, propertiesEditionComponent.getHelpContent(NfpViewsRepository.General.Properties.maxOpen, NfpViewsRepository.SWT_KIND), null); //$NON-NLS-1$
// Start of user code for createMaxOpenCheckbox
// End of user code
return parent;
}
示例15: createIsIntraMemoryPartitionInteractionCheckbox
import org.eclipse.emf.eef.runtime.ui.widgets.SWTUtils; //导入方法依赖的package包/类
protected Composite createIsIntraMemoryPartitionInteractionCheckbox(Composite parent) {
isIntraMemoryPartitionInteraction = new Button(parent, SWT.CHECK);
isIntraMemoryPartitionInteraction
.setText(getDescription(SrmViewsRepository.Other.Properties.isIntraMemoryPartitionInteraction,
SrmMessages.OtherPropertiesEditionPart_IsIntraMemoryPartitionInteractionLabel));
isIntraMemoryPartitionInteraction.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.isIntraMemoryPartitionInteraction,
PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.SET, null,
new Boolean(isIntraMemoryPartitionInteraction.getSelection())));
}
});
GridData isIntraMemoryPartitionInteractionData = new GridData(GridData.FILL_HORIZONTAL);
isIntraMemoryPartitionInteractionData.horizontalSpan = 2;
isIntraMemoryPartitionInteraction.setLayoutData(isIntraMemoryPartitionInteractionData);
EditingUtils.setID(isIntraMemoryPartitionInteraction,
SrmViewsRepository.Other.Properties.isIntraMemoryPartitionInteraction);
EditingUtils.setEEFtype(isIntraMemoryPartitionInteraction, "eef::Checkbox"); //$NON-NLS-1$
SWTUtils.createHelpButton(parent,
propertiesEditionComponent.getHelpContent(
SrmViewsRepository.Other.Properties.isIntraMemoryPartitionInteraction,
SrmViewsRepository.SWT_KIND),
null); // $NON-NLS-1$
// Start of user code for
// createIsIntraMemoryPartitionInteractionCheckbox
// End of user code
return parent;
}