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 15593 - Cannot access filesystem actions or open VCS Groups dialog.
Summary: Cannot access filesystem actions or open VCS Groups dialog.
Status: CLOSED FIXED
Alias: None
Product: obsolete
Classification: Unclassified
Component: vcscore (show other bugs)
Version: 3.x
Hardware: PC Windows ME/2000
: P1 blocker (vote)
Assignee: issues@obsolete
URL:
Keywords:
: 15606 (view as bug list)
Depends on:
Blocks:
 
Reported: 2001-09-18 15:28 UTC by Milos Kleint
Modified: 2003-07-01 12:57 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
exception thrown. (2.73 KB, patch)
2001-09-18 15:30 UTC, Milos Kleint
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Milos Kleint 2001-09-18 15:28:29 UTC
using Build 200109180940:

With clear user directory I mounted 3 build-in cvs filesystems. Then I tried to
open the Versioning/VCS Groups menu item or attempted to invoke the popup menu
on any of the files in the filesystem. I get an exception (see atachement)
The problem is in the GroupUtils class line 54:

                InstanceDataObject ido = (InstanceDataObject)dobj;
                InstanceCookie cook =
(InstanceCookie)ido.getCookie(InstanceCookie.class);
                root = (MainVcsGroupNode)ido.getNodeDelegate();
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

It's there since I created the class and was always working: Please fix it or
tell me how to change my code.

Thanks.

PS: I tried twice in a row with the same results.
Comment 1 Milos Kleint 2001-09-18 15:30:42 UTC
Created attachment 2582 [details]
exception thrown.
Comment 2 Milos Kleint 2001-09-18 18:49:42 UTC
*** Issue 15606 has been marked as a duplicate of this issue. ***
Comment 3 Vitezslav Stejskal 2001-09-19 09:24:09 UTC
The behavior of InstanceDataNode.getNodeDelegate is intentional, see 
Jesse's message
http://www.netbeans.org/servlets/ReadMsg?msgId=80933&listName=nbdev .

If the IDO represents the instance of your node, call instanceCreate() 
on the InstanceCookie returned by the IDO. Your code looks like you 
wanted to write:

root = (MainVcsGroupNode)cook.createInstance ();
Comment 4 Martin Entlicher 2001-09-19 11:58:18 UTC
O.K., so the problem seems to be in vcscore module.
Comment 5 Martin Entlicher 2001-09-19 12:01:11 UTC
Fixed now in GroupUtils.java as Vita suggested. The fix works right to
me, therefore I supposed that it's fixed.
Comment 6 Jiri Kovalsky 2001-09-20 08:39:57 UTC
Popup menu is back and works. Verified in development build of Net-
Beans 3.3 #200109200100.
Comment 7 Quality Engineering 2003-07-01 12:57:51 UTC
Resolved for 3.4.x or earlier, no new info since then -> closing.