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 14206 - Tree editor driven by a document grammar
Summary: Tree editor driven by a document grammar
Status: RESOLVED WONTFIX
Alias: None
Product: xml
Classification: Unclassified
Component: Tree-Edit (show other bugs)
Version: 3.x
Hardware: All All
: P4 blocker with 2 votes (vote)
Assignee: issues@xml
URL:
Keywords: ARCH, UI
: 19415 (view as bug list)
Depends on: 23309 23310
Blocks:
  Show dependency tree
 
Reported: 2001-08-06 09:32 UTC by _ pkuzel
Modified: 2007-09-25 06:06 UTC (History)
1 user (show)

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 _ pkuzel 2001-08-06 09:32:14 UTC
The tree editor should like the text editor guide a user while editing it
content.
While inserting new element a grammar and current context (parents + parent
children) should be examined and proper element offered.

In a validity constrained mode all mandatory children must be added (in
recursive manner). In this mode must be also constrained removal and renaming of
mandatory elements and attributes. A reason why it is not allowed should be
displayed.
Comment 1 jsinai 2002-01-11 18:43:28 UTC
How exactly will this work? May I suggest a context menu in the tree 
that offers valid children.

In order to enforce correct attribute syntax, what we have done is 
replace the CustomizerView with a PropertySheetView. The 
PropertySheet shows all possible attributes and where it makes sense, 
like for enumerated values, there is an appropriate property editor. 
We feel that using the PropertySheet is a the way you should show 
properties in netbeans.
Comment 2 _ pkuzel 2002-01-11 18:59:30 UTC
The context menu contains Add submenu displaying suitable types in
context. If a user choose Element or Attribute a customizer is shown.
This customizer will contain combo boxes instead of text fields.
Comment 3 _ lkramolis 2002-01-14 13:46:00 UTC
*** Issue 19415 has been marked as a duplicate of this issue. ***
Comment 4 _ pkuzel 2002-06-03 12:27:57 UTC
Let these are considered while planning next release.
Comment 5 jsinai 2002-06-03 17:22:23 UTC
One of our team, Rich Unger, has already 
contributed the code that does most of this, 
and he can contribute the rest, if you want it.
Comment 6 _ pkuzel 2002-06-03 17:49:37 UTC
Of cource we are interested.

Unfortunatelly it is too late to incorporate the contribution into
NetBeans 3.4 release making it visible to huge audience. May be
AutoUpdate release may help.

Rich said that he ported it to latest codebase. It would be great!
Based on experience with the latest patch I would preffer "cvs diff
-c" to be included (format that I could apply by patch). I also expect
that Rich will ask for commiter role :-).
Comment 7 _ pkuzel 2002-06-03 17:52:33 UTC
I forgot to mention that dependency on external DTD parser may slow
down patch acceptance. We can port it to SAX based DTD parser or
undergo long legal approval process :-( ...
Comment 8 Marek Grummich 2002-07-19 17:00:16 UTC
Target milestone was changed from not determined to TBD
Comment 9 _ pkuzel 2003-03-14 21:58:56 UTC
NB 3.5 contains experimental implemtetion of this feature.

Rich Unger thanks for the contribution!
Comment 10 David-john Burrowes 2004-04-22 18:15:32 UTC
This post seems related to this issue:

http://www.netbeans.org/servlets/ReadMsg?msgId=739076&listName=nbui
Comment 11 zikmund 2005-05-04 15:19:06 UTC
XML tree editor is not part of NetBeans since 3.5 version. No plans to bring it
back.