46 47 Tool tool; 48 UIFactory uif; 49 50 ET_DefaultHelpControl(Tool tool, UIFactory uif) { 51 52 this.tool = tool; 53 this.uif = uif; 54 initActions(); 55 } 56 57 /** 58 * Does nothing 59 */ 60 public void updateGUI() { 61 } 62 63 /** 64 * Does nothing 65 */ 66 public void save(Map m) { 67 } 68 69 /** 70 * Does nothing 71 */ 72 public void restore(Map m) { 73 } 74 75 /** 76 * @return null 77 */ 78 public JMenu getMenu() { 79 return null; 80 } 81 82 public List<Action> getToolBarActionList() { 83 if (actionList == null) { 84 actionList = new ArrayList<Action>(); 85 actionList.add(helpAction); 86 } 87 return actionList; 88 } 89 90 /** 91 * Does nothing 92 */ | 46 47 Tool tool; 48 UIFactory uif; 49 50 ET_DefaultHelpControl(Tool tool, UIFactory uif) { 51 52 this.tool = tool; 53 this.uif = uif; 54 initActions(); 55 } 56 57 /** 58 * Does nothing 59 */ 60 public void updateGUI() { 61 } 62 63 /** 64 * Does nothing 65 */ 66 public void save(Map<String, String> m) { 67 } 68 69 /** 70 * Does nothing 71 */ 72 public void restore(Map<String, String> m) { 73 } 74 75 /** 76 * @return null 77 */ 78 public JMenu getMenu() { 79 return null; 80 } 81 82 public List<Action> getToolBarActionList() { 83 if (actionList == null) { 84 actionList = new ArrayList<Action>(); 85 actionList.add(helpAction); 86 } 87 return actionList; 88 } 89 90 /** 91 * Does nothing 92 */ |