diff options
author | Bernard Normier <bernard@zeroc.com> | 2006-04-04 22:07:48 +0000 |
---|---|---|
committer | Bernard Normier <bernard@zeroc.com> | 2006-04-04 22:07:48 +0000 |
commit | f1a3aa72aac8d42e6ffb5be17e4469f145673a9e (patch) | |
tree | 4d823755a5c29660ea2bfe18760fb8901a0efb45 /java/src/IceGridGUI/Application/ApplicationEditor.java | |
parent | Tru64 port (diff) | |
download | ice-f1a3aa72aac8d42e6ffb5be17e4469f145673a9e.tar.bz2 ice-f1a3aa72aac8d42e6ffb5be17e4469f145673a9e.tar.xz ice-f1a3aa72aac8d42e6ffb5be17e4469f145673a9e.zip |
Bug fixes
Diffstat (limited to 'java/src/IceGridGUI/Application/ApplicationEditor.java')
-rwxr-xr-x | java/src/IceGridGUI/Application/ApplicationEditor.java | 37 |
1 files changed, 4 insertions, 33 deletions
diff --git a/java/src/IceGridGUI/Application/ApplicationEditor.java b/java/src/IceGridGUI/Application/ApplicationEditor.java index 94bc39bdaa4..75235a1fce0 100755 --- a/java/src/IceGridGUI/Application/ApplicationEditor.java +++ b/java/src/IceGridGUI/Application/ApplicationEditor.java @@ -37,36 +37,7 @@ class ApplicationEditor extends Editor root.disableSelectionListener();
try
{
- if(root.isEphemeral())
- {
- writeDescriptor();
- ApplicationDescriptor descriptor =
- (ApplicationDescriptor)root.getDescriptor();
- try
- {
- Root newRoot = new Root(root);
- ApplicationPane app = mainPane.findApplication(root);
- app.setRoot(newRoot);
- newRoot.setSelectedNode(newRoot);
- app.showNode(newRoot);
-
- _target = newRoot;
- if(!root.getId().equals(newRoot.getId()))
- {
- mainPane.resetTitle(newRoot);
- }
- }
- catch(UpdateFailedException e)
- {
- JOptionPane.showMessageDialog(
- root.getCoordinator().getMainFrame(),
- e.toString(),
- "Apply failed",
- JOptionPane.ERROR_MESSAGE);
- return;
- }
- }
- else if(isSimpleUpdate())
+ if(isSimpleUpdate())
{
writeDescriptor();
root.updated();
@@ -253,7 +224,7 @@ class ApplicationEditor extends Editor (ApplicationDescriptor)root.getDescriptor();
_name.setText(descriptor.name);
- _name.setEditable(root.isEphemeral() || !root.isLive());
+ _name.setEditable(!root.isLive());
_description.setText(
Utils.substitute(descriptor.description, resolver));
@@ -284,8 +255,8 @@ class ApplicationEditor extends Editor setDistribDirsField();
_distribDirsButton.setEnabled(isEditable);
- _applyButton.setEnabled(root.isEphemeral());
- _discardButton.setEnabled(root.isEphemeral());
+ _applyButton.setEnabled(false);
+ _discardButton.setEnabled(false);
detectUpdates(true);
}
|