本文整理汇总了Java中org.eclipse.emf.eef.runtime.ui.parts.PartComposer.compose方法的典型用法代码示例。如果您正苦于以下问题:Java PartComposer.compose方法的具体用法?Java PartComposer.compose怎么用?Java PartComposer.compose使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.eclipse.emf.eef.runtime.ui.parts.PartComposer
的用法示例。
在下文中一共展示了PartComposer.compose方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: createControls
import org.eclipse.emf.eef.runtime.ui.parts.PartComposer; //导入方法依赖的package包/类
/**
* {@inheritDoc}
*
* @see org.eclipse.emf.eef.runtime.api.parts.IFormPropertiesEditionPart#
* createControls(org.eclipse.ui.forms.widgets.FormToolkit, org.eclipse.swt.widgets.Composite)
*
*/
public void createControls(final FormToolkit widgetFactory, Composite view) {
CompositionSequence weibullStep = new BindingCompositionSequence(propertiesEditionComponent);
CompositionStep propertiesStep = weibullStep.addStep(MetamodelViewsRepository.Weibull.Properties.class);
propertiesStep.addStep(MetamodelViewsRepository.Weibull.Properties.shape);
propertiesStep.addStep(MetamodelViewsRepository.Weibull.Properties.scale);
composer = new PartComposer(weibullStep) {
@Override
public Composite addToPart(Composite parent, Object key) {
if (key == MetamodelViewsRepository.Weibull.Properties.class) {
return createPropertiesGroup(widgetFactory, parent);
}
if (key == MetamodelViewsRepository.Weibull.Properties.shape) {
return createShapeText(widgetFactory, parent);
}
if (key == MetamodelViewsRepository.Weibull.Properties.scale) {
return createScaleText(widgetFactory, parent);
}
return parent;
}
};
composer.compose(view);
}
示例2: createControls
import org.eclipse.emf.eef.runtime.ui.parts.PartComposer; //导入方法依赖的package包/类
/**
* {@inheritDoc}
*
* @see org.eclipse.emf.eef.runtime.api.parts.IFormPropertiesEditionPart#
* createControls(org.eclipse.ui.forms.widgets.FormToolkit, org.eclipse.swt.widgets.Composite)
* @generated
*/
public void createControls(final FormToolkit widgetFactory, Composite view) {
CompositionSequence designModelStep = new BindingCompositionSequence(propertiesEditionComponent);
CompositionStep propertiesStep = designModelStep.addStep(DesignViewsRepository.DesignModel.Properties.class);
propertiesStep.addStep(DesignViewsRepository.DesignModel.Properties.endToEndFlows);
propertiesStep.addStep(DesignViewsRepository.DesignModel.Properties.name);
composer = new PartComposer(designModelStep) {
@Override
public Composite addToPart(Composite parent, Object key) {
if (key == DesignViewsRepository.DesignModel.Properties.class) {
return createPropertiesGroup(widgetFactory, parent);
}
if (key == DesignViewsRepository.DesignModel.Properties.endToEndFlows) {
return createEndToEndFlowsTableComposition(widgetFactory, parent);
}
if (key == DesignViewsRepository.DesignModel.Properties.name) {
return createNameText(widgetFactory, parent);
}
return parent;
}
};
composer.compose(view);
}
示例3: createControls
import org.eclipse.emf.eef.runtime.ui.parts.PartComposer; //导入方法依赖的package包/类
/**
* {@inheritDoc}
*
* @see org.eclipse.emf.eef.runtime.api.parts.IFormPropertiesEditionPart#
* createControls(org.eclipse.ui.forms.widgets.FormToolkit, org.eclipse.swt.widgets.Composite)
*
*/
public void createControls(final FormToolkit widgetFactory, Composite view) {
CompositionSequence binomialStep = new BindingCompositionSequence(propertiesEditionComponent);
CompositionStep propertiesStep = binomialStep.addStep(MetamodelViewsRepository.Binomial.Properties.class);
propertiesStep.addStep(MetamodelViewsRepository.Binomial.Properties.nbrOfTrial);
propertiesStep.addStep(MetamodelViewsRepository.Binomial.Properties.probaOfSuccess);
composer = new PartComposer(binomialStep) {
@Override
public Composite addToPart(Composite parent, Object key) {
if (key == MetamodelViewsRepository.Binomial.Properties.class) {
return createPropertiesGroup(widgetFactory, parent);
}
if (key == MetamodelViewsRepository.Binomial.Properties.nbrOfTrial) {
return createNbrOfTrialText(widgetFactory, parent);
}
if (key == MetamodelViewsRepository.Binomial.Properties.probaOfSuccess) {
return createProbaOfSuccessText(widgetFactory, parent);
}
return parent;
}
};
composer.compose(view);
}
示例4: createControls
import org.eclipse.emf.eef.runtime.ui.parts.PartComposer; //导入方法依赖的package包/类
/**
* {@inheritDoc}
*
* @see org.eclipse.emf.eef.runtime.api.parts.IFormPropertiesEditionPart#
* createControls(org.eclipse.ui.forms.widgets.FormToolkit, org.eclipse.swt.widgets.Composite)
*
*/
public void createControls(final FormToolkit widgetFactory, Composite view) {
CompositionSequence gaussianStep = new BindingCompositionSequence(propertiesEditionComponent);
CompositionStep propertiesStep = gaussianStep.addStep(MetamodelViewsRepository.Gaussian.Properties.class);
propertiesStep.addStep(MetamodelViewsRepository.Gaussian.Properties.location);
propertiesStep.addStep(MetamodelViewsRepository.Gaussian.Properties.scale);
composer = new PartComposer(gaussianStep) {
@Override
public Composite addToPart(Composite parent, Object key) {
if (key == MetamodelViewsRepository.Gaussian.Properties.class) {
return createPropertiesGroup(widgetFactory, parent);
}
if (key == MetamodelViewsRepository.Gaussian.Properties.location) {
return createLocationText(widgetFactory, parent);
}
if (key == MetamodelViewsRepository.Gaussian.Properties.scale) {
return createScaleText(widgetFactory, parent);
}
return parent;
}
};
composer.compose(view);
}
示例5: createControls
import org.eclipse.emf.eef.runtime.ui.parts.PartComposer; //导入方法依赖的package包/类
/**
* {@inheritDoc}
*
* @see org.eclipse.emf.eef.runtime.api.parts.ISWTPropertiesEditionPart#
* createControls(org.eclipse.swt.widgets.Composite)
*
*/
public void createControls(Composite view) {
CompositionSequence paretoStep = new BindingCompositionSequence(propertiesEditionComponent);
CompositionStep propertiesStep = paretoStep.addStep(MetamodelViewsRepository.Pareto.Properties.class);
propertiesStep.addStep(MetamodelViewsRepository.Pareto.Properties.shape);
propertiesStep.addStep(MetamodelViewsRepository.Pareto.Properties.scale);
composer = new PartComposer(paretoStep) {
@Override
public Composite addToPart(Composite parent, Object key) {
if (key == MetamodelViewsRepository.Pareto.Properties.class) {
return createPropertiesGroup(parent);
}
if (key == MetamodelViewsRepository.Pareto.Properties.shape) {
return createShapeText(parent);
}
if (key == MetamodelViewsRepository.Pareto.Properties.scale) {
return createScaleText(parent);
}
return parent;
}
};
composer.compose(view);
}
示例6: createControls
import org.eclipse.emf.eef.runtime.ui.parts.PartComposer; //导入方法依赖的package包/类
/**
* {@inheritDoc}
*
* @see org.eclipse.emf.eef.runtime.api.parts.ISWTPropertiesEditionPart#
* createControls(org.eclipse.swt.widgets.Composite)
*
*/
public void createControls(Composite view) {
CompositionSequence supplierStep = new BindingCompositionSequence(propertiesEditionComponent);
CompositionStep propertiesStep = supplierStep.addStep(MetamodelViewsRepository.Supplier.Properties.class);
propertiesStep.addStep(MetamodelViewsRepository.Supplier.Properties.name);
propertiesStep.addStep(MetamodelViewsRepository.Supplier.Properties.deliveredPercentage);
propertiesStep.addStep(MetamodelViewsRepository.Supplier.Properties.refillPolicy);
propertiesStep.addStep(MetamodelViewsRepository.Supplier.Properties.supplierDelay);
composer = new PartComposer(supplierStep) {
@Override
public Composite addToPart(Composite parent, Object key) {
if (key == MetamodelViewsRepository.Supplier.Properties.class) {
return createPropertiesGroup(parent);
}
if (key == MetamodelViewsRepository.Supplier.Properties.name) {
return createNameText(parent);
}
if (key == MetamodelViewsRepository.Supplier.Properties.deliveredPercentage) {
return createDeliveredPercentageText(parent);
}
if (key == MetamodelViewsRepository.Supplier.Properties.refillPolicy) {
return createRefillPolicyAdvancedReferencesTable(parent);
}
if (key == MetamodelViewsRepository.Supplier.Properties.supplierDelay) {
return createSupplierDelaySingleCompositionEditor(parent);
}
return parent;
}
};
composer.compose(view);
}
示例7: createControls
import org.eclipse.emf.eef.runtime.ui.parts.PartComposer; //导入方法依赖的package包/类
/**
* {@inheritDoc}
*
* @see org.eclipse.emf.eef.runtime.api.parts.IFormPropertiesEditionPart#
* createControls(org.eclipse.ui.forms.widgets.FormToolkit, org.eclipse.swt.widgets.Composite)
* @generated
*/
public void createControls(final FormToolkit widgetFactory, Composite view) {
CompositionSequence inputPortStep = new BindingCompositionSequence(propertiesEditionComponent);
CompositionStep propertiesStep = inputPortStep.addStep(AnalysisViewsRepository.InputPort.Properties.class);
propertiesStep.addStep(AnalysisViewsRepository.InputPort.Properties.name);
propertiesStep.addStep(AnalysisViewsRepository.InputPort.Properties.parent_);
propertiesStep.addStep(AnalysisViewsRepository.InputPort.Properties.receiveFrom);
composer = new PartComposer(inputPortStep) {
@Override
public Composite addToPart(Composite parent, Object key) {
if (key == AnalysisViewsRepository.InputPort.Properties.class) {
return createPropertiesGroup(widgetFactory, parent);
}
if (key == AnalysisViewsRepository.InputPort.Properties.name) {
return createNameText(widgetFactory, parent);
}
if (key == AnalysisViewsRepository.InputPort.Properties.parent_) {
return createParent_FlatComboViewer(parent, widgetFactory);
}
if (key == AnalysisViewsRepository.InputPort.Properties.receiveFrom) {
return createReceiveFromFlatComboViewer(parent, widgetFactory);
}
return parent;
}
};
composer.compose(view);
}
示例8: createControls
import org.eclipse.emf.eef.runtime.ui.parts.PartComposer; //导入方法依赖的package包/类
/**
* {@inheritDoc}
*
* @see org.eclipse.emf.eef.runtime.api.parts.IFormPropertiesEditionPart#
* createControls(org.eclipse.ui.forms.widgets.FormToolkit, org.eclipse.swt.widgets.Composite)
*
*/
public void createControls(final FormToolkit widgetFactory, Composite view) {
CompositionSequence processOutputFlowStep = new BindingCompositionSequence(propertiesEditionComponent);
CompositionStep propertiesStep = processOutputFlowStep.addStep(MetamodelViewsRepository.ProcessOutputFlow.Properties.class);
propertiesStep.addStep(MetamodelViewsRepository.ProcessOutputFlow.Properties.source);
propertiesStep.addStep(MetamodelViewsRepository.ProcessOutputFlow.Properties.destination);
propertiesStep.addStep(MetamodelViewsRepository.ProcessOutputFlow.Properties.quantity);
propertiesStep.addStep(MetamodelViewsRepository.ProcessOutputFlow.Properties.processOutputFlowDelay);
composer = new PartComposer(processOutputFlowStep) {
@Override
public Composite addToPart(Composite parent, Object key) {
if (key == MetamodelViewsRepository.ProcessOutputFlow.Properties.class) {
return createPropertiesGroup(widgetFactory, parent);
}
if (key == MetamodelViewsRepository.ProcessOutputFlow.Properties.source) {
return createSourceFlatComboViewer(parent, widgetFactory);
}
if (key == MetamodelViewsRepository.ProcessOutputFlow.Properties.destination) {
return createDestinationFlatComboViewer(parent, widgetFactory);
}
if (key == MetamodelViewsRepository.ProcessOutputFlow.Properties.quantity) {
return createQuantitySingleCompositionEditor(parent, widgetFactory);
}
if (key == MetamodelViewsRepository.ProcessOutputFlow.Properties.processOutputFlowDelay) {
return createProcessOutputFlowDelaySingleCompositionEditor(parent, widgetFactory);
}
return parent;
}
};
composer.compose(view);
}
示例9: createControls
import org.eclipse.emf.eef.runtime.ui.parts.PartComposer; //导入方法依赖的package包/类
/**
* {@inheritDoc}
*
* @see org.eclipse.emf.eef.runtime.api.parts.ISWTPropertiesEditionPart#
* createControls(org.eclipse.swt.widgets.Composite)
* @generated
*/
public void createControls(Composite view) {
CompositionSequence schedulerParameterValueStep = new BindingCompositionSequence(propertiesEditionComponent);
CompositionStep propertiesStep = schedulerParameterValueStep.addStep(AnalysisViewsRepository.SchedulerParameterValue.Properties.class);
propertiesStep.addStep(AnalysisViewsRepository.SchedulerParameterValue.Properties.type);
propertiesStep.addStep(AnalysisViewsRepository.SchedulerParameterValue.Properties.value);
propertiesStep.addStep(AnalysisViewsRepository.SchedulerParameterValue.Properties.parent_);
composer = new PartComposer(schedulerParameterValueStep) {
@Override
public Composite addToPart(Composite parent, Object key) {
if (key == AnalysisViewsRepository.SchedulerParameterValue.Properties.class) {
return createPropertiesGroup(parent);
}
if (key == AnalysisViewsRepository.SchedulerParameterValue.Properties.type) {
return createTypeFlatComboViewer(parent);
}
if (key == AnalysisViewsRepository.SchedulerParameterValue.Properties.value) {
return createValueText(parent);
}
if (key == AnalysisViewsRepository.SchedulerParameterValue.Properties.parent_) {
return createParent_FlatComboViewer(parent);
}
return parent;
}
};
composer.compose(view);
}
示例10: createControls
import org.eclipse.emf.eef.runtime.ui.parts.PartComposer; //导入方法依赖的package包/类
/**
* {@inheritDoc}
*
* @see org.eclipse.emf.eef.runtime.api.parts.IFormPropertiesEditionPart#
* createControls(org.eclipse.ui.forms.widgets.FormToolkit, org.eclipse.swt.widgets.Composite)
* @generated
*/
public void createControls(final FormToolkit widgetFactory, Composite view) {
CompositionSequence outputStimulusStep = new BindingCompositionSequence(propertiesEditionComponent);
CompositionStep propertiesStep = outputStimulusStep.addStep(AnalysisViewsRepository.OutputStimulus.Properties.class);
propertiesStep.addStep(AnalysisViewsRepository.OutputStimulus.Properties.name);
propertiesStep.addStep(AnalysisViewsRepository.OutputStimulus.Properties.parent_);
propertiesStep.addStep(AnalysisViewsRepository.OutputStimulus.Properties.inputPorts);
composer = new PartComposer(outputStimulusStep) {
@Override
public Composite addToPart(Composite parent, Object key) {
if (key == AnalysisViewsRepository.OutputStimulus.Properties.class) {
return createPropertiesGroup(widgetFactory, parent);
}
if (key == AnalysisViewsRepository.OutputStimulus.Properties.name) {
return createNameText(widgetFactory, parent);
}
if (key == AnalysisViewsRepository.OutputStimulus.Properties.parent_) {
return createParent_FlatComboViewer(parent, widgetFactory);
}
if (key == AnalysisViewsRepository.OutputStimulus.Properties.inputPorts) {
return createInputPortsTableComposition(widgetFactory, parent);
}
return parent;
}
};
composer.compose(view);
}
示例11: createControls
import org.eclipse.emf.eef.runtime.ui.parts.PartComposer; //导入方法依赖的package包/类
/**
* {@inheritDoc}
*
* @see org.eclipse.emf.eef.runtime.api.parts.IFormPropertiesEditionPart#
* createControls(org.eclipse.ui.forms.widgets.FormToolkit, org.eclipse.swt.widgets.Composite)
* @generated
*/
public void createControls(final FormToolkit widgetFactory, Composite view) {
CompositionSequence outputPortStep = new BindingCompositionSequence(propertiesEditionComponent);
CompositionStep propertiesStep = outputPortStep.addStep(AnalysisViewsRepository.OutputPort.Properties.class);
propertiesStep.addStep(AnalysisViewsRepository.OutputPort.Properties.name);
propertiesStep.addStep(AnalysisViewsRepository.OutputPort.Properties.parent_);
propertiesStep.addStep(AnalysisViewsRepository.OutputPort.Properties.sendTo);
composer = new PartComposer(outputPortStep) {
@Override
public Composite addToPart(Composite parent, Object key) {
if (key == AnalysisViewsRepository.OutputPort.Properties.class) {
return createPropertiesGroup(widgetFactory, parent);
}
if (key == AnalysisViewsRepository.OutputPort.Properties.name) {
return createNameText(widgetFactory, parent);
}
if (key == AnalysisViewsRepository.OutputPort.Properties.parent_) {
return createParent_FlatComboViewer(parent, widgetFactory);
}
if (key == AnalysisViewsRepository.OutputPort.Properties.sendTo) {
return createSendToFlatComboViewer(parent, widgetFactory);
}
return parent;
}
};
composer.compose(view);
}
示例12: createControls
import org.eclipse.emf.eef.runtime.ui.parts.PartComposer; //导入方法依赖的package包/类
/**
* {@inheritDoc}
*
* @see org.eclipse.emf.eef.runtime.api.parts.ISWTPropertiesEditionPart#
* createControls(org.eclipse.swt.widgets.Composite)
* @generated
*/
public void createControls(Composite view) {
CompositionSequence mutualExclusionResourceStep = new BindingCompositionSequence(propertiesEditionComponent);
CompositionStep propertiesStep = mutualExclusionResourceStep.addStep(AnalysisViewsRepository.MutualExclusionResource.Properties.class);
propertiesStep.addStep(AnalysisViewsRepository.MutualExclusionResource.Properties.name);
propertiesStep.addStep(AnalysisViewsRepository.MutualExclusionResource.Properties.elements);
propertiesStep.addStep(AnalysisViewsRepository.MutualExclusionResource.Properties.protectionParameters);
propertiesStep.addStep(AnalysisViewsRepository.MutualExclusionResource.Properties.protectedBy);
propertiesStep.addStep(AnalysisViewsRepository.MutualExclusionResource.Properties.parent_);
composer = new PartComposer(mutualExclusionResourceStep) {
@Override
public Composite addToPart(Composite parent, Object key) {
if (key == AnalysisViewsRepository.MutualExclusionResource.Properties.class) {
return createPropertiesGroup(parent);
}
if (key == AnalysisViewsRepository.MutualExclusionResource.Properties.name) {
return createNameText(parent);
}
if (key == AnalysisViewsRepository.MutualExclusionResource.Properties.elements) {
return createElementsAdvancedReferencesTable(parent);
}
if (key == AnalysisViewsRepository.MutualExclusionResource.Properties.protectionParameters) {
return createProtectionParametersAdvancedTableComposition(parent);
}
if (key == AnalysisViewsRepository.MutualExclusionResource.Properties.protectedBy) {
return createProtectedByFlatComboViewer(parent);
}
if (key == AnalysisViewsRepository.MutualExclusionResource.Properties.parent_) {
return createParent_FlatComboViewer(parent);
}
return parent;
}
};
composer.compose(view);
}
示例13: createControls
import org.eclipse.emf.eef.runtime.ui.parts.PartComposer; //导入方法依赖的package包/类
/**
* {@inheritDoc}
*
* @see org.eclipse.emf.eef.runtime.api.parts.IFormPropertiesEditionPart#
* createControls(org.eclipse.ui.forms.widgets.FormToolkit, org.eclipse.swt.widgets.Composite)
*
*/
public void createControls(final FormToolkit widgetFactory, Composite view) {
CompositionSequence batchProcessStep = new BindingCompositionSequence(propertiesEditionComponent);
CompositionStep propertiesStep = batchProcessStep.addStep(MetamodelViewsRepository.BatchProcess.Properties.class);
propertiesStep.addStep(MetamodelViewsRepository.BatchProcess.Properties.name);
propertiesStep.addStep(MetamodelViewsRepository.BatchProcess.Properties.duration);
propertiesStep.addStep(MetamodelViewsRepository.BatchProcess.Properties.storageOutputFlow);
propertiesStep.addStep(MetamodelViewsRepository.BatchProcess.Properties.percentageOfSuccess);
propertiesStep.addStep(MetamodelViewsRepository.BatchProcess.Properties.numberOfLines);
propertiesStep.addStep(MetamodelViewsRepository.BatchProcess.Properties.outputs);
composer = new PartComposer(batchProcessStep) {
@Override
public Composite addToPart(Composite parent, Object key) {
if (key == MetamodelViewsRepository.BatchProcess.Properties.class) {
return createPropertiesGroup(widgetFactory, parent);
}
if (key == MetamodelViewsRepository.BatchProcess.Properties.name) {
return createNameText(widgetFactory, parent);
}
if (key == MetamodelViewsRepository.BatchProcess.Properties.duration) {
return createDurationSingleCompositionEditor(parent, widgetFactory);
}
if (key == MetamodelViewsRepository.BatchProcess.Properties.storageOutputFlow) {
return createStorageOutputFlowReferencesTable(widgetFactory, parent);
}
if (key == MetamodelViewsRepository.BatchProcess.Properties.percentageOfSuccess) {
return createPercentageOfSuccessText(widgetFactory, parent);
}
if (key == MetamodelViewsRepository.BatchProcess.Properties.numberOfLines) {
return createNumberOfLinesText(widgetFactory, parent);
}
if (key == MetamodelViewsRepository.BatchProcess.Properties.outputs) {
return createOutputsTableComposition(widgetFactory, parent);
}
return parent;
}
};
composer.compose(view);
}
示例14: createControls
import org.eclipse.emf.eef.runtime.ui.parts.PartComposer; //导入方法依赖的package包/类
/**
* {@inheritDoc}
*
* @see org.eclipse.emf.eef.runtime.api.parts.IFormPropertiesEditionPart#
* createControls(org.eclipse.ui.forms.widgets.FormToolkit, org.eclipse.swt.widgets.Composite)
* @generated
*/
public void createControls(final FormToolkit widgetFactory, Composite view) {
CompositionSequence twcaEventModelStep = new BindingCompositionSequence(propertiesEditionComponent);
CompositionStep propertiesStep = twcaEventModelStep.addStep(AnalysisViewsRepository.TwcaEventModel.Properties.class);
propertiesStep.addStep(AnalysisViewsRepository.TwcaEventModel.Properties.offsets);
propertiesStep.addStep(AnalysisViewsRepository.TwcaEventModel.Properties.period);
propertiesStep.addStep(AnalysisViewsRepository.TwcaEventModel.Properties.jitter);
propertiesStep.addStep(AnalysisViewsRepository.TwcaEventModel.Properties.dmin);
propertiesStep.addStep(AnalysisViewsRepository.TwcaEventModel.Properties.parent_);
propertiesStep.addStep(AnalysisViewsRepository.TwcaEventModel.Properties.isSporadic);
propertiesStep.addStep(AnalysisViewsRepository.TwcaEventModel.Properties.deltamin_func);
composer = new PartComposer(twcaEventModelStep) {
@Override
public Composite addToPart(Composite parent, Object key) {
if (key == AnalysisViewsRepository.TwcaEventModel.Properties.class) {
return createPropertiesGroup(widgetFactory, parent);
}
if (key == AnalysisViewsRepository.TwcaEventModel.Properties.offsets) {
return createOffsetsTableComposition(widgetFactory, parent);
}
if (key == AnalysisViewsRepository.TwcaEventModel.Properties.period) {
return createPeriodText(widgetFactory, parent);
}
if (key == AnalysisViewsRepository.TwcaEventModel.Properties.jitter) {
return createJitterText(widgetFactory, parent);
}
if (key == AnalysisViewsRepository.TwcaEventModel.Properties.dmin) {
return createDminText(widgetFactory, parent);
}
if (key == AnalysisViewsRepository.TwcaEventModel.Properties.parent_) {
return createParent_FlatComboViewer(parent, widgetFactory);
}
if (key == AnalysisViewsRepository.TwcaEventModel.Properties.isSporadic) {
return createIsSporadicCheckbox(widgetFactory, parent);
}
if (key == AnalysisViewsRepository.TwcaEventModel.Properties.deltamin_func) {
return createDeltamin_funcText(widgetFactory, parent);
}
return parent;
}
};
composer.compose(view);
}
示例15: createControls
import org.eclipse.emf.eef.runtime.ui.parts.PartComposer; //导入方法依赖的package包/类
/**
* {@inheritDoc}
*
* @see org.eclipse.emf.eef.runtime.api.parts.ISWTPropertiesEditionPart#
* createControls(org.eclipse.swt.widgets.Composite)
* @generated
*/
public void createControls(Composite view) {
CompositionSequence twcaEventModelStep = new BindingCompositionSequence(propertiesEditionComponent);
CompositionStep propertiesStep = twcaEventModelStep.addStep(AnalysisViewsRepository.TwcaEventModel.Properties.class);
propertiesStep.addStep(AnalysisViewsRepository.TwcaEventModel.Properties.offsets);
propertiesStep.addStep(AnalysisViewsRepository.TwcaEventModel.Properties.period);
propertiesStep.addStep(AnalysisViewsRepository.TwcaEventModel.Properties.jitter);
propertiesStep.addStep(AnalysisViewsRepository.TwcaEventModel.Properties.dmin);
propertiesStep.addStep(AnalysisViewsRepository.TwcaEventModel.Properties.parent_);
propertiesStep.addStep(AnalysisViewsRepository.TwcaEventModel.Properties.isSporadic);
propertiesStep.addStep(AnalysisViewsRepository.TwcaEventModel.Properties.deltamin_func);
composer = new PartComposer(twcaEventModelStep) {
@Override
public Composite addToPart(Composite parent, Object key) {
if (key == AnalysisViewsRepository.TwcaEventModel.Properties.class) {
return createPropertiesGroup(parent);
}
if (key == AnalysisViewsRepository.TwcaEventModel.Properties.offsets) {
return createOffsetsAdvancedTableComposition(parent);
}
if (key == AnalysisViewsRepository.TwcaEventModel.Properties.period) {
return createPeriodText(parent);
}
if (key == AnalysisViewsRepository.TwcaEventModel.Properties.jitter) {
return createJitterText(parent);
}
if (key == AnalysisViewsRepository.TwcaEventModel.Properties.dmin) {
return createDminText(parent);
}
if (key == AnalysisViewsRepository.TwcaEventModel.Properties.parent_) {
return createParent_FlatComboViewer(parent);
}
if (key == AnalysisViewsRepository.TwcaEventModel.Properties.isSporadic) {
return createIsSporadicCheckbox(parent);
}
if (key == AnalysisViewsRepository.TwcaEventModel.Properties.deltamin_func) {
return createDeltamin_funcText(parent);
}
return parent;
}
};
composer.compose(view);
}