Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » Making a fixed perspective in an e4 model? (How to forbid part to be moveable or extractable?)
Making a fixed perspective in an e4 model? [message #971942] Mon, 05 November 2012 08:29 Go to next message
Alex Kipling is currently offline Alex KiplingFriend
Messages: 260
Registered: July 2012
Senior Member
In my e4 Application I have a Part-Stack,
I do not want my Views to be rearrangeable and
I would like to forbid pulling-out of parts from their partstack container.

So I am looking for a view.setMovable() method, as described here for RCP3:
http://wiki.eclipse.org/FAQ_How_do_I_create_fixed_views_and_perspectives%3F

How can this be done in e4?

Re: Making a fixed perspective in an e4 model? [message #971947 is a reply to message #971942] Mon, 05 November 2012 08:35 Go to previous messageGo to next message
Lars Vogel is currently offline Lars VogelFriend
Messages: 1098
Registered: July 2009
Senior Member

Hello,

create a product configuration file without the org.eclipse.e4.ui.workbench.addons.sw plug-in. See Eclipse 4 Model Addons.

Best regards, Lars
Re: Making a fixed perspective in an e4 model? [message #971998 is a reply to message #971947] Mon, 05 November 2012 09:20 Go to previous messageGo to next message
Alex Kipling is currently offline Alex KiplingFriend
Messages: 260
Registered: July 2012
Senior Member
Hello Lars,
unfortunately I would like to restrict this behavious for concrete Windows, not for the whole application.

Taking the plugin org.eclipse.e4.ui.workbench.addons.swt out from dependencies - removes the part-drag functionality for the whole application, right?
Re: Making a fixed perspective in an e4 model? [message #972023 is a reply to message #971998] Mon, 05 November 2012 09:40 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
Then you need to specialize the DNDAddon and ship you own. Have you
looked at the code? Maybe there are already tags to probibit moving
stuff around, else it might be a good idea to add such tags and
contribute a patch.

Tom

Am 05.11.12 10:20, schrieb Alex Kipling:
> Hello Lars,
> unfortunately I would like to restrict this behavious for concrete
> Windows, not for the whole application.
>
> Taking the plugin org.eclipse.e4.ui.workbench.addons.swt out from
> dependencies - removes the part-drag functionality for the whole
> application, right?
Re: Making a fixed perspective in an e4 model? [message #972036 is a reply to message #972023] Mon, 05 November 2012 09:56 Go to previous messageGo to next message
Lars Vogel is currently offline Lars VogelFriend
Messages: 1098
Registered: July 2009
Senior Member

No tags yet, but it would be trivial to add them.

@Alex: can you open a bug report for that?

If you feel like it, please also provide a patch. You can learn how to checkout the Eclipse 4 source code here: http://www.vogella.com/articles/Eclipse4Source/article.html#e4gitrepository

Please post the bug report also to this discussion thread.
Re: Making a fixed perspective in an e4 model? [message #972493 is a reply to message #972036] Mon, 05 November 2012 17:17 Go to previous messageGo to next message
Alex Kipling is currently offline Alex KiplingFriend
Messages: 260
Registered: July 2012
Senior Member
Ok, I will checkout the eclipse-source and provide a patch!
Thnx!
Re: Making a fixed perspective in an e4 model? [message #973238 is a reply to message #972493] Tue, 06 November 2012 07:04 Go to previous messageGo to next message
Lars Vogel is currently offline Lars VogelFriend
Messages: 1098
Registered: July 2009
Senior Member

Can you already open a bug report for this? This is anyhow required for the patch.

[Updated on: Tue, 06 November 2012 07:04]

Report message to a moderator

Re: Making a fixed perspective in an e4 model? [message #984014 is a reply to message #973238] Wed, 14 November 2012 10:33 Go to previous messageGo to next message
Alex Kipling is currently offline Alex KiplingFriend
Messages: 260
Registered: July 2012
Senior Member
The Bug is created, under: https://bugs.eclipse.org/bugs/show_bug.cgi?id=394258
Re: Making a fixed perspective in an e4 model? [message #985700 is a reply to message #984014] Thu, 15 November 2012 17:44 Go to previous message
Alex Kipling is currently offline Alex KiplingFriend
Messages: 260
Registered: July 2012
Senior Member
The Tag allready exists it's NoMove defined inside of org.eclipse.e4.ui.workbench.IPresentationEngine
Previous Topic:Eclipse complain about working code
Next Topic:Custom StatusReporter (or how to override WorkbenchStatusReporter)
Goto Forum:
  


Current Time: Thu Apr 25 10:32:16 GMT 2024

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

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

Back to the top