diff options
author | Bernard Normier <bernard@zeroc.com> | 2005-11-08 20:49:36 +0000 |
---|---|---|
committer | Bernard Normier <bernard@zeroc.com> | 2005-11-08 20:49:36 +0000 |
commit | 4872403f9a263bd34e4b905230f621b36026df76 (patch) | |
tree | 3c7d81c434c5be2a7fdeedf005808d613918f23a /java/src/IceGrid/TreeNode/ServerSubEditor.java | |
parent | Fixed icebox server template rendering (diff) | |
download | ice-4872403f9a263bd34e4b905230f621b36026df76.tar.bz2 ice-4872403f9a263bd34e4b905230f621b36026df76.tar.xz ice-4872403f9a263bd34e4b905230f621b36026df76.zip |
Removed current status from adapters in templates
Diffstat (limited to 'java/src/IceGrid/TreeNode/ServerSubEditor.java')
-rwxr-xr-x | java/src/IceGrid/TreeNode/ServerSubEditor.java | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/java/src/IceGrid/TreeNode/ServerSubEditor.java b/java/src/IceGrid/TreeNode/ServerSubEditor.java index 2c3082a63d9..1ba748f87cb 100755 --- a/java/src/IceGrid/TreeNode/ServerSubEditor.java +++ b/java/src/IceGrid/TreeNode/ServerSubEditor.java @@ -13,6 +13,7 @@ import java.awt.event.ActionEvent; import javax.swing.AbstractAction;
import javax.swing.Action;
import javax.swing.JButton;
+import javax.swing.JCheckBox;
import javax.swing.JComboBox;
import javax.swing.JComponent;
import javax.swing.JFrame;
@@ -117,6 +118,19 @@ class ServerSubEditor extends CommunicatorSubEditor _optionButton = new JButton(openOptionDialog);
+ Action appDistrib = new AbstractAction("Depends on the application distribution")
+ {
+ public void actionPerformed(ActionEvent e)
+ {
+ _mainEditor.updated();
+ }
+ };
+ appDistrib.putValue(Action.SHORT_DESCRIPTION,
+ "<html>Check this box if this server needs to be restarted<br>"
+ + "each time the distribution for your application is refreshed.</html>");
+
+ _applicationDistrib = new JCheckBox(appDistrib);
+
_distrib = new JComboBox(new Object[]{NO_DISTRIB, DEFAULT_DISTRIB});
_distrib.setToolTipText(
"The proxy to the IcePatch2 server holding your files");
@@ -193,6 +207,8 @@ class ServerSubEditor extends CommunicatorSubEditor JComponent c = builder.appendSeparator("Distribution");
c.setToolTipText("Files specific to this server");
+ builder.append("", _applicationDistrib);
+ builder.nextLine();
builder.append("IcePatch2 Proxy");
builder.append(_distrib, 3);
builder.nextLine();
@@ -223,6 +239,8 @@ class ServerSubEditor extends CommunicatorSubEditor descriptor.activationTimeout = _activationTimeout.getText();
descriptor.deactivationTimeout = _deactivationTimeout.getText();
+ descriptor.applicationDistrib = _applicationDistrib.isSelected();
+
if(_distrib.getSelectedItem() == NO_DISTRIB)
{
descriptor.distrib.icepatch = "";
@@ -316,6 +334,9 @@ class ServerSubEditor extends CommunicatorSubEditor Utils.substitute(descriptor.deactivationTimeout, detailResolver));
_deactivationTimeout.setEditable(isEditable);
+ _applicationDistrib.setSelected(descriptor.applicationDistrib);
+ _applicationDistrib.setEnabled(isEditable);
+
_distrib.setEnabled(true);
_distrib.setEditable(true);
String icepatch = Utils.substitute(descriptor.distrib.icepatch,
@@ -436,6 +457,8 @@ class ServerSubEditor extends CommunicatorSubEditor private ListDialog _optionDialog;
private JButton _optionButton;
+ private JCheckBox _applicationDistrib;
+
private JComboBox _distrib;
private JTextField _distribDirs = new JTextField(20);
|