1 19 package org.openharmonise.him.actions.messages; 20 21 import java.awt.event.ActionEvent ; 22 23 import javax.swing.Icon ; 24 import javax.swing.ImageIcon ; 25 import javax.swing.JFrame ; 26 27 import org.openharmonise.him.actions.*; 28 import org.openharmonise.him.configuration.*; 29 import org.openharmonise.vfs.*; 30 import org.openharmonise.vfs.gui.*; 31 32 33 40 public class ActionSetFilters extends AbstractHIMAction implements HIMAction { 41 42 45 public ActionSetFilters() { 46 super(); 47 } 48 49 52 private ActionSetFilters(VirtualFile vfFile) { 53 super(vfFile); 54 } 55 56 59 public void actionPerformed(ActionEvent arg0) { 60 JFrame frame = new JFrame (); 61 frame.setIconImage( ((ImageIcon )IconManager.getInstance().getIcon("16-command-preferences.gif")).getImage() ); 62 63 64 ConfigDialog dialog = new ConfigDialog(frame, "Customise"); 65 dialog.setSelectedTab("Options"); 66 dialog.show(); 67 } 68 69 72 public String getText() { 73 return "Reporting Options"; 74 } 75 76 79 public String getToolTip() { 80 return "Opens a dialog to customise the reporting options"; 81 } 82 83 86 public Icon getIcon() { 87 return IconManager.getInstance().getIcon("16-command-preferences.gif"); 88 } 89 90 93 public String getMnemonic() { 94 return "R"; 95 } 96 97 100 public String getDescription() { 101 return "Opens a dialog to customise the reporting options"; 102 } 103 104 107 public int getAcceleratorKeycode() { 108 return 0; 109 } 110 111 114 public int getAcceleratorMask() { 115 return 0; 116 } 117 118 } 119 | Popular Tags |