mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-06-13 18:32:02 +00:00
java source code formatting
This commit is contained in:
@@ -504,18 +504,18 @@ public class View {
|
||||
tree.collapsePath(parent);
|
||||
}
|
||||
}
|
||||
|
||||
public static void addEditorAction(JEditorPane editor,AbstractAction a,String key, String name, String keyStroke){
|
||||
|
||||
public static void addEditorAction(JEditorPane editor, AbstractAction a, String key, String name, String keyStroke) {
|
||||
KeyStroke ks = KeyStroke.getKeyStroke(keyStroke);
|
||||
a.putValue(Action.ACCELERATOR_KEY, ks);
|
||||
a.putValue(Action.NAME, name);
|
||||
|
||||
|
||||
String actionName = key;
|
||||
ActionMap amap = editor.getActionMap();
|
||||
InputMap imap = editor.getInputMap(JTextComponent.WHEN_FOCUSED);
|
||||
imap.put(ks, actionName);
|
||||
amap.put(actionName, a);
|
||||
|
||||
|
||||
JPopupMenu pmenu = editor.getComponentPopupMenu();
|
||||
JMenuItem findUsagesMenu = new JMenuItem(a);
|
||||
pmenu.add(findUsagesMenu);
|
||||
|
||||
Reference in New Issue
Block a user