Search in sources :

Example 1 with TopComponentDraggable

use of org.netbeans.core.windows.view.dnd.TopComponentDraggable in project netbeans-rcp-lite by outersky.

the class MoveModeAction method actionPerformed.

@Override
public void actionPerformed(java.awt.event.ActionEvent ev) {
    updateEnabled();
    if (!isEnabled())
        return;
    ModeImpl contextMode = getModeToWorkWith();
    if (null == contextMode)
        return;
    WindowManagerImpl.getInstance().userStartedKeyboardDragAndDrop(new TopComponentDraggable(contextMode));
}
Also used : ModeImpl(org.netbeans.core.windows.ModeImpl) TopComponentDraggable(org.netbeans.core.windows.view.dnd.TopComponentDraggable)

Example 2 with TopComponentDraggable

use of org.netbeans.core.windows.view.dnd.TopComponentDraggable in project netbeans-rcp-lite by outersky.

the class MoveWindowAction method actionPerformed.

@Override
public void actionPerformed(java.awt.event.ActionEvent ev) {
    updateEnabled();
    if (!isEnabled())
        return;
    TopComponent contextTc = getTCToWorkWith();
    if (null == contextTc)
        return;
    WindowManagerImpl.getInstance().userStartedKeyboardDragAndDrop(new TopComponentDraggable(contextTc));
}
Also used : TopComponentDraggable(org.netbeans.core.windows.view.dnd.TopComponentDraggable) TopComponent(org.openide.windows.TopComponent)

Aggregations

TopComponentDraggable (org.netbeans.core.windows.view.dnd.TopComponentDraggable)2 ModeImpl (org.netbeans.core.windows.ModeImpl)1 TopComponent (org.openide.windows.TopComponent)1