|
|
|
Re: programmatic creation of the diagram [message #619027 is a reply to message #619023] |
Fri, 05 September 2008 13:49 |
Eclipse User |
|
|
|
Originally posted by: atoulme.intalio.com
Yes, I think that the generated model uses a file for persistence.
However the file doesn't have to exist.
So if you use the default constructor for BPMNVisual2ProcessGenerator,
no file will be created.
faroun wrote:
> Hi Antoine ,
>
> Must generation to be based in a file ? in my case , i have a
> description (semantic + graphics ) of the diagram stored in a database
> and i have to generate the diagramme dynamicly from this description.
>
> thanks a lot for ur help.
>
> Dali.
>
>
>
|
|
|
|
Re: programmatic creation of the diagram [message #619515 is a reply to message #619513] |
Wed, 10 September 2008 14:00 |
Eclipse User |
|
|
|
Originally posted by: atoulme.intalio.com
faroun wrote:
> Hi Antoine ,
>
> thanx a lot for ur help .
>
> i'm now creating the virtual diagram by subclassing the
> BPMNVisual2ProcessGenerator.
>
> i'm trying now to display the generated diagram . how can i pass the
> generated diagram as an editor input to my bpmneditor ??
>
> Best Regards ,
>
>
> Dali
>
Dali, if you look at the previous thread you will find your solution.
Encapsulate the diagram you created into a IEditorInput implementation
and set it on the editor.
Then override the setDocumentProvider method to set your own document
provider that will load the diagram without trying to open it as a file.
Thanks,
Antoine
|
|
|
|
Re: programmatic creation of the diagram [message #619519 is a reply to message #619517] |
Thu, 11 September 2008 09:09 |
Eclipse User |
|
|
|
Originally posted by: atoulme.intalio.com
faroun wrote:
> Hi Antoine ,
>
> i don't understand what you mean by "Encapsulate the diagram you created
> into an IEditorInput" .
Well, what do you don't understand ?
>
> one more question : How can i pass a diagram to the setDocumentProvider
> to be loaded , is it the result of the generateView Method of the
> Bpel2bpmn generator ?
In an IEditorInput object.
>
>
> Best Regards,
>
> Dali.
>
>
|
|
|
|
|
Re: programmatic creation of the diagram [message #619527 is a reply to message #619524] |
Thu, 11 September 2008 10:03 |
Eclipse User |
|
|
|
Originally posted by: atoulme.intalio.com
Since you are in a particular case where you want to feed the editor
with your very own data, you have to implement your own IEditorInput, or
maybe you could reuse DiagramEditorInput
(org.eclipse.gmf.runtime.diagram.ui.parts.DiagramEditorInput ).
I hope it helps.
Antoine
faroun wrote:
> Hi antoine ,
>
> i used the getGraphicalModel() form BpmnProcessgenerator to get the
> diagram .
>
> Now how can i encapsulate in an IEditorInput ??
>
>
> Best Regards ,
>
> Dali
>
>
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03902 seconds