1 22 23 package org.gjt.sp.jedit.textarea; 24 25 import java.awt.event.MouseEvent ; 26 import org.gjt.sp.jedit.gui.DefaultInputHandler; 27 import org.gjt.sp.jedit.jEdit; 28 29 public class MouseActions implements MouseActionsProvider 30 { 31 MouseActions(String name) 33 { 34 this.name = name; 35 } 37 public String getActionForEvent(MouseEvent evt, String variant) 39 { 40 String modStr = DefaultInputHandler.getModifierString(evt); 41 if(modStr == null) 42 { 43 return jEdit.getProperty("view." + name + '.' 44 + variant + "Click"); 45 } 46 else 47 { 48 return jEdit.getProperty("view." + name + '.' 49 + DefaultInputHandler.getModifierString(evt) 50 + variant + "Click"); 51 } 52 } 54 private String name; 55 } 56 | Popular Tags |