Community
Participate
Working Groups
Hi, This is the bug request related to the forum post here http://www.eclipse.org/forums/index.php/t/261853/ I would need a mechanism to set the Graphical input in the Diagram editor which would then set the diagram from my model. I was having my doubts over exposing the setInput method from the Diagram Editor class, but then i saw the eclipse EditorPart API which mentions setInput can be exposed. My scenario works if i make the setInput() in DiagramEditorInternal as public. Please let me know if there are any better approaches or my proposed solution can be taken up. cheers, Saurav
Marked as enhancement request. This can be tangled earliest after the editor APIs have been refined (see https://bugs.eclipse.org/bugs/show_bug.cgi?id=336488). Even when this is done I'm not yet convinced that this would be a wise thing to do or if we should not better stick to the current paradigm that diagram editors can not be reused.
Hi Michael, Thanks for the info. At least making the setInput() protected would help as, so that we can extend the diagram editor and can call the super. We would like to have it urgently as our release depends on this :). If possible i can attach a patch and provide the fix . cheers, Saurav
(In reply to comment #2) > Hi Michael, > Thanks for the info. > At least making the setInput() protected would help as, so that we can extend > the diagram editor and can call the super. > We would like to have it urgently as our release depends on this :). > If possible i can attach a patch and provide the fix . > cheers, > Saurav Hi Saurav, well, the setInput method is already protected so you could do as you proposed, can't you? Michael
oops..sorry i must have overlooked it :). I will look at it
Requested method was already there