Search in sources :

Example 6 with ModeImpl

use of org.netbeans.core.windows.ModeImpl in project netbeans-rcp-lite by outersky.

the class DefaultView method userEnabledAutoHide.

@Override
public void userEnabledAutoHide(ModeView modeView, TopComponent tc) {
    ModeAccessor modeAccessor = (ModeAccessor) hierarchy.getAccessorForView(modeView);
    ModeImpl mode = getModeForModeAccessor(modeAccessor);
    String side = guessSlideSide(tc);
    controllerHandler.userEnabledAutoHide(tc, mode, side);
}
Also used : ModeImpl(org.netbeans.core.windows.ModeImpl)

Example 7 with ModeImpl

use of org.netbeans.core.windows.ModeImpl in project netbeans-rcp-lite by outersky.

the class DefaultView method userDisabledAutoHide.

// Sliding
@Override
public void userDisabledAutoHide(ModeView modeView, TopComponent tc) {
    ModeAccessor modeAccessor = (ModeAccessor) hierarchy.getAccessorForView(modeView);
    ModeImpl mode = getModeForModeAccessor(modeAccessor);
    controllerHandler.userDisabledAutoHide(tc, mode);
}
Also used : ModeImpl(org.netbeans.core.windows.ModeImpl)

Example 8 with ModeImpl

use of org.netbeans.core.windows.ModeImpl in project netbeans-rcp-lite by outersky.

the class DefaultView method userActivatedModeWindow.

@Override
public void userActivatedModeWindow(ModeView modeView) {
    if (DEBUG) {
        // NOI18N
        debugLog("User activated mode window, mode=" + modeView);
    }
    ModeAccessor modeAccessor = (ModeAccessor) hierarchy.getAccessorForView(modeView);
    ModeImpl mode = getModeForModeAccessor(modeAccessor);
    controllerHandler.userActivatedModeWindow(mode);
}
Also used : ModeImpl(org.netbeans.core.windows.ModeImpl)

Example 9 with ModeImpl

use of org.netbeans.core.windows.ModeImpl in project netbeans-rcp-lite by outersky.

the class DefaultView method userResizedModeBounds.

@Override
public void userResizedModeBounds(ModeView modeView, Rectangle bounds) {
    if (DEBUG) {
        // NOI18N
        debugLog("User resized mode");
    }
    ModeAccessor modeAccessor = (ModeAccessor) hierarchy.getAccessorForView(modeView);
    // XXX PENDING #39083 Investigate how it could happen.
    if (modeAccessor != null) {
        ModeImpl mode = getModeForModeAccessor(modeAccessor);
        controllerHandler.userResizedModeBounds(mode, bounds);
    }
}
Also used : ModeImpl(org.netbeans.core.windows.ModeImpl)

Example 10 with ModeImpl

use of org.netbeans.core.windows.ModeImpl in project netbeans-rcp-lite by outersky.

the class DefaultView method userChangedFrameStateMode.

@Override
public void userChangedFrameStateMode(ModeView modeView, int frameState) {
    if (DEBUG) {
        // NOI18N
        debugLog("User changed frame state mode");
    }
    ModeAccessor modeAccessor = (ModeAccessor) hierarchy.getAccessorForView(modeView);
    ModeImpl mode = getModeForModeAccessor(modeAccessor);
    controllerHandler.userChangedFrameStateMode(mode, frameState);
}
Also used : ModeImpl(org.netbeans.core.windows.ModeImpl)

Aggregations

ModeImpl (org.netbeans.core.windows.ModeImpl)60 TopComponent (org.openide.windows.TopComponent)35 WindowManagerImpl (org.netbeans.core.windows.WindowManagerImpl)22 ArrayList (java.util.ArrayList)5 IOException (java.io.IOException)3 List (java.util.List)3 FileObject (org.openide.filesystems.FileObject)3 Component (java.awt.Component)2 File (java.io.File)2 HashMap (java.util.HashMap)2 HashSet (java.util.HashSet)2 Iterator (java.util.Iterator)2 BackingStoreException (java.util.prefs.BackingStoreException)2 Preferences (java.util.prefs.Preferences)2 WindowSystem (org.netbeans.core.WindowSystem)2 ModeStructureSnapshot (org.netbeans.core.windows.ModeStructureSnapshot)2 TopComponentTracker (org.netbeans.core.windows.TopComponentTracker)2 MultiSplitPane (org.netbeans.core.windows.view.ui.MultiSplitPane)2 TabActionEvent (org.netbeans.swing.tabcontrol.event.TabActionEvent)2 NbPreferences (org.openide.util.NbPreferences)2