本文整理汇总了Java中org.eclipse.emf.eef.runtime.impl.filters.EObjectFilter类的典型用法代码示例。如果您正苦于以下问题:Java EObjectFilter类的具体用法?Java EObjectFilter怎么用?Java EObjectFilter使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
EObjectFilter类属于org.eclipse.emf.eef.runtime.impl.filters包,在下文中一共展示了EObjectFilter类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: initPart
import org.eclipse.emf.eef.runtime.impl.filters.EObjectFilter; //导入依赖的package包/类
/**
* {@inheritDoc}
*
* @see org.eclipse.emf.eef.runtime.api.component.IPropertiesEditionComponent#initPart(java.lang.Object, int, org.eclipse.emf.ecore.EObject,
* org.eclipse.emf.ecore.resource.ResourceSet)
*
*/
public void initPart(Object key, int kind, EObject elt, ResourceSet allResource) {
setInitializing(true);
if (editingPart != null && key == partKey) {
editingPart.setContext(elt, allResource);
final Supplier supplier = (Supplier)elt;
final SupplierPropertiesEditionPart basePart = (SupplierPropertiesEditionPart)editingPart;
// init values
if (isAccessible(MetamodelViewsRepository.Supplier.Properties.name))
basePart.setName(EEFConverterUtil.convertToString(EcorePackage.Literals.ESTRING, supplier.getName()));
if (isAccessible(MetamodelViewsRepository.Supplier.Properties.deliveredPercentage))
basePart.setDeliveredPercentage(EEFConverterUtil.convertToString(MetamodelPackage.Literals.PERCENT, supplier.getDeliveredPercentage()));
if (isAccessible(MetamodelViewsRepository.Supplier.Properties.refillPolicy)) {
refillPolicySettings = new ReferencesTableSettings(supplier, MetamodelPackage.eINSTANCE.getSupplier_RefillPolicy());
basePart.initRefillPolicy(refillPolicySettings);
}
if (isAccessible(MetamodelViewsRepository.Supplier.Properties.supplierDelay)) {
// init part
supplierDelaySettings = new EObjectFlatComboSettings(supplier, MetamodelPackage.eINSTANCE.getSupplier_SupplierDelay());
basePart.initSupplierDelay(supplierDelaySettings);
}
// init filters
if (isAccessible(MetamodelViewsRepository.Supplier.Properties.refillPolicy)) {
basePart.addFilterToRefillPolicy(new EObjectFilter(MetamodelPackage.Literals.ORDER_ON_STOCK_THRESHOLD));
// Start of user code for additional businessfilters for refillPolicy
// End of user code
}
// init values for referenced views
// init filters for referenced views
}
setInitializing(false);
}
示例2: initPart
import org.eclipse.emf.eef.runtime.impl.filters.EObjectFilter; //导入依赖的package包/类
/**
* {@inheritDoc}
*
* @see org.eclipse.emf.eef.runtime.api.component.IPropertiesEditionComponent#initPart(java.lang.Object, int, org.eclipse.emf.ecore.EObject,
* org.eclipse.emf.ecore.resource.ResourceSet)
*
*/
public void initPart(Object key, int kind, EObject elt, ResourceSet allResource) {
setInitializing(true);
if (editingPart != null && key == partKey) {
editingPart.setContext(elt, allResource);
final Output output = (Output)elt;
final OutputPropertiesEditionPart basePart = (OutputPropertiesEditionPart)editingPart;
// init values
if (isAccessible(MetamodelViewsRepository.Output.Properties.type)) {
basePart.initType(EEFUtils.choiceOfValues(output, MetamodelPackage.eINSTANCE.getOutput_Type()), output.getType());
}
if (isAccessible(MetamodelViewsRepository.Output.Properties.processOutputFlow)) {
processOutputFlowSettings = new ReferencesTableSettings(output, MetamodelPackage.eINSTANCE.getOutput_ProcessOutputFlow());
basePart.initProcessOutputFlow(processOutputFlowSettings);
}
if (isAccessible(MetamodelViewsRepository.Output.Properties.description))
basePart.setDescription(EEFConverterUtil.convertToString(EcorePackage.Literals.ESTRING, output.getDescription()));
// init filters
if (isAccessible(MetamodelViewsRepository.Output.Properties.processOutputFlow)) {
basePart.addFilterToProcessOutputFlow(new EObjectFilter(MetamodelPackage.Literals.PROCESS_OUTPUT_FLOW));
// Start of user code for additional businessfilters for processOutputFlow
// End of user code
}
// init values for referenced views
// init filters for referenced views
}
setInitializing(false);
}
示例3: initPart
import org.eclipse.emf.eef.runtime.impl.filters.EObjectFilter; //导入依赖的package包/类
/**
* {@inheritDoc}
*
* @see org.eclipse.emf.eef.runtime.api.component.IPropertiesEditionComponent#initPart(java.lang.Object, int, org.eclipse.emf.ecore.EObject,
* org.eclipse.emf.ecore.resource.ResourceSet)
*
*/
public void initPart(Object key, int kind, EObject elt, ResourceSet allResource) {
setInitializing(true);
if (editingPart != null && key == partKey) {
editingPart.setContext(elt, allResource);
final UsageDemand usageDemand = (UsageDemand)elt;
final GeneralPropertiesEditionPart generalPart = (GeneralPropertiesEditionPart)editingPart;
// init values
if (isAccessible(GrmViewsRepository.General.Properties.usage)) {
usageSettings = new ReferencesTableSettings(usageDemand, GrmPackage.eINSTANCE.getUsageDemand_Usage());
generalPart.initUsage(usageSettings);
}
if (isAccessible(GrmViewsRepository.General.Properties.event))
generalPart.setEvent(EEFConverterUtil.convertToString(EcorePackage.Literals.ESTRING, usageDemand.getEvent()));
// init filters
if (isAccessible(GrmViewsRepository.General.Properties.usage)) {
generalPart.addFilterToUsage(new EObjectFilter(GrmPackage.Literals.RESOURCE_USAGE));
// Start of user code for additional businessfilters for usage
// End of user code
}
// init values for referenced views
// init filters for referenced views
}
setInitializing(false);
}
示例4: initPart
import org.eclipse.emf.eef.runtime.impl.filters.EObjectFilter; //导入依赖的package包/类
/**
* {@inheritDoc}
*
* @see org.eclipse.emf.eef.runtime.api.component.IPropertiesEditionComponent#initPart(java.lang.Object, int, org.eclipse.emf.ecore.EObject,
* org.eclipse.emf.ecore.resource.ResourceSet)
*
*/
public void initPart(Object key, int kind, EObject elt, ResourceSet allResource) {
setInitializing(true);
if (editingPart != null && key == partKey) {
editingPart.setContext(elt, allResource);
final ResourcePort resourcePort = (ResourcePort)elt;
final OtherPropertiesEditionPart otherPart = (OtherPropertiesEditionPart)editingPart;
// init values
if (isAccessible(GrmViewsRepository.Other.OtherProperties.pInterface)) {
pInterfaceSettings = new ReferencesTableSettings(resourcePort, GrmPackage.eINSTANCE.getResourcePort_PInterface());
otherPart.initPInterface(pInterfaceSettings);
}
if (isAccessible(GrmViewsRepository.Other.OtherProperties.rInterface)) {
rInterfaceSettings = new ReferencesTableSettings(resourcePort, GrmPackage.eINSTANCE.getResourcePort_RInterface());
otherPart.initRInterface(rInterfaceSettings);
}
// init filters
if (isAccessible(GrmViewsRepository.Other.OtherProperties.pInterface)) {
otherPart.addFilterToPInterface(new EObjectFilter(GrmPackage.Literals.RESOURCE_INTERFACE));
// Start of user code for additional businessfilters for pInterface
// End of user code
}
if (isAccessible(GrmViewsRepository.Other.OtherProperties.rInterface)) {
otherPart.addFilterToRInterface(new EObjectFilter(GrmPackage.Literals.RESOURCE_INTERFACE));
// Start of user code for additional businessfilters for rInterface
// End of user code
}
// init values for referenced views
// init filters for referenced views
}
setInitializing(false);
}
示例5: initPart
import org.eclipse.emf.eef.runtime.impl.filters.EObjectFilter; //导入依赖的package包/类
/**
* {@inheritDoc}
*
* @see org.eclipse.emf.eef.runtime.api.component.IPropertiesEditionComponent#initPart(java.lang.Object, int, org.eclipse.emf.ecore.EObject,
* org.eclipse.emf.ecore.resource.ResourceSet)
*
*/
public void initPart(Object key, int kind, EObject elt, ResourceSet allResource) {
setInitializing(true);
if (editingPart != null && key == partKey) {
editingPart.setContext(elt, allResource);
final PrecedenceRelation precedenceRelation = (PrecedenceRelation)elt;
final GeneralPropertiesEditionPart generalPart = (GeneralPropertiesEditionPart)editingPart;
// init values
if (isAccessible(GqamViewsRepository.General.Properties.connectorKind)) {
generalPart.initConnectorKind(EEFUtils.choiceOfValues(precedenceRelation, GqamPackage.eINSTANCE.getPrecedenceRelation_ConnectorKind()), precedenceRelation.getConnectorKind());
}
if (isAccessible(GqamViewsRepository.General.Properties.predec)) {
predecSettings = new ReferencesTableSettings(precedenceRelation, GqamPackage.eINSTANCE.getPrecedenceRelation_Predec());
generalPart.initPredec(predecSettings);
}
if (isAccessible(GqamViewsRepository.General.Properties.succes)) {
succesSettings = new ReferencesTableSettings(precedenceRelation, GqamPackage.eINSTANCE.getPrecedenceRelation_Succes());
generalPart.initSucces(succesSettings);
}
// init filters
if (isAccessible(GqamViewsRepository.General.Properties.predec)) {
generalPart.addFilterToPredec(new EObjectFilter(GqamPackage.Literals.STEP));
// Start of user code for additional businessfilters for predec
// End of user code
}
if (isAccessible(GqamViewsRepository.General.Properties.succes)) {
generalPart.addFilterToSucces(new EObjectFilter(GqamPackage.Literals.STEP));
// Start of user code for additional businessfilters for succes
// End of user code
}
// init values for referenced views
// init filters for referenced views
}
setInitializing(false);
}
示例6: initPart
import org.eclipse.emf.eef.runtime.impl.filters.EObjectFilter; //导入依赖的package包/类
/**
* {@inheritDoc}
*
* @see org.eclipse.emf.eef.runtime.api.component.IPropertiesEditionComponent#initPart(java.lang.Object, int, org.eclipse.emf.ecore.EObject,
* org.eclipse.emf.ecore.resource.ResourceSet)
*
*/
public void initPart(Object key, int kind, EObject elt, ResourceSet allResource) {
setInitializing(true);
if (editingPart != null && key == partKey) {
editingPart.setContext(elt, allResource);
final SoftwarePort softwarePort = (SoftwarePort)elt;
final OtherPropertiesEditionPart otherPart = (OtherPropertiesEditionPart)editingPart;
// init values
if (isAccessible(SrmViewsRepository.Other.Properties.packetSize)) {
otherPart.setPacketSize(EEFConverterUtil.convertToString(EcorePackage.Literals.EINT, softwarePort.getPacketSize()));
}
if (isAccessible(SrmViewsRepository.Other.Properties.pInterface)) {
pInterfaceSettings = new ReferencesTableSettings(softwarePort, GrmPackage.eINSTANCE.getResourcePort_PInterface());
otherPart.initPInterface(pInterfaceSettings);
}
if (isAccessible(SrmViewsRepository.Other.Properties.rInterface)) {
rInterfaceSettings = new ReferencesTableSettings(softwarePort, GrmPackage.eINSTANCE.getResourcePort_RInterface());
otherPart.initRInterface(rInterfaceSettings);
}
// init filters
if (isAccessible(SrmViewsRepository.Other.Properties.pInterface)) {
otherPart.addFilterToPInterface(new EObjectFilter(GrmPackage.Literals.RESOURCE_INTERFACE));
// Start of user code for additional businessfilters for pInterface
// End of user code
}
if (isAccessible(SrmViewsRepository.Other.Properties.rInterface)) {
otherPart.addFilterToRInterface(new EObjectFilter(GrmPackage.Literals.RESOURCE_INTERFACE));
// Start of user code for additional businessfilters for rInterface
// End of user code
}
// init values for referenced views
// init filters for referenced views
}
setInitializing(false);
}
示例7: initPart
import org.eclipse.emf.eef.runtime.impl.filters.EObjectFilter; //导入依赖的package包/类
/**
* {@inheritDoc}
*
* @see org.eclipse.emf.eef.runtime.api.component.IPropertiesEditionComponent#initPart(java.lang.Object, int, org.eclipse.emf.ecore.EObject,
* org.eclipse.emf.ecore.resource.ResourceSet)
*
*/
public void initPart(Object key, int kind, EObject elt, ResourceSet allResource) {
setInitializing(true);
if (editingPart != null && key == partKey) {
editingPart.setContext(elt, allResource);
final HardwarePort hardwarePort = (HardwarePort)elt;
final GeneralPropertiesEditionPart generalPart = (GeneralPropertiesEditionPart)editingPart;
// init values
if (isAccessible(HrmViewsRepository.General.Properties.name))
generalPart.setName(EEFConverterUtil.convertToString(EcorePackage.Literals.ESTRING, hardwarePort.getName()));
if (isAccessible(HrmViewsRepository.General.Properties.type)) {
generalPart.initType(EEFUtils.choiceOfValues(hardwarePort, HrmPackage.eINSTANCE.getHardwarePort_Type()), hardwarePort.getType());
}
if (isAccessible(HrmViewsRepository.General.Properties.realizedBy)) {
realizedBySettings = new ReferencesTableSettings(hardwarePort, HrmPackage.eINSTANCE.getHardwarePort_RealizedBy());
generalPart.initRealizedBy(realizedBySettings);
}
// init filters
if (isAccessible(HrmViewsRepository.General.Properties.realizedBy)) {
generalPart.addFilterToRealizedBy(new EObjectFilter(HrmPackage.Literals.HARDWARE_PIN));
// Start of user code for additional businessfilters for realizedBy
// End of user code
}
// init values for referenced views
// init filters for referenced views
}
setInitializing(false);
}
示例8: initPart
import org.eclipse.emf.eef.runtime.impl.filters.EObjectFilter; //导入依赖的package包/类
/**
* {@inheritDoc}
*
* @see org.eclipse.emf.eef.runtime.api.component.IPropertiesEditionComponent#initPart(java.lang.Object, int, org.eclipse.emf.ecore.EObject,
* org.eclipse.emf.ecore.resource.ResourceSet)
*
*/
public void initPart(Object key, int kind, EObject elt, ResourceSet allResource) {
setInitializing(true);
if (editingPart != null && key == partKey) {
editingPart.setContext(elt, allResource);
final Gateway gateway = (Gateway)elt;
final GatewayPropertiesEditionPart basePart = (GatewayPropertiesEditionPart)editingPart;
// init values
if (isAccessible(EipViewsRepository.Gateway.Properties.name))
basePart.setName(EEFConverterUtil.convertToString(EcorePackage.Literals.ESTRING, gateway.getName()));
if (isAccessible(EipViewsRepository.Gateway.Properties.toChannels)) {
toChannelsSettings = new ReferencesTableSettings(gateway, EipPackage.eINSTANCE.getEndpoint_ToChannels());
basePart.initToChannels(toChannelsSettings);
}
if (isAccessible(EipViewsRepository.Gateway.Properties.fromChannels)) {
fromChannelsSettings = new ReferencesTableSettings(gateway, EipPackage.eINSTANCE.getEndpoint_FromChannels());
basePart.initFromChannels(fromChannelsSettings);
}
// init filters
if (isAccessible(EipViewsRepository.Gateway.Properties.toChannels)) {
basePart.addFilterToToChannels(new EObjectFilter(EipPackage.Literals.CHANNEL));
// Start of user code for additional businessfilters for toChannels
// End of user code
}
if (isAccessible(EipViewsRepository.Gateway.Properties.fromChannels)) {
basePart.addFilterToFromChannels(new EObjectFilter(EipPackage.Literals.CHANNEL));
// Start of user code for additional businessfilters for fromChannels
// End of user code
}
// init values for referenced views
// init filters for referenced views
}
setInitializing(false);
}
示例9: initPart
import org.eclipse.emf.eef.runtime.impl.filters.EObjectFilter; //导入依赖的package包/类
/**
* {@inheritDoc}
*
* @see org.eclipse.emf.eef.runtime.api.component.IPropertiesEditionComponent#initPart(java.lang.Object, int, org.eclipse.emf.ecore.EObject,
* org.eclipse.emf.ecore.resource.ResourceSet)
*
*/
public void initPart(Object key, int kind, EObject elt, ResourceSet allResource) {
setInitializing(true);
if (editingPart != null && key == partKey) {
editingPart.setContext(elt, allResource);
final Transformer transformer = (Transformer)elt;
final TransformerPropertiesEditionPart basePart = (TransformerPropertiesEditionPart)editingPart;
// init values
if (isAccessible(EipViewsRepository.Transformer.Properties.name))
basePart.setName(EEFConverterUtil.convertToString(EcorePackage.Literals.ESTRING, transformer.getName()));
if (isAccessible(EipViewsRepository.Transformer.Properties.toChannels)) {
toChannelsSettings = new ReferencesTableSettings(transformer, EipPackage.eINSTANCE.getEndpoint_ToChannels());
basePart.initToChannels(toChannelsSettings);
}
if (isAccessible(EipViewsRepository.Transformer.Properties.fromChannels)) {
fromChannelsSettings = new ReferencesTableSettings(transformer, EipPackage.eINSTANCE.getEndpoint_FromChannels());
basePart.initFromChannels(fromChannelsSettings);
}
// init filters
if (isAccessible(EipViewsRepository.Transformer.Properties.toChannels)) {
basePart.addFilterToToChannels(new EObjectFilter(EipPackage.Literals.CHANNEL));
// Start of user code for additional businessfilters for toChannels
// End of user code
}
if (isAccessible(EipViewsRepository.Transformer.Properties.fromChannels)) {
basePart.addFilterToFromChannels(new EObjectFilter(EipPackage.Literals.CHANNEL));
// Start of user code for additional businessfilters for fromChannels
// End of user code
}
// init values for referenced views
// init filters for referenced views
}
setInitializing(false);
}
示例10: initPart
import org.eclipse.emf.eef.runtime.impl.filters.EObjectFilter; //导入依赖的package包/类
/**
* {@inheritDoc}
*
* @see org.eclipse.emf.eef.runtime.api.component.IPropertiesEditionComponent#initPart(java.lang.Object, int, org.eclipse.emf.ecore.EObject,
* org.eclipse.emf.ecore.resource.ResourceSet)
*
*/
public void initPart(Object key, int kind, EObject elt, ResourceSet allResource) {
setInitializing(true);
if (editingPart != null && key == partKey) {
editingPart.setContext(elt, allResource);
final CompositeProcessor compositeProcessor = (CompositeProcessor)elt;
final CompositeProcessorPropertiesEditionPart basePart = (CompositeProcessorPropertiesEditionPart)editingPart;
// init values
if (isAccessible(EipViewsRepository.CompositeProcessor.Properties.name))
basePart.setName(EEFConverterUtil.convertToString(EcorePackage.Literals.ESTRING, compositeProcessor.getName()));
if (isAccessible(EipViewsRepository.CompositeProcessor.Properties.toChannels)) {
toChannelsSettings = new ReferencesTableSettings(compositeProcessor, EipPackage.eINSTANCE.getEndpoint_ToChannels());
basePart.initToChannels(toChannelsSettings);
}
if (isAccessible(EipViewsRepository.CompositeProcessor.Properties.fromChannels)) {
fromChannelsSettings = new ReferencesTableSettings(compositeProcessor, EipPackage.eINSTANCE.getEndpoint_FromChannels());
basePart.initFromChannels(fromChannelsSettings);
}
// init filters
if (isAccessible(EipViewsRepository.CompositeProcessor.Properties.toChannels)) {
basePart.addFilterToToChannels(new EObjectFilter(EipPackage.Literals.CHANNEL));
// Start of user code for additional businessfilters for toChannels
// End of user code
}
if (isAccessible(EipViewsRepository.CompositeProcessor.Properties.fromChannels)) {
basePart.addFilterToFromChannels(new EObjectFilter(EipPackage.Literals.CHANNEL));
// Start of user code for additional businessfilters for fromChannels
// End of user code
}
// init values for referenced views
// init filters for referenced views
}
setInitializing(false);
}
示例11: initPart
import org.eclipse.emf.eef.runtime.impl.filters.EObjectFilter; //导入依赖的package包/类
/**
* {@inheritDoc}
*
* @see org.eclipse.emf.eef.runtime.api.component.IPropertiesEditionComponent#initPart(java.lang.Object, int, org.eclipse.emf.ecore.EObject,
* org.eclipse.emf.ecore.resource.ResourceSet)
*
*/
public void initPart(Object key, int kind, EObject elt, ResourceSet allResource) {
setInitializing(true);
if (editingPart != null && key == partKey) {
editingPart.setContext(elt, allResource);
final Splitter splitter = (Splitter)elt;
final SplitterPropertiesEditionPart basePart = (SplitterPropertiesEditionPart)editingPart;
// init values
if (isAccessible(EipViewsRepository.Splitter.Properties.name))
basePart.setName(EEFConverterUtil.convertToString(EcorePackage.Literals.ESTRING, splitter.getName()));
if (isAccessible(EipViewsRepository.Splitter.Properties.toChannels)) {
toChannelsSettings = new ReferencesTableSettings(splitter, EipPackage.eINSTANCE.getEndpoint_ToChannels());
basePart.initToChannels(toChannelsSettings);
}
if (isAccessible(EipViewsRepository.Splitter.Properties.fromChannels)) {
fromChannelsSettings = new ReferencesTableSettings(splitter, EipPackage.eINSTANCE.getEndpoint_FromChannels());
basePart.initFromChannels(fromChannelsSettings);
}
// init filters
if (isAccessible(EipViewsRepository.Splitter.Properties.toChannels)) {
basePart.addFilterToToChannels(new EObjectFilter(EipPackage.Literals.CHANNEL));
// Start of user code for additional businessfilters for toChannels
// End of user code
}
if (isAccessible(EipViewsRepository.Splitter.Properties.fromChannels)) {
basePart.addFilterToFromChannels(new EObjectFilter(EipPackage.Literals.CHANNEL));
// Start of user code for additional businessfilters for fromChannels
// End of user code
}
// init values for referenced views
// init filters for referenced views
}
setInitializing(false);
}
示例12: initPart
import org.eclipse.emf.eef.runtime.impl.filters.EObjectFilter; //导入依赖的package包/类
/**
* {@inheritDoc}
*
* @see org.eclipse.emf.eef.runtime.api.component.IPropertiesEditionComponent#initPart(java.lang.Object, int, org.eclipse.emf.ecore.EObject,
* org.eclipse.emf.ecore.resource.ResourceSet)
*
*/
public void initPart(Object key, int kind, EObject elt, ResourceSet allResource) {
setInitializing(true);
if (editingPart != null && key == partKey) {
editingPart.setContext(elt, allResource);
final BatchProcess batchProcess = (BatchProcess)elt;
final BatchProcessPropertiesEditionPart basePart = (BatchProcessPropertiesEditionPart)editingPart;
// init values
if (isAccessible(MetamodelViewsRepository.BatchProcess.Properties.name))
basePart.setName(EEFConverterUtil.convertToString(EcorePackage.Literals.ESTRING, batchProcess.getName()));
if (isAccessible(MetamodelViewsRepository.BatchProcess.Properties.duration)) {
// init part
durationSettings = new EObjectFlatComboSettings(batchProcess, MetamodelPackage.eINSTANCE.getProcess_Duration());
basePart.initDuration(durationSettings);
}
if (isAccessible(MetamodelViewsRepository.BatchProcess.Properties.storageOutputFlow)) {
storageOutputFlowSettings = new ReferencesTableSettings(batchProcess, MetamodelPackage.eINSTANCE.getProcess_StorageOutputFlow());
basePart.initStorageOutputFlow(storageOutputFlowSettings);
}
if (isAccessible(MetamodelViewsRepository.BatchProcess.Properties.percentageOfSuccess))
basePart.setPercentageOfSuccess(EEFConverterUtil.convertToString(MetamodelPackage.Literals.PERCENT, batchProcess.getPercentageOfSuccess()));
if (isAccessible(MetamodelViewsRepository.BatchProcess.Properties.numberOfLines))
basePart.setNumberOfLines(EEFConverterUtil.convertToString(MetamodelPackage.Literals.POSITIVE_INT_NOT_NULL, batchProcess.getNumberOfChains()));
if (isAccessible(MetamodelViewsRepository.BatchProcess.Properties.outputs)) {
outputsSettings = new ReferencesTableSettings(batchProcess, MetamodelPackage.eINSTANCE.getBatchProcess_Outputs());
basePart.initOutputs(outputsSettings);
}
// init filters
if (isAccessible(MetamodelViewsRepository.BatchProcess.Properties.storageOutputFlow)) {
basePart.addFilterToStorageOutputFlow(new EObjectFilter(MetamodelPackage.Literals.STORAGE_OUTPUT_FLOW));
// Start of user code for additional businessfilters for storageOutputFlow
// End of user code
}
if (isAccessible(MetamodelViewsRepository.BatchProcess.Properties.outputs)) {
basePart.addFilterToOutputs(new ViewerFilter() {
/**
* {@inheritDoc}
*
* @see org.eclipse.jface.viewers.ViewerFilter#select(org.eclipse.jface.viewers.Viewer, java.lang.Object, java.lang.Object)
*/
public boolean select(Viewer viewer, Object parentElement, Object element) {
return (element instanceof String && element.equals("")) || (element instanceof Output); //$NON-NLS-1$
}
});
// Start of user code for additional businessfilters for outputs
// End of user code
}
// init values for referenced views
// init filters for referenced views
}
setInitializing(false);
}
示例13: initPart
import org.eclipse.emf.eef.runtime.impl.filters.EObjectFilter; //导入依赖的package包/类
/**
* {@inheritDoc}
*
* @see org.eclipse.emf.eef.runtime.api.component.IPropertiesEditionComponent#initPart(java.lang.Object, int, org.eclipse.emf.ecore.EObject,
* org.eclipse.emf.ecore.resource.ResourceSet)
*
*/
public void initPart(Object key, int kind, EObject elt, ResourceSet allResource) {
setInitializing(true);
if (editingPart != null && key == partKey) {
editingPart.setContext(elt, allResource);
final Storage storage = (Storage)elt;
final StoragePropertiesEditionPart basePart = (StoragePropertiesEditionPart)editingPart;
// init values
if (isAccessible(MetamodelViewsRepository.Storage.Properties.name))
basePart.setName(EEFConverterUtil.convertToString(EcorePackage.Literals.ESTRING, storage.getName()));
if (isAccessible(MetamodelViewsRepository.Storage.Properties.size))
basePart.setSize(EEFConverterUtil.convertToString(MetamodelPackage.Literals.POSITIVE_INT_NOT_NULL, storage.getSize()));
if (isAccessible(MetamodelViewsRepository.Storage.Properties.initialContent))
basePart.setInitialContent(EEFConverterUtil.convertToString(MetamodelPackage.Literals.POSITIVE_INT, storage.getInitialContent()));
if (isAccessible(MetamodelViewsRepository.Storage.Properties.overflow)) {
basePart.setOverflow(storage.isOverflow());
}
if (isAccessible(MetamodelViewsRepository.Storage.Properties.storageOutputFlow)) {
storageOutputFlowSettings = new ReferencesTableSettings(storage, MetamodelPackage.eINSTANCE.getStorage_StorageOutputFlow());
basePart.initStorageOutputFlow(storageOutputFlowSettings);
}
if (isAccessible(MetamodelViewsRepository.Storage.Properties.orderOnStockThreshold)) {
orderOnStockThresholdSettings = new ReferencesTableSettings(storage, MetamodelPackage.eINSTANCE.getStorage_OrderOnStockThreshold());
basePart.initOrderOnStockThreshold(orderOnStockThresholdSettings);
}
if (isAccessible(MetamodelViewsRepository.Storage.Properties.processOutputFlow)) {
processOutputFlowSettings = new ReferencesTableSettings(storage, MetamodelPackage.eINSTANCE.getStorage_ProcessOutputFlow());
basePart.initProcessOutputFlow(processOutputFlowSettings);
}
// init filters
if (isAccessible(MetamodelViewsRepository.Storage.Properties.storageOutputFlow)) {
basePart.addFilterToStorageOutputFlow(new EObjectFilter(MetamodelPackage.Literals.STORAGE_OUTPUT_FLOW));
// Start of user code for additional businessfilters for storageOutputFlow
// End of user code
}
if (isAccessible(MetamodelViewsRepository.Storage.Properties.orderOnStockThreshold)) {
basePart.addFilterToOrderOnStockThreshold(new EObjectFilter(MetamodelPackage.Literals.ORDER_ON_STOCK_THRESHOLD));
// Start of user code for additional businessfilters for orderOnStockThreshold
// End of user code
}
if (isAccessible(MetamodelViewsRepository.Storage.Properties.processOutputFlow)) {
basePart.addFilterToProcessOutputFlow(new EObjectFilter(MetamodelPackage.Literals.PROCESS_OUTPUT_FLOW));
// Start of user code for additional businessfilters for processOutputFlow
// End of user code
}
// init values for referenced views
// init filters for referenced views
}
setInitializing(false);
}
示例14: initPart
import org.eclipse.emf.eef.runtime.impl.filters.EObjectFilter; //导入依赖的package包/类
/**
* {@inheritDoc}
*
* @see org.eclipse.emf.eef.runtime.api.component.IPropertiesEditionComponent#initPart(java.lang.Object, int, org.eclipse.emf.ecore.EObject,
* org.eclipse.emf.ecore.resource.ResourceSet)
*
*/
public void initPart(Object key, int kind, EObject elt, ResourceSet allResource) {
setInitializing(true);
if (editingPart != null && key == partKey) {
editingPart.setContext(elt, allResource);
final ConveyorBelt conveyorBelt = (ConveyorBelt)elt;
final ConveyorBeltPropertiesEditionPart basePart = (ConveyorBeltPropertiesEditionPart)editingPart;
// init values
if (isAccessible(MetamodelViewsRepository.ConveyorBelt.Properties.name))
basePart.setName(EEFConverterUtil.convertToString(EcorePackage.Literals.ESTRING, conveyorBelt.getName()));
if (isAccessible(MetamodelViewsRepository.ConveyorBelt.Properties.duration)) {
// init part
durationSettings = new EObjectFlatComboSettings(conveyorBelt, MetamodelPackage.eINSTANCE.getProcess_Duration());
basePart.initDuration(durationSettings);
}
if (isAccessible(MetamodelViewsRepository.ConveyorBelt.Properties.storageOutputFlow)) {
storageOutputFlowSettings = new ReferencesTableSettings(conveyorBelt, MetamodelPackage.eINSTANCE.getProcess_StorageOutputFlow());
basePart.initStorageOutputFlow(storageOutputFlowSettings);
}
if (isAccessible(MetamodelViewsRepository.ConveyorBelt.Properties.minimalSeparationBetweenBatches))
basePart.setMinimalSeparationBetweenBatches(EEFConverterUtil.convertToString(MetamodelPackage.Literals.POSITIVE_DOUBLE, conveyorBelt.getMinimalSeparationBetweenBatches()));
if (isAccessible(MetamodelViewsRepository.ConveyorBelt.Properties.output)) {
// init part
outputSettings = new EObjectFlatComboSettings(conveyorBelt, MetamodelPackage.eINSTANCE.getConveyorBelt_Output());
basePart.initOutput(outputSettings);
}
// init filters
if (isAccessible(MetamodelViewsRepository.ConveyorBelt.Properties.storageOutputFlow)) {
basePart.addFilterToStorageOutputFlow(new EObjectFilter(MetamodelPackage.Literals.STORAGE_OUTPUT_FLOW));
// Start of user code for additional businessfilters for storageOutputFlow
// End of user code
}
// init values for referenced views
// init filters for referenced views
}
setInitializing(false);
}
示例15: initPart
import org.eclipse.emf.eef.runtime.impl.filters.EObjectFilter; //导入依赖的package包/类
/**
* {@inheritDoc}
*
* @see org.eclipse.emf.eef.runtime.api.component.IPropertiesEditionComponent#initPart(java.lang.Object, int, org.eclipse.emf.ecore.EObject,
* org.eclipse.emf.ecore.resource.ResourceSet)
*
*/
public void initPart(Object key, int kind, EObject elt, ResourceSet allResource) {
setInitializing(true);
if (editingPart != null && key == partKey) {
editingPart.setContext(elt, allResource);
final ComputingResource computingResource = (ComputingResource)elt;
final OtherPropertiesEditionPart otherPart = (OtherPropertiesEditionPart)editingPart;
// init values
if (isAccessible(GrmViewsRepository.Other.OtherProperties.pServices)) {
pServicesSettings = new ReferencesTableSettings(computingResource, GrmPackage.eINSTANCE.getResource_PServices());
otherPart.initPServices(pServicesSettings);
}
if (isAccessible(GrmViewsRepository.Other.OtherProperties.rServices)) {
rServicesSettings = new ReferencesTableSettings(computingResource, GrmPackage.eINSTANCE.getResource_RServices());
otherPart.initRServices(rServicesSettings);
}
// init filters
if (isAccessible(GrmViewsRepository.Other.OtherProperties.pServices)) {
otherPart.addFilterToPServices(new ViewerFilter() {
/**
* {@inheritDoc}
*
* @see org.eclipse.jface.viewers.ViewerFilter#select(org.eclipse.jface.viewers.Viewer, java.lang.Object, java.lang.Object)
*/
public boolean select(Viewer viewer, Object parentElement, Object element) {
return (element instanceof String && element.equals("")) || (element instanceof ResourceService); //$NON-NLS-1$
}
});
// Start of user code for additional businessfilters for pServices
// End of user code
}
if (isAccessible(GrmViewsRepository.Other.OtherProperties.rServices)) {
otherPart.addFilterToRServices(new EObjectFilter(GrmPackage.Literals.RESOURCE_SERVICE));
// Start of user code for additional businessfilters for rServices
// End of user code
}
// init values for referenced views
// init filters for referenced views
}
setInitializing(false);
}