Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew M Finkbeiner2012-04-02 16:02:03 +0000
committerRoberto E. Escobar2012-04-02 16:02:03 +0000
commit9b5d850481315fd2a9dd4a37c5eba77738461905 (patch)
tree73ac4d0742eda5ac7a7fb659b5c6abd9ae49b0fe /plugins/org.eclipse.osee.ote.client
parent224db6dc2caebbc847aafaf0ce8eb8e16fef343d (diff)
downloadorg.eclipse.osee-9b5d850481315fd2a9dd4a37c5eba77738461905.tar.gz
org.eclipse.osee-9b5d850481315fd2a9dd4a37c5eba77738461905.tar.xz
org.eclipse.osee-9b5d850481315fd2a9dd4a37c5eba77738461905.zip
feature[ats_PBMQF]: Remove IMessageDictionary and related dependencies
Diffstat (limited to 'plugins/org.eclipse.osee.ote.client')
-rw-r--r--plugins/org.eclipse.osee.ote.client/src/org/eclipse/osee/ote/service/ILibraryLoader.java30
-rw-r--r--plugins/org.eclipse.osee.ote.client/src/org/eclipse/osee/ote/service/IMessageDictionary.java41
-rw-r--r--plugins/org.eclipse.osee.ote.client/src/org/eclipse/osee/ote/service/IOteClientService.java7
-rw-r--r--plugins/org.eclipse.osee.ote.client/src/org/eclipse/osee/ote/service/IOteRuntimeLibraryProvider.java19
-rw-r--r--plugins/org.eclipse.osee.ote.client/src/org/eclipse/osee/ote/service/core/TestClientServiceImpl.java32
5 files changed, 1 insertions, 128 deletions
diff --git a/plugins/org.eclipse.osee.ote.client/src/org/eclipse/osee/ote/service/ILibraryLoader.java b/plugins/org.eclipse.osee.ote.client/src/org/eclipse/osee/ote/service/ILibraryLoader.java
deleted file mode 100644
index b97c0e6e077..00000000000
--- a/plugins/org.eclipse.osee.ote.client/src/org/eclipse/osee/ote/service/ILibraryLoader.java
+++ /dev/null
@@ -1,30 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2004, 2007 Boeing.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Boeing - initial API and implementation
- *******************************************************************************/
-package org.eclipse.osee.ote.service;
-
-public interface ILibraryLoader {
- /**
- * loads a message class dictionary. If one is already loaded then it will be unloaded.
- */
- void loadMessageDictionary(IMessageDictionary dictionary);
-
- /**
- * unloads the current {@link IMessageDictionary} from the system.
- */
- void unloadMessageDictionary();
-
- /**
- * gets the currently loaded {@link IMessageDictionary}
- *
- * @return the {@link IMessageDictionary} or null if one is not loaded
- */
- IMessageDictionary getLoadedDictionary();
-}
diff --git a/plugins/org.eclipse.osee.ote.client/src/org/eclipse/osee/ote/service/IMessageDictionary.java b/plugins/org.eclipse.osee.ote.client/src/org/eclipse/osee/ote/service/IMessageDictionary.java
deleted file mode 100644
index ec09e6964e9..00000000000
--- a/plugins/org.eclipse.osee.ote.client/src/org/eclipse/osee/ote/service/IMessageDictionary.java
+++ /dev/null
@@ -1,41 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2004, 2007 Boeing.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Boeing - initial API and implementation
- *******************************************************************************/
-package org.eclipse.osee.ote.service;
-
-import java.io.IOException;
-import org.eclipse.osee.ote.message.Message;
-import org.eclipse.osee.ote.message.MessageSink;
-
-/**
- * Allows the lookup of message definitions
- *
- * @author Ken J. Aguilar
- */
-public interface IMessageDictionary {
-
- String getMessageLibraryVersion() throws IOException;
-
- /**
- * Generates a listing of all messages and associated elements defined in the message jar. The intent is to provide a
- * method for searching the message jar for certain messages
- */
- void generateMessageIndex(final MessageSink sink) throws Exception;
-
- /**
- * Finds the class definition of a message of the given name
- *
- * @return Returns values reference.
- * @throws ClassNotFoundException if no class definition was found with the given name
- */
- Class<? extends Message> lookupMessage(String messageName) throws ClassNotFoundException;
-
- void dispose();
-}
diff --git a/plugins/org.eclipse.osee.ote.client/src/org/eclipse/osee/ote/service/IOteClientService.java b/plugins/org.eclipse.osee.ote.client/src/org/eclipse/osee/ote/service/IOteClientService.java
index 3b4b7ad6d7a..4eff06b00b5 100644
--- a/plugins/org.eclipse.osee.ote.client/src/org/eclipse/osee/ote/service/IOteClientService.java
+++ b/plugins/org.eclipse.osee.ote.client/src/org/eclipse/osee/ote/service/IOteClientService.java
@@ -100,13 +100,6 @@ public interface IOteClientService {
void setSessionDelegate(SessionDelegate sessionDelegate);
/**
- * gets the currently loaded {@link IMessageDictionary}
- *
- * @return the {@link IMessageDictionary} or null if one is not loaded
- */
- IMessageDictionary getLoadedDictionary();
-
- /**
* returns a collection of all the {@link IHostTestEnvironment} that are currently available.
*/
List<IServiceConnector> getAvailableTestHosts();
diff --git a/plugins/org.eclipse.osee.ote.client/src/org/eclipse/osee/ote/service/IOteRuntimeLibraryProvider.java b/plugins/org.eclipse.osee.ote.client/src/org/eclipse/osee/ote/service/IOteRuntimeLibraryProvider.java
deleted file mode 100644
index 9f46e401f6e..00000000000
--- a/plugins/org.eclipse.osee.ote.client/src/org/eclipse/osee/ote/service/IOteRuntimeLibraryProvider.java
+++ /dev/null
@@ -1,19 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2004, 2007 Boeing.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Boeing - initial API and implementation
- *******************************************************************************/
-package org.eclipse.osee.ote.service;
-
-import java.util.Collection;
-
-public interface IOteRuntimeLibraryProvider {
- void initialize(ILibraryLoader libraryLoader);
-
- Collection<IMessageDictionary> getLibraries();
-}
diff --git a/plugins/org.eclipse.osee.ote.client/src/org/eclipse/osee/ote/service/core/TestClientServiceImpl.java b/plugins/org.eclipse.osee.ote.client/src/org/eclipse/osee/ote/service/core/TestClientServiceImpl.java
index 2c18302a0dc..67f3fab2740 100644
--- a/plugins/org.eclipse.osee.ote.client/src/org/eclipse/osee/ote/service/core/TestClientServiceImpl.java
+++ b/plugins/org.eclipse.osee.ote.client/src/org/eclipse/osee/ote/service/core/TestClientServiceImpl.java
@@ -35,8 +35,6 @@ import org.eclipse.osee.ote.core.environment.interfaces.ITestEnvironment;
import org.eclipse.osee.ote.service.Activator;
import org.eclipse.osee.ote.service.ConnectionEvent;
import org.eclipse.osee.ote.service.IEnvironmentConfigurer;
-import org.eclipse.osee.ote.service.ILibraryLoader;
-import org.eclipse.osee.ote.service.IMessageDictionary;
import org.eclipse.osee.ote.service.IOteClientService;
import org.eclipse.osee.ote.service.ITestConnectionListener;
import org.eclipse.osee.ote.service.ITestEnvironmentAvailibilityListener;
@@ -45,7 +43,7 @@ import org.eclipse.osee.ote.service.OteServiceProperties;
import org.eclipse.osee.ote.service.SessionDelegate;
import org.eclipse.osee.ote.service.TestSessionException;
-public class TestClientServiceImpl implements IOteClientService, IConnectorListener, ILibraryLoader {
+public class TestClientServiceImpl implements IOteClientService, IConnectorListener {
private static final String NO_USER_MSG = "a user has not been set";
private final IConnectionService connectionService;
@@ -57,7 +55,6 @@ public class TestClientServiceImpl implements IOteClientService, IConnectorListe
private ClientSession session = null;
private volatile boolean stopped = false;
private final ArrayList<ITestEnvironmentFilter> environmentFilters = new ArrayList<ITestEnvironmentFilter>();
- private IMessageDictionary dictionary;
private TestHostConnection testConnection;
private final OteClientEndpointSend endpointSend;
@@ -212,13 +209,6 @@ public class TestClientServiceImpl implements IOteClientService, IConnectorListe
session.close();
}
}
- if (dictionary != null) {
- try {
- unloadMessageDictionary();
- } catch (Exception e) {
- Activator.log(Level.SEVERE, "exception while trying to unload dictionary during stop()", e);
- }
- }
stopped = true;
hostAvailabilityListeners.clear();
environmentFilters.clear();
@@ -437,26 +427,6 @@ public class TestClientServiceImpl implements IOteClientService, IConnectorListe
}
@Override
- public synchronized void loadMessageDictionary(IMessageDictionary newDictionary) {
- checkState();
- if (newDictionary == null) {
- throw new NullPointerException("dictionary cannot be null");
- }
- dictionary = newDictionary;
- }
-
- @Override
- public synchronized void unloadMessageDictionary() {
- checkState();
- dictionary = null;
- }
-
- @Override
- public synchronized IMessageDictionary getLoadedDictionary() {
- return dictionary;
- }
-
- @Override
public void onConnectionServiceStopped() {
}

Back to the top