Search in sources :

Example 1 with DNDKeyAnalyzer

use of org.talend.commons.ui.swt.dnd.DNDKeyAnalyzer in project tdi-studio-se by Talend.

the class DefaultDropTargetListener method detectPressedKeys.

/**
     * DOC amaumont Comment method "detectPressedKeys".
     * 
     * @param event
     */
protected void detectPressedKeys(DropTargetEvent event) {
    DNDKeyAnalyzer keyAnalyzer = new DNDKeyAnalyzer(event);
    AbstractUIManager uiManager = mapperManager.getUiManager();
    uiManager.setCtrlPressed(keyAnalyzer.isCtrlPressed());
    uiManager.setShiftPressed(keyAnalyzer.isShiftPressed());
}
Also used : DNDKeyAnalyzer(org.talend.commons.ui.swt.dnd.DNDKeyAnalyzer) AbstractUIManager(org.talend.designer.abstractmap.managers.AbstractUIManager)

Aggregations

DNDKeyAnalyzer (org.talend.commons.ui.swt.dnd.DNDKeyAnalyzer)1 AbstractUIManager (org.talend.designer.abstractmap.managers.AbstractUIManager)1