Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » dynamically add part to partStack
dynamically add part to partStack [message #988151] Wed, 28 November 2012 13:22 Go to next message
Aljoscha Steffens is currently offline Aljoscha Steffens
Messages: 302
Registered: November 2012
Senior Member
Hi,
how can I achieve sth like the eclipse GUI? If the user loads a file, it will be placed in an editor/partstack as a tab.
I just found how to create a new part and add it to the window.
www. vogella.com/articles/EclipseRCP/article.html#modeldynamics_example2
Re: dynamically add part to partStack [message #988157 is a reply to message #988151] Wed, 28 November 2012 13:24 Go to previous message
Sopot Cela is currently offline Sopot Cela
Messages: 597
Registered: December 2010
Senior Member

Aljoscha Steffens wrote on Wed, 28 November 2012 19:22
Hi,
how can I achieve sth like the eclipse GUI? If the user loads a file, it will be placed in an editor/partstack as a tab.
I just found how to create a new part and add it to the window.
www. vogella.com/articles/EclipseRCP/article.html#modeldynamics_example2



Take a look at https://github.com/semanticsoft/vaaclipse/blob/master/org.semanticsoft.vaaclipse.demo.contacts/src/org/semanticsoft/vaaclipse/demo/handlers/NewContactHandler.java

This adds a part to a part stack after finding it with an ID. It's used for the vaadin renderer but the model API is widget agnostic.
Previous Topic:dynamically add part to partStack
Next Topic:Re: dynamically add part to partStack
Goto Forum:
  


Current Time: Sat Aug 30 12:24:47 EDT 2014

Powered by FUDForum. Page generated in 0.01949 seconds