Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Service Oriented Architecture Tools Platform (STP) » RCP with stp bpmn editor
RCP with stp bpmn editor [message #374677] Tue, 15 April 2008 16:41 Go to next message
Eclipse User
Originally posted by: fleabetto.libero.it

Hi everybody,
I'm new to the eclipse platform and i'm trying to make an rcp bpmn
editor with the Soa Tools Platform bpmn diagram editor.
My problem is, when i use the file -> "open file.." action to open a
"bpmn_diagram" file in the rcp workspace, the editor opens successfully
but if i try to open it programmatically with:

IFileStore store = EFS.getLocalFileSystem().getStore(file.getLocationURI());
IWorkbenchPage page =
PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActi vePage();
IDE.openEditorOnFileStore(page, store);

or even with:

OpenLocalFileAction a = new OpenLocalFileAction();
a.init(PlatformUI.getWorkbench().getActiveWorkbenchWindow()) ;
a.run();

and browsing the same file in the rcp workspace, the editor crashes with
the following error in the log file:

!ENTRY org.eclipse.ui 4 0 2008-04-15 12:33:05.784
!MESSAGE Unable to create editor ID
org.eclipse.stp.bpmn.diagram.part.BpmnDiagramEditorID:
org.eclipse.core.runtime.CoreException: ERROR
!STACK 1
org.eclipse.core.runtime.CoreException: ERROR
at
org.eclipse.gmf.runtime.diagram.ui.resources.editor.parts.Di agramDocumentEditor.createPartControl(DiagramDocumentEditor. java:1458)
at
org.eclipse.ui.internal.EditorReference.createPartHelper(Edi torReference.java:661)
at
org.eclipse.ui.internal.EditorReference.createPart(EditorRef erence.java:426)
at
org.eclipse.ui.internal.WorkbenchPartReference.getPart(Workb enchPartReference.java:592)
at
org.eclipse.ui.internal.EditorReference.getEditor(EditorRefe rence.java:263)
at
org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched( WorkbenchPage.java:2739)
at
org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(Workben chPage.java:2651)
at
org.eclipse.ui.internal.WorkbenchPage.access$13(WorkbenchPag e.java:2643)
at org.eclipse.ui.internal.WorkbenchPage$10.run(WorkbenchPage.j ava:2595)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:67)
at
org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:2590)
at
org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:2574)
at
org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:2557)
at org.eclipse.ui.ide.IDE.openEditorOnFileStore(IDE.java:1090)
at
org.eclipse.ui.internal.ide.actions.OpenLocalFileAction.run( OpenLocalFileAction.java:105)
at kbel2.NavigationView.openBPMNdiagramOnTree(NavigationView.ja va:872)
at kbel2.NavigationView$1.run(NavigationView.java:406)
at org.eclipse.jface.action.Action.runWithEvent(Action.java:498 )
at
org.eclipse.jface.action.ActionContributionItem.handleWidget Selection(ActionContributionItem.java:546)
at
org.eclipse.jface.action.ActionContributionItem.access$2(Act ionContributionItem.java:490)
at
org.eclipse.jface.action.ActionContributionItem$6.handleEven t(ActionContributionItem.java:443)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1101)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3319)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2971)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:2389)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2353)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:22 19)
at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:466)
at
org.eclipse.core.databinding.observable.Realm.runWithDefault (Realm.java:289)
at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:461)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
at kbel2.Application.start(Application.java:20)
at
org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:169)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:106)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:76)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:363)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:176)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java: 508)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:447)
at org.eclipse.equinox.launcher.Main.run(Main.java:1173)
at org.eclipse.equinox.launcher.Main.main(Main.java:1148)
!SUBENTRY 1 org.eclipse.gmf.runtime.diagram.ui.resources.editor 4 1
2008-04-15 12:33:05.784
!MESSAGE ERROR

The same error occurs when i try to open with the "open file.." action a
bpmn_diagram file which is not in the workspace.
Sometimes in the eclipse console appears also this error, even when i
use the "open file..." action, but the editor opens anyway.

org.eclipse.core.runtime.CoreException: Problems encountered while
setting project description.
at
org.eclipse.core.internal.resources.Project.setDescription(P roject.java:983)
at
org.eclipse.core.internal.resources.Project.setDescription(P roject.java:1009)
at
org.eclipse.stp.bpmn.diagram.part.BpmnCreationWizardPage.set upBpmnValidationBuildableNature(BpmnCreationWizardPage.java: 140)
at
org.eclipse.stp.bpmn.diagram.part.BpmnDiagramEditor.setupBpm nValidationBuildAbleNature(BpmnDiagramEditor.java:85)
at
org.eclipse.stp.bpmn.diagram.part.BpmnDiagramEditor.setDocum entProvider(BpmnDiagramEditor.java:73)
at
org.eclipse.gmf.runtime.diagram.ui.resources.editor.parts.Di agramDocumentEditor.updateDocumentProvider(DiagramDocumentEd itor.java:359)
at
org.eclipse.gmf.runtime.diagram.ui.resources.editor.parts.Di agramDocumentEditor.doSetInput(DiagramDocumentEditor.java:41 4)
at
org.eclipse.gmf.runtime.diagram.ui.resources.editor.parts.Di agramDocumentEditor.setInput(DiagramDocumentEditor.java:389)
at
org.eclipse.gef.ui.parts.GraphicalEditor.init(GraphicalEdito r.java:318)
at
org.eclipse.gmf.runtime.diagram.ui.parts.DiagramEditor.init( DiagramEditor.java:641)
at
org.eclipse.gmf.runtime.diagram.ui.resources.editor.parts.Di agramDocumentEditor.init(DiagramDocumentEditor.java:116)
at
org.eclipse.ui.internal.EditorManager.createSite(EditorManag er.java:794)
at
org.eclipse.ui.internal.EditorReference.createPartHelper(Edi torReference.java:643)
at
org.eclipse.ui.internal.EditorReference.createPart(EditorRef erence.java:426)
at
org.eclipse.ui.internal.WorkbenchPartReference.getPart(Workb enchPartReference.java:592)
at org.eclipse.ui.internal.PartPane.setVisible(PartPane.java:29 9)
at
org.eclipse.ui.internal.presentations.PresentablePart.setVis ible(PresentablePart.java:179)
at
org.eclipse.ui.internal.presentations.util.PresentablePartFo lder.select(PresentablePartFolder.java:268)
at
org.eclipse.ui.internal.presentations.util.LeftToRightTabOrd er.select(LeftToRightTabOrder.java:65)
at
org.eclipse.ui.internal.presentations.util.TabbedStackPresen tation.selectPart(TabbedStackPresentation.java:400)
at
org.eclipse.ui.internal.PartStack.refreshPresentationSelecti on(PartStack.java:1256)
at org.eclipse.ui.internal.PartStack.setSelection(PartStack.jav a:1209)
at org.eclipse.ui.internal.PartStack.showPart(PartStack.java:16 04)
at org.eclipse.ui.internal.PartStack.add(PartStack.java:499)
at org.eclipse.ui.internal.EditorStack.add(EditorStack.java:103 )
at org.eclipse.ui.internal.PartStack.add(PartStack.java:485)
at org.eclipse.ui.internal.EditorStack.add(EditorStack.java:112 )
at
org.eclipse.ui.internal.EditorSashContainer.addEditor(Editor SashContainer.java:63)
at
org.eclipse.ui.internal.EditorAreaHelper.addToLayout(EditorA reaHelper.java:217)
at
org.eclipse.ui.internal.EditorAreaHelper.addEditor(EditorAre aHelper.java:207)
at
org.eclipse.ui.internal.EditorManager.createEditorTab(Editor Manager.java:774)
at
org.eclipse.ui.internal.EditorManager.openEditorFromDescript or(EditorManager.java:673)
at
org.eclipse.ui.internal.EditorManager.openEditor(EditorManag er.java:634)
at
org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched( WorkbenchPage.java:2737)
at
org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(Workben chPage.java:2651)
at
org.eclipse.ui.internal.WorkbenchPage.access$13(WorkbenchPag e.java:2643)
at org.eclipse.ui.internal.WorkbenchPage$10.run(WorkbenchPage.j ava:2595)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:67)
at
org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:2590)
at
org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:2574)
at
org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:2557)
at org.eclipse.ui.ide.IDE.openEditorOnFileStore(IDE.java:1090)
at
org.eclipse.ui.internal.ide.actions.OpenLocalFileAction.run( OpenLocalFileAction.java:105)
at kbel2.NavigationView.openBPMNdiagramOnTree(NavigationView.ja va:872)
at kbel2.NavigationView$1.run(NavigationView.java:406)
at org.eclipse.jface.action.Action.runWithEvent(Action.java:498 )
at
org.eclipse.jface.action.ActionContributionItem.handleWidget Selection(ActionContributionItem.java:546)
at
org.eclipse.jface.action.ActionContributionItem.access$2(Act ionContributionItem.java:490)
at
org.eclipse.jface.action.ActionContributionItem$6.handleEven t(ActionContributionItem.java:443)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1101)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3319)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2971)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:2389)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2353)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:22 19)
at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:466)
at
org.eclipse.core.databinding.observable.Realm.runWithDefault (Realm.java:289)
at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:461)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
at kbel2.Application.start(Application.java:20)
at
org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:169)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:106)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:76)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:363)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:176)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java: 508)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:447)
at org.eclipse.equinox.launcher.Main.run(Main.java:1173)
at org.eclipse.equinox.launcher.Main.main(Main.java:1148)

Thanks to all in advance.

Andrea
Re: RCP with stp bpmn editor [message #374678 is a reply to message #374677] Tue, 15 April 2008 16:55 Go to previous messageGo to next message
Eclipse User
Originally posted by: atoulme.intalio.com

Hi Andrea,

the BPMN modeler was not designed to be used within a RCP application.

I think you will need to dive into the code for the first exception, it
seems the core exception occurs in the GMF framework.

Regarding the second one, it occurs when the modeler tries to set up the
validation builder to display problem markers on the diagram. That can
be avoided by tweaking the code a bit.

Please feel free to open bugs and contribute patches :)

Thanks,

Antoine

Andrea Devecchi wrote:
> Hi everybody,
> I'm new to the eclipse platform and i'm trying to make an rcp bpmn
> editor with the Soa Tools Platform bpmn diagram editor.
> My problem is, when i use the file -> "open file.." action to open a
> "bpmn_diagram" file in the rcp workspace, the editor opens successfully
> but if i try to open it programmatically with:
>
> IFileStore store =
> EFS.getLocalFileSystem().getStore(file.getLocationURI());
> IWorkbenchPage page =
> PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActi vePage();
> IDE.openEditorOnFileStore(page, store);
>
> or even with:
>
> OpenLocalFileAction a = new OpenLocalFileAction();
> a.init(PlatformUI.getWorkbench().getActiveWorkbenchWindow()) ;
> a.run();
>
> and browsing the same file in the rcp workspace, the editor crashes with
> the following error in the log file:
>
> !ENTRY org.eclipse.ui 4 0 2008-04-15 12:33:05.784
> !MESSAGE Unable to create editor ID
> org.eclipse.stp.bpmn.diagram.part.BpmnDiagramEditorID:
> org.eclipse.core.runtime.CoreException: ERROR
> !STACK 1
> org.eclipse.core.runtime.CoreException: ERROR
> at
> org.eclipse.gmf.runtime.diagram.ui.resources.editor.parts.Di agramDocumentEditor.createPartControl(DiagramDocumentEditor. java:1458)
>
> at
> org.eclipse.ui.internal.EditorReference.createPartHelper(Edi torReference.java:661)
>
> at
> org.eclipse.ui.internal.EditorReference.createPart(EditorRef erence.java:426)
>
> at
> org.eclipse.ui.internal.WorkbenchPartReference.getPart(Workb enchPartReference.java:592)
>
> at
> org.eclipse.ui.internal.EditorReference.getEditor(EditorRefe rence.java:263)
> at
> org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched( WorkbenchPage.java:2739)
>
> at
> org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(Workben chPage.java:2651)
>
> at
> org.eclipse.ui.internal.WorkbenchPage.access$13(WorkbenchPag e.java:2643)
> at org.eclipse.ui.internal.WorkbenchPage$10.run(WorkbenchPage.j ava:2595)
> at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:67)
> at
> org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:2590)
> at
> org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:2574)
> at
> org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:2557)
> at org.eclipse.ui.ide.IDE.openEditorOnFileStore(IDE.java:1090)
> at
> org.eclipse.ui.internal.ide.actions.OpenLocalFileAction.run( OpenLocalFileAction.java:105)
>
> at kbel2.NavigationView.openBPMNdiagramOnTree(NavigationView.ja va:872)
> at kbel2.NavigationView$1.run(NavigationView.java:406)
> at org.eclipse.jface.action.Action.runWithEvent(Action.java:498 )
> at
> org.eclipse.jface.action.ActionContributionItem.handleWidget Selection(ActionContributionItem.java:546)
>
> at
> org.eclipse.jface.action.ActionContributionItem.access$2(Act ionContributionItem.java:490)
>
> at
> org.eclipse.jface.action.ActionContributionItem$6.handleEven t(ActionContributionItem.java:443)
>
> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1101)
> at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3319)
> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2971)
> at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:2389)
> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2353)
> at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:22 19)
> at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:466)
> at
> org.eclipse.core.databinding.observable.Realm.runWithDefault (Realm.java:289)
>
> at
> org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:461)
> at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
> at kbel2.Application.start(Application.java:20)
> at
> org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:169)
>
> at
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:106)
>
> at
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:76)
>
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:363)
>
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:176)
>
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
>
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
>
> at java.lang.reflect.Method.invoke(Method.java:597)
> at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java: 508)
> at org.eclipse.equinox.launcher.Main.basicRun(Main.java:447)
> at org.eclipse.equinox.launcher.Main.run(Main.java:1173)
> at org.eclipse.equinox.launcher.Main.main(Main.java:1148)
> !SUBENTRY 1 org.eclipse.gmf.runtime.diagram.ui.resources.editor 4 1
> 2008-04-15 12:33:05.784
> !MESSAGE ERROR
>
> The same error occurs when i try to open with the "open file.." action a
> bpmn_diagram file which is not in the workspace.
> Sometimes in the eclipse console appears also this error, even when i
> use the "open file..." action, but the editor opens anyway.
>
> org.eclipse.core.runtime.CoreException: Problems encountered while
> setting project description.
> at
> org.eclipse.core.internal.resources.Project.setDescription(P roject.java:983)
>
> at
> org.eclipse.core.internal.resources.Project.setDescription(P roject.java:1009)
>
> at
> org.eclipse.stp.bpmn.diagram.part.BpmnCreationWizardPage.set upBpmnValidationBuildableNature(BpmnCreationWizardPage.java: 140)
>
> at
> org.eclipse.stp.bpmn.diagram.part.BpmnDiagramEditor.setupBpm nValidationBuildAbleNature(BpmnDiagramEditor.java:85)
>
> at
> org.eclipse.stp.bpmn.diagram.part.BpmnDiagramEditor.setDocum entProvider(BpmnDiagramEditor.java:73)
>
> at
> org.eclipse.gmf.runtime.diagram.ui.resources.editor.parts.Di agramDocumentEditor.updateDocumentProvider(DiagramDocumentEd itor.java:359)
>
> at
> org.eclipse.gmf.runtime.diagram.ui.resources.editor.parts.Di agramDocumentEditor.doSetInput(DiagramDocumentEditor.java:41 4)
>
> at
> org.eclipse.gmf.runtime.diagram.ui.resources.editor.parts.Di agramDocumentEditor.setInput(DiagramDocumentEditor.java:389)
>
> at
> org.eclipse.gef.ui.parts.GraphicalEditor.init(GraphicalEdito r.java:318)
> at
> org.eclipse.gmf.runtime.diagram.ui.parts.DiagramEditor.init( DiagramEditor.java:641)
>
> at
> org.eclipse.gmf.runtime.diagram.ui.resources.editor.parts.Di agramDocumentEditor.init(DiagramDocumentEditor.java:116)
>
> at
> org.eclipse.ui.internal.EditorManager.createSite(EditorManag er.java:794)
> at
> org.eclipse.ui.internal.EditorReference.createPartHelper(Edi torReference.java:643)
>
> at
> org.eclipse.ui.internal.EditorReference.createPart(EditorRef erence.java:426)
>
> at
> org.eclipse.ui.internal.WorkbenchPartReference.getPart(Workb enchPartReference.java:592)
>
> at org.eclipse.ui.internal.PartPane.setVisible(PartPane.java:29 9)
> at
> org.eclipse.ui.internal.presentations.PresentablePart.setVis ible(PresentablePart.java:179)
>
> at
> org.eclipse.ui.internal.presentations.util.PresentablePartFo lder.select(PresentablePartFolder.java:268)
>
> at
> org.eclipse.ui.internal.presentations.util.LeftToRightTabOrd er.select(LeftToRightTabOrder.java:65)
>
> at
> org.eclipse.ui.internal.presentations.util.TabbedStackPresen tation.selectPart(TabbedStackPresentation.java:400)
>
> at
> org.eclipse.ui.internal.PartStack.refreshPresentationSelecti on(PartStack.java:1256)
>
> at org.eclipse.ui.internal.PartStack.setSelection(PartStack.jav a:1209)
> at org.eclipse.ui.internal.PartStack.showPart(PartStack.java:16 04)
> at org.eclipse.ui.internal.PartStack.add(PartStack.java:499)
> at org.eclipse.ui.internal.EditorStack.add(EditorStack.java:103 )
> at org.eclipse.ui.internal.PartStack.add(PartStack.java:485)
> at org.eclipse.ui.internal.EditorStack.add(EditorStack.java:112 )
> at
> org.eclipse.ui.internal.EditorSashContainer.addEditor(Editor SashContainer.java:63)
>
> at
> org.eclipse.ui.internal.EditorAreaHelper.addToLayout(EditorA reaHelper.java:217)
>
> at
> org.eclipse.ui.internal.EditorAreaHelper.addEditor(EditorAre aHelper.java:207)
>
> at
> org.eclipse.ui.internal.EditorManager.createEditorTab(Editor Manager.java:774)
>
> at
> org.eclipse.ui.internal.EditorManager.openEditorFromDescript or(EditorManager.java:673)
>
> at
> org.eclipse.ui.internal.EditorManager.openEditor(EditorManag er.java:634)
> at
> org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched( WorkbenchPage.java:2737)
>
> at
> org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(Workben chPage.java:2651)
>
> at
> org.eclipse.ui.internal.WorkbenchPage.access$13(WorkbenchPag e.java:2643)
> at org.eclipse.ui.internal.WorkbenchPage$10.run(WorkbenchPage.j ava:2595)
> at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:67)
> at
> org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:2590)
> at
> org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:2574)
> at
> org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:2557)
> at org.eclipse.ui.ide.IDE.openEditorOnFileStore(IDE.java:1090)
> at
> org.eclipse.ui.internal.ide.actions.OpenLocalFileAction.run( OpenLocalFileAction.java:105)
>
> at kbel2.NavigationView.openBPMNdiagramOnTree(NavigationView.ja va:872)
> at kbel2.NavigationView$1.run(NavigationView.java:406)
> at org.eclipse.jface.action.Action.runWithEvent(Action.java:498 )
> at
> org.eclipse.jface.action.ActionContributionItem.handleWidget Selection(ActionContributionItem.java:546)
>
> at
> org.eclipse.jface.action.ActionContributionItem.access$2(Act ionContributionItem.java:490)
>
> at
> org.eclipse.jface.action.ActionContributionItem$6.handleEven t(ActionContributionItem.java:443)
>
> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1101)
> at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3319)
> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2971)
> at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:2389)
> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2353)
> at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:22 19)
> at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:466)
> at
> org.eclipse.core.databinding.observable.Realm.runWithDefault (Realm.java:289)
>
> at
> org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:461)
> at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
> at kbel2.Application.start(Application.java:20)
> at
> org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:169)
>
> at
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:106)
>
> at
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:76)
>
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:363)
>
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:176)
>
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
>
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
>
> at java.lang.reflect.Method.invoke(Method.java:597)
> at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java: 508)
> at org.eclipse.equinox.launcher.Main.basicRun(Main.java:447)
> at org.eclipse.equinox.launcher.Main.run(Main.java:1173)
> at org.eclipse.equinox.launcher.Main.main(Main.java:1148)
>
> Thanks to all in advance.
>
> Andrea
Re: RCP with stp bpmn editor [message #374679 is a reply to message #374677] Wed, 16 April 2008 08:06 Go to previous messageGo to next message
Eclipse User
Originally posted by: atoulme.intalio.com

Hi Andrea,

the BPMN modeler was not designed to be used within a RCP application.

I think you will need to dive into the code for the first exception, it
seems the core exception occurs in the GMF framework.

Regarding the second one, it occurs when the modeler tries to set up the
validation builder to display problem markers on the diagram. That can
be avoided by tweaking the code a bit.

Please feel free to open bugs and contribute patches :)

