Search in sources :

Example 1 with PressureShortcut

use of com.intellij.openapi.actionSystem.PressureShortcut in project intellij-community by JetBrains.

the class MouseShortcutEqualityTest method testSubclassesOfMouseEventsAreNotEqualToMouseEvents.

public void testSubclassesOfMouseEventsAreNotEqualToMouseEvents() {
    MouseShortcut mouseShortcut = new MouseShortcut(MouseEvent.BUTTON2, InputEvent.ALT_DOWN_MASK, 2);
    PressureShortcut pressureShortcut = new PressureShortcut(1);
    assertFalse("MouseShortcut is not equal to PressureShortcut", mouseShortcut.equals(pressureShortcut));
    assertFalse("MouseShortcut is not equal to PressureShortcut", pressureShortcut.equals(mouseShortcut));
}
Also used : PressureShortcut(com.intellij.openapi.actionSystem.PressureShortcut) MouseShortcut(com.intellij.openapi.actionSystem.MouseShortcut)

Example 2 with PressureShortcut

use of com.intellij.openapi.actionSystem.PressureShortcut in project intellij-community by JetBrains.

the class MouseShortcutEqualityTest method testUnequalPressureShortcuts.

public void testUnequalPressureShortcuts() {
    PressureShortcut pressureShortcut = new PressureShortcut(1);
    PressureShortcut anotherPressureShortcut = new PressureShortcut(2);
    assertFalse("Pressure shortcuts with different data are not equal", pressureShortcut.equals(anotherPressureShortcut));
    assertFalse("Pressure shortcuts with different data are not equal", anotherPressureShortcut.equals(pressureShortcut));
}
Also used : PressureShortcut(com.intellij.openapi.actionSystem.PressureShortcut)

Example 3 with PressureShortcut

use of com.intellij.openapi.actionSystem.PressureShortcut in project intellij-community by JetBrains.

the class MouseShortcutEqualityTest method testPressureShortcutsWithTheSameDataAreEqual.

public void testPressureShortcutsWithTheSameDataAreEqual() {
    PressureShortcut pressureShortcut = new PressureShortcut(1);
    PressureShortcut anotherPressureShortcut = new PressureShortcut(1);
    assertEquals("Pressure shortcuts with the same data are equal", pressureShortcut, anotherPressureShortcut);
}
Also used : PressureShortcut(com.intellij.openapi.actionSystem.PressureShortcut)

Aggregations

PressureShortcut (com.intellij.openapi.actionSystem.PressureShortcut)3 MouseShortcut (com.intellij.openapi.actionSystem.MouseShortcut)1