This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 187678 - "Deactivate plugin" is problematic when the plugin grouped by features.
Summary: "Deactivate plugin" is problematic when the plugin grouped by features.
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Autoupdate (show other bugs)
Version: 6.x
Hardware: PC Linux
: P3 normal (vote)
Assignee: Jiri Rechtacek
URL:
Keywords:
Depends on: 177202
Blocks: 205342 221836
  Show dependency tree
 
Reported: 2010-06-16 18:44 UTC by hantsy
Modified: 2012-12-21 02:34 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
The screenshot. (62.15 KB, image/png)
2010-06-16 18:48 UTC, hantsy
Details
Depend on other features (980 bytes, patch)
2011-02-18 13:54 UTC, Jaroslav Tulach
Details | Diff
hg diff -r 450bd39d99c8:feature-dependencies-187678 (18.70 KB, patch)
2012-11-26 11:39 UTC, Jaroslav Tulach
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description hantsy 2010-06-16 18:44:43 UTC
By default, the plugin in the installed tab of the Plugin Manger is grouped by feature(the show details is deselected).
1. I checked the "Java Card" only.
2. Click the "Deactivate" button below the plugin list.

A dialog indicated will deactivate a series of plugins, the EJB,struts and many others is declared to be deactivated.
Is this problematic???
Comment 1 hantsy 2010-06-16 18:48:21 UTC
Created attachment 100142 [details]
The screenshot.

But if I checked the "Show details" checkbox in the installed tab.
And right clicked the "Java Card" and selected deactivate Java Card, it seems works as I expected.
Comment 2 hantsy 2010-11-10 04:53:19 UTC
The group feature is missing in NetBeans 7 m2, it is deleted?
Comment 3 Jaroslav Tulach 2010-11-23 08:02:38 UTC
I have simulated the problem using following steps:

1. download full IDE with FoD
2. start with empty user dir
3. enable all features in Tools/Plugins
4. try to disable Java Card

It really requires disabling of EJB which is a non-sense.
Comment 4 Jiri Rechtacek 2011-02-18 07:27:48 UTC
Jardo, it may be a problem if some Java Card module provides as same token as other (EJB?) module.
Comment 5 Jaroslav Tulach 2011-02-18 12:05:13 UTC
Looks like the problem is not in autoupdate, but in the way FoD creates the features. Probably result of fix for bug #177202.
Comment 6 Jaroslav Tulach 2011-02-18 13:54:09 UTC
Created attachment 106151 [details]
Depend on other features

The bug is in ide.ergonomics, but the fix will need to be in autoupdate.services too. ide.ergonomics needs to express that one feature depends on another feature. As far as I can tell, this is not possible right now.
Comment 7 Jaroslav Tulach 2011-02-18 18:35:59 UTC
I have created a branch feature-dependencies-187678
http://hg.netbeans.org/ergonomics/rev/8cbaee416840
with changes in ide.ergonomics and a sketch of changes in autoupdate.services.

The amount of changes will be non-trivial, so I propose to leave this for future version. Anyone can uninstall the kits one by one as a workaround for 6.9 and 7.0...
Comment 8 Jiri Rechtacek 2012-09-14 13:26:28 UTC
It was solved somehow in recent builds (7.2 or dev builds)
Comment 9 Jaroslav Tulach 2012-11-26 11:38:37 UTC
One of the remaining issues for bug 221836 is the problem that when one disables Java EE feature, the feature also disables mobility. This is caused by the fact that the Java EE feature contains transitive dependencies on all kits (include Java SE kit) - this is needed to properly enabled all Java SE when enabling Java EE. However this works poorly when disabling Java EE. There is no workaround on the FoD side, we need an improvement in autoupdate.services.
Comment 10 Jaroslav Tulach 2012-11-26 11:39:15 UTC
Created attachment 128386 [details]
hg diff -r 450bd39d99c8:feature-dependencies-187678
Comment 11 Jiri Rechtacek 2012-12-01 18:55:20 UTC
I guess it's done on the branch.
http://hg.netbeans.org/releases/rev/0ce429ba852c
Comment 12 Jiri Rechtacek 2012-12-13 16:27:30 UTC
(In reply to comment #11)
> I guess it's done on the branch.
> http://hg.netbeans.org/releases/rev/0ce429ba852c

The one test is still blocking the merge the branch fod_187678@core-main - Test org.netbeans.modules.ide.ergonomics.fod.EnableJ2EEEnablesJavaTest FAILED

ant -v -f ide.ergonomics/build.xml -Dtest.includes=org/netbeans/modules/ide/ergonomics/fod/EnableJ2EEEnablesJavaTest.java -Dtest.type=unit -Dcontinue.after.failing.tests=true test-single
Comment 13 Jiri Rechtacek 2012-12-19 21:39:06 UTC
(In reply to comment #12)
> (In reply to comment #11)
> > I guess it's done on the branch.
> > http://hg.netbeans.org/releases/rev/0ce429ba852c
> 
> The one test is still blocking the merge the branch fod_187678@core-main - Test
> org.netbeans.modules.ide.ergonomics.fod.EnableJ2EEEnablesJavaTest FAILED
Solved, I hope it's the final - http://hg.netbeans.org/core-main/rev/08a164b6ad5b
Comment 14 Jiri Rechtacek 2012-12-20 16:58:03 UTC
http://hg.netbeans.org/core-main/rev/01cb4a570418
Comment 15 Quality Engineering 2012-12-21 02:34:15 UTC
Integrated into 'main-golden', will be available in build *201212210001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/5a5e6d5b12ae
User: Jiri Rechtacek <jrechtacek@netbeans.org>
Log: re-start #187678, a feature can depend on other feature