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 33972 - separate editing of set of content descriptors from packaging into jar
Summary: separate editing of set of content descriptors from packaging into jar
Status: CLOSED FIXED
Alias: None
Product: obsolete
Classification: Unclassified
Component: jarpackager (show other bugs)
Version: 3.x
Hardware: PC Windows ME/2000
: P3 blocker (vote)
Assignee: issues@obsolete
URL:
Keywords: API
Depends on:
Blocks: 33971
  Show dependency tree
 
Reported: 2003-05-28 16:31 UTC by Pavel Buzek
Modified: 2003-12-11 14:22 UTC (History)
0 users

See Also:
Issue Type: TASK
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Pavel Buzek 2003-05-28 16:31:23 UTC
I would like to reuse the support for creating and
editing contents without the packaing step (I
would just copy the result into a folder).
Comment 1 Pavel Buzek 2003-05-29 10:02:22 UTC
I suggest to add access to editor of EditableContent. E.g. add
something like this:

java.awt.Component getEditor ();

into EditableContent.EditorNode

another option would be to use getNode().getCustomizer() if it returns
the right editor (if so can this be documented?)
Comment 2 Ondrej Rypacek 2003-05-29 10:24:03 UTC
What about changing EditableContent.createNode to 

java.awt.Component createEditor() ?

It was originally like that, but then it seemed too coupled to me. But
now I see that creating just the node is useless (nobody would ever
implement other editor reusing the node) and coupled as well.

So I think it would be simple and functional to return directly the
panel you could put into your property editor or whereever you wish.

What do you think?
Comment 3 Pavel Buzek 2003-05-29 11:04:42 UTC
ok, I did not understand that the node retured from getNode in
EditorNode is the root node in editor. If it is so then I agree with
your solution -- getNode() should not be needed.

BTW: should not the content editor be used in customizer of build
target? What about poutting it into a separate tab called "Content".
Comment 4 Ondrej Rypacek 2003-05-30 11:18:09 UTC
Its finished.

RE "..customizer...": yes, of course. It's just not done yet.
Comment 5 Pavel Buzek 2003-06-02 12:34:22 UTC
Re: RE "..customizer...": 

when you try this you will find that it is not sufficient to return
java.awt.Component from createEditor(). To add a customizer panel you
need to implement a TemplateWizard.Iterator. You should apply changes
in instantiate() method, not immediately from the UI (see the
documentation in projects/ide about "Build Target Wizard and Customizer").
I suggest to change the createEditor method to createCustomizer:

public TemplateWizard.Iterator createCustomizer (Configuration c) {..}

Comment 6 Pavel Buzek 2003-06-02 16:21:55 UTC
As Ondrej pointed to me offline the recomended way is to clone the
ProjectContent, use it in customizer and set it back in instantiate().
How simple.
Comment 7 Pavel Buzek 2003-06-02 16:23:07 UTC
verified - it works
Comment 8 Pavel Buzek 2003-07-02 14:18:55 UTC
closing all my verified issues