Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » Programmatically minimize/restore PartStacks
Programmatically minimize/restore PartStacks [message #936933] Mon, 08 October 2012 13:45 Go to next message
Frank Langanke is currently offline Frank LangankeFriend
Messages: 7
Registered: October 2012
Junior Member
Hi,

I would like to minimize or restore a PartStack programmatically. I have two PartStacks side by side and a command which opens a View within a PartStack. When certain Views are opened I want the other PartStack to be minimized.

Thanks

Frank
Re: Programmatically minimize/restore PartStacks [message #937078 is a reply to message #936933] Mon, 08 October 2012 16:34 Go to previous messageGo to next message
Wim Jongman is currently offline Wim JongmanFriend
Messages: 294
Registered: July 2009
Senior Member

Hi Frank,

Add the minmax addon to the dependencies and then as an addon to the application model.

See the IPresentationEngine class for tags to add to the model elements.

To minimize the partstack use:

	@Execute
	public void execute(EModelService service, MApplication app) {
	 MPartStack stack =	(MPartStack) service.find("ID.OF.PARTSTACK.HERE", app);
	 stack.getTags().add(IPresentationEngine.MINIMIZED);}


Hope this helps,

Wim
Re: Programmatically minimize/restore PartStacks [message #937923 is a reply to message #937078] Tue, 09 October 2012 11:36 Go to previous message
Frank Langanke is currently offline Frank LangankeFriend
Messages: 7
Registered: October 2012
Junior Member
Thank you very much, works perfectly.
Previous Topic:Dialog from Handler
Next Topic:Renaming default commands
Goto Forum:
  


Current Time: Fri Nov 28 08:51:59 GMT 2014

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

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