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 134641 - cpp switch files plugin fails
Summary: cpp switch files plugin fails
Status: CLOSED WONTFIX
Alias: None
Product: cnd
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: All Linux
: P2 blocker (vote)
Assignee: Vladimir Voskresensky
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-05-06 23:11 UTC by crimcat
Modified: 2012-01-01 23:54 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
messages.log (135.19 KB, application/octet-stream)
2012-01-01 23:53 UTC, tomasz.malewski
Details

Note You need to log in before you can comment on or make changes to this bug.
Description crimcat 2008-05-06 23:11:44 UTC
In NetBeans 6.1 RC2 and final NetBeans 6.1 the "cpp switch files" plugin does not work.
Test case:
1) Install "cpp switch files" plugin.
2) Create new projects, add (for simplicity) an existing C/C++ source file, open it.
3) Right click on any place inside the source code editor - no context menu appears.
Also, a stack trace can be taken for IDE Log file:
java.lang.NoClassDefFoundError: org/netbeans/modules/cnd/loaders/HDataObject
        at org.netbeans.modules.cppswitchfiles.CppSwitchAction.cookieClasses(CppSwitchAction.java:132)
        at org.openide.util.actions.CookieAction.getCookies(CookieAction.java:113)
        at org.openide.util.actions.CookieAction.resolveSupported(CookieAction.java:170)
        at org.openide.util.actions.CookieAction.doEnable(CookieAction.java:146)
        at org.openide.util.actions.CookieAction.enable(CookieAction.java:136)
        at org.openide.util.actions.NodeAction.isEnabled(NodeAction.java:202)
        at org.openide.awt.Actions$MenuBridge.updateState(Actions.java:902)
        at org.openide.awt.Actions.connect(Actions.java:196)
        at org.openide.awt.Actions.connect(Actions.java:163)
        at org.openide.awt.Actions$MenuItem.<init>(Actions.java:1234)
        at org.netbeans.modules.openide.awt.DefaultAWTBridge.createMenuPresenter(DefaultAWTBridge.java:67)
        at org.openide.util.actions.CallableSystemAction.getMenuPresenter(CallableSystemAction.java:79)
        at org.openide.awt.DynaMenuModel.loadSubmenu(DynaMenuModel.java:91)
        at org.openide.awt.MenuBar$LazyMenu$MenuFolder.createInstance(MenuBar.java:676)
        at org.openide.loaders.FolderInstance.defaultProcessObjects(FolderInstance.java:767)
        at org.openide.loaders.FolderInstance.access$000(FolderInstance.java:99)
        at org.openide.loaders.FolderInstance$2.run(FolderInstance.java:655)
        at org.openide.util.Task.run(Task.java:244)
        at org.openide.awt.AWTTask.run(AWTTask.java:57)
        at org.openide.awt.AWTTask.waitFinished(AWTTask.java:64)
        at org.openide.loaders.FolderInstance.waitFinished(FolderInstance.java:323)
        at org.openide.awt.MenuBar$LazyMenu$MenuFolder.waitFinishedSuper(MenuBar.java:603)
        at org.openide.awt.MenuBar$LazyMenu.doInitialize(MenuBar.java:562)
        at org.openide.awt.MenuBar$LazyMenu.stateChanged(MenuBar.java:536)
        at javax.swing.DefaultButtonModel.fireStateChanged(DefaultButtonModel.java:333)
        at javax.swing.DefaultButtonModel.setSelected(DefaultButtonModel.java:215)
        at javax.swing.JMenu.setSelected(JMenu.java:294)
        at javax.swing.JMenu.menuSelectionChanged(JMenu.java:1175)
        at javax.swing.MenuSelectionManager.setSelectedPath(MenuSelectionManager.java:101)
        at javax.swing.plaf.basic.BasicMenuUI$Handler.mousePressed(BasicMenuUI.java:435)
        at java.awt.Component.processMouseEvent(Component.java:6131)
        at javax.swing.JComponent.processMouseEvent(JComponent.java:3265)
        at java.awt.Component.processEvent(Component.java:5899)
        at java.awt.Container.processEvent(Container.java:2030)
        at java.awt.Component.dispatchEventImpl(Component.java:4501)
        at java.awt.Container.dispatchEventImpl(Container.java:2088)
        at java.awt.Component.dispatchEvent(Component.java:4331)
        at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4303)
        at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3964)
        at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3897)
        at java.awt.Container.dispatchEventImpl(Container.java:2074)
        at java.awt.Window.dispatchEventImpl(Window.java:2458)
        at java.awt.Component.dispatchEvent(Component.java:4331)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
        at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:104)
[catch] at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:284)
        at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
        at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
Comment 1 Alexander Simon 2008-05-07 07:03:24 UTC
The "cpp switch files" was included in the NB 6.1.
The plugin do not work with 6.1.
vv159170, please, add comment/rename plugin.
Comment 2 Vladimir Voskresensky 2008-05-07 17:37:09 UTC
Hi, crimcat,
Alexander is right. Now the functionality of this plug-in is part of 6.1, so I'm closing as "will not fix"
The shortcut is the same, so no need for additional installation and life became easier :-)
Thanks,
Vladimir.
Comment 3 tomasz.malewski 2012-01-01 23:53:22 UTC
Created attachment 114540 [details]
messages.log
Comment 4 tomasz.malewski 2012-01-01 23:54:04 UTC
Comment on attachment 114540 [details]
messages.log

wrong attachment.
wrong window.
sorry for confuse