Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BPMN Modeler » ReadOnly Diagram
ReadOnly Diagram [message #2006] Wed, 15 October 2008 10:01 Go to next message
faroun is currently offline farounFriend
Messages: 41
Registered: July 2009
Member
Hi everybody ,

i'm displaying a diagram (using DiagramInputDocumentProvider as document
provider and DiagramEditorInput as editor input) .

My problem is that it's a readonly diagram : it seems like the diagram has
not a corresponding EMF Model to synchronise with.

I tried to override isReadOnly() and isModifiable() methods but :((.

When i'm trying to move shapes or edit labels nothing is shown on the
console log.

Should i use a BpmnDiagram in the place of the Diagram Type ??

Best Regards ,

Dali.
Re: ReadOnly Diagram [message #2024 is a reply to message #2006] Wed, 15 October 2008 13:28 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: atoulme.intalio.com

Dali,

the BpmnDiagram is the semantic element while the Diagram object is the
graphical element. You can access the BpmnDiagram object by doing
diagram.getElement();

I can't help much more on this issue, you'll need to investigate your
code to see what's going wrong.

Thanks,

Antoine

Dali wrote:
> Hi everybody ,
>
> i'm displaying a diagram (using DiagramInputDocumentProvider as document
> provider and DiagramEditorInput as editor input) .
>
> My problem is that it's a readonly diagram : it seems like the diagram
> has not a corresponding EMF Model to synchronise with.
>
> I tried to override isReadOnly() and isModifiable() methods but :((.
>
> When i'm trying to move shapes or edit labels nothing is shown on the
> console log.
>
> Should i use a BpmnDiagram in the place of the Diagram Type ??
>
> Best Regards ,
>
> Dali.
>
Re: ReadOnly Diagram [message #2037 is a reply to message #2024] Thu, 16 October 2008 15:12 Go to previous messageGo to next message
faroun is currently offline farounFriend
Messages: 41
Registered: July 2009
Member
Hi Antoine ,

I think that the problem is due to the usage of diagrameditorinput .
Infact it brings a readonly image of the diagram.

I think that i should create a file based on my generating diagram and
open my editor on a file input.

How can i achieve this , is there any methods that should be called by the
Modeler API.

Best Regards ,

--

Dali
Re: ReadOnly Diagram [message #2050 is a reply to message #2037] Thu, 16 October 2008 16:52 Go to previous message
Eclipse UserFriend
Originally posted by: atoulme.intalio.com

Dali, look at how to save files with EMF.

Thanks,

Antoine

Dali wrote:
> Hi Antoine ,
>
> I think that the problem is due to the usage of diagrameditorinput .
> Infact it brings a readonly image of the diagram.
>
> I think that i should create a file based on my generating diagram and
> open my editor on a file input.
>
> How can i achieve this , is there any methods that should be called by
> the Modeler API.
>
> Best Regards ,
>
> --
>
> Dali
>
Previous Topic:connecting object
Next Topic:Change the sequenceEdge look
Goto Forum:
  


Current Time: Tue Mar 19 09:06:04 GMT 2024

Powered by FUDForum. Page generated in 0.02218 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top