1 19 package org.openharmonise.him.actions.move; 20 21 import java.awt.event.ActionEvent ; 22 23 import javax.swing.Icon ; 24 25 import org.openharmonise.him.actions.*; 26 import org.openharmonise.him.actions.rules.*; 27 import org.openharmonise.vfs.*; 28 import org.openharmonise.vfs.gui.*; 29 30 31 38 public class ActionAlias extends AbstractHIMAction implements HIMAction { 39 40 public static String ACTION_NAME = "SHORTCUT"; 41 42 45 private VirtualFile m_vfToFile = null; 46 47 50 private ActionAlias() { 51 super(); 52 this.setup(); 53 } 54 55 58 public ActionAlias(VirtualFile vfFromFile, VirtualFile vfToFile) { 59 super(vfFromFile); 60 this.m_vfToFile = vfToFile; 61 this.setup(); 62 } 63 64 68 private void setup() { 69 SecurityRule secRule = new SecurityRule(VirtualFile.METHOD_SHORTCUT); 70 super.addEnableRule(secRule); 71 } 72 73 76 public void actionPerformed(ActionEvent arg0) { 77 } 78 79 82 public String getText() { 83 return "Create Alias"; 84 } 85 86 89 public String getToolTip() { 90 return this.getDescription(); 91 } 92 93 96 public Icon getIcon() { 97 return IconManager.getInstance().getIcon("16-command-alias.png"); 98 } 99 100 103 public String getMnemonic() { 104 return "A"; 105 } 106 107 110 public String getDescription() { 111 return "Creates an alias for this resource in another collection"; 112 } 113 114 117 public int getAcceleratorKeycode() { 118 return 0; 119 } 120 121 124 public int getAcceleratorMask() { 125 return 0; 126 } 127 128 } 129 | Popular Tags |