[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [jwt-dev] "Workbench has not been created yet" exception
- From: Marc Dutoo <marc.dutoo@xxxxxxxxxxx>
- Date: Fri, 27 May 2011 11:19:14 +0200
- Delivered-to: email@example.com
- User-agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; fr; rv:184.108.40.206) Gecko/20110414 Thunderbird/3.1.10
The workbench is actually Eclipse. If you want to use Chris' way to
access your data, you indeed need to execute your code within Eclipse,
for example in a button.
Le 26/05/2011 18:12, Ahmed Samir Saleh Wafa a écrit :
I am trying to access the elements I modeled in my ".workflow" file like actions or nodes using java code. All files (Process.wokflow, Process.wokflow_conf, Process.wokflow_view and WokflowFetch.java) are in the same package. I get the exception "Workbench has not been created yet" from a line in "WorkflowFetch.java".
This is the line causing the exception:
IWorkbench workbench =PlatformUI.getWorkbench();
It makes sense that the workflow should be activated or pointed out somehow but I still can't do that. Any ideas ??
Thank you very much,
jwt-dev mailing list