Thanks,

Antoine

Andrea Devecchi wrote:
> Hi everybody,
> I'm new to the eclipse platform and i'm trying to make an rcp bpmn
> editor with the Soa Tools Platform bpmn diagram editor.
> My problem is, when i use the file -> "open file.." action to open a
> "bpmn_diagram" file in the rcp workspace, the editor opens successfully
> but if i try to open it programmatically with:
>
> IFileStore store =
> EFS.getLocalFileSystem().getStore(file.getLocationURI());
> IWorkbenchPage page =
> PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActi vePage();
> IDE.openEditorOnFileStore(page, store);
>
> or even with:
>
> OpenLocalFileAction a = new OpenLocalFileAction();
> a.init(PlatformUI.getWorkbench().getActiveWorkbenchWindow()) ;
> a.run();
>
> and browsing the same file in the rcp workspace, the editor crashes with
> the following error in the log file:
>
> !ENTRY org.eclipse.ui 4 0 2008-04-15 12:33:05.784
> !MESSAGE Unable to create editor ID
> org.eclipse.stp.bpmn.diagram.part.BpmnDiagramEditorID:
> org.eclipse.core.runtime.CoreException: ERROR
> !STACK 1
> org.eclipse.core.runtime.CoreException: ERROR
> at
> org.eclipse.gmf.runtime.diagram.ui.resources.editor.parts.Di agramDocumentEditor.createPartControl(DiagramDocumentEditor. java:1458)
>
> at
> org.eclipse.ui.internal.EditorReference.createPartHelper(Edi torReference.java:661)
>
> at
> org.eclipse.ui.internal.EditorReference.createPart(EditorRef erence.java:426)
>
> at
> org.eclipse.ui.internal.WorkbenchPartReference.getPart(Workb enchPartReference.java:592)
>
> at
> org.eclipse.ui.internal.EditorReference.getEditor(EditorRefe rence.java:263)
> at
> org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched( WorkbenchPage.java:2739)
>
> at
> org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(Workben chPage.java:2651)
>
> at
> org.eclipse.ui.internal.WorkbenchPage.access$13(WorkbenchPag e.java:2643)
> at org.eclipse.ui.internal.WorkbenchPage$10.run(WorkbenchPage.j ava:2595)
> at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:67)
> at
> org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:2590)
> at
> org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:2574)
> at
> org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:2557)
> at org.eclipse.ui.ide.IDE.openEditorOnFileStore(IDE.java:1090)
> at
> org.eclipse.ui.internal.ide.actions.OpenLocalFileAction.run( OpenLocalFileAction.java:105)
>
> at kbel2.NavigationView.openBPMNdiagramOnTree(NavigationView.ja va:872)
> at kbel2.NavigationView$1.run(NavigationView.java:406)
> at org.eclipse.jface.action.Action.runWithEvent(Action.java:498 )
> at
> org.eclipse.jface.action.ActionContributionItem.handleWidget Selection(ActionContributionItem.java:546)
>
> at
> org.eclipse.jface.action.ActionContributionItem.access$2(Act ionContributionItem.java:490)
>
> at
> org.eclipse.jface.action.ActionContributionItem$6.handleEven t(ActionContributionItem.java:443)
>
> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1101)
> at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3319)
> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2971)
> at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:2389)
> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2353)
> at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:22 19)
> at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:466)
> at
> org.eclipse.core.databinding.observable.Realm.runWithDefault (Realm.java:289)
>
> at
> org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:461)
> at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
> at kbel2.Application.start(Application.java:20)
> at
> org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:169)
>
> at
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:106)
>
> at
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:76)
>
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:363)
>
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:176)
>
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
>
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
>
> at java.lang.reflect.Method.invoke(Method.java:597)
> at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java: 508)
> at org.eclipse.equinox.launcher.Main.basicRun(Main.java:447)
> at org.eclipse.equinox.launcher.Main.run(Main.java:1173)
> at org.eclipse.equinox.launcher.Main.main(Main.java:1148)
> !SUBENTRY 1 org.eclipse.gmf.runtime.diagram.ui.resources.editor 4 1
> 2008-04-15 12:33:05.784
> !MESSAGE ERROR
>
> The same error occurs when i try to open with the "open file.." action a
> bpmn_diagram file which is not in the workspace.
> Sometimes in the eclipse console appears also this error, even when i
> use the "open file..." action, but the editor opens anyway.
>
> org.eclipse.core.runtime.CoreException: Problems encountered while
> setting project description.
> at
> org.eclipse.core.internal.resources.Project.setDescription(P roject.java:983)
>
> at
> org.eclipse.core.internal.resources.Project.setDescription(P roject.java:1009)
>
> at
> org.eclipse.stp.bpmn.diagram.part.BpmnCreationWizardPage.set upBpmnValidationBuildableNature(BpmnCreationWizardPage.java: 140)
>
> at
> org.eclipse.stp.bpmn.diagram.part.BpmnDiagramEditor.setupBpm nValidationBuildAbleNature(BpmnDiagramEditor.java:85)
>
> at
> org.eclipse.stp.bpmn.diagram.part.BpmnDiagramEditor.setDocum entProvider(BpmnDiagramEditor.java:73)
>
> at
> org.eclipse.gmf.runtime.diagram.ui.resources.editor.parts.Di agramDocumentEditor.updateDocumentProvider(DiagramDocumentEd itor.java:359)
>
> at
> org.eclipse.gmf.runtime.diagram.ui.resources.editor.parts.Di agramDocumentEditor.doSetInput(DiagramDocumentEditor.java:41 4)
>
> at
> org.eclipse.gmf.runtime.diagram.ui.resources.editor.parts.Di agramDocumentEditor.setInput(DiagramDocumentEditor.java:389)
>
> at
> org.eclipse.gef.ui.parts.GraphicalEditor.init(GraphicalEdito r.java:318)
> at
> org.eclipse.gmf.runtime.diagram.ui.parts.DiagramEditor.init( DiagramEditor.java:641)
>
> at
> org.eclipse.gmf.runtime.diagram.ui.resources.editor.parts.Di agramDocumentEditor.init(DiagramDocumentEditor.java:116)
>
> at
> org.eclipse.ui.internal.EditorManager.createSite(EditorManag er.java:794)
> at
> org.eclipse.ui.internal.EditorReference.createPartHelper(Edi torReference.java:643)
>
> at
> org.eclipse.ui.internal.EditorReference.createPart(EditorRef erence.java:426)
>
> at
> org.eclipse.ui.internal.WorkbenchPartReference.getPart(Workb enchPartReference.java:592)
>
> at org.eclipse.ui.internal.PartPane.setVisible(PartPane.java:29 9)
> at
> org.eclipse.ui.internal.presentations.PresentablePart.setVis ible(PresentablePart.java:179)
>
> at
> org.eclipse.ui.internal.presentations.util.PresentablePartFo lder.select(PresentablePartFolder.java:268)
>
> at
> org.eclipse.ui.internal.presentations.util.LeftToRightTabOrd er.select(LeftToRightTabOrder.java:65)
>
> at
> org.eclipse.ui.internal.presentations.util.TabbedStackPresen tation.selectPart(TabbedStackPresentation.java:400)
>
> at
> org.eclipse.ui.internal.PartStack.refreshPresentationSelecti on(PartStack.java:1256)
>
> at org.eclipse.ui.internal.PartStack.setSelection(PartStack.jav a:1209)
> at org.eclipse.ui.internal.PartStack.showPart(PartStack.java:16 04)
> at org.eclipse.ui.internal.PartStack.add(PartStack.java:499)
> at org.eclipse.ui.internal.EditorStack.add(EditorStack.java:103 )
> at org.eclipse.ui.internal.PartStack.add(PartStack.java:485)
> at org.eclipse.ui.internal.EditorStack.add(EditorStack.java:112 )
> at
> org.eclipse.ui.internal.EditorSashContainer.addEditor(Editor SashContainer.java:63)
>
> at
> org.eclipse.ui.internal.EditorAreaHelper.addToLayout(EditorA reaHelper.java:217)
>
> at
> org.eclipse.ui.internal.EditorAreaHelper.addEditor(EditorAre aHelper.java:207)
>
> at
> org.eclipse.ui.internal.EditorManager.createEditorTab(Editor Manager.java:774)
>
> at
> org.eclipse.ui.internal.EditorManager.openEditorFromDescript or(EditorManager.java:673)
>
> at
> org.eclipse.ui.internal.EditorManager.openEditor(EditorManag er.java:634)
> at
> org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched( WorkbenchPage.java:2737)
>
> at
> org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(Workben chPage.java:2651)
>
> at
> org.eclipse.ui.internal.WorkbenchPage.access$13(WorkbenchPag e.java:2643)
> at org.eclipse.ui.internal.WorkbenchPage$10.run(WorkbenchPage.j ava:2595)
> at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:67)
> at
> org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:2590)
> at
> org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:2574)
> at
> org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:2557)
> at org.eclipse.ui.ide.IDE.openEditorOnFileStore(IDE.java:1090)
> at
> org.eclipse.ui.internal.ide.actions.OpenLocalFileAction.run( OpenLocalFileAction.java:105)
>
> at kbel2.NavigationView.openBPMNdiagramOnTree(NavigationView.ja va:872)
> at kbel2.NavigationView$1.run(NavigationView.java:406)
> at org.eclipse.jface.action.Action.runWithEvent(Action.java:498 )
> at
> org.eclipse.jface.action.ActionContributionItem.handleWidget Selection(ActionContributionItem.java:546)
>
> at
> org.eclipse.jface.action.ActionContributionItem.access$2(Act ionContributionItem.java:490)
>
> at
> org.eclipse.jface.action.ActionContributionItem$6.handleEven t(ActionContributionItem.java:443)
>
> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1101)
> at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3319)
> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2971)
> at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:2389)
> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2353)
> at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:22 19)
> at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:466)
> at
> org.eclipse.core.databinding.observable.Realm.runWithDefault (Realm.java:289)
>
> at
> org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:461)
> at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
> at kbel2.Application.start(Application.java:20)
> at
> org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:169)
>
> at
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:106)
>
> at
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:76)
>
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:363)
>
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:176)
>
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
>
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
>
> at java.lang.reflect.Method.invoke(Method.java:597)
> at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java: 508)
> at org.eclipse.equinox.launcher.Main.basicRun(Main.java:447)
> at org.eclipse.equinox.launcher.Main.run(Main.java:1173)
> at org.eclipse.equinox.launcher.Main.main(Main.java:1148)
>
> Thanks to all in advance.
>
> Andrea
Re: RCP with stp bpmn editor [message #556111 is a reply to message #374677] Mon, 30 August 2010 16:10 Go to previous messageGo to next message
No real name is currently offline No real name
Messages: 2
Registered: August 2010
Junior Member
Hi,
has there been any update to this? I'm really interested in etegrating the bpmn modeller into an RCP but I don't know how. Any tips on how can I achieve this?

Thank you
Re: RCP with stp bpmn editor [message #557578 is a reply to message #556111] Wed, 08 September 2010 03:22 Go to previous messageGo to next message
Oisin Hurley is currently offline Oisin Hurley
Messages: 204
Registered: July 2009
Senior Member
I'm not aware of any changes here, but you might visit the BPMN Modeler newsgroup for more detailed information.

http://www.eclipse.org/forums/index.php?t=thread&frm_id= 37&S=85211fff71e67ef3276822c0c670068c
Re: RCP with stp bpmn editor [message #614284 is a reply to message #374677] Tue, 15 April 2008 16:55 Go to previous messageGo to next message
Eclipse User
Originally posted by: atoulme.intalio.com

Hi Andrea,

the BPMN modeler was not designed to be used within a RCP application.

I think you will need to dive into the code for the first exception, it
seems the core exception occurs in the GMF framework.

Regarding the second one, it occurs when the modeler tries to set up the
validation builder to display problem markers on the diagram. That can
be avoided by tweaking the code a bit.

Please feel free to open bugs and contribute patches :)

Thanks,

Antoine

Andrea Devecchi wrote:
> Hi everybody,
> I'm new to the eclipse platform and i'm trying to make an rcp bpmn
> editor with the Soa Tools Platform bpmn diagram editor.
> My problem is, when i use the file -> "open file.." action to open a
> "bpmn_diagram" file in the rcp workspace, the editor opens successfully
> but if i try to open it programmatically with:
>
> IFileStore store =
> EFS.getLocalFileSystem().getStore(file.getLocationURI());
> IWorkbenchPage page =
> PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActi vePage();
> IDE.openEditorOnFileStore(page, store);
>
> or even with:
>
> OpenLocalFileAction a = new OpenLocalFileAction();
> a.init(PlatformUI.getWorkbench().getActiveWorkbenchWindow()) ;
> a.run();
>
> and browsing the same file in the rcp workspace, the editor crashes with
> the following error in the log file:
>
> !ENTRY org.eclipse.ui 4 0 2008-04-15 12:33:05.784
> !MESSAGE Unable to create editor ID
> org.eclipse.stp.bpmn.diagram.part.BpmnDiagramEditorID:
> org.eclipse.core.runtime.CoreException: ERROR
> !STACK 1
> org.eclipse.core.runtime.CoreException: ERROR
> at
> org.eclipse.gmf.runtime.diagram.ui.resources.editor.parts.Di agramDocumentEditor.createPartControl(DiagramDocumentEditor. java:1458)
>
> at
> org.eclipse.ui.internal.EditorReference.createPartHelper(Edi torReference.java:661)
>
> at
> org.eclipse.ui.internal.EditorReference.createPart(EditorRef erence.java:426)
>
> at
> org.eclipse.ui.internal.WorkbenchPartReference.getPart(Workb enchPartReference.java:592)
>
> at
> org.eclipse.ui.internal.EditorReference.getEditor(EditorRefe rence.java:263)
> at
> org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched( WorkbenchPage.java:2739)
>
> at
> org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(Workben chPage.java:2651)
>
> at
> org.eclipse.ui.internal.WorkbenchPage.access$13(WorkbenchPag e.java:2643)
> at org.eclipse.ui.internal.WorkbenchPage$10.run(WorkbenchPage.j ava:2595)
> at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:67)
> at
> org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:2590)
> at
> org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:2574)
> at
> org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:2557)
> at org.eclipse.ui.ide.IDE.openEditorOnFileStore(IDE.java:1090)
> at
> org.eclipse.ui.internal.ide.actions.OpenLocalFileAction.run( OpenLocalFileAction.java:105)
>
> at kbel2.NavigationView.openBPMNdiagramOnTree(NavigationView.ja va:872)
> at kbel2.NavigationView$1.run(NavigationView.java:406)
> at org.eclipse.jface.action.Action.runWithEvent(Action.java:498 )
> at
> org.eclipse.jface.action.ActionContributionItem.handleWidget Selection(ActionContributionItem.java:546)
>
> at
> org.eclipse.jface.action.ActionContributionItem.access$2(Act ionContributionItem.java:490)
>
> at
> org.eclipse.jface.action.ActionContributionItem$6.handleEven t(ActionContributionItem.java:443)
>
> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1101)
> at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3319)
> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2971)
> at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:2389)
> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2353)
> at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:22 19)
> at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:466)
> at
> org.eclipse.core.databinding.observable.Realm.runWithDefault (Realm.java:289)
>
> at
> org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:461)
> at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
> at kbel2.Application.start(Application.java:20)
> at
> org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:169)
>
> at
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:106)
>
> at
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:76)
>
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:363)
>
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:176)
>
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
>
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
>
> at java.lang.reflect.Method.invoke(Method.java:597)
> at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java: 508)
> at org.eclipse.equinox.launcher.Main.basicRun(Main.java:447)
> at org.eclipse.equinox.launcher.Main.run(Main.java:1173)
> at org.eclipse.equinox.launcher.Main.main(Main.java:1148)
> !SUBENTRY 1 org.eclipse.gmf.runtime.diagram.ui.resources.editor 4 1
> 2008-04-15 12:33:05.784
> !MESSAGE ERROR
>
> The same error occurs when i try to open with the "open file.." action a
> bpmn_diagram file which is not in the workspace.
> Sometimes in the eclipse console appears also this error, even when i
> use the "open file..." action, but the editor opens anyway.
>
> org.eclipse.core.runtime.CoreException: Problems encountered while
> setting project description.
> at
> org.eclipse.core.internal.resources.Project.setDescription(P roject.java:983)
>
> at
> org.eclipse.core.internal.resources.Project.setDescription(P roject.java:1009)
>
> at
> org.eclipse.stp.bpmn.diagram.part.BpmnCreationWizardPage.set upBpmnValidationBuildableNature(BpmnCreationWizardPage.java: 140)
>
> at
> org.eclipse.stp.bpmn.diagram.part.BpmnDiagramEditor.setupBpm nValidationBuildAbleNature(BpmnDiagramEditor.java:85)
>
> at
> org.eclipse.stp.bpmn.diagram.part.BpmnDiagramEditor.setDocum entProvider(BpmnDiagramEditor.java:73)
>
> at
> org.eclipse.gmf.runtime.diagram.ui.resources.editor.parts.Di agramDocumentEditor.updateDocumentProvider(DiagramDocumentEd itor.java:359)
>
> at
> org.eclipse.gmf.runtime.diagram.ui.resources.editor.parts.Di agramDocumentEditor.doSetInput(DiagramDocumentEditor.java:41 4)
>
> at
> org.eclipse.gmf.runtime.diagram.ui.resources.editor.parts.Di agramDocumentEditor.setInput(DiagramDocumentEditor.java:389)
>
> at
> org.eclipse.gef.ui.parts.GraphicalEditor.init(GraphicalEdito r.java:318)
> at
> org.eclipse.gmf.runtime.diagram.ui.parts.DiagramEditor.init( DiagramEditor.java:641)
>
> at
> org.eclipse.gmf.runtime.diagram.ui.resources.editor.parts.Di agramDocumentEditor.init(DiagramDocumentEditor.java:116)
>
> at
> org.eclipse.ui.internal.EditorManager.createSite(EditorManag er.java:794)
> at
> org.eclipse.ui.internal.EditorReference.createPartHelper(Edi torReference.java:643)
>
> at
> org.eclipse.ui.internal.EditorReference.createPart(EditorRef erence.java:426)
>
> at
> org.eclipse.ui.internal.WorkbenchPartReference.getPart(Workb enchPartReference.java:592)
>
> at org.eclipse.ui.internal.PartPane.setVisible(PartPane.java:29 9)
> at
> org.eclipse.ui.internal.presentations.PresentablePart.setVis ible(PresentablePart.java:179)
>
> at
> org.eclipse.ui.internal.presentations.util.PresentablePartFo lder.select(PresentablePartFolder.java:268)
>
> at
> org.eclipse.ui.internal.presentations.util.LeftToRightTabOrd er.select(LeftToRightTabOrder.java:65)
>
> at
> org.eclipse.ui.internal.presentations.util.TabbedStackPresen tation.selectPart(TabbedStackPresentation.java:400)
>
> at
> org.eclipse.ui.internal.PartStack.refreshPresentationSelecti on(PartStack.java:1256)
>
> at org.eclipse.ui.internal.PartStack.setSelection(PartStack.jav a:1209)
> at org.eclipse.ui.internal.PartStack.showPart(PartStack.java:16 04)
> at org.eclipse.ui.internal.PartStack.add(PartStack.java:499)
> at org.eclipse.ui.internal.EditorStack.add(EditorStack.java:103 )
> at org.eclipse.ui.internal.PartStack.add(PartStack.java:485)
> at org.eclipse.ui.internal.EditorStack.add(EditorStack.java:112 )
> at
> org.eclipse.ui.internal.EditorSashContainer.addEditor(Editor SashContainer.java:63)
>
> at
> org.eclipse.ui.internal.EditorAreaHelper.addToLayout(EditorA reaHelper.java:217)
>
> at
> org.eclipse.ui.internal.EditorAreaHelper.addEditor(EditorAre aHelper.java:207)
>
> at
> org.eclipse.ui.internal.EditorManager.createEditorTab(Editor Manager.java:774)
>
> at
> org.eclipse.ui.internal.EditorManager.openEditorFromDescript or(EditorManager.java:673)
>
> at
> org.eclipse.ui.internal.EditorManager.openEditor(EditorManag er.java:634)
> at
> org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched( WorkbenchPage.java:2737)
>
> at
> org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(Workben chPage.java:2651)
>
> at
> org.eclipse.ui.internal.WorkbenchPage.access$13(WorkbenchPag e.java:2643)
> at org.eclipse.ui.internal.WorkbenchPage$10.run(WorkbenchPage.j ava:2595)
> at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:67)
> at
> org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:2590)
> at
> org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:2574)
> at
> org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:2557)
> at org.eclipse.ui.ide.IDE.openEditorOnFileStore(IDE.java:1090)
> at
> org.eclipse.ui.internal.ide.actions.OpenLocalFileAction.run( OpenLocalFileAction.java:105)
>
> at kbel2.NavigationView.openBPMNdiagramOnTree(NavigationView.ja va:872)
> at kbel2.NavigationView$1.run(NavigationView.java:406)
> at org.eclipse.jface.action.Action.runWithEvent(Action.java:498 )
> at
> org.eclipse.jface.action.ActionContributionItem.handleWidget Selection(ActionContributionItem.java:546)
>
> at
> org.eclipse.jface.action.ActionContributionItem.access$2(Act ionContributionItem.java:490)
>
> at
> org.eclipse.jface.action.ActionContributionItem$6.handleEven t(ActionContributionItem.java:443)
>
> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1101)
> at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3319)
> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2971)
> at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:2389)
> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2353)
> at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:22 19)
> at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:466)
> at
> org.eclipse.core.databinding.observable.Realm.runWithDefault (Realm.java:289)
>
> at
> org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:461)
> at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
> at kbel2.Application.start(Application.java:20)
> at
> org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:169)
>
> at
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:106)
>
> at
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:76)
>
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:363)
>
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:176)
>
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
>
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
>
> at java.lang.reflect.Method.invoke(Method.java:597)
> at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java: 508)
> at org.eclipse.equinox.launcher.Main.basicRun(Main.java:447)
> at org.eclipse.equinox.launcher.Main.run(Main.java:1173)
> at org.eclipse.equinox.launcher.Main.main(Main.java:1148)
>
> Thanks to all in advance.
>
> Andrea
Re: RCP with stp bpmn editor [message #614286 is a reply to message #374677] Wed, 16 April 2008 08:06 Go to previous messageGo to next message
Eclipse User
Originally posted by: atoulme.intalio.com

Hi Andrea,

the BPMN modeler was not designed to be used within a RCP application.

I think you will need to dive into the code for the first exception, it
seems the core exception occurs in the GMF framework.

Regarding the second one, it occurs when the modeler tries to set up the
validation builder to display problem markers on the diagram. That can
be avoided by tweaking the code a bit.

Please feel free to open bugs and contribute patches :)

