Geertjan's Blog

  • November 2, 2010

Setting the Order of Windows in a Single Mode

Geertjan Wielenga
Product Manager
You have multiple windows displayed in a single mode. How do you specify the order in which the windows are displayed? See below.
<folder name="Windows2">
<folder name="Components">
<file name="Details1TopComponent.settings" url="Details1TopComponentSettings.xml"/>
<folder name="Modes">
<folder name="editor">
<file name="Details1TopComponent.wstcref" url="Details1TopComponentWstcref.xml"><attr name="position" intvalue="100"/>

That's all.

Join the discussion

Comments ( 2 )
  • Jesse Glick Wednesday, November 3, 2010

    In fact if you neglect to specify the position for a new Modes/\*/\*.wstcref, and some existing windows in the mode do specify a position (as should be the case for anything in the NB Platform), you will get a warning from org.openide.filesystems.Ordering on console.

  • Geertjan Wielenga Wednesday, November 3, 2010

    So why doesn't the New Window wizard allow you to specify (or generate a default) position? Until yesterday, I never knew that that position existed, and worked, for windows (and I found out by looking at the definition of the Favorites window in the sources).

Please enter your name.Please provide a valid email address.Please enter a comment.CAPTCHA challenge response provided was incorrect. Please try again.