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 60922 - Allow CloneableEditorSupport to wrap the editor component in another component
Summary: Allow CloneableEditorSupport to wrap the editor component in another component
Status: VERIFIED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Text (show other bugs)
Version: 5.x
Hardware: All All
: P3 blocker (vote)
Assignee: Andrei Badea
URL:
Keywords: API, API_REVIEW_FAST
Depends on:
Blocks:
 
Reported: 2005-07-13 13:59 UTC by Andrei Badea
Modified: 2008-12-22 22:40 UTC (History)
1 user (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments
Proposed changes (13.37 KB, text/plain)
2005-07-13 14:00 UTC, Andrei Badea
Details
Added the missing issue number to apichanges.xml (13.38 KB, text/plain)
2005-07-13 19:20 UTC, Andrei Badea
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andrei Badea 2005-07-13 13:59:49 UTC
There should be a way for to create a more complicated user interface which
contains the editor (as created by CloneableEditor or by
NbDocument.CustomEditor). A way to do this is to add a wrapEditorComponent()
method to CloneableEditorSupport, which would be called by CloneableEditor when
it adds the editor component.

A reason for this change is the UI of the SQL editor. The SQL editor will have
two areas: one at the top, containing the editor itself, and one at the bottom,
displaying the ResultSet obtained by executing the SQL statement in the editor.
The SQL editor's CloneableEditorSupport.wrapEditorComponent() will return a
JSplitPane whose top component will be the editor and the bottom one will be
contain the UI displaying the ResultSet.
Comment 1 Andrei Badea 2005-07-13 14:00:19 UTC
Created attachment 23082 [details]
Proposed changes
Comment 2 Jan Lahoda 2005-07-13 14:29:54 UTC
It seems to me that you should be able to do what you need using
NbDocument.CustomEditor. Or am I missing something?
Comment 3 Andrei Badea 2005-07-13 19:16:19 UTC
Actually I took this approach first. But it would mean that the UI is created by
the editor kit, and this is not correct. The UI should be created by the editor
support, since the execute functionality (and showing the result) is inherent to
the SQL DataObjects. And if you plug in a different editor kit, the SQL
execution related functionality should stay there.
Comment 4 Andrei Badea 2005-07-13 19:20:01 UTC
Created attachment 23091 [details]
Added the missing issue number to apichanges.xml
Comment 5 Jesse Glick 2005-07-13 20:27:27 UTC
No objections from me...
Comment 6 Jan Lahoda 2005-07-13 20:59:08 UTC
Ok, I understand now. No objections from me.
Comment 7 Andrei Badea 2005-07-20 07:35:46 UTC
If there aren't any objections I will commit tomorrow.
Comment 9 Jaroslav Tulach 2005-07-22 10:12:52 UTC
Nice URLs to the diffs. Have you generated them? How? If you assembled them  
manually you do not need to reply.  
 
Btw. there is a small mistake the "wrapEditorComponent" is since 6.4 
Comment 10 Andrei Badea 2005-07-22 12:15:59 UTC
Whoops, thank you for catching the mistake, I completely forgot about the @since
tag.