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 33116 - ClassCastException from CloneViewAction
Summary: ClassCastException from CloneViewAction
Status: VERIFIED FIXED
Alias: None
Product: projects
Classification: Unclassified
Component: Generic Infrastructure (show other bugs)
Version: -S1S-
Hardware: All All
: P1 blocker (vote)
Assignee: Vitezslav Stejskal
URL:
Keywords:
Depends on: 33557
Blocks:
  Show dependency tree
 
Reported: 2003-04-22 10:28 UTC by mslama
Modified: 2003-05-14 12:25 UTC (History)
3 users (show)

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 mslama 2003-04-22 10:28:14 UTC
TopComponent
org.netbeans.modules.projects.CurrentProjectNode$ProjectsTab
provides CloneViewAction but does not implement
TopComponent.Cloneable interface.
Comment 1 mslama 2003-04-22 10:34:59 UTC
Original issue #33110
Comment 2 Jan Chalupa 2003-04-22 13:09:52 UTC
Seems to be the shortest way to get an exception with current
release35-based builds -- just 2 mouse clicks!

- right-click the Project tab
- select Clone View

This needs to be fixed for 3.5/S1S 5... -> P1

Comment 3 Vitezslav Stejskal 2003-04-22 14:53:29 UTC
fixed in main trunk

org/netbeans/modules/projects/CurrentProjectNode.java
new revision: 1.12

Marek, could you please review my change, here is the graphical diff:
http://www.netbeans.org/source/browse/projects/src/org/netbeans/modules/projects/CurrentProjectNode.java.diff?r1=1.11&r2=1.12

Thanks.
Comment 4 mslama 2003-04-22 15:06:26 UTC
Fix is OK.
Comment 5 _ ttran 2003-04-22 16:54:28 UTC
approved for 3.5
Comment 6 Vitezslav Stejskal 2003-04-22 17:38:21 UTC
fixed in release35 branch

org/netbeans/modules/projects/CurrentProjectNode.java
new revision: 1.6.2.3
Comment 7 Milan Kubec 2003-04-23 08:13:27 UTC
Verified in release35-200304222350.
Comment 8 mslama 2003-05-13 13:57:20 UTC
*** Issue 33557 has been marked as a duplicate of this issue. ***
Comment 9 mslama 2003-05-14 12:25:40 UTC
As issue #33557 is fixed (TopComponent does not provide
CloneViewAction when it does not implement TopComponent.Cloneable
interface in trunk.) it is possible to remove workaround in trunk.

/cvs/projects/src/org/netbeans/modules/projects/CurrentProjectNode.java,v
 <--  CurrentProjectNode.java
new revision: 1.13;