summaryrefslogtreecommitdiff
path: root/java/src/IceGridGUI/AdapterObserverI.java
diff options
context:
space:
mode:
authorMatthew Newhook <matthew@zeroc.com>2014-10-20 11:40:05 -0230
committerMatthew Newhook <matthew@zeroc.com>2014-10-20 11:40:05 -0230
commitb51469b41167fb86ae2059a15cf0475c53fdda7b (patch)
treefc85d6ca2efd89c67e1e4e7438f437c3e08313f4 /java/src/IceGridGUI/AdapterObserverI.java
parentFixed (ICE-5695) - IceSSL: misleading exception (diff)
downloadice-b51469b41167fb86ae2059a15cf0475c53fdda7b.tar.bz2
ice-b51469b41167fb86ae2059a15cf0475c53fdda7b.tar.xz
ice-b51469b41167fb86ae2059a15cf0475c53fdda7b.zip
Down with ant. From the gradle to the grave.
Diffstat (limited to 'java/src/IceGridGUI/AdapterObserverI.java')
-rw-r--r--java/src/IceGridGUI/AdapterObserverI.java110
1 files changed, 0 insertions, 110 deletions
diff --git a/java/src/IceGridGUI/AdapterObserverI.java b/java/src/IceGridGUI/AdapterObserverI.java
deleted file mode 100644
index 7b92ad11acb..00000000000
--- a/java/src/IceGridGUI/AdapterObserverI.java
+++ /dev/null
@@ -1,110 +0,0 @@
-// **********************************************************************
-//
-// Copyright (c) 2003-2014 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;
-
-import javax.swing.SwingUtilities;
-import IceGrid.*;
-
-class AdapterObserverI extends _AdapterObserverDisp
-{
- AdapterObserverI(Coordinator coordinator)
- {
- _coordinator = coordinator;
- _trace = coordinator.traceObservers();
- }
-
- @Override
- public synchronized void adapterInit(final AdapterInfo[] adapters, Ice.Current current)
- {
- if(_trace)
- {
- if(adapters.length == 0)
- {
- _coordinator.traceObserver("adapterInit (no adapter)");
- }
- else
- {
- String names = "";
- for(AdapterInfo info : adapters)
- {
- names += " " + info.id;
- }
-
- _coordinator.traceObserver("adapterInit for adapters" + names);
- }
- }
-
- SwingUtilities.invokeLater(new Runnable()
- {
- @Override
- public void run()
- {
- _coordinator.adapterInit(adapters);
- }
- });
- }
-
- @Override
- public void adapterAdded(final AdapterInfo info, Ice.Current current)
- {
- if(_trace)
- {
- _coordinator.traceObserver("adapterAdded for adapter " + info.id);
- }
-
- SwingUtilities.invokeLater(new Runnable()
- {
- @Override
- public void run()
- {
- _coordinator.adapterAdded(info);
- }
- });
- }
-
- @Override
- public void adapterUpdated(final AdapterInfo info, Ice.Current current)
- {
- if(_trace)
- {
- _coordinator.traceObserver("adapterUpdated for adapter " + info.id);
- }
-
- SwingUtilities.invokeLater(new Runnable()
- {
- @Override
- public void run()
- {
- _coordinator.adapterUpdated(info);
- }
- });
- }
-
- @Override
- public void adapterRemoved(final String id, Ice.Current current)
- {
- if(_trace)
- {
- _coordinator.traceObserver("adapterRemoved for adapter " + id);
- }
-
- SwingUtilities.invokeLater(new Runnable()
- {
- @Override
- public void run()
- {
- _coordinator.adapterRemoved(id);
- }
- });
- }
-
- private final Coordinator _coordinator;
- private final boolean _trace;
-}