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 219113 - When opening properties (window) of a table column, all properties are shown as comment as well
Summary: When opening properties (window) of a table column, all properties are shown ...
Status: RESOLVED FIXED
Alias: None
Product: db
Classification: Unclassified
Component: Code (show other bugs)
Version: 7.3
Hardware: PC Mac OS X
: P4 normal (vote)
Assignee: matthias42
URL:
Keywords: PATCH_AVAILABLE
Depends on:
Blocks:
 
Reported: 2012-09-27 14:06 UTC by host
Modified: 2015-01-25 19:40 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments
Column properties window (39.70 KB, image/png)
2012-09-27 14:06 UTC, host
Details

Note You need to log in before you can comment on or make changes to this bug.
Description host 2012-09-27 14:06:11 UTC
Created attachment 125007 [details]
Column properties window

I select a column of a table and right click. In the appearing drop down menu, I select "Properties".

The properties window appears with the editable properties at the top BUT those properties appear (non-editable) again in the comment field (I hope that is the right term) - as can be seen on the attached screenshot. I think that this should better be removed.

Also on the screenshot, one can see that the properties in the comment field are cut-off at the top. (see blue box)
Comment 1 matthias42 2012-09-29 13:56:12 UTC
This is intentional - at least partly.

The text that is visible there is the text of the ShortDescription-property of the selected node. In this case it is intentional because the property is also used to create the tooltip when hovering with the mouse over the column node.

So there is no quick way to change this.
Comment 2 matthias42 2014-10-16 18:58:18 UTC
Two years later this can be fixed (or at least now I know how):

db module - ColumnNode.java:

--- Base (BASE)
+++ Locally Modified (Based On LOCAL)
@@ -107,6 +107,9 @@
     @SuppressWarnings("unchecked")
     private ColumnNode(NodeDataLookup lookup, NodeProvider provider) {
         super(lookup, FOLDER, provider);
+        // Fix for bug 219113 - see also getShortDescription
+        setValue("nodeDescription", 
+                NbBundle.getMessage(ConnectionNode.class, "ND_Column"));
         columnHandle = getLookup().lookup(MetadataElementHandle.class);
         connection = getLookup().lookup(DatabaseConnection.class);
     }
@@ -377,6 +380,9 @@
 
     @Override
     public String getShortDescription() {
+        // the description is intended to be used by the tooltips
+        // the node description (used in the property sheet display) is
+        // overrriden via putValue("nodeDescription", ...) in the constructor)
         return description;
     }


This solution is based on an email from Tim Boudreau (https://netbeans.org/projects/platform/lists/dev/archive/2014-10/message/95).
Comment 3 matthias42 2015-01-18 20:32:16 UTC
Fix commited as: http://hg.netbeans.org/core-main/rev/0ea3eefac392
Comment 4 Quality Engineering 2015-01-20 04:02:56 UTC
Integrated into 'main-silver', will be available in build *201501200001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/0ea3eefac392
User: Matthias Blaesing <matthias42@netbeans.org>
Log: #219113: Seperate tooltip text and node description for column node
Comment 5 matthias42 2015-01-25 19:40:32 UTC
Please help with QA - in the nightly build the fix can be tested. Please check if your problem is fixed there. If so, please change the status of this bug to "VERIFIED".