use of org.obeonetwork.graal.parts.InitialNodePropertiesEditionPart in project InformationSystem by ObeoNetwork.
the class InitialNodeInitialNodePropertiesEditionComponent method initPart.
/**
* {@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 InitialNode initialNode = (InitialNode) elt;
final InitialNodePropertiesEditionPart initialNodePart = (InitialNodePropertiesEditionPart) editingPart;
// init values
if (isAccessible(GraalViewsRepository.InitialNode.Properties.description))
initialNodePart.setDescription(EcoreUtil.convertToString(EcorePackage.Literals.ESTRING, initialNode.getDescription()));
if (isAccessible(GraalViewsRepository.InitialNode.Properties.outgoingTransitions)) {
outgoingTransitionsSettings = new ReferencesTableSettings(initialNode, GraalPackage.eINSTANCE.getNode_OutgoingTransitions());
initialNodePart.initOutgoingTransitions(outgoingTransitionsSettings);
}
if (isAccessible(GraalViewsRepository.InitialNode.Properties.incomingTransitions)) {
incomingTransitionsSettings = new ReferencesTableSettings(initialNode, GraalPackage.eINSTANCE.getNode_IncomingTransitions());
initialNodePart.initIncomingTransitions(incomingTransitionsSettings);
}
if (isAccessible(GraalViewsRepository.InitialNode.Properties.outgoingTransitions)) {
initialNodePart.addFilterToOutgoingTransitions(new EObjectFilter(GraalPackage.Literals.TRANSITION));
// Start of user code for additional businessfilters for outgoingTransitions
// End of user code
}
if (isAccessible(GraalViewsRepository.InitialNode.Properties.incomingTransitions)) {
initialNodePart.addFilterToIncomingTransitions(new EObjectFilter(GraalPackage.Literals.TRANSITION));
// Start of user code for additional businessfilters for incomingTransitions
// End of user code
}
// init values for referenced views
// init filters for referenced views
}
setInitializing(false);
}
Aggregations