Skip to main content

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

This is not precisely what i mean. what i need is to load the model I have created using drag and drop in my workflow file then have like an instance model of the class "Model" which i got using the method "getModel()" then I can do stuff like : "model.getInitialNode()" or model."getListOfActions()" for example. I am now trying to load the workflow file and extract the model from it somehow but I still don't have any progress, unfortunately. I am running out of ideas. Thanks a lot marc anyway.


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

Well, again :
http://wiki.eclipse.org/EMF/FAQ#How_do_I_use_EMF_in_standalone_applications_.28such_as_an_ordinary_main.29.3F

Regards,
Marc


Le 27/05/2011 12:03, Ahmed Samir Saleh Wafa a écrit :
> 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
> _______________________________________________
> jwt-dev mailing list
> jwt-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/jwt-dev



Back to the top