Skip to main content

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

Doesn't work for me for some reason :s Do you know how I can load the entire .workflow file and access my model this way ??

samir


 ________________________________________
From: Marc Dutoo [marc.dutoo@xxxxxxxxxxx]
Sent: Friday, May 27, 2011 12:58 PM
To: Java Workflow Tooling
Cc: Ahmed Samir Saleh Wafa
Subject: Re: [jwt-dev] "Workbench has not been created yet" exception

Hi Samir

If Eclipse has finished starting, the workbench should be available. At
least "it works for us" :)

Regards,
Marc


Le 27/05/2011 11:51, Ahmed Samir Saleh Wafa a écrit :
> A button didn't work either. It gave the same exception "workbench has not been created yet". I'll try loading the whole ".workflow" file and see how it goes. I hope this does the job.
>
>
> best regards,
> samir
>
> ________________________________________
> From: Marc Dutoo [marc.dutoo@xxxxxxxxxxx]
> Sent: Friday, May 27, 2011 12:19 PM
> To: Java Workflow Tooling
> Cc: Ahmed Samir Saleh Wafa
> Subject: 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
> _______________________________________________
> jwt-dev mailing list
> jwt-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/jwt-dev



Back to the top