Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Sirius » Open DialectEditor programmatically outside of main editor area
Open DialectEditor programmatically outside of main editor area [message #1771657] Tue, 29 August 2017 08:04 Go to next message
M V is currently offline M VFriend
Messages: 31
Registered: July 2017
Member
Hello,

what I want to do:

In my RCP I have project and library based on sirius tree. The User can drag an drop item from the library tree to the project tree. This works fine and was no great problem to build in. So now I want to make the UI more usable. It should looks like this layout:

index.php/fa/30519/0/

After application startup i open my library presentation with the DialectUIManager.

final DialectEditor editor = (DialectEditor) DialectUIManager.INSTANCE.openEditor(siriusSession, description, monitor);


Okay, this work also. But it open it in the editor in part market as org.eclipse.ui.editorss. This it not what I want

index.php/fa/30520/0/

I want to show it in the "Library Part". I can move it manually after open the editor, but how can i tell DialectUIManager the to open it direct there?

I do a lot of google research but i don't found a solution. The only thing I found was a hint Pierre-Charles David

Quote:
If you need is simply to show the editor outside of the main editor
area, this is possible since Eclipse 4.2 (e4 does not really treat the
main editor area as something special), so you can have your editor
"around" another editor in the middle of other views.


But at this step I stuck.

Thanks for help, code snippets or links to right part of manual.

[Updated on: Tue, 29 August 2017 08:06]

Report message to a moderator

Re: Open DialectEditor programmatically outside of main editor area [message #1771675 is a reply to message #1771657] Tue, 29 August 2017 13:21 Go to previous messageGo to next message
Laurent Fasani is currently offline Laurent FasaniFriend
Messages: 166
Registered: October 2014
Senior Member
Hello

Your issue is not specific to Sirius but is related to e4.
I advice you to ask in e4 channel.

I found some tutorial about e4 if it can help: https://eclipsesource.com/blogs/2012/05/10/eclipse-4-final-sprint-part-1-the-e4-application-model/

Regards
Laurent


Laurent Fasani - Obeo
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
Re: Open DialectEditor programmatically outside of main editor area [message #1771679 is a reply to message #1771675] Tue, 29 August 2017 13:31 Go to previous message
M V is currently offline M VFriend
Messages: 31
Registered: July 2017
Member
Thanks for reply, I will take a look tutorial and ask in the E4 forum.

[Updated on: Tue, 29 August 2017 13:32]

Report message to a moderator

Previous Topic:Changing the size of the drawing canvas
Next Topic:Experimental mode to serialize representations in a different file
Goto Forum:
  


Current Time: Fri Jun 05 12:26:28 GMT 2020

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

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

Back to the top