|
org.openide.windows 6.18.1 | |||||||||
PREV NEXT | FRAMES NO FRAMES |
See:
Description
Window System API | |
---|---|
org.openide.windows | Most parts of NetBeans do not manipulate windows directly, but use special top components. |
Change behavior of winsys implementation when TopComponent.close() and TopComponentGroup.close() is called for non persistent TopComponent. So far if non persistent TopComponent was closed it was removed from Mode. It causes window system to forget TopComponent location so if TopComponent is reopened it is opened in default location. It is now changed so that window system keeps location of non persistent TopComponent during session. Of course this information is not stored between sessions as TopComponent is NOT persistent. So this change applies only to TopComponent with peristence type PERSISTENCE_NEVER.
Added command line boolean option 'netbeans.winsys.auto_iconify'. When system is run with option netbeans.winsys.auto_iconify=true, all separate frames will follow iconified state of main window automatically. So when main window is iconified, they all get iconified too and vice versa. Such behavior was default prior to this change, but now automatic iconification is disabled by default, to respect independency of separate frames and behave well with GNOME window managers such as default Metacity WM.
Added method WindowManager.isOpenedEditorTopComponent(TopComponent) for checking of the TopComponent type - editor or view. The method returns true if the given TopComponent is opened and is docked into an editor-type Mode. It is safe to call this method outside the event dispatch thread.
Added method TopComponent.openAtTabPosition(int) for opening and inserting top component at specified position. For retrieving current position, method TopComponent.getTabPosition() was added.
Command line option netbeans.windows=(mdi,sdi) used for starting the system either in sdi or mdi mode, was deleted. Support for sdi was dropped and replaced by floating windows support. System will now always start in mdi mode.
protected void componentDeactivated () { // close window group containing propsheet, but only if we're // selecting a different kind of TC in the same mode boolean closeGroup = true; Mode curMode = WindowManager.getDefault().findMode(this); TopComponent selected = curMode.getSelectedTopComponent(); if (selected != null && selected instanceof FooTopComponent) closeGroup = false; if (closeGroup) { TopComponentGroup group = WindowManager.getDefault().findTopComponentGroup(TC_GROUP); if (group != null) { group.close(); } } }
|
|
|
|
|
OpenIDE-Module-Requires: org.openide.windows.WindowManager
but it is not generally done.
Read more about the implementation in the answers to architecture questions.
|
org.openide.windows 6.18.1 | |||||||||
PREV NEXT | FRAMES NO FRAMES |