the class ExplorerPanel is deprecated. now we need to extend TopComponent and do
lot of coding (implement Explorer.Provider)
it nearly takes 90 lines of code to create My own ExplorerPanel.
why don't you create one such class in openide.
now wherever used needs ExplorerPanel, he has to replicate the same code.
to make my job easier I created My own ExplorerPanel without using any
deprecated api called XExplorerPanel.
I am contributing my class to netbeans.
plz add this to Openide and make beginners life easier.
Created attachment 21476 [details]
My ExplorerPanel implementation
the attached class also takes care of finding HelpCtx from selected nodes.
if you don't want to replace ExplorerPanel, you may add this class as it is to
openide and specify in javadoc to use XExplorerPanel rather than ExplorerPanel.
passing to explorer guys.
Agreed but it is an enhancement request.
Created attachment 21525 [details]
Standalone ExplorerPanel Implementation
one more contribution.
i attached one more file Explorer.java
this is a standalone explorer panel implementation
(i.e, extending JPanel instead of TopComponent)
Created attachment 21526 [details]
one more contribution: Cloneable ExplorerPanel implementation
Note: I can't directly use your code in openide-explorer module as it still
extends a TopComponent from openide-windows module, which is unwanted dependency.
The original ExplorerPanel was deprecated just because of that dependency, to
allow openide split. Anyway, I'd like to provide some helper even without
Reassigning to new module owner Tomas Holy.
*** This bug has been marked as a duplicate of bug 20851 ***