Package | Description |
---|---|
org.openide.windows |
Most parts of NetBeans do not manipulate windows directly, but use
special
top components.
|
The method is called when CloneableOpenSupportRedirector found another instance of CloneableOpenSupport to open instead the current. It is possible to override afterRedirect in derived classes and handle this situation.
It is possible to override boolean window system properties defined in resource bundle org/netbeans/core/windows/Bundle.properties
with system properties prefixed with "NB.WinSys.". For example property
Mix.Editors.And.Views.Enabled
can be overriden with a command-line switch
-J-DNB.WinSys.Mix.Editors.And.Views.Enabled=false
.
Version of CloneableEditorSupportRedirector which will be called only during opening of document when algorith tries to understand if file is in list of already opened TCs or not. SPI implementers to setup filter on specific requests only... This could minimize number of redirect() calls.
The new methods can be used in conjunction with split multiview window, where e.g. the pallette needs to know which two of the available subcomponents are showing and query their lookup.
New method setAttentionHighlight(boolean) in TopComponent class can be used to permanently highlight TopComponent's tab until user activates it.
For general overview of the concepts,
together with code samples, see chapter 6,
of NetBeans Platform for Beginners
by Jason Wexbridge and Walter Nyland.
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.
Built on December 31 2015. | Portions Copyright 1997-2015 Oracle. All rights reserved.