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 53134 - Form editor should be able to import user-code
Summary: Form editor should be able to import user-code
Status: RESOLVED DUPLICATE of bug 35849
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Code (show other bugs)
Version: 4.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: issues@guibuilder
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-01-08 06:58 UTC by _ gtzabari
Modified: 2005-05-13 15:40 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description _ gtzabari 2005-01-08 06:58:03 UTC
Proposal:

- Remove concept of Guarded Block
- Allow users to modify the code generated by the
form editor. Either add, remove lines or modify
existing ones.
- The form editor should be smart enough to parse
the resulting code and understand how to visually
lay it out.

I believe VisualAge Java does this: you have a
two-way form editor. It generates code for the
user, the user modifies that code and it picks up
those changes and reflects it in its view.

I believe this is vital if we want to ease
migration from Netbeans IDE to other IDEs and back
and abolish the need for Netbeans-specific XML
files or concepts.

Swing layout code should work regardless of which
IDE was used to build it and all IDEs should be
smart enough to pick up that code and generate a
view from it.

This is mostly a usability and interoperability
enhancement, but I suspect a lot of people would
be interested in it.

A similar approach could be applied to Ant project
files: the IDE would be sophisticated enough to
pick up changes in the code and work them into its
view and vice versa (allow editing of the Ant code
from its editor).
Comment 1 _ gtzabari 2005-01-11 18:05:28 UTC
An example of the kinds of problems I run into because of "Guarded Code":

http://www.javadesktop.org/forums/thread.jspa?messageID=49743&#49743

This is a very simple example. How hard would it be to implement this
enhancement? What issues would be involved?

Thank you,
Gili
Comment 2 Tomas Pavek 2005-05-13 14:56:24 UTC
Two way editing (in some form) is a highly requested feature. But still no plans
to do it. It is a very complex task.
Comment 3 Tomas Pavek 2005-05-13 15:40:54 UTC

*** This issue has been marked as a duplicate of 35849 ***