Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Service Component Architecture (SCA) Tools » Creating an initialized SCA diagram file programmatically
Creating an initialized SCA diagram file programmatically [message #5367] Thu, 12 February 2009 06:05 Go to next message
Eclipse User
Originally posted by: mickael.istria.openwide.fr

Hello,

I'd like to create programmatically a diagram file from an existing or
empty composite file, so that the newly created diagram file will open
without error in the Sca Diagram editor.
An empty diagram file produces an error when opening it (Premature end
of file).

Could you please help me to fulfill this task?

Regards,
Mickael
Re: Creating an initialized SCA diagram file programmatically [message #6020 is a reply to message #5367] Thu, 12 February 2009 07:26 Go to previous message
Stephane Drapeau is currently offline Stephane Drapeau
Messages: 198
Registered: July 2009
Senior Member
Mickael Istria a écrit :
> Hello,
>
> I'd like to create programmatically a diagram file from an existing or
> empty composite file, so that the newly created diagram file will open
> without error in the Sca Diagram editor.
> An empty diagram file produces an error when opening it (Premature end
> of file).
>
> Could you please help me to fulfill this task?
>
> Regards,
> Mickael

Hi Mickael,

In the plugin org.eclipse.stp.sca.diagram, directory customsrc, have a
look at the class
org.eclipse.stp.sca.diagram.customactions.DiagramGeneration.

This class implements an action that generates the diagram files for all
the composite files found in a project.
The actions "resize" and "arrangeall" are also applied.

Regards,

Stephane Drapeau
Obeo
Re: Creating an initialized SCA diagram file programmatically [message #574275 is a reply to message #5367] Thu, 12 February 2009 07:26 Go to previous message
Stephane Drapeau is currently offline Stephane Drapeau
Messages: 198
Registered: July 2009
Senior Member
Mickael Istria a écrit :
> Hello,
>
> I'd like to create programmatically a diagram file from an existing or
> empty composite file, so that the newly created diagram file will open
> without error in the Sca Diagram editor.
> An empty diagram file produces an error when opening it (Premature end
> of file).
>
> Could you please help me to fulfill this task?
>
> Regards,
> Mickael

Hi Mickael,

In the plugin org.eclipse.stp.sca.diagram, directory customsrc, have a
look at the class
org.eclipse.stp.sca.diagram.customactions.DiagramGeneration.

This class implements an action that generates the diagram files for all
the composite files found in a project.
The actions "resize" and "arrangeall" are also applied.

Regards,

Stephane Drapeau
Obeo
Previous Topic:Creating an initialized SCA diagram file programmatically
Next Topic:Re: Download and Install BPMN
Goto Forum:
  


Current Time: Tue Jul 22 15:54:26 EDT 2014

Powered by FUDForum. Page generated in 0.02882 seconds