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 113717 - NewAction does not work in IndexedEditorPanel
Summary: NewAction does not work in IndexedEditorPanel
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Explorer (show other bugs)
Version: 5.x
Hardware: All All
: P3 blocker (vote)
Assignee: Jaroslav Tulach
URL:
Keywords: REGRESSION
: 113716 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-08-24 13:20 UTC by _ zeled
Modified: 2008-12-22 14:48 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Patch against NB 5.5.1 (1.36 KB, patch)
2007-08-24 13:23 UTC, _ zeled
Details | Diff
Patch against NB 6 (not tested due to the lack of time) (1.48 KB, patch)
2007-08-24 13:25 UTC, _ zeled
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description _ zeled 2007-08-24 13:20:13 UTC
NewAction, MoveUpAction and MoveDownAction are all instantiated through reflection using the default ClassLoader (from
current class, which is the module ClassLoader AFAIK). However, this ClassLoader is missing org.openide.actions module
JAR which provides these classes. Thus, these actions are never bound to the indexed property editor (MoveUp and
MoveDown are always disabled and New is noop).
I'm afraid we cannot make org.openide.explorer depending on org.openide.actions because the latter is already depending
on the former. Thus the best way would be to use the ClassLoader from NetBeans global Lookup.
It seems this bug exists since the split of openide into several projects (NB4->5 transition).
Comment 1 _ zeled 2007-08-24 13:23:53 UTC
Created attachment 47302 [details]
Patch against NB 5.5.1
Comment 2 _ zeled 2007-08-24 13:25:06 UTC
Created attachment 47303 [details]
Patch against NB 6 (not tested due to the lack of time)
Comment 3 _ zeled 2007-08-24 13:31:59 UTC
*** Issue 113716 has been marked as a duplicate of this issue. ***
Comment 4 Antonin Nebuzelsky 2008-02-06 15:35:47 UTC
Jardo, you might know something about this.
Comment 5 Jaroslav Tulach 2008-03-27 16:43:41 UTC
changeset:   75255:e5d6237f7dce
tag:         tip
user:        Jaroslav Tulach <jtulach@netbeans.org>
date:        Thu Mar 27 16:43:02 2008 +0100
summary:     #113717: Applying the patch to use system classloader