1 19 package org.openharmonise.him.actions.system; 20 21 import java.awt.event.*; 22 import java.net.*; 23 import java.rmi.*; 24 25 import javax.swing.*; 26 import javax.xml.rpc.*; 27 28 import org.openharmonise.him.*; 29 import org.openharmonise.him.actions.*; 30 import org.openharmonise.him.harmonise.*; 31 import org.openharmonise.him.serverconfig.*; 32 import org.openharmonise.vfs.*; 33 import org.openharmonise.vfs.authentication.*; 34 import org.openharmonise.vfs.context.*; 35 import org.openharmonise.vfs.gui.*; 36 import org.openharmonise.vfs.servers.*; 37 38 39 46 public class ActionSystemSettings 47 extends AbstractHIMAction 48 implements HIMAction { 49 50 51 54 public ActionSystemSettings() { 55 super(); 56 } 57 58 61 public ActionSystemSettings(VirtualFile vfFile) { 62 super(vfFile); 63 } 64 65 68 public void actionPerformed(ActionEvent arg0) { 69 JFrame frame = new JFrame(); 70 frame.setIconImage( ((ImageIcon)IconManager.getInstance().getIcon("16-command-server-properties.gif")).getImage() ); 71 72 73 ServerConfigDialog dialog = new ServerConfigDialog(frame, "Server Properties"); 74 dialog.show(); 75 } 76 77 80 public String getDescription() { 81 return "Opens a dialog in which you can alter settings on the server"; 82 } 83 84 87 public String getText() { 88 return "Server properties..."; 89 } 90 91 94 public String getToolTip() { 95 return this.getDescription(); 96 } 97 98 101 public Icon getIcon() { 102 return IconManager.getInstance().getIcon("16-command-server-properties.gif"); 103 } 104 105 108 public int getAcceleratorKeycode() { 109 return 0; 110 } 111 112 115 public String getMnemonic() { 116 return "p"; 117 } 118 119 122 public int getAcceleratorMask() { 123 return 0; 124 } 125 126 129 public boolean isEnabled(ContextEvent ce) { 130 if(!m_bUserChecked) { 131 checkUser(); 132 } 133 this.setEnabled(m_bShow); 134 return m_bShow; 135 } 136 137 } 138 | Popular Tags |