summaryrefslogtreecommitdiff
path: root/java/src/IceGridGUI/Application/PlainServerEditor.java
diff options
context:
space:
mode:
authorBernard Normier <bernard@zeroc.com>2006-09-15 19:42:39 +0000
committerBernard Normier <bernard@zeroc.com>2006-09-15 19:42:39 +0000
commit926a34c0cde3bb59a64c6906442246015290c310 (patch)
tree247d19ba42bd29fb7b60d96ac936ca91d497357b /java/src/IceGridGUI/Application/PlainServerEditor.java
parentMerged fixes from 3.1 branch (diff)
downloadice-926a34c0cde3bb59a64c6906442246015290c310.tar.bz2
ice-926a34c0cde3bb59a64c6906442246015290c310.tar.xz
ice-926a34c0cde3bb59a64c6906442246015290c310.zip
dos2unix
Diffstat (limited to 'java/src/IceGridGUI/Application/PlainServerEditor.java')
-rwxr-xr-xjava/src/IceGridGUI/Application/PlainServerEditor.java152
1 files changed, 76 insertions, 76 deletions
diff --git a/java/src/IceGridGUI/Application/PlainServerEditor.java b/java/src/IceGridGUI/Application/PlainServerEditor.java
index ed0189301eb..f0cf9316752 100755
--- a/java/src/IceGridGUI/Application/PlainServerEditor.java
+++ b/java/src/IceGridGUI/Application/PlainServerEditor.java
@@ -1,76 +1,76 @@
-// **********************************************************************
-//
-// Copyright (c) 2003-2006 ZeroC, Inc. All rights reserved.
-//
-// This copy of Ice is licensed to you under the terms described in the
-// ICE_LICENSE file included in this distribution.
-//
-// **********************************************************************
-package IceGridGUI.Application;
-
-import com.jgoodies.forms.builder.DefaultFormBuilder;
-
-import IceGrid.*;
-import IceGridGUI.*;
-
-class PlainServerEditor extends AbstractServerEditor
-{
- protected void writeDescriptor()
- {
- _subEditor.writeDescriptor();
- }
-
- protected boolean isSimpleUpdate()
- {
- return _subEditor.isSimpleUpdate();
- }
-
- PlainServerEditor()
- {
- _subEditor = new ServerSubEditor(this);
- }
-
- //
- // From Editor:
- //
- Utils.Resolver getDetailResolver()
- {
- if(_target.getCoordinator().substitute())
- {
- return _target.getResolver();
- }
- else
- {
- return null;
- }
- }
-
- protected void appendProperties(DefaultFormBuilder builder)
- {
- _subEditor.appendProperties(builder);
- }
-
- Object getSubDescriptor()
- {
- return _target.getDescriptor();
- }
-
- protected boolean validate()
- {
- return _subEditor.validate();
- }
-
- void show(PlainServer server)
- {
- detectUpdates(false);
- _target = server;
-
- _subEditor.show(true);
-
- _applyButton.setEnabled(server.isEphemeral());
- _discardButton.setEnabled(server.isEphemeral());
- detectUpdates(true);
- }
-
- private ServerSubEditor _subEditor;
-}
+// **********************************************************************
+//
+// Copyright (c) 2003-2006 ZeroC, Inc. All rights reserved.
+//
+// This copy of Ice is licensed to you under the terms described in the
+// ICE_LICENSE file included in this distribution.
+//
+// **********************************************************************
+package IceGridGUI.Application;
+
+import com.jgoodies.forms.builder.DefaultFormBuilder;
+
+import IceGrid.*;
+import IceGridGUI.*;
+
+class PlainServerEditor extends AbstractServerEditor
+{
+ protected void writeDescriptor()
+ {
+ _subEditor.writeDescriptor();
+ }
+
+ protected boolean isSimpleUpdate()
+ {
+ return _subEditor.isSimpleUpdate();
+ }
+
+ PlainServerEditor()
+ {
+ _subEditor = new ServerSubEditor(this);
+ }
+
+ //
+ // From Editor:
+ //
+ Utils.Resolver getDetailResolver()
+ {
+ if(_target.getCoordinator().substitute())
+ {
+ return _target.getResolver();
+ }
+ else
+ {
+ return null;
+ }
+ }
+
+ protected void appendProperties(DefaultFormBuilder builder)
+ {
+ _subEditor.appendProperties(builder);
+ }
+
+ Object getSubDescriptor()
+ {
+ return _target.getDescriptor();
+ }
+
+ protected boolean validate()
+ {
+ return _subEditor.validate();
+ }
+
+ void show(PlainServer server)
+ {
+ detectUpdates(false);
+ _target = server;
+
+ _subEditor.show(true);
+
+ _applyButton.setEnabled(server.isEphemeral());
+ _discardButton.setEnabled(server.isEphemeral());
+ detectUpdates(true);
+ }
+
+ private ServerSubEditor _subEditor;
+}