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 36123 - [2003-09-26] Implement short and long names of TopComponents
Summary: [2003-09-26] Implement short and long names of TopComponents
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Window System (show other bugs)
Version: 3.x
Hardware: PC All
: P1 blocker (vote)
Assignee: Peter Zavadsky
URL:
Keywords: API
Depends on:
Blocks: 36122
  Show dependency tree
 
Reported: 2003-09-16 16:32 UTC by Peter Zavadsky
Modified: 2008-12-22 16:00 UTC (History)
2 users (show)

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 Peter Zavadsky 2003-09-16 16:32:24 UTC
According to UI spec is necessary to implement the
short and long names of TopComponent, i.e. enhance
API.

Jano has to specify how the short, long (btw. also
tooltips) will be used.
Comment 1 Peter Zavadsky 2003-09-22 13:45:13 UTC
Assigning temporary to Jano, to specify usage of those methods in
winsys impl.
Comment 2 jrojcek 2003-09-25 09:59:40 UTC
For now, lets implement only short names of windows. 

It means:
- a document window should have the same name as its node in the
explorer except the CVS status, which should be excluded from the
window title
- a view window should have the only one name (due to the fact that
the window tab and window title bar are the same thing). The important
point is that the "Window" menu actions should always show a
non-dynamic names of all windows. It means the properties window has a
dynamic title "Properties of ColorPicker" but the menu action is
"Properties". The same for "Output - ColorPicker I/O" which is a
dynamic title of output window, but the menu action is always "Output".

In a future, we might enhance window names by using the long names,
which might be useful for displaying CVS status in status line or in
main window title.
Comment 3 Peter Zavadsky 2003-09-25 10:28:45 UTC
It needs to be implemented yet, this is just the specification.
Comment 4 Peter Zavadsky 2003-09-25 12:31:36 UTC
Fixed in winsys_29836 branch

openide/../text/CloneableEditor.java 1.60.4.3
          /windows/TopComponent.java 1.99.2.17
                  /WindowManager.java 1.35.44.6
core/windows/../windows/Central.java 1.1.2.102
                       /ViewRequestor.java 1.1.2.39
                       /WindowManagerImpl 1.1.2.91
                       /view/DefaultView.java 1.1.2.109
                            /View.java 1.1.2.22
                            /ui/AbstractModeContainer.java 1.1.2.9
                               /TabbedHandler.java 1.1.2.16
Comment 5 Peter Zavadsky 2003-09-25 12:54:42 UTC
Reopened, the hack which extracted the names from
CloneableEditorSupport the names isn't sufficient, is incorrect.

Needed to enhance the API of CES, for now addin methods (protected
ones) messageDisplayName and messageDisplayNameAnnotation.
Comment 6 Peter Zavadsky 2003-09-25 13:28:20 UTC
Fixed in branch winsys_29836

to those changes above added also:
openide/../text/CloneableEditor.java 1.60.4.4
               /CloneableEditorSupport.java 1.86.8.3
openide/loaders/../text/DataEditorSupport.java 1.5.10.2


Note: It is fixed only for DataEditorSupport subclasses... direct
CloneableEditorSupport subclasses will need to implement the
messageDisplayName and messageDisplayNameAnnotation methods accordingly.,