org.eclipse.gmf.runtime.emf.type.core.IElementType Java Examples
The following examples show how to use
org.eclipse.gmf.runtime.emf.type.core.IElementType.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: CrossflowModelingAssistantProviderOfWorkflowEditPart.java From scava with Eclipse Public License 2.0 | 6 votes |
/** * @generated */ @Override public List<IElementType> getTypesForPopupBar(IAdaptable host) { List<IElementType> types = new ArrayList<IElementType>(13); types.add(CrossflowElementTypes.CsvSource_2001); types.add(CrossflowElementTypes.CsvSink_2002); types.add(CrossflowElementTypes.Topic_2003); types.add(CrossflowElementTypes.Queue_2004); types.add(CrossflowElementTypes.Source_2005); types.add(CrossflowElementTypes.Sink_2006); types.add(CrossflowElementTypes.CommitmentTask_2007); types.add(CrossflowElementTypes.OpinionatedTask_2008); types.add(CrossflowElementTypes.ScriptedTask_2015); types.add(CrossflowElementTypes.Task_2010); types.add(CrossflowElementTypes.Type_2011); types.add(CrossflowElementTypes.Field_2014); types.add(CrossflowElementTypes.Language_2013); return types; }
Example #2
Source File: ProcBuilder.java From bonita-studio with GNU General Public License v2.0 | 6 votes |
private void createLinkBetweenTextAnnotationAndSourceEditPart(final String sourceId, final TextAnnotation createdElement) { final Element sourceElement = (Element) steps.get(NamingUtils.convertToId(sourceId)); if (sourceElement != null) { final IElementType itemType = ProcessElementTypes.TextAnnotationAttachment_4003; final CreateConnectionViewAndElementRequest request = new CreateConnectionViewAndElementRequest(itemType, ((IHintedType) itemType).getSemanticHint(), diagramPart.getDiagramPreferencesHint()); final EditPart sourceEp = editParts.get(NamingUtils.convertToId(sourceId)); final EditPart targetEp = GMFTools.findEditPart(diagramPart, createdElement); if (sourceEp != null) {//this case can happen when th etext annotation is link to a seuqneceflow but don't know why. final Command createSequenceFlowCommand = CreateConnectionViewAndElementRequest.getCreateCommand(request, targetEp, sourceEp); diagramPart.getDiagramEditDomain().getDiagramCommandStack().execute(createSequenceFlowCommand); final Node source = (Node) ((IGraphicalEditPart) sourceEp).getNotationView(); final Location loc = (Location) source.getLayoutConstraint(); final Node node = (Node) ((IGraphicalEditPart) targetEp).getNotationView(); if (loc != null) { commandStack .append(SetCommand.create(editingDomain, node.getLayoutConstraint(), NotationPackage.eINSTANCE.getLocation_X(), loc.getX() + 60)); commandStack .append(SetCommand.create(editingDomain, node.getLayoutConstraint(), NotationPackage.eINSTANCE.getLocation_Y(), loc.getY() - 50)); } } } }
Example #3
Source File: CrossflowModelingAssistantProviderOfTopicEditPart.java From scava with Eclipse Public License 2.0 | 6 votes |
/** * @generated */ public List<IElementType> doGetTypesForTarget(TopicEditPart source, IElementType relationshipType) { List<IElementType> types = new ArrayList<IElementType>(); if (relationshipType == CrossflowElementTypes.StreamType_4001) { types.add(CrossflowElementTypes.Type_2011); } else if (relationshipType == CrossflowElementTypes.StreamInputOf_4005) { types.add(CrossflowElementTypes.CsvSource_2001); types.add(CrossflowElementTypes.CsvSink_2002); types.add(CrossflowElementTypes.Source_2005); types.add(CrossflowElementTypes.Sink_2006); types.add(CrossflowElementTypes.CommitmentTask_2007); types.add(CrossflowElementTypes.OpinionatedTask_2008); types.add(CrossflowElementTypes.ScriptedTask_2015); types.add(CrossflowElementTypes.Task_2010); } return types; }
Example #4
Source File: ProcessModelingAssistantProviderOfBoundaryMessageEvent2EditPart.java From bonita-studio with GNU General Public License v2.0 | 6 votes |
/** * @generated */ public List<IElementType> doGetTypesForSource(BoundaryMessageEvent2EditPart target, IElementType relationshipType) { List<IElementType> types = new ArrayList<IElementType>(); if (relationshipType == ProcessElementTypes.MessageFlow_4002) { types.add(ProcessElementTypes.SendTask_2026); types.add(ProcessElementTypes.EndMessageEvent_2011); types.add(ProcessElementTypes.IntermediateThrowMessageEvent_2014); types.add(ProcessElementTypes.SendTask_3025); types.add(ProcessElementTypes.EndMessageEvent_3011); types.add(ProcessElementTypes.IntermediateThrowMessageEvent_3014); } else if (relationshipType == ProcessElementTypes.TextAnnotationAttachment_4003) { types.add(ProcessElementTypes.TextAnnotation_2015); types.add(ProcessElementTypes.TextAnnotation_3015); } return types; }
Example #5
Source File: ProcessModelingAssistantProviderOfIntermediateThrowSignalEvent2EditPart.java From bonita-studio with GNU General Public License v2.0 | 5 votes |
/** * @generated */ @Override public List<IElementType> getTypesForSource(IAdaptable target, IElementType relationshipType) { IGraphicalEditPart targetEditPart = (IGraphicalEditPart) target.getAdapter(IGraphicalEditPart.class); return doGetTypesForSource((IntermediateThrowSignalEvent2EditPart) targetEditPart, relationshipType); }
Example #6
Source File: ProcessModelingAssistantProviderOfANDGateway2EditPart.java From bonita-studio with GNU General Public License v2.0 | 5 votes |
/** * @generated */ @Override public List<IElementType> getTypesForSource(IAdaptable target, IElementType relationshipType) { IGraphicalEditPart targetEditPart = (IGraphicalEditPart) target.getAdapter(IGraphicalEditPart.class); return doGetTypesForSource((ANDGateway2EditPart) targetEditPart, relationshipType); }
Example #7
Source File: SubProcessEvent2CreateCommand.java From bonita-studio with GNU General Public License v2.0 | 5 votes |
/** * @generated */ protected void doConfigure(SubProcessEvent newElement, IProgressMonitor monitor, IAdaptable info) throws ExecutionException { IElementType elementType = ((CreateElementRequest) getRequest()).getElementType(); ConfigureRequest configureRequest = new ConfigureRequest(getEditingDomain(), newElement, elementType); configureRequest.setClientContext(((CreateElementRequest) getRequest()).getClientContext()); configureRequest.addParameters(getRequest().getParameters()); ICommand configureCommand = elementType.getEditCommand(configureRequest); if (configureCommand != null && configureCommand.canExecute()) { configureCommand.execute(monitor, info); } }
Example #8
Source File: ProcessModelingAssistantProviderOfStartSignalEvent2EditPart.java From bonita-studio with GNU General Public License v2.0 | 5 votes |
/** * @generated */ @Override public List<IElementType> getRelTypesOnSource(IAdaptable source) { IGraphicalEditPart sourceEditPart = (IGraphicalEditPart) source.getAdapter(IGraphicalEditPart.class); return doGetRelTypesOnSource((StartSignalEvent2EditPart) sourceEditPart); }
Example #9
Source File: CustomMainProcessItemSemanticEditPolicy.java From bonita-studio with GNU General Public License v2.0 | 5 votes |
@Override protected Command getCreateCommand(CreateElementRequest req) { /* * Allow to create only Pool and EventSubProcessPool on the "background" * */ IElementType elementType = req.getElementType(); if (ProcessElementTypes.Pool_2007 == elementType) { return getGEFWrapper(new PoolCreateCommand(req)); } return UnexecutableCommand.INSTANCE; }
Example #10
Source File: ProcessModelingAssistantProviderOfIntermediateThrowSignalEvent2EditPart.java From bonita-studio with GNU General Public License v2.0 | 5 votes |
/** * @generated */ @Override public List<IElementType> getRelTypesOnSource(IAdaptable source) { IGraphicalEditPart sourceEditPart = (IGraphicalEditPart) source.getAdapter(IGraphicalEditPart.class); return doGetRelTypesOnSource((IntermediateThrowSignalEvent2EditPart) sourceEditPart); }
Example #11
Source File: ProcessModelingAssistantProviderOfTaskEditPart.java From bonita-studio with GNU General Public License v2.0 | 5 votes |
/** * @generated */ @Override public List<IElementType> getTypesForPopupBar(IAdaptable host) { List<IElementType> types = new ArrayList<IElementType>(5); types.add(ProcessElementTypes.IntermediateErrorCatchEvent_3029); types.add(ProcessElementTypes.BoundaryMessageEvent_3035); types.add(ProcessElementTypes.NonInterruptingBoundaryTimerEvent_3064); types.add(ProcessElementTypes.BoundaryTimerEvent_3043); types.add(ProcessElementTypes.BoundarySignalEvent_3052); return types; }
Example #12
Source File: CrossflowModelingAssistantProviderOfTypeEditPart.java From scava with Eclipse Public License 2.0 | 5 votes |
/** * @generated */ @Override public List<IElementType> getTypesForSource(IAdaptable target, IElementType relationshipType) { IGraphicalEditPart targetEditPart = (IGraphicalEditPart) target.getAdapter(IGraphicalEditPart.class); return doGetTypesForSource((TypeEditPart) targetEditPart, relationshipType); }
Example #13
Source File: ProcessPaletteFactory.java From bonita-studio with GNU General Public License v2.0 | 5 votes |
/** * @generated */ private ToolEntry createSendTask5CreationTool() { ArrayList<IElementType> types = new ArrayList<IElementType>(2); types.add(ProcessElementTypes.SendTask_3025); types.add(ProcessElementTypes.SendTask_2026); NodeToolEntry entry = new NodeToolEntry(Messages.SendTask5CreationTool_title, Messages.SendTask5CreationTool_desc, types); entry.setId("createSendTask5CreationTool"); //$NON-NLS-1$ entry.setSmallIcon(ProcessElementTypes.getImageDescriptor(ProcessElementTypes.SendTask_3025)); entry.setLargeIcon(entry.getSmallIcon()); return entry; }
Example #14
Source File: ScriptedTaskCreateCommand.java From scava with Eclipse Public License 2.0 | 5 votes |
/** * @generated */ protected void doConfigure(ScriptedTask newElement, IProgressMonitor monitor, IAdaptable info) throws ExecutionException { IElementType elementType = ((CreateElementRequest) getRequest()).getElementType(); ConfigureRequest configureRequest = new ConfigureRequest(getEditingDomain(), newElement, elementType); configureRequest.setClientContext(((CreateElementRequest) getRequest()).getClientContext()); configureRequest.addParameters(getRequest().getParameters()); ICommand configureCommand = elementType.getEditCommand(configureRequest); if (configureCommand != null && configureCommand.canExecute()) { configureCommand.execute(monitor, info); } }
Example #15
Source File: CrossflowModelingAssistantProviderOfCommitmentTaskEditPart.java From scava with Eclipse Public License 2.0 | 5 votes |
/** * @generated */ @Override public List<IElementType> getRelTypesOnSourceAndTarget(IAdaptable source, IAdaptable target) { IGraphicalEditPart sourceEditPart = (IGraphicalEditPart) source.getAdapter(IGraphicalEditPart.class); IGraphicalEditPart targetEditPart = (IGraphicalEditPart) target.getAdapter(IGraphicalEditPart.class); return doGetRelTypesOnSourceAndTarget((CommitmentTaskEditPart) sourceEditPart, targetEditPart); }
Example #16
Source File: CrossflowModelingAssistantProviderOfCsvSourceEditPart.java From scava with Eclipse Public License 2.0 | 5 votes |
/** * @generated */ @Override public List<IElementType> getRelTypesOnSourceAndTarget(IAdaptable source, IAdaptable target) { IGraphicalEditPart sourceEditPart = (IGraphicalEditPart) source.getAdapter(IGraphicalEditPart.class); IGraphicalEditPart targetEditPart = (IGraphicalEditPart) target.getAdapter(IGraphicalEditPart.class); return doGetRelTypesOnSourceAndTarget((CsvSourceEditPart) sourceEditPart, targetEditPart); }
Example #17
Source File: BoundaryMessageEventCreateCommand.java From bonita-studio with GNU General Public License v2.0 | 5 votes |
/** * @generated */ protected void doConfigure(BoundaryMessageEvent newElement, IProgressMonitor monitor, IAdaptable info) throws ExecutionException { IElementType elementType = ((CreateElementRequest) getRequest()).getElementType(); ConfigureRequest configureRequest = new ConfigureRequest(getEditingDomain(), newElement, elementType); configureRequest.setClientContext(((CreateElementRequest) getRequest()).getClientContext()); configureRequest.addParameters(getRequest().getParameters()); ICommand configureCommand = elementType.getEditCommand(configureRequest); if (configureCommand != null && configureCommand.canExecute()) { configureCommand.execute(monitor, info); } }
Example #18
Source File: ProcessModelingAssistantProviderOfCatchLinkEvent2EditPart.java From bonita-studio with GNU General Public License v2.0 | 5 votes |
/** * @generated */ @Override public List<IElementType> getRelTypesOnSource(IAdaptable source) { IGraphicalEditPart sourceEditPart = (IGraphicalEditPart) source.getAdapter(IGraphicalEditPart.class); return doGetRelTypesOnSource((CatchLinkEvent2EditPart) sourceEditPart); }
Example #19
Source File: ProcessModelingAssistantProviderOfTextAnnotationEditPart.java From bonita-studio with GNU General Public License v2.0 | 5 votes |
/** * @generated */ @Override public List<IElementType> getTypesForSource(IAdaptable target, IElementType relationshipType) { IGraphicalEditPart targetEditPart = (IGraphicalEditPart) target.getAdapter(IGraphicalEditPart.class); return doGetTypesForSource((TextAnnotationEditPart) targetEditPart, relationshipType); }
Example #20
Source File: ProcessModelingAssistantProviderOfServiceTask2EditPart.java From bonita-studio with GNU General Public License v2.0 | 5 votes |
/** * @generated */ @Override public List<IElementType> getRelTypesOnSourceAndTarget(IAdaptable source, IAdaptable target) { IGraphicalEditPart sourceEditPart = (IGraphicalEditPart) source.getAdapter(IGraphicalEditPart.class); IGraphicalEditPart targetEditPart = (IGraphicalEditPart) target.getAdapter(IGraphicalEditPart.class); return doGetRelTypesOnSourceAndTarget((ServiceTask2EditPart) sourceEditPart, targetEditPart); }
Example #21
Source File: ProcessModelingAssistantProviderOfNonInterruptingBoundaryTimerEventEditPart.java From bonita-studio with GNU General Public License v2.0 | 5 votes |
/** * @generated */ @Override public List<IElementType> getRelTypesOnSourceAndTarget(IAdaptable source, IAdaptable target) { IGraphicalEditPart sourceEditPart = (IGraphicalEditPart) source.getAdapter(IGraphicalEditPart.class); IGraphicalEditPart targetEditPart = (IGraphicalEditPart) target.getAdapter(IGraphicalEditPart.class); return doGetRelTypesOnSourceAndTarget((NonInterruptingBoundaryTimerEventEditPart) sourceEditPart, targetEditPart); }
Example #22
Source File: IntermediateCatchSignalEventCreateCommand.java From bonita-studio with GNU General Public License v2.0 | 5 votes |
/** * @generated */ protected void doConfigure(IntermediateCatchSignalEvent newElement, IProgressMonitor monitor, IAdaptable info) throws ExecutionException { IElementType elementType = ((CreateElementRequest) getRequest()).getElementType(); ConfigureRequest configureRequest = new ConfigureRequest(getEditingDomain(), newElement, elementType); configureRequest.setClientContext(((CreateElementRequest) getRequest()).getClientContext()); configureRequest.addParameters(getRequest().getParameters()); ICommand configureCommand = elementType.getEditCommand(configureRequest); if (configureCommand != null && configureCommand.canExecute()) { configureCommand.execute(monitor, info); } }
Example #23
Source File: ProcessModelingAssistantProviderOfXORGatewayEditPart.java From bonita-studio with GNU General Public License v2.0 | 5 votes |
/** * @generated */ @Override public List<IElementType> getTypesForSource(IAdaptable target, IElementType relationshipType) { IGraphicalEditPart targetEditPart = (IGraphicalEditPart) target.getAdapter(IGraphicalEditPart.class); return doGetTypesForSource((XORGatewayEditPart) targetEditPart, relationshipType); }
Example #24
Source File: ProcessModelingAssistantProviderOfBoundarySignalEvent2EditPart.java From bonita-studio with GNU General Public License v2.0 | 5 votes |
/** * @generated */ @Override public List<IElementType> getTypesForSource(IAdaptable target, IElementType relationshipType) { IGraphicalEditPart targetEditPart = (IGraphicalEditPart) target.getAdapter(IGraphicalEditPart.class); return doGetTypesForSource((BoundarySignalEvent2EditPart) targetEditPart, relationshipType); }
Example #25
Source File: CrossflowModelingAssistantProviderOfCsvSourceEditPart.java From scava with Eclipse Public License 2.0 | 5 votes |
/** * @generated */ public List<IElementType> doGetTypesForTarget(CsvSourceEditPart source, IElementType relationshipType) { List<IElementType> types = new ArrayList<IElementType>(); if (relationshipType == CrossflowElementTypes.TaskOutput_4003) { types.add(CrossflowElementTypes.Topic_2003); types.add(CrossflowElementTypes.Queue_2004); } return types; }
Example #26
Source File: ProcessModelingAssistantProviderOfBoundaryMessageEvent2EditPart.java From bonita-studio with GNU General Public License v2.0 | 5 votes |
/** * @generated */ public List<IElementType> doGetRelTypesOnTarget(BoundaryMessageEvent2EditPart target) { List<IElementType> types = new ArrayList<IElementType>(2); types.add(ProcessElementTypes.MessageFlow_4002); types.add(ProcessElementTypes.TextAnnotationAttachment_4003); return types; }
Example #27
Source File: ProcessPaletteFactory.java From bonita-studio with GNU General Public License v2.0 | 5 votes |
/** * @generated */ private ToolEntry createStartTimer3CreationTool() { ArrayList<IElementType> types = new ArrayList<IElementType>(2); types.add(ProcessElementTypes.StartTimerEvent_3016); types.add(ProcessElementTypes.StartTimerEvent_2016); NodeToolEntry entry = new NodeToolEntry(Messages.StartTimer3CreationTool_title, Messages.StartTimer3CreationTool_desc, types); entry.setId("createStartTimer3CreationTool"); //$NON-NLS-1$ entry.setSmallIcon(ProcessElementTypes.getImageDescriptor(ProcessElementTypes.StartTimerEvent_3016)); entry.setLargeIcon(entry.getSmallIcon()); return entry; }
Example #28
Source File: CrossflowModelingAssistantProviderOfSourceEditPart.java From scava with Eclipse Public License 2.0 | 5 votes |
/** * @generated */ @Override public List<IElementType> getRelTypesOnSource(IAdaptable source) { IGraphicalEditPart sourceEditPart = (IGraphicalEditPart) source.getAdapter(IGraphicalEditPart.class); return doGetRelTypesOnSource((SourceEditPart) sourceEditPart); }
Example #29
Source File: BoundaryMessageEvent2CreateCommand.java From bonita-studio with GNU General Public License v2.0 | 5 votes |
/** * @generated */ protected void doConfigure(BoundaryMessageEvent newElement, IProgressMonitor monitor, IAdaptable info) throws ExecutionException { IElementType elementType = ((CreateElementRequest) getRequest()).getElementType(); ConfigureRequest configureRequest = new ConfigureRequest(getEditingDomain(), newElement, elementType); configureRequest.setClientContext(((CreateElementRequest) getRequest()).getClientContext()); configureRequest.addParameters(getRequest().getParameters()); ICommand configureCommand = elementType.getEditCommand(configureRequest); if (configureCommand != null && configureCommand.canExecute()) { configureCommand.execute(monitor, info); } }
Example #30
Source File: ProcessModelingAssistantProviderOfEndTerminatedEventEditPart.java From bonita-studio with GNU General Public License v2.0 | 5 votes |
/** * @generated */ @Override public List<IElementType> getTypesForTarget(IAdaptable source, IElementType relationshipType) { IGraphicalEditPart sourceEditPart = (IGraphicalEditPart) source.getAdapter(IGraphicalEditPart.class); return doGetTypesForTarget((EndTerminatedEventEditPart) sourceEditPart, relationshipType); }