本文整理汇总了Java中org.eclipse.emf.eef.runtime.ui.utils.EditingUtils类的典型用法代码示例。如果您正苦于以下问题:Java EditingUtils类的具体用法?Java EditingUtils怎么用?Java EditingUtils使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
EditingUtils类属于org.eclipse.emf.eef.runtime.ui.utils包,在下文中一共展示了EditingUtils类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: createOverflowCheckbox
import org.eclipse.emf.eef.runtime.ui.utils.EditingUtils; //导入依赖的package包/类
protected Composite createOverflowCheckbox(FormToolkit widgetFactory, Composite parent) {
overflow = widgetFactory.createButton(parent, getDescription(MetamodelViewsRepository.Storage.Properties.overflow, MetamodelMessages.StoragePropertiesEditionPart_OverflowLabel), SWT.CHECK);
overflow.addSelectionListener(new SelectionAdapter() {
/**
* {@inheritDoc}
*
* @see org.eclipse.swt.events.SelectionAdapter#widgetSelected(org.eclipse.swt.events.SelectionEvent)
*
*/
public void widgetSelected(SelectionEvent e) {
if (propertiesEditionComponent != null)
propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(StoragePropertiesEditionPartForm.this, MetamodelViewsRepository.Storage.Properties.overflow, PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.SET, null, new Boolean(overflow.getSelection())));
}
});
GridData overflowData = new GridData(GridData.FILL_HORIZONTAL);
overflowData.horizontalSpan = 2;
overflow.setLayoutData(overflowData);
EditingUtils.setID(overflow, MetamodelViewsRepository.Storage.Properties.overflow);
EditingUtils.setEEFtype(overflow, "eef::Checkbox"); //$NON-NLS-1$
FormUtils.createHelpButton(widgetFactory, parent, propertiesEditionComponent.getHelpContent(MetamodelViewsRepository.Storage.Properties.overflow, MetamodelViewsRepository.FORM_KIND), null); //$NON-NLS-1$
// Start of user code for createOverflowCheckbox
// End of user code
return parent;
}
示例2: createValueTextarea
import org.eclipse.emf.eef.runtime.ui.utils.EditingUtils; //导入依赖的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;
}
示例3: createOverflowCheckbox
import org.eclipse.emf.eef.runtime.ui.utils.EditingUtils; //导入依赖的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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例11: createIsAtomicCheckbox
import org.eclipse.emf.eef.runtime.ui.utils.EditingUtils; //导入依赖的package包/类
protected Composite createIsAtomicCheckbox(FormToolkit widgetFactory, Composite parent) {
isAtomic = widgetFactory.createButton(parent, getDescription(GqamViewsRepository.General.Properties.isAtomic,
GqamMessages.GeneralPropertiesEditionPart_IsAtomicLabel), SWT.CHECK);
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(GeneralPropertiesEditionPartForm.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$
FormUtils.createHelpButton(widgetFactory, parent, propertiesEditionComponent
.getHelpContent(GqamViewsRepository.General.Properties.isAtomic, GqamViewsRepository.FORM_KIND), null); // $NON-NLS-1$
// Start of user code for createIsAtomicCheckbox
// End of user code
return parent;
}
示例12: createIsSchedulableCheckbox
import org.eclipse.emf.eef.runtime.ui.utils.EditingUtils; //导入依赖的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;
}
示例13: createIsAtomicCheckbox
import org.eclipse.emf.eef.runtime.ui.utils.EditingUtils; //导入依赖的package包/类
protected Composite createIsAtomicCheckbox(Composite parent) {
isAtomic = new Button(parent, SWT.CHECK);
isAtomic.setText(getDescription(GqamViewsRepository.General.Properties.isAtomic,
GqamMessages.GeneralPropertiesEditionPart_IsAtomicLabel));
isAtomic.addSelectionListener(new SelectionAdapter() {
/**
* {@inheritDoc}
*
* @see org.eclipse.swt.events.SelectionAdapter#widgetSelected(org.eclipse.swt.events.SelectionEvent)
*
*/
public void widgetSelected(SelectionEvent e) {
if (propertiesEditionComponent != null)
propertiesEditionComponent
.firePropertiesChanged(new PropertiesEditionEvent(GeneralPropertiesEditionPartImpl.this,
GqamViewsRepository.General.Properties.isAtomic, PropertiesEditionEvent.COMMIT,
PropertiesEditionEvent.SET, null, new Boolean(isAtomic.getSelection())));
}
});
GridData isAtomicData = new GridData(GridData.FILL_HORIZONTAL);
isAtomicData.horizontalSpan = 2;
isAtomic.setLayoutData(isAtomicData);
EditingUtils.setID(isAtomic, GqamViewsRepository.General.Properties.isAtomic);
EditingUtils.setEEFtype(isAtomic, "eef::Checkbox"); //$NON-NLS-1$
SWTUtils.createHelpButton(parent, propertiesEditionComponent
.getHelpContent(GqamViewsRepository.General.Properties.isAtomic, GqamViewsRepository.SWT_KIND), null); // $NON-NLS-1$
// Start of user code for createIsAtomicCheckbox
// End of user code
return parent;
}
示例14: createIsSporadicCheckbox
import org.eclipse.emf.eef.runtime.ui.utils.EditingUtils; //导入依赖的package包/类
/**
* @generated
*/
protected Composite createIsSporadicCheckbox(FormToolkit widgetFactory, Composite parent) {
isSporadic = widgetFactory.createButton(parent, getDescription(AnalysisViewsRepository.EventModel.Properties.isSporadic, AnalysisMessages.EventModelPropertiesEditionPart_IsSporadicLabel), SWT.CHECK);
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(EventModelPropertiesEditionPartForm.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$
FormUtils.createHelpButton(widgetFactory, parent, propertiesEditionComponent.getHelpContent(AnalysisViewsRepository.EventModel.Properties.isSporadic, AnalysisViewsRepository.FORM_KIND), null); //$NON-NLS-1$
// Start of user code for createIsSporadicCheckbox
// End of user code
return parent;
}
示例15: createIsSporadicCheckbox
import org.eclipse.emf.eef.runtime.ui.utils.EditingUtils; //导入依赖的package包/类
/**
* @generated
*/
protected Composite createIsSporadicCheckbox(FormToolkit widgetFactory, Composite parent) {
isSporadic = widgetFactory.createButton(parent, getDescription(AnalysisViewsRepository.TwcaEventModel.Properties.isSporadic, AnalysisMessages.TwcaEventModelPropertiesEditionPart_IsSporadicLabel), SWT.CHECK);
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(TwcaEventModelPropertiesEditionPartForm.this, AnalysisViewsRepository.TwcaEventModel.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.TwcaEventModel.Properties.isSporadic);
EditingUtils.setEEFtype(isSporadic, "eef::Checkbox"); //$NON-NLS-1$
FormUtils.createHelpButton(widgetFactory, parent, propertiesEditionComponent.getHelpContent(AnalysisViewsRepository.TwcaEventModel.Properties.isSporadic, AnalysisViewsRepository.FORM_KIND), null); //$NON-NLS-1$
// Start of user code for createIsSporadicCheckbox
// End of user code
return parent;
}