Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jwt-dev] "Workbench has not been created yet" exception

Hi Samir

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.

Regards,
Marc


Le 26/05/2011 18:12, Ahmed Samir Saleh Wafa a écrit :
Dear all,

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,
Samir
_______________________________________________
jwt-dev mailing list
jwt-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/jwt-dev



Back to the top