Search in sources :

Example 1 with WindowSystemSnapshot

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

the class DefaultModel method createWindowSystemSnapshot.

// Controller updates <<
// ///////////////////////
@Override
public WindowSystemSnapshot createWindowSystemSnapshot() {
    WindowSystemSnapshot wsms = new WindowSystemSnapshot();
    // PENDING
    ModeStructureSnapshot mss = createModeStructureSnapshot();
    wsms.setModeStructureSnapshot(mss);
    ModeImpl activeMode = getActiveMode();
    wsms.setActiveModeSnapshot(activeMode == null ? null : mss.findModeSnapshot(activeMode.getName()));
    ModeImpl maximizedMode = null != getViewMaximizedMode() ? getViewMaximizedMode() : null;
    wsms.setMaximizedModeSnapshot(maximizedMode == null ? null : mss.findModeSnapshot(maximizedMode.getName()));
    wsms.setMainWindowBoundsJoined(getMainWindowBoundsJoined());
    wsms.setMainWindowBoundsSeparated(getMainWindowBoundsSeparated());
    wsms.setEditorAreaBounds(getEditorAreaBounds());
    wsms.setEditorAreaState(getEditorAreaState());
    wsms.setEditorAreaFrameState(getEditorAreaFrameState());
    wsms.setMainWindowFrameStateJoined(getMainWindowFrameStateJoined());
    wsms.setMainWindowFrameStateSeparated(getMainWindowFrameStateSeparated());
    wsms.setToolbarConfigurationName(getToolbarConfigName());
    return wsms;
}
Also used : WindowSystemSnapshot(org.netbeans.core.windows.WindowSystemSnapshot) ModeStructureSnapshot(org.netbeans.core.windows.ModeStructureSnapshot) ModeImpl(org.netbeans.core.windows.ModeImpl)

Aggregations

ModeImpl (org.netbeans.core.windows.ModeImpl)1 ModeStructureSnapshot (org.netbeans.core.windows.ModeStructureSnapshot)1 WindowSystemSnapshot (org.netbeans.core.windows.WindowSystemSnapshot)1