Thanks,

Antoine

Andrea Devecchi wrote:
> Hi everybody,
> I'm new to the eclipse platform and i'm trying to make an rcp bpmn
> editor with the Soa Tools Platform bpmn diagram editor.
> My problem is, when i use the file -> "open file.." action to open a
> "bpmn_diagram" file in the rcp workspace, the editor opens successfully
> but if i try to open it programmatically with:
>
> IFileStore store =
> EFS.getLocalFileSystem().getStore(file.getLocationURI());
> IWorkbenchPage page =
> PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActi vePage();
> IDE.openEditorOnFileStore(page, store);
>
> or even with:
>
> OpenLocalFileAction a = new OpenLocalFileAction();
> a.init(PlatformUI.getWorkbench().getActiveWorkbenchWindow()) ;
> a.run();
>
> and browsing the same file in the rcp workspace, the editor crashes with
> the following error in the log file:
>
> !ENTRY org.eclipse.ui 4 0 2008-04-15 12:33:05.784
> !MESSAGE Unable to create editor ID
> org.eclipse.stp.bpmn.diagram.part.BpmnDiagramEditorID:
> org.eclipse.core.runtime.CoreException: ERROR
> !STACK 1
> org.eclipse.core.runtime.CoreException: ERROR
> at
> org.eclipse.gmf.runtime.diagram.ui.resources.editor.parts.Di agramDocumentEditor.createPartControl(DiagramDocumentEditor. java:1458)
>
> at
> org.eclipse.ui.internal.EditorReference.createPartHelper(Edi torReference.java:661)
>
> at
> org.eclipse.ui.internal.EditorReference.createPart(EditorRef erence.java:426)
>
> at
> org.eclipse.ui.internal.WorkbenchPartReference.getPart(Workb enchPartReference.java:592)
>
> at
> org.eclipse.ui.internal.EditorReference.getEditor(EditorRefe rence.java:263)
> at
> org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched( WorkbenchPage.java:2739)
>
> at
> org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(Workben chPage.java:2651)
>
> at
> org.eclipse.ui.internal.WorkbenchPage.access$13(WorkbenchPag e.java:2643)
> at org.eclipse.ui.internal.WorkbenchPage$10.run(WorkbenchPage.j ava:2595)
> at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:67)
> at
> org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:2590)
> at
> org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:2574)
> at
> org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:2557)
> at org.eclipse.ui.ide.IDE.openEditorOnFileStore(IDE.java:1090)
> at
> org.eclipse.ui.internal.ide.actions.OpenLocalFileAction.run( OpenLocalFileAction.java:105)
>
> at kbel2.NavigationView.openBPMNdiagramOnTree(NavigationView.ja va:872)
> at kbel2.NavigationView$1.run(NavigationView.java:406)
> at org.eclipse.jface.action.Action.runWithEvent(Action.java:498 )
> at
> org.eclipse.jface.action.ActionContributionItem.handleWidget Selection(ActionContributionItem.java:546)
>
> at
> org.eclipse.jface.action.ActionContributionItem.access$2(Act ionContributionItem.java:490)
>
> at
> org.eclipse.jface.action.ActionContributionItem$6.handleEven t(ActionContributionItem.java:443)
>
> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1101)
> at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3319)
> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2971)
> at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:2389)
> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2353)
> at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:22 19)
> at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:466)
> at
> org.eclipse.core.databinding.observable.Realm.runWithDefault (Realm.java:289)
>
> at
> org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:461)
> at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
> at kbel2.Application.start(Application.java:20)
> at
> org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:169)
>
> at
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:106)
>
> at
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:76)
>
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:363)
>
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:176)
>
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
>
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
>
> at java.lang.reflect.Method.invoke(Method.java:597)
> at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java: 508)
> at org.eclipse.equinox.launcher.Main.basicRun(Main.java:447)
> at org.eclipse.equinox.launcher.Main.run(Main.java:1173)
> at org.eclipse.equinox.launcher.Main.main(Main.java:1148)
> !SUBENTRY 1 org.eclipse.gmf.runtime.diagram.ui.resources.editor 4 1
> 2008-04-15 12:33:05.784
> !MESSAGE ERROR
>
> The same error occurs when i try to open with the "open file.." action a
> bpmn_diagram file which is not in the workspace.
> Sometimes in the eclipse console appears also this error, even when i
> use the "open file..." action, but the editor opens anyway.
>
> org.eclipse.core.runtime.CoreException: Problems encountered while
> setting project description.
> at
> org.eclipse.core.internal.resources.Project.setDescription(P roject.java:983)
>
> at
> org.eclipse.core.internal.resources.Project.setDescription(P roject.java:1009)
>
> at
> org.eclipse.stp.bpmn.diagram.part.BpmnCreationWizardPage.set upBpmnValidationBuildableNature(BpmnCreationWizardPage.java: 140)
>
> at
> org.eclipse.stp.bpmn.diagram.part.BpmnDiagramEditor.setupBpm nValidationBuildAbleNature(BpmnDiagramEditor.java:85)
>
> at
> org.eclipse.stp.bpmn.diagram.part.BpmnDiagramEditor.setDocum entProvider(BpmnDiagramEditor.java:73)
>
> at
> org.eclipse.gmf.runtime.diagram.ui.resources.editor.parts.Di agramDocumentEditor.updateDocumentProvider(DiagramDocumentEd itor.java:359)
>
> at
> org.eclipse.gmf.runtime.diagram.ui.resources.editor.parts.Di agramDocumentEditor.doSetInput(DiagramDocumentEditor.java:41 4)
>
> at
> org.eclipse.gmf.runtime.diagram.ui.resources.editor.parts.Di agramDocumentEditor.setInput(DiagramDocumentEditor.java:389)
>
> at
> org.eclipse.gef.ui.parts.GraphicalEditor.init(GraphicalEdito r.java:318)
> at
> org.eclipse.gmf.runtime.diagram.ui.parts.DiagramEditor.init( DiagramEditor.java:641)
>
> at
> org.eclipse.gmf.runtime.diagram.ui.resources.editor.parts.Di agramDocumentEditor.init(DiagramDocumentEditor.java:116)
>
> at
> org.eclipse.ui.internal.EditorManager.createSite(EditorManag er.java:794)
> at
> org.eclipse.ui.internal.EditorReference.createPartHelper(Edi torReference.java:643)
>
> at
> org.eclipse.ui.internal.EditorReference.createPart(EditorRef erence.java:426)
>
> at
> org.eclipse.ui.internal.WorkbenchPartReference.getPart(Workb enchPartReference.java:592)
>
> at org.eclipse.ui.internal.PartPane.setVisible(PartPane.java:29 9)
> at
> org.eclipse.ui.internal.presentations.PresentablePart.setVis ible(PresentablePart.java:179)
>
> at
> org.eclipse.ui.internal.presentations.util.PresentablePartFo lder.select(PresentablePartFolder.java:268)
>
> at
> org.eclipse.ui.internal.presentations.util.LeftToRightTabOrd er.select(LeftToRightTabOrder.java:65)
>
> at
> org.eclipse.ui.internal.presentations.util.TabbedStackPresen tation.selectPart(TabbedStackPresentation.java:400)
>
> at
> org.eclipse.ui.internal.PartStack.refreshPresentationSelecti on(PartStack.java:1256)
>
> at org.eclipse.ui.internal.PartStack.setSelection(PartStack.jav a:1209)
> at org.eclipse.ui.internal.PartStack.showPart(PartStack.java:16 04)
> at org.eclipse.ui.internal.PartStack.add(PartStack.java:499)
> at org.eclipse.ui.internal.EditorStack.add(EditorStack.java:103 )
> at org.eclipse.ui.internal.PartStack.add(PartStack.java:485)
> at org.eclipse.ui.internal.EditorStack.add(EditorStack.java:112 )
> at
> org.eclipse.ui.internal.EditorSashContainer.addEditor(Editor SashContainer.java:63)
>
> at
> org.eclipse.ui.internal.EditorAreaHelper.addToLayout(EditorA reaHelper.java:217)
>
> at
> org.eclipse.ui.internal.EditorAreaHelper.addEditor(EditorAre aHelper.java:207)
>
> at
> org.eclipse.ui.internal.EditorManager.createEditorTab(Editor Manager.java:774)
>
> at
> org.eclipse.ui.internal.EditorManager.openEditorFromDescript or(EditorManager.java:673)
>
> at
> org.eclipse.ui.internal.EditorManager.openEditor(EditorManag er.java:634)
> at
> org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched( WorkbenchPage.java:2737)
>
> at
> org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(Workben chPage.java:2651)
>
> at
> org.eclipse.ui.internal.WorkbenchPage.access$13(WorkbenchPag e.java:2643)
> at org.eclipse.ui.internal.WorkbenchPage$10.run(WorkbenchPage.j ava:2595)
> at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:67)
> at
> org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:2590)
> at
> org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:2574)
> at
> org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:2557)
> at org.eclipse.ui.ide.IDE.openEditorOnFileStore(IDE.java:1090)
> at
> org.eclipse.ui.internal.ide.actions.OpenLocalFileAction.run( OpenLocalFileAction.java:105)
>
> at kbel2.NavigationView.openBPMNdiagramOnTree(NavigationView.ja va:872)
> at kbel2.NavigationView$1.run(NavigationView.java:406)
> at org.eclipse.jface.action.Action.runWithEvent(Action.java:498 )
> at
> org.eclipse.jface.action.ActionContributionItem.handleWidget Selection(ActionContributionItem.java:546)
>
> at
> org.eclipse.jface.action.ActionContributionItem.access$2(Act ionContributionItem.java:490)
>
> at
> org.eclipse.jface.action.ActionContributionItem$6.handleEven t(ActionContributionItem.java:443)
>
> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1101)
> at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3319)
> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2971)
> at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:2389)
> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2353)
> at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:22 19)
> at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:466)
> at
> org.eclipse.core.databinding.observable.Realm.runWithDefault (Realm.java:289)
>
> at
> org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:461)
> at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
> at kbel2.Application.start(Application.java:20)
> at
> org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:169)
>
> at
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:106)
>
> at
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:76)
>
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:363)
>
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:176)
>
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
>
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
>
> at java.lang.reflect.Method.invoke(Method.java:597)
> at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java: 508)
> at org.eclipse.equinox.launcher.Main.basicRun(Main.java:447)
> at org.eclipse.equinox.launcher.Main.run(Main.java:1173)
> at org.eclipse.equinox.launcher.Main.main(Main.java:1148)
>
> Thanks to all in advance.
>
> Andrea
Re: RCP with stp bpmn editor [message #614457 is a reply to message #374678] Fri, 25 April 2008 09:05 Go to previous messageGo to next message
Till Essers is currently offline Till Essers
Messages: 92
Registered: July 2009
Member
Hi Antoine,

I'm also trying to get the Editor running in an RCP application.
Can you give me a hind where to search for the Problem so I can provide
a patch?
Did Andrea open a bug?

Thanks in advance,
Till

Antoine Toulme schrieb:
> Hi Andrea,
>
> the BPMN modeler was not designed to be used within a RCP application.
>
> I think you will need to dive into the code for the first exception, it
> seems the core exception occurs in the GMF framework.
>
> Regarding the second one, it occurs when the modeler tries to set up the
> validation builder to display problem markers on the diagram. That can
> be avoided by tweaking the code a bit.
>
> Please feel free to open bugs and contribute patches :)
>
> Thanks,
>
> Antoine
>
> Andrea Devecchi wrote:
>> Hi everybody,
>> I'm new to the eclipse platform and i'm trying to make an rcp bpmn
>> editor with the Soa Tools Platform bpmn diagram editor.
>> My problem is, when i use the file -> "open file.." action to open a
>> "bpmn_diagram" file in the rcp workspace, the editor opens
>> successfully but if i try to open it programmatically with:
>>
>> IFileStore store =
>> EFS.getLocalFileSystem().getStore(file.getLocationURI());
>> IWorkbenchPage page =
>> PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActi vePage();
>> IDE.openEditorOnFileStore(page, store);
>>
>> or even with:
>>
>> OpenLocalFileAction a = new OpenLocalFileAction();
>> a.init(PlatformUI.getWorkbench().getActiveWorkbenchWindow()) ;
>> a.run();
>>
>> and browsing the same file in the rcp workspace, the editor crashes
>> with the following error in the log file:
>>
>> !ENTRY org.eclipse.ui 4 0 2008-04-15 12:33:05.784
>> !MESSAGE Unable to create editor ID
>> org.eclipse.stp.bpmn.diagram.part.BpmnDiagramEditorID:
>> org.eclipse.core.runtime.CoreException: ERROR
>> !STACK 1
>> org.eclipse.core.runtime.CoreException: ERROR
>> at
>> org.eclipse.gmf.runtime.diagram.ui.resources.editor.parts.Di agramDocumentEditor.createPartControl(DiagramDocumentEditor. java:1458)
>>
>> at
>> org.eclipse.ui.internal.EditorReference.createPartHelper(Edi torReference.java:661)
>>
>> at
>> org.eclipse.ui.internal.EditorReference.createPart(EditorRef erence.java:426)
>>
>> at
>> org.eclipse.ui.internal.WorkbenchPartReference.getPart(Workb enchPartReference.java:592)
>>
>> at
>> org.eclipse.ui.internal.EditorReference.getEditor(EditorRefe rence.java:263)
>>
>> at
>> org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched( WorkbenchPage.java:2739)
>>
>> at
>> org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(Workben chPage.java:2651)
>>
>> at
>> org.eclipse.ui.internal.WorkbenchPage.access$13(WorkbenchPag e.java:2643)
>> at
>> org.eclipse.ui.internal.WorkbenchPage$10.run(WorkbenchPage.j ava:2595)
>> at
>> org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:67)
>> at
>> org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:2590)
>> at
>> org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:2574)
>> at
>> org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:2557)
>> at org.eclipse.ui.ide.IDE.openEditorOnFileStore(IDE.java:1090)
>> at
>> org.eclipse.ui.internal.ide.actions.OpenLocalFileAction.run( OpenLocalFileAction.java:105)
>>
>> at kbel2.NavigationView.openBPMNdiagramOnTree(NavigationView.ja va:872)
>> at kbel2.NavigationView$1.run(NavigationView.java:406)
>> at org.eclipse.jface.action.Action.runWithEvent(Action.java:498 )
>> at
>> org.eclipse.jface.action.ActionContributionItem.handleWidget Selection(ActionContributionItem.java:546)
>>
>> at
>> org.eclipse.jface.action.ActionContributionItem.access$2(Act ionContributionItem.java:490)
>>
>> at
>> org.eclipse.jface.action.ActionContributionItem$6.handleEven t(ActionContributionItem.java:443)
>>
>> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
>> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1101)
>> at
>> org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3319)
>> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2971)
>> at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:2389)
>> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2353)
>> at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:22 19)
>> at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:466)
>> at
>> org.eclipse.core.databinding.observable.Realm.runWithDefault (Realm.java:289)
>>
>> at
>> org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:461)
>>
>> at
>> org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
>> at kbel2.Application.start(Application.java:20)
>> at
>> org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:169)
>>
>> at
>> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:106)
>>
>> at
>> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:76)
>>
>> at
>> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:363)
>>
>> at
>> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:176)
>>
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
>>
>> at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
>>
>> at java.lang.reflect.Method.invoke(Method.java:597)
>> at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java: 508)
>> at org.eclipse.equinox.launcher.Main.basicRun(Main.java:447)
>> at org.eclipse.equinox.launcher.Main.run(Main.java:1173)
>> at org.eclipse.equinox.launcher.Main.main(Main.java:1148)
>> !SUBENTRY 1 org.eclipse.gmf.runtime.diagram.ui.resources.editor 4 1
>> 2008-04-15 12:33:05.784
>> !MESSAGE ERROR
>>
>> The same error occurs when i try to open with the "open file.." action
>> a bpmn_diagram file which is not in the workspace.
>> Sometimes in the eclipse console appears also this error, even when i
>> use the "open file..." action, but the editor opens anyway.
>>
>> org.eclipse.core.runtime.CoreException: Problems encountered while
>> setting project description.
>> at
>> org.eclipse.core.internal.resources.Project.setDescription(P roject.java:983)
>>
>> at
>> org.eclipse.core.internal.resources.Project.setDescription(P roject.java:1009)
>>
>> at
>> org.eclipse.stp.bpmn.diagram.part.BpmnCreationWizardPage.set upBpmnValidationBuildableNature(BpmnCreationWizardPage.java: 140)
>>
>> at
>> org.eclipse.stp.bpmn.diagram.part.BpmnDiagramEditor.setupBpm nValidationBuildAbleNature(BpmnDiagramEditor.java:85)
>>
>> at
>> org.eclipse.stp.bpmn.diagram.part.BpmnDiagramEditor.setDocum entProvider(BpmnDiagramEditor.java:73)
>>
>> at
>> org.eclipse.gmf.runtime.diagram.ui.resources.editor.parts.Di agramDocumentEditor.updateDocumentProvider(DiagramDocumentEd itor.java:359)
>>
>> at
>> org.eclipse.gmf.runtime.diagram.ui.resources.editor.parts.Di agramDocumentEditor.doSetInput(DiagramDocumentEditor.java:41 4)
>>
>> at
>> org.eclipse.gmf.runtime.diagram.ui.resources.editor.parts.Di agramDocumentEditor.setInput(DiagramDocumentEditor.java:389)
>>
>> at
>> org.eclipse.gef.ui.parts.GraphicalEditor.init(GraphicalEdito r.java:318)
>> at
>> org.eclipse.gmf.runtime.diagram.ui.parts.DiagramEditor.init( DiagramEditor.java:641)
>>
>> at
>> org.eclipse.gmf.runtime.diagram.ui.resources.editor.parts.Di agramDocumentEditor.init(DiagramDocumentEditor.java:116)
>>
>> at
>> org.eclipse.ui.internal.EditorManager.createSite(EditorManag er.java:794)
>> at
>> org.eclipse.ui.internal.EditorReference.createPartHelper(Edi torReference.java:643)
>>
>> at
>> org.eclipse.ui.internal.EditorReference.createPart(EditorRef erence.java:426)
>>
>> at
>> org.eclipse.ui.internal.WorkbenchPartReference.getPart(Workb enchPartReference.java:592)
>>
>> at org.eclipse.ui.internal.PartPane.setVisible(PartPane.java:29 9)
>> at
>> org.eclipse.ui.internal.presentations.PresentablePart.setVis ible(PresentablePart.java:179)
>>
>> at
>> org.eclipse.ui.internal.presentations.util.PresentablePartFo lder.select(PresentablePartFolder.java:268)
>>
>> at
>> org.eclipse.ui.internal.presentations.util.LeftToRightTabOrd er.select(LeftToRightTabOrder.java:65)
>>
>> at
>> org.eclipse.ui.internal.presentations.util.TabbedStackPresen tation.selectPart(TabbedStackPresentation.java:400)
>>
>> at
>> org.eclipse.ui.internal.PartStack.refreshPresentationSelecti on(PartStack.java:1256)
>>
>> at org.eclipse.ui.internal.PartStack.setSelection(PartStack.jav a:1209)
>> at org.eclipse.ui.internal.PartStack.showPart(PartStack.java:16 04)
>> at org.eclipse.ui.internal.PartStack.add(PartStack.java:499)
>> at org.eclipse.ui.internal.EditorStack.add(EditorStack.java:103 )
>> at org.eclipse.ui.internal.PartStack.add(PartStack.java:485)
>> at org.eclipse.ui.internal.EditorStack.add(EditorStack.java:112 )
>> at
>> org.eclipse.ui.internal.EditorSashContainer.addEditor(Editor SashContainer.java:63)
>>
>> at
>> org.eclipse.ui.internal.EditorAreaHelper.addToLayout(EditorA reaHelper.java:217)
>>
>> at
>> org.eclipse.ui.internal.EditorAreaHelper.addEditor(EditorAre aHelper.java:207)
>>
>> at
>> org.eclipse.ui.internal.EditorManager.createEditorTab(Editor Manager.java:774)
>>
>> at
>> org.eclipse.ui.internal.EditorManager.openEditorFromDescript or(EditorManager.java:673)
>>
>> at
>> org.eclipse.ui.internal.EditorManager.openEditor(EditorManag er.java:634)
>> at
>> org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched( WorkbenchPage.java:2737)
>>
>> at
>> org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(Workben chPage.java:2651)
>>
>> at
>> org.eclipse.ui.internal.WorkbenchPage.access$13(WorkbenchPag e.java:2643)
>> at
>> org.eclipse.ui.internal.WorkbenchPage$10.run(WorkbenchPage.j ava:2595)
>> at
>> org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:67)
>> at
>> org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:2590)
>> at
>> org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:2574)
>> at
>> org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:2557)
>> at org.eclipse.ui.ide.IDE.openEditorOnFileStore(IDE.java:1090)
>> at
>> org.eclipse.ui.internal.ide.actions.OpenLocalFileAction.run( OpenLocalFileAction.java:105)
>>
>> at kbel2.NavigationView.openBPMNdiagramOnTree(NavigationView.ja va:872)
>> at kbel2.NavigationView$1.run(NavigationView.java:406)
>> at org.eclipse.jface.action.Action.runWithEvent(Action.java:498 )
>> at
>> org.eclipse.jface.action.ActionContributionItem.handleWidget Selection(ActionContributionItem.java:546)
>>
>> at
>> org.eclipse.jface.action.ActionContributionItem.access$2(Act ionContributionItem.java:490)
>>
>> at
>> org.eclipse.jface.action.ActionContributionItem$6.handleEven t(ActionContributionItem.java:443)
>>
>> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
>> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1101)
>> at
>> org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3319)
>> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2971)
>> at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:2389)
>> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2353)
>> at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:22 19)
>> at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:466)
>> at
>> org.eclipse.core.databinding.observable.Realm.runWithDefault (Realm.java:289)
>>
>> at
>> org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:461)
>>
>> at
>> org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
>> at kbel2.Application.start(Application.java:20)
>> at
>> org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:169)
>>
>> at
>> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:106)
>>
>> at
>> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:76)
>>
>> at
>> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:363)
>>
>> at
>> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:176)
>>
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
>>
>> at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
>>
>> at java.lang.reflect.Method.invoke(Method.java:597)
>> at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java: 508)
>> at org.eclipse.equinox.launcher.Main.basicRun(Main.java:447)
>> at org.eclipse.equinox.launcher.Main.run(Main.java:1173)
>> at org.eclipse.equinox.launcher.Main.main(Main.java:1148)
>>
>> Thanks to all in advance.
>>
>> Andrea
Re: RCP with stp bpmn editor [message #614459 is a reply to message #614457] Fri, 25 April 2008 09:30 Go to previous messageGo to next message
Eclipse User
Originally posted by: atoulme.intalio.com

AFAIK Andrea didn't open a bug.

Since we are not developing the modeler as a RCP product we have no
knowledge of this information.

For now supporting RCP is not a goal of the component, but if you can
provide a patch to make it happen, we will take it.

Thanks,

Antoine

Till Essers wrote:
> Hi Antoine,
>
> I'm also trying to get the Editor running in an RCP application.
> Can you give me a hind where to search for the Problem so I can provide
> a patch?
> Did Andrea open a bug?
>
> Thanks in advance,
> Till
>
> Antoine Toulme schrieb:
>> Hi Andrea,
>>
>> the BPMN modeler was not designed to be used within a RCP application.
>>
>> I think you will need to dive into the code for the first exception,
>> it seems the core exception occurs in the GMF framework.
>>
>> Regarding the second one, it occurs when the modeler tries to set up
>> the validation builder to display problem markers on the diagram. That
>> can be avoided by tweaking the code a bit.
>>
>> Please feel free to open bugs and contribute patches :)
>>
>> Thanks,
>>
>> Antoine
>>
>> Andrea Devecchi wrote:
>>> Hi everybody,
>>> I'm new to the eclipse platform and i'm trying to make an rcp bpmn
>>> editor with the Soa Tools Platform bpmn diagram editor.
>>> My problem is, when i use the file -> "open file.." action to open a
>>> "bpmn_diagram" file in the rcp workspace, the editor opens
>>> successfully but if i try to open it programmatically with:
>>>
>>> IFileStore store =
>>> EFS.getLocalFileSystem().getStore(file.getLocationURI());
>>> IWorkbenchPage page =
>>> PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActi vePage();
>>> IDE.openEditorOnFileStore(page, store);
>>>
>>> or even with:
>>>
>>> OpenLocalFileAction a = new OpenLocalFileAction();
>>> a.init(PlatformUI.getWorkbench().getActiveWorkbenchWindow()) ;
>>> a.run();
>>>
>>> and browsing the same file in the rcp workspace, the editor crashes
>>> with the following error in the log file:
>>>
>>> !ENTRY org.eclipse.ui 4 0 2008-04-15 12:33:05.784
>>> !MESSAGE Unable to create editor ID
>>> org.eclipse.stp.bpmn.diagram.part.BpmnDiagramEditorID:
>>> org.eclipse.core.runtime.CoreException: ERROR
>>> !STACK 1
>>> org.eclipse.core.runtime.CoreException: ERROR
>>> at
>>> org.eclipse.gmf.runtime.diagram.ui.resources.editor.parts.Di agramDocumentEditor.createPartControl(DiagramDocumentEditor. java:1458)
>>>
>>> at
>>> org.eclipse.ui.internal.EditorReference.createPartHelper(Edi torReference.java:661)
>>>
>>> at
>>> org.eclipse.ui.internal.EditorReference.createPart(EditorRef erence.java:426)
>>>
>>> at
>>> org.eclipse.ui.internal.WorkbenchPartReference.getPart(Workb enchPartReference.java:592)
>>>
>>> at
>>> org.eclipse.ui.internal.EditorReference.getEditor(EditorRefe rence.java:263)
>>>
>>> at
>>> org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched( WorkbenchPage.java:2739)
>>>
>>> at
>>> org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(Workben chPage.java:2651)
>>>
>>> at
>>> org.eclipse.ui.internal.WorkbenchPage.access$13(WorkbenchPag e.java:2643)
>>> at
>>> org.eclipse.ui.internal.WorkbenchPage$10.run(WorkbenchPage.j ava:2595)
>>> at
>>> org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:67)
>>> at
>>> org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:2590)
>>>
>>> at
>>> org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:2574)
>>>
>>> at
>>> org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:2557)
>>>
>>> at org.eclipse.ui.ide.IDE.openEditorOnFileStore(IDE.java:1090)
>>> at
>>> org.eclipse.ui.internal.ide.actions.OpenLocalFileAction.run( OpenLocalFileAction.java:105)
>>>
>>> at
>>> kbel2.NavigationView.openBPMNdiagramOnTree(NavigationView.ja va:872)
>>> at kbel2.NavigationView$1.run(NavigationView.java:406)
>>> at org.eclipse.jface.action.Action.runWithEvent(Action.java:498 )
>>> at
>>> org.eclipse.jface.action.ActionContributionItem.handleWidget Selection(ActionContributionItem.java:546)
>>>
>>> at
>>> org.eclipse.jface.action.ActionContributionItem.access$2(Act ionContributionItem.java:490)
>>>
>>> at
>>> org.eclipse.jface.action.ActionContributionItem$6.handleEven t(ActionContributionItem.java:443)
>>>
>>> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
>>> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1101)
>>> at
>>> org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3319)
>>> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2971)
>>> at
>>> org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:2389)
>>> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2353)
>>> at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:22 19)
>>> at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:466)
>>> at
>>> org.eclipse.core.databinding.observable.Realm.runWithDefault (Realm.java:289)
>>>
>>> at
>>> org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:461)
>>>
>>> at
>>> org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
>>> at kbel2.Application.start(Application.java:20)
>>> at
>>> org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:169)
>>>
>>> at
>>> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:106)
>>>
>>> at
>>> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:76)
>>>
>>> at
>>> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:363)
>>>
>>> at
>>> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:176)
>>>
>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>> at
>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
>>>
>>> at
>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
>>>
>>> at java.lang.reflect.Method.invoke(Method.java:597)
>>> at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java: 508)
>>> at org.eclipse.equinox.launcher.Main.basicRun(Main.java:447)
>>> at org.eclipse.equinox.launcher.Main.run(Main.java:1173)
>>> at org.eclipse.equinox.launcher.Main.main(Main.java:1148)
>>> !SUBENTRY 1 org.eclipse.gmf.runtime.diagram.ui.resources.editor 4 1
>>> 2008-04-15 12:33:05.784
>>> !MESSAGE ERROR
>>>
>>> The same error occurs when i try to open with the "open file.."
>>> action a bpmn_diagram file which is not in the workspace.
>>> Sometimes in the eclipse console appears also this error, even when i
>>> use the "open file..." action, but the editor opens anyway.
>>>
>>> org.eclipse.core.runtime.CoreException: Problems encountered while
>>> setting project description.
>>> at
>>> org.eclipse.core.internal.resources.Project.setDescription(P roject.java:983)
>>>
>>> at
>>> org.eclipse.core.internal.resources.Project.setDescription(P roject.java:1009)
>>>
>>> at
>>> org.eclipse.stp.bpmn.diagram.part.BpmnCreationWizardPage.set upBpmnValidationBuildableNature(BpmnCreationWizardPage.java: 140)
>>>
>>> at
>>> org.eclipse.stp.bpmn.diagram.part.BpmnDiagramEditor.setupBpm nValidationBuildAbleNature(BpmnDiagramEditor.java:85)
>>>
>>> at
>>> org.eclipse.stp.bpmn.diagram.part.BpmnDiagramEditor.setDocum entProvider(BpmnDiagramEditor.java:73)
>>>
>>> at
>>> org.eclipse.gmf.runtime.diagram.ui.resources.editor.parts.Di agramDocumentEditor.updateDocumentProvider(DiagramDocumentEd itor.java:359)
>>>
>>> at
>>> org.eclipse.gmf.runtime.diagram.ui.resources.editor.parts.Di agramDocumentEditor.doSetInput(DiagramDocumentEditor.java:41 4)
>>>
>>> at
>>> org.eclipse.gmf.runtime.diagram.ui.resources.editor.parts.Di agramDocumentEditor.setInput(DiagramDocumentEditor.java:389)
>>>
>>> at
>>> org.eclipse.gef.ui.parts.GraphicalEditor.init(GraphicalEdito r.java:318)
>>> at
>>> org.eclipse.gmf.runtime.diagram.ui.parts.DiagramEditor.init( DiagramEditor.java:641)
>>>
>>> at
>>> org.eclipse.gmf.runtime.diagram.ui.resources.editor.parts.Di agramDocumentEditor.init(DiagramDocumentEditor.java:116)
>>>
>>> at
>>> org.eclipse.ui.internal.EditorManager.createSite(EditorManag er.java:794)
>>> at
>>> org.eclipse.ui.internal.EditorReference.createPartHelper(Edi torReference.java:643)
>>>
>>> at
>>> org.eclipse.ui.internal.EditorReference.createPart(EditorRef erence.java:426)
>>>
>>> at
>>> org.eclipse.ui.internal.WorkbenchPartReference.getPart(Workb enchPartReference.java:592)
>>>
>>> at org.eclipse.ui.internal.PartPane.setVisible(PartPane.java:29 9)
>>> at
>>> org.eclipse.ui.internal.presentations.PresentablePart.setVis ible(PresentablePart.java:179)
>>>
>>> at
>>> org.eclipse.ui.internal.presentations.util.PresentablePartFo lder.select(PresentablePartFolder.java:268)
>>>
>>> at
>>> org.eclipse.ui.internal.presentations.util.LeftToRightTabOrd er.select(LeftToRightTabOrder.java:65)
>>>
>>> at
>>> org.eclipse.ui.internal.presentations.util.TabbedStackPresen tation.selectPart(TabbedStackPresentation.java:400)
>>>
>>> at
>>> org.eclipse.ui.internal.PartStack.refreshPresentationSelecti on(PartStack.java:1256)
>>>
>>> at
>>> org.eclipse.ui.internal.PartStack.setSelection(PartStack.jav a:1209)
>>> at org.eclipse.ui.internal.PartStack.showPart(PartStack.java:16 04)
>>> at org.eclipse.ui.internal.PartStack.add(PartStack.java:499)
>>> at org.eclipse.ui.internal.EditorStack.add(EditorStack.java:103 )
>>> at org.eclipse.ui.internal.PartStack.add(PartStack.java:485)
>>> at org.eclipse.ui.internal.EditorStack.add(EditorStack.java:112 )
>>> at
>>> org.eclipse.ui.internal.EditorSashContainer.addEditor(Editor SashContainer.java:63)
>>>
>>> at
>>> org.eclipse.ui.internal.EditorAreaHelper.addToLayout(EditorA reaHelper.java:217)
>>>
>>> at
>>> org.eclipse.ui.internal.EditorAreaHelper.addEditor(EditorAre aHelper.java:207)
>>>
>>> at
>>> org.eclipse.ui.internal.EditorManager.createEditorTab(Editor Manager.java:774)
>>>
>>> at
>>> org.eclipse.ui.internal.EditorManager.openEditorFromDescript or(EditorManager.java:673)
>>>
>>> at
>>> org.eclipse.ui.internal.EditorManager.openEditor(EditorManag er.java:634)
>>> at
>>> org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched( WorkbenchPage.java:2737)
>>>
>>> at
>>> org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(Workben chPage.java:2651)
>>>
>>> at
>>> org.eclipse.ui.internal.WorkbenchPage.access$13(WorkbenchPag e.java:2643)
>>> at
>>> org.eclipse.ui.internal.WorkbenchPage$10.run(WorkbenchPage.j ava:2595)
>>> at
>>> org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:67)
>>> at
>>> org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:2590)
>>>
>>> at
>>> org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:2574)
>>>
>>> at
>>> org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:2557)
>>>
>>> at org.eclipse.ui.ide.IDE.openEditorOnFileStore(IDE.java:1090)
>>> at
>>> org.eclipse.ui.internal.ide.actions.OpenLocalFileAction.run( OpenLocalFileAction.java:105)
>>>
>>> at
>>> kbel2.NavigationView.openBPMNdiagramOnTree(NavigationView.ja va:872)
>>> at kbel2.NavigationView$1.run(NavigationView.java:406)
>>> at org.eclipse.jface.action.Action.runWithEvent(Action.java:498 )
>>> at
>>> org.eclipse.jface.action.ActionContributionItem.handleWidget Selection(ActionContributionItem.java:546)
>>>
>>> at
>>> org.eclipse.jface.action.ActionContributionItem.access$2(Act ionContributionItem.java:490)
>>>
>>> at
>>> org.eclipse.jface.action.ActionContributionItem$6.handleEven t(ActionContributionItem.java:443)
>>>
>>> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
>>> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1101)
>>> at
>>> org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3319)
>>> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2971)
>>> at
>>> org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:2389)
>>> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2353)
>>> at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:22 19)
>>> at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:466)
>>> at
>>> org.eclipse.core.databinding.observable.Realm.runWithDefault (Realm.java:289)
>>>
>>> at
>>> org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:461)
>>>
>>> at
>>> org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
>>> at kbel2.Application.start(Application.java:20)
>>> at
>>> org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:169)
>>>
>>> at
>>> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:106)
>>>
>>> at
>>> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:76)
>>>
>>> at
>>> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:363)
>>>
>>> at
>>> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:176)
>>>
>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>> at
>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
>>>
>>> at
>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
>>>
>>> at java.lang.reflect.Method.invoke(Method.java:597)
>>> at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java: 508)
>>> at org.eclipse.equinox.launcher.Main.basicRun(Main.java:447)
>>> at org.eclipse.equinox.launcher.Main.run(Main.java:1173)
>>> at org.eclipse.equinox.launcher.Main.main(Main.java:1148)
>>>
>>> Thanks to all in advance.
>>>
>>> Andrea
Re: RCP with stp bpmn editor [message #614462 is a reply to message #614459] Fri, 25 April 2008 09:37 Go to previous messageGo to next message
Till Essers is currently offline Till Essers
Messages: 92
Registered: July 2009
Member
I'm confused. Intalio is selling the BPMS Designer, which is a RCP
application and is using the modeller. So there have to be a workaround,
right?

Antoine Toulme schrieb:
> AFAIK Andrea didn't open a bug.
>
> Since we are not developing the modeler as a RCP product we have no
> knowledge of this information.
>
> For now supporting RCP is not a goal of the component, but if you can
> provide a patch to make it happen, we will take it.
>
> Thanks,
>
> Antoine
>
> Till Essers wrote:
>> Hi Antoine,
>>
>> I'm also trying to get the Editor running in an RCP application.
>> Can you give me a hind where to search for the Problem so I can
>> provide a patch?
>> Did Andrea open a bug?
>>
>> Thanks in advance,
>> Till
>>
>> Antoine Toulme schrieb:
>>> Hi Andrea,
>>>
>>> the BPMN modeler was not designed to be used within a RCP application.
>>>
>>> I think you will need to dive into the code for the first exception,
>>> it seems the core exception occurs in the GMF framework.
>>>
>>> Regarding the second one, it occurs when the modeler tries to set up
>>> the validation builder to display problem markers on the diagram.
>>> That can be avoided by tweaking the code a bit.
>>>
>>> Please feel free to open bugs and contribute patches :)
>>>
>>> Thanks,
>>>
>>> Antoine
>>>
>>> Andrea Devecchi wrote:
>>>> Hi everybody,
>>>> I'm new to the eclipse platform and i'm trying to make an rcp bpmn
>>>> editor with the Soa Tools Platform bpmn diagram editor.
>>>> My problem is, when i use the file -> "open file.." action to open a
>>>> "bpmn_diagram" file in the rcp workspace, the editor opens
>>>> successfully but if i try to open it programmatically with:
>>>>
>>>> IFileStore store =
>>>> EFS.getLocalFileSystem().getStore(file.getLocationURI());
>>>> IWorkbenchPage page =
>>>> PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActi vePage();
>>>> IDE.openEditorOnFileStore(page, store);
>>>>
>>>> or even with:
>>>>
>>>> OpenLocalFileAction a = new OpenLocalFileAction();
>>>> a.init(PlatformUI.getWorkbench().getActiveWorkbenchWindow()) ;
>>>> a.run();
>>>>
>>>> and browsing the same file in the rcp workspace, the editor crashes
>>>> with the following error in the log file:
>>>>
>>>> !ENTRY org.eclipse.ui 4 0 2008-04-15 12:33:05.784
>>>> !MESSAGE Unable to create editor ID
>>>> org.eclipse.stp.bpmn.diagram.part.BpmnDiagramEditorID:
>>>> org.eclipse.core.runtime.CoreException: ERROR
>>>> !STACK 1
>>>> org.eclipse.core.runtime.CoreException: ERROR
>>>> at
>>>> org.eclipse.gmf.runtime.diagram.ui.resources.editor.parts.Di agramDocumentEditor.createPartControl(DiagramDocumentEditor. java:1458)
>>>>
>>>> at
>>>> org.eclipse.ui.internal.EditorReference.createPartHelper(Edi torReference.java:661)
>>>>
>>>> at
>>>> org.eclipse.ui.internal.EditorReference.createPart(EditorRef erence.java:426)
>>>>
>>>> at
>>>> org.eclipse.ui.internal.WorkbenchPartReference.getPart(Workb enchPartReference.java:592)
>>>>
>>>> at
>>>> org.eclipse.ui.internal.EditorReference.getEditor(EditorRefe rence.java:263)
>>>>
>>>> at
>>>> org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched( WorkbenchPage.java:2739)
>>>>
>>>> at
>>>> org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(Workben chPage.java:2651)
>>>>
>>>> at
>>>> org.eclipse.ui.internal.WorkbenchPage.access$13(WorkbenchPag e.java:2643)
>>>>
>>>> at
>>>> org.eclipse.ui.internal.WorkbenchPage$10.run(WorkbenchPage.j ava:2595)
>>>> at
>>>> org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:67)
>>>> at
>>>> org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:2590)
>>>>
>>>> at
>>>> org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:2574)
>>>>
>>>> at
>>>> org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:2557)
>>>>
>>>> at org.eclipse.ui.ide.IDE.openEditorOnFileStore(IDE.java:1090)
>>>> at
>>>> org.eclipse.ui.internal.ide.actions.OpenLocalFileAction.run( OpenLocalFileAction.java:105)
>>>>
>>>> at
>>>> kbel2.NavigationView.openBPMNdiagramOnTree(NavigationView.ja va:872)
>>>> at kbel2.NavigationView$1.run(NavigationView.java:406)
>>>> at org.eclipse.jface.action.Action.runWithEvent(Action.java:498 )
>>>> at
>>>> org.eclipse.jface.action.ActionContributionItem.handleWidget Selection(ActionContributionItem.java:546)
>>>>
>>>> at
>>>> org.eclipse.jface.action.ActionContributionItem.access$2(Act ionContributionItem.java:490)
>>>>
>>>> at
>>>> org.eclipse.jface.action.ActionContributionItem$6.handleEven t(ActionContributionItem.java:443)
>>>>
>>>> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
>>>> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1101)
>>>> at
>>>> org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3319)
>>>> at
>>>> org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2971)
>>>> at
>>>> org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:2389)
>>>> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2353)
>>>> at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:22 19)
>>>> at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:466)
>>>> at
>>>> org.eclipse.core.databinding.observable.Realm.runWithDefault (Realm.java:289)
>>>>
>>>> at
>>>> org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:461)
>>>>
>>>> at
>>>> org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
>>>> at kbel2.Application.start(Application.java:20)
>>>> at
>>>> org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:169)
>>>>
>>>> at
>>>> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:106)
>>>>
>>>> at
>>>> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:76)
>>>>
>>>> at
>>>> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:363)
>>>>
>>>> at
>>>> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:176)
>>>>
>>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>> at
>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
>>>>
>>>> at
>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
>>>>
>>>> at java.lang.reflect.Method.invoke(Method.java:597)
>>>> at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java: 508)
>>>> at org.eclipse.equinox.launcher.Main.basicRun(Main.java:447)
>>>> at org.eclipse.equinox.launcher.Main.run(Main.java:1173)
>>>> at org.eclipse.equinox.launcher.Main.main(Main.java:1148)
>>>> !SUBENTRY 1 org.eclipse.gmf.runtime.diagram.ui.resources.editor 4 1
>>>> 2008-04-15 12:33:05.784
>>>> !MESSAGE ERROR
>>>>
>>>> The same error occurs when i try to open with the "open file.."
>>>> action a bpmn_diagram file which is not in the workspace.
>>>> Sometimes in the eclipse console appears also this error, even when
>>>> i use the "open file..." action, but the editor opens anyway.
>>>>
>>>> org.eclipse.core.runtime.CoreException: Problems encountered while
>>>> setting project description.
>>>> at
>>>> org.eclipse.core.internal.resources.Project.setDescription(P roject.java:983)
>>>>
>>>> at
>>>> org.eclipse.core.internal.resources.Project.setDescription(P roject.java:1009)
>>>>
>>>> at
>>>> org.eclipse.stp.bpmn.diagram.part.BpmnCreationWizardPage.set upBpmnValidationBuildableNature(BpmnCreationWizardPage.java: 140)
>>>>
>>>> at
>>>> org.eclipse.stp.bpmn.diagram.part.BpmnDiagramEditor.setupBpm nValidationBuildAbleNature(BpmnDiagramEditor.java:85)
>>>>
>>>> at
>>>> org.eclipse.stp.bpmn.diagram.part.BpmnDiagramEditor.setDocum entProvider(BpmnDiagramEditor.java:73)
>>>>
>>>> at
>>>> org.eclipse.gmf.runtime.diagram.ui.resources.editor.parts.Di agramDocumentEditor.updateDocumentProvider(DiagramDocumentEd itor.java:359)
>>>>
>>>> at
>>>> org.eclipse.gmf.runtime.diagram.ui.resources.editor.parts.Di agramDocumentEditor.doSetInput(DiagramDocumentEditor.java:41 4)
>>>>
>>>> at
>>>> org.eclipse.gmf.runtime.diagram.ui.resources.editor.parts.Di agramDocumentEditor.setInput(DiagramDocumentEditor.java:389)
>>>>
>>>> at
>>>> org.eclipse.gef.ui.parts.GraphicalEditor.init(GraphicalEdito r.java:318)
>>>> at
>>>> org.eclipse.gmf.runtime.diagram.ui.parts.DiagramEditor.init( DiagramEditor.java:641)
>>>>
>>>> at
>>>> org.eclipse.gmf.runtime.diagram.ui.resources.editor.parts.Di agramDocumentEditor.init(DiagramDocumentEditor.java:116)
>>>>
>>>> at
>>>> org.eclipse.ui.internal.EditorManager.createSite(EditorManag er.java:794)
>>>>
>>>> at
>>>> org.eclipse.ui.internal.EditorReference.createPartHelper(Edi torReference.java:643)
>>>>
>>>> at
>>>> org.eclipse.ui.internal.EditorReference.createPart(EditorRef erence.java:426)
>>>>
>>>> at
>>>> org.eclipse.ui.internal.WorkbenchPartReference.getPart(Workb enchPartReference.java:592)
>>>>
>>>> at org.eclipse.ui.internal.PartPane.setVisible(PartPane.java:29 9)
>>>> at
>>>> org.eclipse.ui.internal.presentations.PresentablePart.setVis ible(PresentablePart.java:179)
>>>>
>>>> at
>>>> org.eclipse.ui.internal.presentations.util.PresentablePartFo lder.select(PresentablePartFolder.java:268)
>>>>
>>>> at
>>>> org.eclipse.ui.internal.presentations.util.LeftToRightTabOrd er.select(LeftToRightTabOrder.java:65)
>>>>
>>>> at
>>>> org.eclipse.ui.internal.presentations.util.TabbedStackPresen tation.selectPart(TabbedStackPresentation.java:400)
>>>>
>>>> at
>>>> org.eclipse.ui.internal.PartStack.refreshPresentationSelecti on(PartStack.java:1256)
>>>>
>>>> at
>>>> org.eclipse.ui.internal.PartStack.setSelection(PartStack.jav a:1209)
>>>> at org.eclipse.ui.internal.PartStack.showPart(PartStack.java:16 04)
>>>> at org.eclipse.ui.internal.PartStack.add(PartStack.java:499)
>>>> at org.eclipse.ui.internal.EditorStack.add(EditorStack.java:103 )
>>>> at org.eclipse.ui.internal.PartStack.add(PartStack.java:485)
>>>> at org.eclipse.ui.internal.EditorStack.add(EditorStack.java:112 )
>>>> at
>>>> org.eclipse.ui.internal.EditorSashContainer.addEditor(Editor SashContainer.java:63)
>>>>
>>>> at
>>>> org.eclipse.ui.internal.EditorAreaHelper.addToLayout(EditorA reaHelper.java:217)
>>>>
>>>> at
>>>> org.eclipse.ui.internal.EditorAreaHelper.addEditor(EditorAre aHelper.java:207)
>>>>
>>>> at
>>>> org.eclipse.ui.internal.EditorManager.createEditorTab(Editor Manager.java:774)
>>>>
>>>> at
>>>> org.eclipse.ui.internal.EditorManager.openEditorFromDescript or(EditorManager.java:673)
>>>>
>>>> at
>>>> org.eclipse.ui.internal.EditorManager.openEditor(EditorManag er.java:634)
>>>>
>>>> at
>>>> org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched( WorkbenchPage.java:2737)
>>>>
>>>> at
>>>> org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(Workben chPage.java:2651)
>>>>
>>>> at
>>>> org.eclipse.ui.internal.WorkbenchPage.access$13(WorkbenchPag e.java:2643)
>>>>
>>>> at
>>>> org.eclipse.ui.internal.WorkbenchPage$10.run(WorkbenchPage.j ava:2595)
>>>> at
>>>> org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:67)
>>>> at
>>>> org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:2590)
>>>>
>>>> at
>>>> org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:2574)
>>>>
>>>> at
>>>> org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:2557)
>>>>
>>>> at org.eclipse.ui.ide.IDE.openEditorOnFileStore(IDE.java:1090)
>>>> at
>>>> org.eclipse.ui.internal.ide.actions.OpenLocalFileAction.run( OpenLocalFileAction.java:105)
>>>>
>>>> at
>>>> kbel2.NavigationView.openBPMNdiagramOnTree(NavigationView.ja va:872)
>>>> at kbel2.NavigationView$1.run(NavigationView.java:406)
>>>> at org.eclipse.jface.action.Action.runWithEvent(Action.java:498 )
>>>> at
>>>> org.eclipse.jface.action.ActionContributionItem.handleWidget Selection(ActionContributionItem.java:546)
>>>>
>>>> at
>>>> org.eclipse.jface.action.ActionContributionItem.access$2(Act ionContributionItem.java:490)
>>>>
>>>> at
>>>> org.eclipse.jface.action.ActionContributionItem$6.handleEven t(ActionContributionItem.java:443)
>>>>
>>>> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
>>>> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1101)
>>>> at
>>>> org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3319)
>>>> at
>>>> org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2971)
>>>> at
>>>> org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:2389)
>>>> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2353)
>>>> at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:22 19)
>>>> at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:466)
>>>> at
>>>> org.eclipse.core.databinding.observable.Realm.runWithDefault (Realm.java:289)
>>>>
>>>> at
>>>> org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:461)
>>>>
>>>> at
>>>> org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
>>>> at kbel2.Application.start(Application.java:20)
>>>> at
>>>> org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:169)
>>>>
>>>> at
>>>> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:106)
>>>>
>>>> at
>>>> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:76)
>>>>
>>>> at
>>>> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:363)
>>>>
>>>> at
>>>> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:176)
>>>>
>>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>> at
>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
>>>>
>>>> at
>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
>>>>
>>>> at java.lang.reflect.Method.invoke(Method.java:597)
>>>> at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java: 508)
>>>> at org.eclipse.equinox.launcher.Main.basicRun(Main.java:447)
>>>> at org.eclipse.equinox.launcher.Main.run(Main.java:1173)
>>>> at org.eclipse.equinox.launcher.Main.main(Main.java:1148)
>>>>
>>>> Thanks to all in advance.
>>>>
>>>> Andrea
Re: RCP with stp bpmn editor [message #614464 is a reply to message #614462] Fri, 25 April 2008 09:43 Go to previous messageGo to next message
Eclipse User
Originally posted by: atoulme.intalio.com

Till,


Intalio distributes its product as an Eclipse based product using the
Eclipse platform project. So we are reusing the workspace, having the
ability to call builders, markers, etc.

Thanks,

Antoine

Till Essers wrote:
> I'm confused. Intalio is selling the BPMS Designer, which is a RCP
> application and is using the modeller. So there have to be a workaround,
> right?
>
> Antoine Toulme schrieb:
>> AFAIK Andrea didn't open a bug.
>>
>> Since we are not developing the modeler as a RCP product we have no
>> knowledge of this information.
>>
>> For now supporting RCP is not a goal of the component, but if you can
>> provide a patch to make it happen, we will take it.
>>
>> Thanks,
>>
>> Antoine
>>
>> Till Essers wrote:
>>> Hi Antoine,
>>>
>>> I'm also trying to get the Editor running in an RCP application.
>>> Can you give me a hind where to search for the Problem so I can
>>> provide a patch?
>>> Did Andrea open a bug?
>>>
>>> Thanks in advance,
>>> Till
>>>
>>> Antoine Toulme schrieb:
>>>> Hi Andrea,
>>>>
>>>> the BPMN modeler was not designed to be used within a RCP application.
>>>>
>>>> I think you will need to dive into the code for the first exception,
>>>> it seems the core exception occurs in the GMF framework.
>>>>
>>>> Regarding the second one, it occurs when the modeler tries to set up
>>>> the validation builder to display problem markers on the diagram.
>>>> That can be avoided by tweaking the code a bit.
>>>>
>>>> Please feel free to open bugs and contribute patches :)
>>>>
>>>> Thanks,
>>>>
>>>> Antoine
>>>>
>>>> Andrea Devecchi wrote:
>>>>> Hi everybody,
>>>>> I'm new to the eclipse platform and i'm trying to make an rcp bpmn
>>>>> editor with the Soa Tools Platform bpmn diagram editor.
>>>>> My problem is, when i use the file -> "open file.." action to open
>>>>> a "bpmn_diagram" file in the rcp workspace, the editor opens
>>>>> successfully but if i try to open it programmatically with:
>>>>>
>>>>> IFileStore store =
>>>>> EFS.getLocalFileSystem().getStore(file.getLocationURI());
>>>>> IWorkbenchPage page =
>>>>> PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActi vePage();
>>>>> IDE.openEditorOnFileStore(page, store);
>>>>>
>>>>> or even with:
>>>>>
>>>>> OpenLocalFileAction a = new OpenLocalFileAction();
>>>>> a.init(PlatformUI.getWorkbench().getActiveWorkbenchWindow()) ;
>>>>> a.run();
>>>>>
>>>>> and browsing the same file in the rcp workspace, the editor crashes
>>>>> with the following error in the log file:
>>>>>
>>>>> !ENTRY org.eclipse.ui 4 0 2008-04-15 12:33:05.784
>>>>> !MESSAGE Unable to create editor ID
>>>>> org.eclipse.stp.bpmn.diagram.part.BpmnDiagramEditorID:
>>>>> org.eclipse.core.runtime.CoreException: ERROR
>>>>> !STACK 1
>>>>> org.eclipse.core.runtime.CoreException: ERROR
>>>>> at
>>>>> org.eclipse.gmf.runtime.diagram.ui.resources.editor.parts.Di agramDocumentEditor.createPartControl(DiagramDocumentEditor. java:1458)
>>>>>
>>>>> at
>>>>> org.eclipse.ui.internal.EditorReference.createPartHelper(Edi torReference.java:661)
>>>>>
>>>>> at
>>>>> org.eclipse.ui.internal.EditorReference.createPart(EditorRef erence.java:426)
>>>>>
>>>>> at
>>>>> org.eclipse.ui.internal.WorkbenchPartReference.getPart(Workb enchPartReference.java:592)
>>>>>
>>>>> at
>>>>> org.eclipse.ui.internal.EditorReference.getEditor(EditorRefe rence.java:263)
>>>>>
>>>>> at
>>>>> org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched( WorkbenchPage.java:2739)
>>>>>
>>>>> at
>>>>> org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(Workben chPage.java:2651)
>>>>>
>>>>> at
>>>>> org.eclipse.ui.internal.WorkbenchPage.access$13(WorkbenchPag e.java:2643)
>>>>>
>>>>> at
>>>>> org.eclipse.ui.internal.WorkbenchPage$10.run(WorkbenchPage.j ava:2595)
>>>>> at
>>>>> org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:67)
>>>>> at
>>>>> org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:2590)
>>>>>
>>>>> at
>>>>> org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:2574)
>>>>>
>>>>> at
>>>>> org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:2557)
>>>>>
>>>>> at org.eclipse.ui.ide.IDE.openEditorOnFileStore(IDE.java:1090)
>>>>> at
>>>>> org.eclipse.ui.internal.ide.actions.OpenLocalFileAction.run( OpenLocalFileAction.java:105)
>>>>>
>>>>> at
>>>>> kbel2.NavigationView.openBPMNdiagramOnTree(NavigationView.ja va:872)
>>>>> at kbel2.NavigationView$1.run(NavigationView.java:406)
>>>>> at org.eclipse.jface.action.Action.runWithEvent(Action.java:498 )
>>>>> at
>>>>> org.eclipse.jface.action.ActionContributionItem.handleWidget Selection(ActionContributionItem.java:546)
>>>>>
>>>>> at
>>>>> org.eclipse.jface.action.ActionContributionItem.access$2(Act ionContributionItem.java:490)
>>>>>
>>>>> at
>>>>> org.eclipse.jface.action.ActionContributionItem$6.handleEven t(ActionContributionItem.java:443)
>>>>>
>>>>> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
>>>>> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1101)
>>>>> at
>>>>> org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3319)
>>>>> at
>>>>> org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2971)
>>>>> at
>>>>> org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:2389)
>>>>> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2353)
>>>>> at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:22 19)
>>>>> at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:466)
>>>>> at
>>>>> org.eclipse.core.databinding.observable.Realm.runWithDefault (Realm.java:289)
>>>>>
>>>>> at
>>>>> org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:461)
>>>>>
>>>>> at
>>>>> org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
>>>>> at kbel2.Application.start(Application.java:20)
>>>>> at
>>>>> org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:169)
>>>>>
>>>>> at
>>>>> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:106)
>>>>>
>>>>> at
>>>>> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:76)
>>>>>
>>>>> at
>>>>> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:363)
>>>>>
>>>>> at
>>>>> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:176)
>>>>>
>>>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>> at
>>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
>>>>>
>>>>> at
>>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
>>>>>
>>>>> at java.lang.reflect.Method.invoke(Method.java:597)
>>>>> at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java: 508)
>>>>> at org.eclipse.equinox.launcher.Main.basicRun(Main.java:447)
>>>>> at org.eclipse.equinox.launcher.Main.run(Main.java:1173)
>>>>> at org.eclipse.equinox.launcher.Main.main(Main.java:1148)
>>>>> !SUBENTRY 1 org.eclipse.gmf.runtime.diagram.ui.resources.editor 4 1
>>>>> 2008-04-15 12:33:05.784
>>>>> !MESSAGE ERROR
>>>>>
>>>>> The same error occurs when i try to open with the "open file.."
>>>>> action a bpmn_diagram file which is not in the workspace.
>>>>> Sometimes in the eclipse console appears also this error, even when
>>>>> i use the "open file..." action, but the editor opens anyway.
>>>>>
>>>>> org.eclipse.core.runtime.CoreException: Problems encountered while
>>>>> setting project description.
>>>>> at
>>>>> org.eclipse.core.internal.resources.Project.setDescription(P roject.java:983)
>>>>>
>>>>> at
>>>>> org.eclipse.core.internal.resources.Project.setDescription(P roject.java:1009)
>>>>>
>>>>> at
>>>>> org.eclipse.stp.bpmn.diagram.part.BpmnCreationWizardPage.set upBpmnValidationBuildableNature(BpmnCreationWizardPage.java: 140)
>>>>>
>>>>> at
>>>>> org.eclipse.stp.bpmn.diagram.part.BpmnDiagramEditor.setupBpm nValidationBuildAbleNature(BpmnDiagramEditor.java:85)
>>>>>
>>>>> at
>>>>> org.eclipse.stp.bpmn.diagram.part.BpmnDiagramEditor.setDocum entProvider(BpmnDiagramEditor.java:73)
>>>>>
>>>>> at
>>>>> org.eclipse.gmf.runtime.diagram.ui.resources.editor.parts.Di agramDocumentEditor.updateDocumentProvider(DiagramDocumentEd itor.java:359)
>>>>>
>>>>> at
>>>>> org.eclipse.gmf.runtime.diagram.ui.resources.editor.parts.Di agramDocumentEditor.doSetInput(DiagramDocumentEditor.java:41 4)
>>>>>
>>>>> at
>>>>> org.eclipse.gmf.runtime.diagram.ui.resources.editor.parts.Di agramDocumentEditor.setInput(DiagramDocumentEditor.java:389)
>>>>>
>>>>> at
>>>>> org.eclipse.gef.ui.parts.GraphicalEditor.init(GraphicalEdito r.java:318)
>>>>>
>>>>> at
>>>>> org.eclipse.gmf.runtime.diagram.ui.parts.DiagramEditor.init( DiagramEditor.java:641)
>>>>>
>>>>> at
>>>>> org.eclipse.gmf.runtime.diagram.ui.resources.editor.parts.Di agramDocumentEditor.init(DiagramDocumentEditor.java:116)
>>>>>
>>>>> at
>>>>> org.eclipse.ui.internal.EditorManager.createSite(EditorManag er.java:794)
>>>>>
>>>>> at
>>>>> org.eclipse.ui.internal.EditorReference.createPartHelper(Edi torReference.java:643)
>>>>>
>>>>> at
>>>>> org.eclipse.ui.internal.EditorReference.createPart(EditorRef erence.java:426)
>>>>>
>>>>> at
>>>>> org.eclipse.ui.internal.WorkbenchPartReference.getPart(Workb enchPartReference.java:592)
>>>>>
>>>>> at org.eclipse.ui.internal.PartPane.setVisible(PartPane.java:29 9)
>>>>> at
>>>>> org.eclipse.ui.internal.presentations.PresentablePart.setVis ible(PresentablePart.java:179)
>>>>>
>>>>> at
>>>>> org.eclipse.ui.internal.presentations.util.PresentablePartFo lder.select(PresentablePartFolder.java:268)
>>>>>
>>>>> at
>>>>> org.eclipse.ui.internal.presentations.util.LeftToRightTabOrd er.select(LeftToRightTabOrder.java:65)
>>>>>
>>>>> at
>>>>> org.eclipse.ui.internal.presentations.util.TabbedStackPresen tation.selectPart(TabbedStackPresentation.java:400)
>>>>>
>>>>> at
>>>>> org.eclipse.ui.internal.PartStack.refreshPresentationSelecti on(PartStack.java:1256)
>>>>>
>>>>> at
>>>>> org.eclipse.ui.internal.PartStack.setSelection(PartStack.jav a:1209)
>>>>> at org.eclipse.ui.internal.PartStack.showPart(PartStack.java:16 04)
>>>>> at org.eclipse.ui.internal.PartStack.add(PartStack.java:499)
>>>>> at org.eclipse.ui.internal.EditorStack.add(EditorStack.java:103 )
>>>>> at org.eclipse.ui.internal.PartStack.add(PartStack.java:485)
>>>>> at org.eclipse.ui.internal.EditorStack.add(EditorStack.java:112 )
>>>>> at
>>>>> org.eclipse.ui.internal.EditorSashContainer.addEditor(Editor SashContainer.java:63)
>>>>>
>>>>> at
>>>>> org.eclipse.ui.internal.EditorAreaHelper.addToLayout(EditorA reaHelper.java:217)
>>>>>
>>>>> at
>>>>> org.eclipse.ui.internal.EditorAreaHelper.addEditor(EditorAre aHelper.java:207)
>>>>>
>>>>> at
>>>>> org.eclipse.ui.internal.EditorManager.createEditorTab(Editor Manager.java:774)
>>>>>
>>>>> at
>>>>> org.eclipse.ui.internal.EditorManager.openEditorFromDescript or(EditorManager.java:673)
>>>>>
>>>>> at
>>>>> org.eclipse.ui.internal.EditorManager.openEditor(EditorManag er.java:634)
>>>>>
>>>>> at
>>>>> org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched( WorkbenchPage.java:2737)
>>>>>
>>>>> at
>>>>> org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(Workben chPage.java:2651)
>>>>>
>>>>> at
>>>>> org.eclipse.ui.internal.WorkbenchPage.access$13(WorkbenchPag e.java:2643)
>>>>>
>>>>> at
>>>>> org.eclipse.ui.internal.WorkbenchPage$10.run(WorkbenchPage.j ava:2595)
>>>>> at
>>>>> org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:67)
>>>>> at
>>>>> org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:2590)
>>>>>
>>>>> at
>>>>> org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:2574)
>>>>>
>>>>> at
>>>>> org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:2557)
>>>>>
>>>>> at org.eclipse.ui.ide.IDE.openEditorOnFileStore(IDE.java:1090)
>>>>> at
>>>>> org.eclipse.ui.internal.ide.actions.OpenLocalFileAction.run( OpenLocalFileAction.java:105)
>>>>>
>>>>> at
>>>>> kbel2.NavigationView.openBPMNdiagramOnTree(NavigationView.ja va:872)
>>>>> at kbel2.NavigationView$1.run(NavigationView.java:406)
>>>>> at org.eclipse.jface.action.Action.runWithEvent(Action.java:498 )
>>>>> at
>>>>> org.eclipse.jface.action.ActionContributionItem.handleWidget Selection(ActionContributionItem.java:546)
>>>>>
>>>>> at
>>>>> org.eclipse.jface.action.ActionContributionItem.access$2(Act ionContributionItem.java:490)
>>>>>
>>>>> at
>>>>> org.eclipse.jface.action.ActionContributionItem$6.handleEven t(ActionContributionItem.java:443)
>>>>>
>>>>> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
>>>>> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1101)
>>>>> at
>>>>> org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3319)
>>>>> at
>>>>> org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2971)
>>>>> at
>>>>> org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:2389)
>>>>> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2353)
>>>>> at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:22 19)
>>>>> at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:466)
>>>>> at
>>>>> org.eclipse.core.databinding.observable.Realm.runWithDefault (Realm.java:289)
>>>>>
>>>>> at
>>>>> org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:461)
>>>>>
>>>>> at
>>>>> org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
>>>>> at kbel2.Application.start(Application.java:20)
>>>>> at
>>>>> org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:169)
>>>>>
>>>>> at
>>>>> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:106)
>>>>>
>>>>> at
>>>>> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:76)
>>>>>
>>>>> at
>>>>> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:363)
>>>>>
>>>>> at
>>>>> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:176)
>>>>>
>>>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>> at
>>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
>>>>>
>>>>> at
>>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
>>>>>
>>>>> at java.lang.reflect.Method.invoke(Method.java:597)
>>>>> at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java: 508)
>>>>> at org.eclipse.equinox.launcher.Main.basicRun(Main.java:447)
>>>>> at org.eclipse.equinox.launcher.Main.run(Main.java:1173)
>>>>> at org.eclipse.equinox.launcher.Main.main(Main.java:1148)
>>>>>
>>>>> Thanks to all in advance.
>>>>>
>>>>> Andrea
Re: RCP with stp bpmn editor [message #614466 is a reply to message #614457] Fri, 25 April 2008 17:53 Go to previous messageGo to next message
Till Essers is currently offline Till Essers
Messages: 92
Registered: July 2009
Member
Hi

I managed to open the modeller after I added a project to the workspace.
Now I can receive an IFile to pass it to the editor. Now it works.

Not what I would like to have, but I'll try to figure out more.
So you can say it works in a RCP application :)

