summaryrefslogtreecommitdiff
path: root/java/src/IceGridGUI/Application/PlainServiceEditor.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/PlainServiceEditor.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/PlainServiceEditor.java')
-rwxr-xr-xjava/src/IceGridGUI/Application/PlainServiceEditor.java180
1 files changed, 90 insertions, 90 deletions
diff --git a/java/src/IceGridGUI/Application/PlainServiceEditor.java b/java/src/IceGridGUI/Application/PlainServiceEditor.java
index b797461d6c9..3aab5e09b7b 100755
--- a/java/src/IceGridGUI/Application/PlainServiceEditor.java
+++ b/java/src/IceGridGUI/Application/PlainServiceEditor.java
@@ -1,90 +1,90 @@
-// **********************************************************************
-//
-// 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 PlainServiceEditor extends CommunicatorChildEditor
-{
- PlainServiceEditor()
- {
- _subEditor = new ServiceSubEditor(this);
- }
-
- //
- // From Editor:
- //
- Utils.Resolver getDetailResolver()
- {
- PlainService service = (PlainService)_target;
- if(service.getCoordinator().substitute())
- {
- return service.getResolver();
- }
- else
- {
- return null;
- }
- }
-
- protected void appendProperties(DefaultFormBuilder builder)
- {
- _subEditor.appendProperties(builder);
- }
-
- protected void buildPropertiesPanel()
- {
- super.buildPropertiesPanel();
- _propertiesPanel.setName("Service Properties");
- }
-
- protected boolean validate()
- {
- return _subEditor.validate();
- }
-
-
- void writeDescriptor()
- {
- _subEditor.writeDescriptor();
- }
-
- boolean isSimpleUpdate()
- {
- return _subEditor.isSimpleUpdate();
- }
-
- Communicator.ChildList getChildList()
- {
- return ((Communicator)_target.getParent()).getServices();
- }
-
- Object getSubDescriptor()
- {
- ServiceInstanceDescriptor sid = (ServiceInstanceDescriptor)_target.getDescriptor();
- return sid.descriptor;
- }
-
- void show(PlainService service)
- {
- detectUpdates(false);
- _target = service;
-
- _subEditor.show(true);
-
- _applyButton.setEnabled(service.isEphemeral());
- _discardButton.setEnabled(service.isEphemeral());
- detectUpdates(true);
- }
-
- private ServiceSubEditor _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 PlainServiceEditor extends CommunicatorChildEditor
+{
+ PlainServiceEditor()
+ {
+ _subEditor = new ServiceSubEditor(this);
+ }
+
+ //
+ // From Editor:
+ //
+ Utils.Resolver getDetailResolver()
+ {
+ PlainService service = (PlainService)_target;
+ if(service.getCoordinator().substitute())
+ {
+ return service.getResolver();
+ }
+ else
+ {
+ return null;
+ }
+ }
+
+ protected void appendProperties(DefaultFormBuilder builder)
+ {
+ _subEditor.appendProperties(builder);
+ }
+
+ protected void buildPropertiesPanel()
+ {
+ super.buildPropertiesPanel();
+ _propertiesPanel.setName("Service Properties");
+ }
+
+ protected boolean validate()
+ {
+ return _subEditor.validate();
+ }
+
+
+ void writeDescriptor()
+ {
+ _subEditor.writeDescriptor();
+ }
+
+ boolean isSimpleUpdate()
+ {
+ return _subEditor.isSimpleUpdate();
+ }
+
+ Communicator.ChildList getChildList()
+ {
+ return ((Communicator)_target.getParent()).getServices();
+ }
+
+ Object getSubDescriptor()
+ {
+ ServiceInstanceDescriptor sid = (ServiceInstanceDescriptor)_target.getDescriptor();
+ return sid.descriptor;
+ }
+
+ void show(PlainService service)
+ {
+ detectUpdates(false);
+ _target = service;
+
+ _subEditor.show(true);
+
+ _applyButton.setEnabled(service.isEphemeral());
+ _discardButton.setEnabled(service.isEphemeral());
+ detectUpdates(true);
+ }
+
+ private ServiceSubEditor _subEditor;
+}