# This patch file was generated by NetBeans IDE # Following Index: paths are relative to: F:\Sources\MainTrunk\openide\windows # This patch can be applied using context Tools: Patch action on respective folder. # It uses platform neutral UTF-8 encoding and \n newlines. # Above lines and this line are ignored by the patching process. Index: src/org/openide/windows/WindowManager.java *** F:\Sources\MainTrunk\openide\windows\src\org\openide\windows\WindowManager.java Base (1.15) --- F:\Sources\MainTrunk\openide\windows\src\org\openide\windows\WindowManager.java Locally Modified (Based On 1.15) *************** *** 350,355 **** --- 350,381 ---- * @since 4.13 */ protected abstract void topComponentOpen(TopComponent tc); + /** Opens given TopComponent at given position in the mode. TopComponent is inserted at given + * position, positions of already opened TopComponents in the same mode are + * incremented. + * + * + * + * @param tc TopComponent which is opened. + * @param position Index of the requested position. + * @since 6.15 + */ + protected abstract void topComponentOpenAtPosition(TopComponent tc, int position); + + /** Gives position index of given TopComponent in the mode. Result is + * undefined for closed TopComponents. + * + * @param tc TopComponent for which position is returned. + * @return Index of position. + * @since 6.15 + */ + protected abstract int topComponentGetPosition(TopComponent tc); + /** Provides closing of specified TopComponent. * @param tc TopComponent to close * @since 4.13 */ Index: apichanges.xml *** F:\Sources\MainTrunk\openide\windows\apichanges.xml Base (1.14) --- F:\Sources\MainTrunk\openide\windows\apichanges.xml Locally Modified (Based On 1.14) *************** *** 24,29 **** --- 24,47 ---- + + + Added methods for opening TopComponent at specified position + + + + + + Added method TopComponent.openAtPosition(int) + for opening and inserting top component at specified position. For retrieving current position, + method TopComponent.getPosition() + was added. + + + + + + Removal of netbeans.windows=sdi and netbeans.windows=mdi cmnd line option. Index: src/org/openide/windows/DummyWindowManager.java *** F:\Sources\MainTrunk\openide\windows\src\org\openide\windows\DummyWindowManager.java Base (1.7) --- F:\Sources\MainTrunk\openide\windows\src\org\openide\windows\DummyWindowManager.java Locally Modified (Based On 1.7) *************** *** 359,364 **** --- 359,372 ---- } } + protected void topComponentOpenAtPosition(TopComponent tc, int index) { + topComponentOpen(tc); + } + + protected int topComponentGetPosition(TopComponent tc) { + return topComponentIsOpened(tc) ? 0 : -1; + } + protected void topComponentClose(TopComponent tc) { componentHidden(tc); componentCloseNotify(tc); Index: manifest.mf *** F:\Sources\MainTrunk\openide\windows\manifest.mf Base (1.14) --- F:\Sources\MainTrunk\openide\windows\manifest.mf Locally Modified (Based On 1.14) *************** *** 1,5 **** Manifest-Version: 1.0 OpenIDE-Module: org.openide.windows ! OpenIDE-Module-Specification-Version: 6.14 OpenIDE-Module-Localizing-Bundle: org/openide/windows/Bundle.properties --- 1,5 ---- Manifest-Version: 1.0 OpenIDE-Module: org.openide.windows ! OpenIDE-Module-Specification-Version: 6.15 OpenIDE-Module-Localizing-Bundle: org/openide/windows/Bundle.properties Index: src/org/openide/windows/TopComponent.java *** F:\Sources\MainTrunk\openide\windows\src\org\openide\windows\TopComponent.java Base (1.20) --- F:\Sources\MainTrunk\openide\windows\src\org\openide\windows\TopComponent.java Locally Modified (Based On 1.20) *************** *** 354,359 **** --- 354,388 ---- WindowManager.getDefault().topComponentOpen(this); } + /** Opens TopComponent at given position in the mode. TopComponent is inserted at given + * position, positions of already opened TopComponents in the same mode are + * incremented. + * + *
    + *
  • Does no operation if this TopComponent is already opened.
  • + *
  • For position value less then 0, TopComponent is opened at position 0, the very first one.
  • + *
  • For position value greater then count of opened TopComponents in the mode, + * TopComponent is opened at last position
  • + *
+ * + * @param position Index of the requested position. + * @since 6.15 + */ + public final void openAtPosition (int position) { + WindowManager.getDefault().topComponentOpenAtPosition(this, position); + } + + /** Gives position index of opened TopComponent in the mode. + * + * For closed TopComponents, position value less then zero is returned. + * + * @return Index of position. + * @since 6.15 + */ + public final int getPosition () { + return WindowManager.getDefault().topComponentGetPosition(this); + } + /** Indicates whether this TopComponent is opened. * @return true if given top component is opened, false otherwise */ public final boolean isOpened() {