Skip to main content



      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 04:04 Go to next message
Eclipse UserFriend
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 04:06] by Moderator

Re: Open DialectEditor programmatically outside of main editor area [message #1771675 is a reply to message #1771657] Tue, 29 August 2017 09:21 Go to previous messageGo to next message
Eclipse UserFriend
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
Re: Open DialectEditor programmatically outside of main editor area [message #1771679 is a reply to message #1771675] Tue, 29 August 2017 09:31 Go to previous message
Eclipse UserFriend
Thanks for reply, I will take a look tutorial and ask in the E4 forum.

[Updated on: Tue, 29 August 2017 09:32] by 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: Sun Jul 27 02:27:29 EDT 2025

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

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

Back to the top