Will keep you updated.

best regards
Till

Till Essers schrieb:
> Hi Antoine,
>
> I'm also trying to get the Editor running in an RCP application.
> Can you give me a hind where to search for the Problem so I can provide
> a patch?
> Did Andrea open a bug?
>
> Thanks in advance,
> Till
>
> Antoine Toulme schrieb:
>> Hi Andrea,
>>
>> the BPMN modeler was not designed to be used within a RCP application.
>>
>> I think you will need to dive into the code for the first exception,
>> it seems the core exception occurs in the GMF framework.
>>
>> Regarding the second one, it occurs when the modeler tries to set up
>> the validation builder to display problem markers on the diagram. That
>> can be avoided by tweaking the code a bit.
>>
>> Please feel free to open bugs and contribute patches :)
>>
>> Thanks,
>>
>> Antoine
>>
>> Andrea Devecchi wrote:
>>> Hi everybody,
>>> I'm new to the eclipse platform and i'm trying to make an rcp bpmn
>>> editor with the Soa Tools Platform bpmn diagram editor.
>>> My problem is, when i use the file -> "open file.." action to open a
>>> "bpmn_diagram" file in the rcp workspace, the editor opens
>>> successfully but if i try to open it programmatically with:
>>>
>>> IFileStore store =
>>> EFS.getLocalFileSystem().getStore(file.getLocationURI());
>>> IWorkbenchPage page =
>>> PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActi vePage();
>>> IDE.openEditorOnFileStore(page, store);
>>>
>>> or even with:
>>>
>>> OpenLocalFileAction a = new OpenLocalFileAction();
>>> a.init(PlatformUI.getWorkbench().getActiveWorkbenchWindow()) ;
>>> a.run();
>>>
>>> and browsing the same file in the rcp workspace, the editor crashes
>>> with the following error in the log file:
>>>
>>> !ENTRY org.eclipse.ui 4 0 2008-04-15 12:33:05.784
>>> !MESSAGE Unable to create editor ID
>>> org.eclipse.stp.bpmn.diagram.part.BpmnDiagramEditorID:
>>> org.eclipse.core.runtime.CoreException: ERROR
>>> !STACK 1
>>> org.eclipse.core.runtime.CoreException: ERROR
>>> at
>>> org.eclipse.gmf.runtime.diagram.ui.resources.editor.parts.Di agramDocumentEditor.createPartControl(DiagramDocumentEditor. java:1458)
>>>
>>> at
>>> org.eclipse.ui.internal.EditorReference.createPartHelper(Edi torReference.java:661)
>>>
>>> at
>>> org.eclipse.ui.internal.EditorReference.createPart(EditorRef erence.java:426)
>>>
>>> at
>>> org.eclipse.ui.internal.WorkbenchPartReference.getPart(Workb enchPartReference.java:592)
>>>
>>> at
>>> org.eclipse.ui.internal.EditorReference.getEditor(EditorRefe rence.java:263)
>>>
>>> at
>>> org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched( WorkbenchPage.java:2739)
>>>
>>> at
>>> org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(Workben chPage.java:2651)
>>>
>>> at
>>> org.eclipse.ui.internal.WorkbenchPage.access$13(WorkbenchPag e.java:2643)
>>> at
>>> org.eclipse.ui.internal.WorkbenchPage$10.run(WorkbenchPage.j ava:2595)
>>> at
>>> org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:67)
>>> at
>>> org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:2590)
>>>
>>> at
>>> org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:2574)
>>>
>>> at
>>> org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:2557)
>>>
>>> at org.eclipse.ui.ide.IDE.openEditorOnFileStore(IDE.java:1090)
>>> at
>>> org.eclipse.ui.internal.ide.actions.OpenLocalFileAction.run( OpenLocalFileAction.java:105)
>>>
>>> at
>>> kbel2.NavigationView.openBPMNdiagramOnTree(NavigationView.ja va:872)
>>> at kbel2.NavigationView$1.run(NavigationView.java:406)
>>> at org.eclipse.jface.action.Action.runWithEvent(Action.java:498 )
>>> at
>>> org.eclipse.jface.action.ActionContributionItem.handleWidget Selection(ActionContributionItem.java:546)
>>>
>>> at
>>> org.eclipse.jface.action.ActionContributionItem.access$2(Act ionContributionItem.java:490)
>>>
>>> at
>>> org.eclipse.jface.action.ActionContributionItem$6.handleEven t(ActionContributionItem.java:443)
>>>
>>> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
>>> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1101)
>>> at
>>> org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3319)
>>> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2971)
>>> at
>>> org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:2389)
>>> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2353)
>>> at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:22 19)
>>> at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:466)
>>> at
>>> org.eclipse.core.databinding.observable.Realm.runWithDefault (Realm.java:289)
>>>
>>> at
>>> org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:461)
>>>
>>> at
>>> org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
>>> at kbel2.Application.start(Application.java:20)
>>> at
>>> org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:169)
>>>
>>> at
>>> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:106)
>>>
>>> at
>>> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:76)
>>>
>>> at
>>> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:363)
>>>
>>> at
>>> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:176)
>>>
>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>> at
>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
>>>
>>> at
>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
>>>
>>> at java.lang.reflect.Method.invoke(Method.java:597)
>>> at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java: 508)
>>> at org.eclipse.equinox.launcher.Main.basicRun(Main.java:447)
>>> at org.eclipse.equinox.launcher.Main.run(Main.java:1173)
>>> at org.eclipse.equinox.launcher.Main.main(Main.java:1148)
>>> !SUBENTRY 1 org.eclipse.gmf.runtime.diagram.ui.resources.editor 4 1
>>> 2008-04-15 12:33:05.784
>>> !MESSAGE ERROR
>>>
>>> The same error occurs when i try to open with the "open file.."
>>> action a bpmn_diagram file which is not in the workspace.
>>> Sometimes in the eclipse console appears also this error, even when i
>>> use the "open file..." action, but the editor opens anyway.
>>>
>>> org.eclipse.core.runtime.CoreException: Problems encountered while
>>> setting project description.
>>> at
>>> org.eclipse.core.internal.resources.Project.setDescription(P roject.java:983)
>>>
>>> at
>>> org.eclipse.core.internal.resources.Project.setDescription(P roject.java:1009)
>>>
>>> at
>>> org.eclipse.stp.bpmn.diagram.part.BpmnCreationWizardPage.set upBpmnValidationBuildableNature(BpmnCreationWizardPage.java: 140)
>>>
>>> at
>>> org.eclipse.stp.bpmn.diagram.part.BpmnDiagramEditor.setupBpm nValidationBuildAbleNature(BpmnDiagramEditor.java:85)
>>>
>>> at
>>> org.eclipse.stp.bpmn.diagram.part.BpmnDiagramEditor.setDocum entProvider(BpmnDiagramEditor.java:73)
>>>
>>> at
>>> org.eclipse.gmf.runtime.diagram.ui.resources.editor.parts.Di agramDocumentEditor.updateDocumentProvider(DiagramDocumentEd itor.java:359)
>>>
>>> at
>>> org.eclipse.gmf.runtime.diagram.ui.resources.editor.parts.Di agramDocumentEditor.doSetInput(DiagramDocumentEditor.java:41 4)
>>>
>>> at
>>> org.eclipse.gmf.runtime.diagram.ui.resources.editor.parts.Di agramDocumentEditor.setInput(DiagramDocumentEditor.java:389)
>>>
>>> at
>>> org.eclipse.gef.ui.parts.GraphicalEditor.init(GraphicalEdito r.java:318)
>>> at
>>> org.eclipse.gmf.runtime.diagram.ui.parts.DiagramEditor.init( DiagramEditor.java:641)
>>>
>>> at
>>> org.eclipse.gmf.runtime.diagram.ui.resources.editor.parts.Di agramDocumentEditor.init(DiagramDocumentEditor.java:116)
>>>
>>> at
>>> org.eclipse.ui.internal.EditorManager.createSite(EditorManag er.java:794)
>>> at
>>> org.eclipse.ui.internal.EditorReference.createPartHelper(Edi torReference.java:643)
>>>
>>> at
>>> org.eclipse.ui.internal.EditorReference.createPart(EditorRef erence.java:426)
>>>
>>> at
>>> org.eclipse.ui.internal.WorkbenchPartReference.getPart(Workb enchPartReference.java:592)
>>>
>>> at org.eclipse.ui.internal.PartPane.setVisible(PartPane.java:29 9)
>>> at
>>> org.eclipse.ui.internal.presentations.PresentablePart.setVis ible(PresentablePart.java:179)
>>>
>>> at
>>> org.eclipse.ui.internal.presentations.util.PresentablePartFo lder.select(PresentablePartFolder.java:268)
>>>
>>> at
>>> org.eclipse.ui.internal.presentations.util.LeftToRightTabOrd er.select(LeftToRightTabOrder.java:65)
>>>
>>> at
>>> org.eclipse.ui.internal.presentations.util.TabbedStackPresen tation.selectPart(TabbedStackPresentation.java:400)
>>>
>>> at
>>> org.eclipse.ui.internal.PartStack.refreshPresentationSelecti on(PartStack.java:1256)
>>>
>>> at
>>> org.eclipse.ui.internal.PartStack.setSelection(PartStack.jav a:1209)
>>> at org.eclipse.ui.internal.PartStack.showPart(PartStack.java:16 04)
>>> at org.eclipse.ui.internal.PartStack.add(PartStack.java:499)
>>> at org.eclipse.ui.internal.EditorStack.add(EditorStack.java:103 )
>>> at org.eclipse.ui.internal.PartStack.add(PartStack.java:485)
>>> at org.eclipse.ui.internal.EditorStack.add(EditorStack.java:112 )
>>> at
>>> org.eclipse.ui.internal.EditorSashContainer.addEditor(Editor SashContainer.java:63)
>>>
>>> at
>>> org.eclipse.ui.internal.EditorAreaHelper.addToLayout(EditorA reaHelper.java:217)
>>>
>>> at
>>> org.eclipse.ui.internal.EditorAreaHelper.addEditor(EditorAre aHelper.java:207)
>>>
>>> at
>>> org.eclipse.ui.internal.EditorManager.createEditorTab(Editor Manager.java:774)
>>>
>>> at
>>> org.eclipse.ui.internal.EditorManager.openEditorFromDescript or(EditorManager.java:673)
>>>
>>> at
>>> org.eclipse.ui.internal.EditorManager.openEditor(EditorManag er.java:634)
>>> at
>>> org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched( WorkbenchPage.java:2737)
>>>
>>> at
>>> org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(Workben chPage.java:2651)
>>>
>>> at
>>> org.eclipse.ui.internal.WorkbenchPage.access$13(WorkbenchPag e.java:2643)
>>> at
>>> org.eclipse.ui.internal.WorkbenchPage$10.run(WorkbenchPage.j ava:2595)
>>> at
>>> org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:67)
>>> at
>>> org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:2590)
>>>
>>> at
>>> org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:2574)
>>>
>>> at
>>> org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:2557)
>>>
>>> at org.eclipse.ui.ide.IDE.openEditorOnFileStore(IDE.java:1090)
>>> at
>>> org.eclipse.ui.internal.ide.actions.OpenLocalFileAction.run( OpenLocalFileAction.java:105)
>>>
>>> at
>>> kbel2.NavigationView.openBPMNdiagramOnTree(NavigationView.ja va:872)
>>> at kbel2.NavigationView$1.run(NavigationView.java:406)
>>> at org.eclipse.jface.action.Action.runWithEvent(Action.java:498 )
>>> at
>>> org.eclipse.jface.action.ActionContributionItem.handleWidget Selection(ActionContributionItem.java:546)
>>>
>>> at
>>> org.eclipse.jface.action.ActionContributionItem.access$2(Act ionContributionItem.java:490)
>>>
>>> at
>>> org.eclipse.jface.action.ActionContributionItem$6.handleEven t(ActionContributionItem.java:443)
>>>
>>> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
>>> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1101)
>>> at
>>> org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3319)
>>> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2971)
>>> at
>>> org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:2389)
>>> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2353)
>>> at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:22 19)
>>> at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:466)
>>> at
>>> org.eclipse.core.databinding.observable.Realm.runWithDefault (Realm.java:289)
>>>
>>> at
>>> org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:461)
>>>
>>> at
>>> org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
>>> at kbel2.Application.start(Application.java:20)
>>> at
>>> org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:169)
>>>
>>> at
>>> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:106)
>>>
>>> at
>>> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:76)
>>>
>>> at
>>> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:363)
>>>
>>> at
>>> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:176)
>>>
>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>> at
>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
>>>
>>> at
>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
>>>
>>> at java.lang.reflect.Method.invoke(Method.java:597)
>>> at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java: 508)
>>> at org.eclipse.equinox.launcher.Main.basicRun(Main.java:447)
>>> at org.eclipse.equinox.launcher.Main.run(Main.java:1173)
>>> at org.eclipse.equinox.launcher.Main.main(Main.java:1148)
>>>
>>> Thanks to all in advance.
>>>
>>> Andrea
Re: RCP with stp bpmn editor [message #621562 is a reply to message #374677] Mon, 30 August 2010 16:10 Go to previous messageGo to next message
No real name is currently offline No real name
Messages: 2
Registered: August 2010
Junior Member
Hi,
has there been any update to this? I'm really interested in etegrating the bpmn modeller into an RCP but I don't know how. Any tips on how can I achieve this?

Thank you
Re: RCP with stp bpmn editor [message #621565 is a reply to message #621562] Wed, 08 September 2010 03:22 Go to previous message
Oisin Hurley is currently offline Oisin Hurley
Messages: 204
Registered: July 2009
Senior Member
I'm not aware of any changes here, but you might visit the BPMN Modeler newsgroup for more detailed information.

http://www.eclipse.org/forums/index.php?t=thread&frm_id= 37&S=85211fff71e67ef3276822c0c670068c
Previous Topic:how mature is this framework?
Next Topic:BPEL project and SOA Tools Project
Goto Forum:
  


Current Time: Tue Jul 22 17:37:41 EDT 2014

Powered by FUDForum. Page generated in 0.02498 seconds