Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Graphiti » DiagramEditorFactory changed to what in 0.9.0?
DiagramEditorFactory changed to what in 0.9.0? [message #875493] Tue, 22 May 2012 21:07 Go to next message
Cristiano Gavião is currently offline Cristiano GaviãoFriend
Messages: 279
Registered: July 2009
Senior Member
Hi,

I have an old code that is using this:
		final TransactionalEditingDomain editingDomain = DiagramEditorFactory.createResourceSetAndEditingDomain();


But this is not compiling against version 0.9.0.

What should I use now ?

How to know the changes in this new version?

thanks,

Cristiano
Re: DiagramEditorFactory changed to what in 0.9.0? [message #875505 is a reply to message #875493] Tue, 22 May 2012 21:39 Go to previous messageGo to next message
Johnny Qin is currently offline Johnny QinFriend
Messages: 40
Registered: April 2012
Member
looks like the DiagramEditorFactory class is gone in 0.9.0
while there's no change of class documentation...
Re: DiagramEditorFactory changed to what in 0.9.0? [message #875506 is a reply to message #875505] Tue, 22 May 2012 21:42 Go to previous messageGo to next message
Johnny Qin is currently offline Johnny QinFriend
Messages: 40
Registered: April 2012
Member
Cristiano, here's something you may use
final TransactionalEditingDomain editingDomain = GraphitiUiInternal.getEmfService().createResourceSetAndEditingDomain();
Re: DiagramEditorFactory changed to what in 0.9.0? [message #875519 is a reply to message #875506] Tue, 22 May 2012 22:23 Go to previous messageGo to next message
Cristiano Gavião is currently offline Cristiano GaviãoFriend
Messages: 279
Registered: July 2009
Senior Member
Hi Johnny,

Thanks for the help.

Another thing that I could note that have changed and not documented was the constructor of DiagramEditorInput that don't accept TransactionalEditingDomain anymore.

Do you know anything about this?

cheers,

Cristiano
Re: DiagramEditorFactory changed to what in 0.9.0? [message #875713 is a reply to message #875493] Wed, 23 May 2012 08:03 Go to previous message
Michael Wenz is currently offline Michael WenzFriend
Messages: 1931
Registered: July 2009
Location: Walldorf, Germany
Senior Member
Yes, the DiagramEditorFactory has been renamed to DiagramEditorInputFactory
in the cause of the editor API reworks (see Bugzilla
https://bugs.eclipse.org/bugs/show_bug.cgi?id=336488). There should be a
note on this in the bug.

The same change is also the cause for the difference in DiagramEditorInput:
I already wrote a comment on this is in a posting of Johnny Qin today
(getaccess to Diagram from DiagramEditor:
http://www.eclipse.org/forums/index.php?t=rview&goto=875502#msg_875502)

Michael
Previous Topic:Create Diagram Model Programatically
Next Topic:deletePictogramElement Performance
Goto Forum:
  


Current Time: Sat Apr 20 00:00:21 GMT 2024

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

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

Back to the top