Synchronized or not, that's a problem [message #729100] |
Sat, 24 September 2011 23:50  |
Eclipse User |
|
|
|
Hey everybody , now i have two requirments when developing a modeling tool based on gmf
1.i need to realize my own property dialog (not property sheet) where i could set the property of the models by MyOwnCommand extending AbstractTransactionalCommand. In MyOwnCommand i use eSet to set the property of the model~ so in order to show the change in the diagram ,Gen Diagram **DiagramEditPart -->Diagram-->Synchronized should be set to true in the Gen Model...
2.i need to realize a funtion that i could drag an exsiting element from the Project Explor to other diagrams opend in the Editor ..I know this funtion can refer to Copy & Paste and Unsynchronized Diagram.. ie Gen Diagram **DiagramEditPart -->Diagram-->Synchronized should be set to false here..
So it conflicts each other, and i dont know other solution to realize this.. Could anybody be helpful here.. thanks sooooo much:)
|
|
|
|
|
|
|
|
Re: Synchronized or not, that's a problem [message #734176 is a reply to message #729900] |
Thu, 06 October 2011 19:34   |
Eclipse User |
|
|
|
Cindy wrote on Tue, 27 September 2011 04:49And i have another problem about this.. can i realize this shortcut through different diagrams whose underlying ecore models are different from each other..? or do i have to use shared editdoamin to achieve this?
Cindy,
You don't need anything specific to allow elements from any DiagramA to be shortcutted at any DiagramB, provided that you have configured getContainsShortcutsTo() and getShortcutsProvidedFor() properly (which you have probably done, based on your comments above).
If it does not work, place representative part of your GMF models here or into new bugzilla.
Regards,
Michael "Borlander" Golubev
Eclipse Committer (GMF, UML2Tools)
at Montages Think Tank, Prague, Czech Republic
Montages AG, Zürich, Switzerland
|
|
|
|
Re: Synchronized or not, that's a problem [message #734316 is a reply to message #734176] |
Fri, 07 October 2011 08:50  |
Eclipse User |
|
|
|
hey as i replied to Christian Smietana above , i think the configuration of getContainsShortcutsTo() and getShortcutsProvidedFor() is right otherwise i would not scceeded in adding shortcut by right-click -> create shortcut.. but when i tried to drag it from the project explore, there would be a forbidding notation(a circle with a slash in)...
|
|
|
Powered by
FUDForum. Page generated in 0.31948 seconds