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 80786 - Suite's project can't be used without suite
Summary: Suite's project can't be used without suite
Status: RESOLVED FIXED
Alias: None
Product: apisupport
Classification: Unclassified
Component: Project (show other bugs)
Version: 5.x
Hardware: All All
: P2 blocker (vote)
Assignee: Jesse Glick
URL:
Keywords:
: 83422 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-07-21 08:50 UTC by Vladimir Voskresensky
Modified: 2006-11-03 19:38 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Vladimir Voskresensky 2006-07-21 08:50:35 UTC
I've got the project from developer, but he sent it without suite. It's clear,
that initially project was created as "suite with project".
When I try to open popup menu for project in Project view => It's not opened
with exception => actions/properties are not accesible.

Exception is:
*********** Exception occurred ************ at 11:44 AM on Jul 21, 2006
java.lang.ClassCastException: org.netbeans.modules.java.j2seproject.J2SEProject
        at
org.netbeans.modules.apisupport.project.ui.customizer.SuiteUtils.findSuite(SuiteUtils.java:422)
        at
org.netbeans.modules.apisupport.project.ui.ModuleActions$5.isEnabled(ModuleActions.java:548)
        at org.openide.awt.Actions$MenuBridge.updateState(Actions.java:781)
        at org.openide.awt.Actions.connect(Actions.java:131)
        at org.openide.awt.Actions$MenuItem.<init>(Actions.java:1108)
        at
org.netbeans.modules.openide.awt.DefaultAWTBridge.createPopupPresenter(DefaultAWTBridge.java:55)
        at org.openide.util.Utilities.actionsToPopup(Utilities.java:2626)
        at org.openide.util.Utilities.actionsToPopup(Utilities.java:2690)
        at org.openide.explorer.view.TreeView.createPopup(TreeView.java:868)
        at
org.openide.explorer.view.TreeView$PopupAdapter.showPopup(TreeView.java:1295)
        at
org.openide.awt.MouseUtils$PopupMouseAdapter.maybePopup(MouseUtils.java:152)
        at
org.openide.awt.MouseUtils$PopupMouseAdapter.mousePressed(MouseUtils.java:143)
        at java.awt.AWTEventMulticaster.mousePressed(AWTEventMulticaster.java:222)
        at java.awt.AWTEventMulticaster.mousePressed(AWTEventMulticaster.java:221)
        at java.awt.AWTEventMulticaster.mousePressed(AWTEventMulticaster.java:221)
        at java.awt.Component.processMouseEvent(Component.java:5485)
        at javax.swing.JComponent.processMouseEvent(JComponent.java:3126)
        at java.awt.Component.processEvent(Component.java:5253)
        at java.awt.Container.processEvent(Container.java:1966)
        at java.awt.Component.dispatchEventImpl(Component.java:3955)
        at java.awt.Container.dispatchEventImpl(Container.java:2024)
        at java.awt.Component.dispatchEvent(Component.java:3803)
        at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212)
        at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3889)
        at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
        at java.awt.Container.dispatchEventImpl(Container.java:2010)
        at java.awt.Window.dispatchEventImpl(Window.java:1774)
        at java.awt.Component.dispatchEvent(Component.java:3803)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
[catch] at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
        at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
        at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
Comment 1 Jesse Glick 2006-07-21 10:30:11 UTC
Fixed in trunk. Can probably work around by making your own suite and use
Modules > Add Existing on the project you were sent. Failing that, look into the
module's project.xml and replace <suite-component/> with <standalone/>. I'm
assuming the suite did not contain any other modules that this module would
depend on - if so, the module project by itself is useless anyway.
Comment 2 Jesse Glick 2006-07-21 10:31:07 UTC
Checking in
apisupport/project/src/org/netbeans/modules/apisupport/project/ui/customizer/SuiteUtils.java;
/shared/data/ccvs/repository/apisupport/project/src/org/netbeans/modules/apisupport/project/ui/customizer/SuiteUtils.java,v
 <--  SuiteUtils.java
new revision: 1.27; previous revision: 1.26
done
Checking in
apisupport/project/test/unit/src/org/netbeans/modules/apisupport/project/ui/customizer/SuiteUtilsTest.java;
/shared/data/ccvs/repository/apisupport/project/test/unit/src/org/netbeans/modules/apisupport/project/ui/customizer/SuiteUtilsTest.java,v
 <--  SuiteUtilsTest.java
new revision: 1.11; previous revision: 1.10
done
Comment 3 Vladimir Voskresensky 2006-07-21 14:00:09 UTC
> Can probably work around by making your own suite and use Modules > Add
Existing on the project you were sent.
Doesn't work.
> Failing that, look into the module's project.xml and replace
<suite-component/> with <standalone/>.
+
update build-impl.xml
remove suite.properties

Comment 4 Martin Krauskopf 2006-08-31 14:17:38 UTC
*** Issue 83422 has been marked as a duplicate of this issue. ***