use of org.netbeans.core.windows.ModeImpl in project netbeans-rcp-lite by outersky.
the class UndockWindowAction method actionPerformed.
@Override
public void actionPerformed(ActionEvent e) {
// contextTC shound never be null thanks to isEnabled impl
WindowManagerImpl wmi = WindowManagerImpl.getInstance();
TopComponent contextTC = getTC2WorkWith();
if (null == contextTC)
return;
boolean isDocked = wmi.isDocked(contextTC);
ModeImpl mode = (ModeImpl) wmi.findMode(contextTC);
if (isDocked) {
wmi.userUndockedTopComponent(contextTC, mode);
}
}
use of org.netbeans.core.windows.ModeImpl in project netbeans-rcp-lite by outersky.
the class DefaultView method userActivatedModeView.
// //////////////////////////////////////////////////
// Controller >>
@Override
public void userActivatedModeView(ModeView modeView) {
if (DEBUG) {
// NOI18N
debugLog("User activated mode view, mode=" + modeView);
}
ModeAccessor modeAccessor = (ModeAccessor) hierarchy.getAccessorForView(modeView);
ModeImpl mode = getModeForModeAccessor(modeAccessor);
controllerHandler.userActivatedMode(mode);
}
use of org.netbeans.core.windows.ModeImpl in project netbeans-rcp-lite by outersky.
the class DefaultView method userClosedTopComponent.
@Override
public void userClosedTopComponent(ModeView modeView, TopComponent tc) {
if (DEBUG) {
// NOI18N
debugLog("User closed topComponent=" + tc);
}
ModeAccessor modeAccessor = (ModeAccessor) hierarchy.getAccessorForView(modeView);
ModeImpl mode = getModeForModeAccessor(modeAccessor);
controllerHandler.userClosedTopComponent(mode, tc);
}
use of org.netbeans.core.windows.ModeImpl in project netbeans-rcp-lite by outersky.
the class DefaultView method userClosingMode.
@Override
public void userClosingMode(ModeView modeView) {
if (DEBUG) {
// NOI18N
debugLog("User closing mode=" + modeView);
}
ModeAccessor modeAccessor = (ModeAccessor) hierarchy.getAccessorForView(modeView);
ModeImpl mode = getModeForModeAccessor(modeAccessor);
controllerHandler.userClosedMode(mode);
}
use of org.netbeans.core.windows.ModeImpl in project netbeans-rcp-lite by outersky.
the class DefaultView method userSelectedTab.
@Override
public void userSelectedTab(ModeView modeView, TopComponent selected) {
if (DEBUG) {
// NOI18N
debugLog("User selected tab, tc=" + WindowManagerImpl.getInstance().getTopComponentDisplayName(selected));
}
ModeAccessor modeAccessor = (ModeAccessor) hierarchy.getAccessorForView(modeView);
ModeImpl mode = getModeForModeAccessor(modeAccessor);
controllerHandler.userActivatedTopComponent(mode, selected);
}
Aggregations