Bug 394231 - Allow to use addons separatedly from "org.eclipse.e4.ui.workbench.addons.swt"
Summary: Allow to use addons separatedly from "org.eclipse.e4.ui.workbench.addons.swt"
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 4.2.1   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: 4.15 M1   Edit
Assignee: Nis Wechselberg CLA
QA Contact:
URL:
Whiteboard:
Keywords: bugday, noteworthy
: 394333 (view as bug list)
Depends on:
Blocks: 394333
  Show dependency tree
 
Reported: 2012-11-13 17:28 EST by Alex Kipling CLA
Modified: 2019-12-12 09:19 EST (History)
9 users (show)

See Also:


Attachments
Splitted bundles (194.28 KB, application/zip)
2012-11-14 17:34 EST, Lars Vogel CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alex Kipling CLA 2012-11-13 17:28:45 EST
Importing "org.eclipse.e4.ui.workbench.addons.swt" makes the min/max buttons visible, even if I do not import the MinMax Addon to my e4 application Addons.
I had to remove the whole "org.eclipse.e4.ui.workbench.addons.swt" plugin, in order t ohide the Min/Max buttons for MpartStacks.
This is wrong, because it makes me unable to use another Addons.

Right behaviour should be:
the min/max Buttons are hidden by default. 
They are explicitely enabled by the MinMax Addon.
Alternatively there could be a tag to enable Min-Max Buttons for parts explicitely
Comment 1 Nobody - feel free to take it CLA 2012-11-13 17:47:33 EST
Details: http://www.eclipse.org/forums/index.php/t/421833/
Comment 2 Lars Vogel CLA 2012-11-14 13:34:14 EST
Alex is planning to provide a patch.
Comment 3 Eric Moffatt CLA 2012-11-14 14:29:57 EST
The problem here is that we automatically register the addons (all of them) using a model processor contribution. This is obviously wrong.

Lars the package splitting we were talking about would also fix this correct ?

Alex, for now you might consider adding a LifeCycle handler and have its 'ProcessRemovals' remove the instance of the MinMaxAddon from the model (I just looked and this *is* done before the addons get instantiated...
Comment 4 Lars Vogel CLA 2012-11-14 14:37:29 EST
@Eric, yes splitting it up would solve this bug. Lets use this bug for the split of the Add-on bundles.
Comment 5 Wim Jongman CLA 2012-11-14 14:38:51 EST
(In reply to comment #4)
> @Eric, yes splitting it up would solve this bug. Lets use this bug for the
> split of the Add-on bundles.

Would then there be two min-max addons?
Comment 6 Lars Vogel CLA 2012-11-14 14:53:52 EST
We plan to split the following Addons into separate bundles:

- CleanupAddon
- MinMaxAddon
- DndAddon
Comment 7 Lars Vogel CLA 2012-11-14 17:34:22 EST
Created attachment 223577 [details]
Splitted bundles

The attached zip file contains the three new bundles. 

If they get accepted, I will provide a patch for removing org.eclipse.e4.ui.workbench.addons.swt and for adjusting the org.eclipse.e4.rcp feature.

The Eclipse 4 wizard does not need to get adjusted, we currently do not add the org.eclipse.e4.ui.workbench.addons.swt during the generation of a new application.
Comment 8 Georg Fiechtner CLA 2014-01-16 04:56:27 EST
Hey everybody,

I just wanted to check on the status of this defect.
I guess the patch has not been accepted yet?
Is there something that can be done to get this a bump in attention? :)

I would especially be interested in having a tag to enable or disable Min-Max buttons for parts explicitly.
Our use case is the following: we have many parts that can be maximized/minimized, except one, that acts like a Dashboard which always stays prominently in maximized state. So for that part, being able to hide these buttons would be handy.
Comment 9 Lars Vogel CLA 2014-01-16 05:06:37 EST
(In reply to Georg Fiechtner from comment #8)

> I would especially be interested in having a tag to enable or disable
> Min-Max buttons for parts explicitly.
> Our use case is the following: we have many parts that can be
> maximized/minimized, except one, that acts like a Dashboard which always
> stays prominently in maximized state. So for that part, being able to hide
> these buttons would be handy.

This is a different feature request. Can you open a new bug report for that request?
Comment 10 Georg Fiechtner CLA 2014-01-17 17:40:39 EST
Done.
See https://bugs.eclipse.org/bugs/show_bug.cgi?id=426034
Comment 11 Lars Vogel CLA 2014-03-17 17:40:55 EDT
*** Bug 394333 has been marked as a duplicate of this bug. ***
Comment 12 Lars Vogel CLA 2014-10-25 09:52:11 EDT
I suggest to solve that via a tag. Each add-on could define a tag and check its existence on the application model. If a tag relevant for an model add-on is present it could deactivate itself.
Comment 13 Paul Webster CLA 2014-11-07 09:09:28 EST
(In reply to Lars Vogel from comment #12)
> I suggest to solve that via a tag. Each add-on could define a tag and check
> its existence on the application model. If a tag relevant for an model
> add-on is present it could deactivate itself.

Is the problem that plugin adds the add-ons to the model via a fragment or processor?

Or is the min/max addon doing something without having its add on processed?

PW
Comment 14 Lars Vogel CLA 2016-02-04 09:04:14 EST
With xpath in 4.5. we can change the contribution of the addon from a processor to a model fragment. This way the customer can deactivate it again via a model processor.
Comment 15 Peter Hendriks CLA 2017-08-03 10:44:37 EDT
Any updates on this issue? We also run into this problem when trying to modify maximize behaviour. We cannot remove "org.eclipse.e4.ui.workbench.addons.swt" plug-in, as it is required by "org.eclipse.ui.workbench", which we need for our RCP application as well.
Comment 16 Lars Vogel CLA 2019-12-06 04:19:13 EST
Nis indicated that he is interested in providing a patch.
Comment 17 Eclipse Genie CLA 2019-12-06 06:47:57 EST
New Gerrit change created: https://git.eclipse.org/r/153984
Comment 19 Lars Vogel CLA 2019-12-12 07:33:04 EST
Thanks Nils. Could you provide a N&N entry for this feature via Gerrit? See https://git.eclipse.org/r/c/154405/1 for an example.
Comment 20 Eclipse Genie CLA 2019-12-12 08:36:31 EST
New Gerrit change created: https://git.eclipse.org/r/154409
Comment 21 Eclipse Genie CLA 2019-12-12 08:38:44 EST
New Gerrit change created: https://git.eclipse.org/r/154410
Comment 22 Nis Wechselberg CLA 2019-12-12 08:41:06 EST
Done that, but I somewhat messed up the formatting on the first commit and then messed up creating a second patch set for the change
Comment 23 Lars Vogel CLA 2019-12-12 08:42:42 EST
(In reply to Nis Wechselberg from comment #22)
> Done that, but I somewhat messed up the formatting on the first commit and
> then messed up creating a second patch set for the change

Can you squash them into the first commit and update the Gerrit?
Comment 24 Nis Wechselberg CLA 2019-12-12 09:02:43 EST
Ah, got that resolved ... Not used to Gerrit and Change-Ids and all that whizbang