As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
<project <br>…<br> <name>Acme Corporation Money Tasks</name><br>…<br></pom><br>
<version>5.7</version> <!– Current Activiti Designer Version –>
ActivitiDiagramEditor editor = (ActivitiDiagramEditor) PlatformUI<br> .getWorkbench().getActiveWorkbenchWindow().getActivePage()<br> .getActiveEditor();<br>Diagram diagram = editor.getDiagramTypeProvider().getDiagram();<br>final EList<EObject> contents = diagram.eResource().getContents();
Hey Tiese,Anyway, that's not the main thing I wanted to ask about. The disabling of elements through my own Customizer works, but to add new tasks seems not to work. I extended the AbstractCustomServiceTask as presented with the example, overwrote the getName and contributeToPaletteDrawer methods, tried it out… and nothing happened. I also had the icons and tried to find out if it is even called but couldn't succeed for sure.
Unable to create editor ID org.activiti.designer.editor.diagramEditor: An exception was thrown during initialization<br><br>java.lang.IllegalArgumentException: Argument cannot be null<br> at org.eclipse.swt.SWT.error(SWT.java:4263)<br> at org.eclipse.swt.SWT.error(SWT.java:4197)<br> at org.eclipse.swt.SWT.error(SWT.java:4168)<br> at org.eclipse.swt.graphics.ImageLoader.load(ImageLoader.java:128)<br> at org.eclipse.swt.graphics.ImageDataLoader.load(ImageDataLoader.java:22)<br> at org.eclipse.swt.graphics.ImageData.<init>(ImageData.java:331)<br> at org.eclipse.swt.graphics.Image.<init>(Image.java:545)<br> at org.activiti.designer.diagram.ActivitiToolBehaviorProvider.getPalette(ActivitiToolBehaviorProvider.java:682)<br> at org.eclipse.graphiti.ui.internal.editor.GFPaletteRoot.updatePaletteEntries(GFPaletteRoot.java:104)<br> at org.eclipse.graphiti.ui.internal.editor.GFPaletteRoot.<init>(GFPaletteRoot.java:80)<br> at org.eclipse.graphiti.ui.editor.DefaultPaletteBehavior.createPaletteRoot(DefaultPaletteBehavior.java:103)<br> at org.eclipse.graphiti.ui.editor.DefaultPaletteBehavior.getPaletteRoot(DefaultPaletteBehavior.java:115)<br> at org.eclipse.graphiti.ui.editor.DiagramEditor.getPaletteRoot(DiagramEditor.java:940)<br> at org.eclipse.gef.ui.parts.GraphicalEditorWithFlyoutPalette.setEditDomain(GraphicalEditorWithFlyoutPalette.java:145)<br> at org.eclipse.graphiti.ui.editor.DiagramEditor.setConfigurationProvider(DiagramEditor.java:1890)<br> at org.eclipse.graphiti.ui.editor.DiagramEditor.setInput(DiagramEditor.java:553)<br> at org.activiti.designer.eclipse.editor.ActivitiDiagramEditor.setInput(ActivitiDiagramEditor.java:278)<br> at org.eclipse.graphiti.ui.editor.DiagramEditor.init(DiagramEditor.java:447)<br> at org.activiti.designer.eclipse.editor.ActivitiDiagramEditor.init(ActivitiDiagramEditor.java:131)<br> …