1 19 20 package org.netbeans.modules.options.keymap; 21 22 23 27 class CompoundAction implements ActionImpl { 28 private ActionImpl editorAction; 29 private ActionImpl layersAction; 30 31 CompoundAction ( 32 ActionImpl editorAction, 33 ActionImpl layersAction 34 ) { 35 this.editorAction = editorAction; 36 this.layersAction = layersAction; 37 } 38 39 public String getDisplayName () { 40 return editorAction.getDisplayName (); 41 } 42 43 public String getId () { 44 return editorAction.getId (); 45 } 46 47 public String getDelegatingActionId () { 48 return editorAction.getDelegatingActionId (); 49 } 50 51 ActionImpl getEditorAction () { 52 return editorAction; 53 } 54 55 ActionImpl getLayersAction () { 56 return layersAction; 57 } 58 59 public boolean equals (Object o) { 60 return o instanceof CompoundAction && 61 ((CompoundAction) o).getEditorAction ().equals ( 62 getEditorAction () 63 ); 64 } 65 66 public int hashCode () { 67 return getEditorAction ().hashCode () * 2; 68 } 69 } 70 | Popular Tags |