From 450e7bf6da9262f1a43e3e05abd6439ee656605f Mon Sep 17 00:00:00 2001
From: Jeff Johnston
Date: Mon, 8 Nov 2010 22:30:19 +0000
Subject: Redoing move
---
.../.classpath | 7 +
.../.cvsignore | 3 +
.../.project | 28 ++++
.../.settings/org.eclipse.core.resources.prefs | 3 +
.../ChangeLog | 8 +
.../META-INF/MANIFEST.MF | 16 ++
.../build.properties | 8 +
.../plugin.properties | 28 ++++
.../plugin.xml | 36 ++++
.../schema/capabilities.exsd | 86 ++++++++++
.../schema/protocols.exsd | 121 ++++++++++++++
.../device/network/IConnectionProvider.java | 74 +++++++++
.../sequoyah/device/network/IConstants.java | 44 +++++
.../sequoyah/device/tools/AbstractNotifier.java | 66 ++++++++
.../sequoyah/device/tools/IListener.java | 31 ++++
.../sequoyah/device/tools/INotifier.java | 51 ++++++
.../linuxtools/sequoyah/device/tools/ITool.java | 75 +++++++++
.../sequoyah/device/ui/DialogConnect.java | 184 +++++++++++++++++++++
.../linuxtools/sequoyah/device/ui/DialogLogin.java | 126 ++++++++++++++
.../sequoyah/device/ui/IToolViewPart.java | 25 +++
.../linuxtools/sequoyah/device/ui/Messages.java | 40 +++++
.../sequoyah/device/ui/ViewActionConnect.java | 51 ++++++
.../sequoyah/device/ui/ViewActionDisconnect.java | 52 ++++++
.../sequoyah/device/ui/ViewActionPause.java | 54 ++++++
.../sequoyah/device/ui/ViewActionRefresh.java | 54 ++++++
.../sequoyah/device/ui/ViewActionRun.java | 54 ++++++
.../sequoyah/device/ui/messages.properties | 31 ++++
.../sequoyah/device/utilities/Extensions.java | 83 ++++++++++
.../device/utilities/ProtocolDescriptor.java | 49 ++++++
.../.classpath | 7 -
.../.cvsignore | 3 -
.../.project | 28 ----
.../.settings/org.eclipse.core.resources.prefs | 3 -
.../ChangeLog | 8 -
.../META-INF/MANIFEST.MF | 16 --
.../build.properties | 8 -
.../plugin.properties | 28 ----
.../plugin.xml | 36 ----
.../schema/capabilities.exsd | 86 ----------
.../schema/protocols.exsd | 121 --------------
.../device/network/IConnectionProvider.java | 74 ---------
.../sequoyah/device/network/IConstants.java | 44 -----
.../sequoyah/device/tools/AbstractNotifier.java | 66 --------
.../sequoyah/device/tools/IListener.java | 31 ----
.../sequoyah/device/tools/INotifier.java | 51 ------
.../linuxtools/sequoyah/device/tools/ITool.java | 75 ---------
.../sequoyah/device/ui/DialogConnect.java | 184 ---------------------
.../linuxtools/sequoyah/device/ui/DialogLogin.java | 126 --------------
.../sequoyah/device/ui/IToolViewPart.java | 25 ---
.../linuxtools/sequoyah/device/ui/Messages.java | 40 -----
.../sequoyah/device/ui/ViewActionConnect.java | 51 ------
.../sequoyah/device/ui/ViewActionDisconnect.java | 52 ------
.../sequoyah/device/ui/ViewActionPause.java | 54 ------
.../sequoyah/device/ui/ViewActionRefresh.java | 54 ------
.../sequoyah/device/ui/ViewActionRun.java | 54 ------
.../sequoyah/device/ui/messages.properties | 31 ----
.../sequoyah/device/utilities/Extensions.java | 83 ----------
.../device/utilities/ProtocolDescriptor.java | 49 ------
58 files changed, 1488 insertions(+), 1488 deletions(-)
create mode 100644 proctools/org.eclipse.linuxtools.sequoyah.device.base/.classpath
create mode 100644 proctools/org.eclipse.linuxtools.sequoyah.device.base/.cvsignore
create mode 100644 proctools/org.eclipse.linuxtools.sequoyah.device.base/.project
create mode 100644 proctools/org.eclipse.linuxtools.sequoyah.device.base/.settings/org.eclipse.core.resources.prefs
create mode 100644 proctools/org.eclipse.linuxtools.sequoyah.device.base/ChangeLog
create mode 100644 proctools/org.eclipse.linuxtools.sequoyah.device.base/META-INF/MANIFEST.MF
create mode 100644 proctools/org.eclipse.linuxtools.sequoyah.device.base/build.properties
create mode 100644 proctools/org.eclipse.linuxtools.sequoyah.device.base/plugin.properties
create mode 100644 proctools/org.eclipse.linuxtools.sequoyah.device.base/plugin.xml
create mode 100644 proctools/org.eclipse.linuxtools.sequoyah.device.base/schema/capabilities.exsd
create mode 100644 proctools/org.eclipse.linuxtools.sequoyah.device.base/schema/protocols.exsd
create mode 100644 proctools/org.eclipse.linuxtools.sequoyah.device.base/src/org/eclipse/linuxtools/sequoyah/device/network/IConnectionProvider.java
create mode 100644 proctools/org.eclipse.linuxtools.sequoyah.device.base/src/org/eclipse/linuxtools/sequoyah/device/network/IConstants.java
create mode 100644 proctools/org.eclipse.linuxtools.sequoyah.device.base/src/org/eclipse/linuxtools/sequoyah/device/tools/AbstractNotifier.java
create mode 100644 proctools/org.eclipse.linuxtools.sequoyah.device.base/src/org/eclipse/linuxtools/sequoyah/device/tools/IListener.java
create mode 100644 proctools/org.eclipse.linuxtools.sequoyah.device.base/src/org/eclipse/linuxtools/sequoyah/device/tools/INotifier.java
create mode 100644 proctools/org.eclipse.linuxtools.sequoyah.device.base/src/org/eclipse/linuxtools/sequoyah/device/tools/ITool.java
create mode 100644 proctools/org.eclipse.linuxtools.sequoyah.device.base/src/org/eclipse/linuxtools/sequoyah/device/ui/DialogConnect.java
create mode 100644 proctools/org.eclipse.linuxtools.sequoyah.device.base/src/org/eclipse/linuxtools/sequoyah/device/ui/DialogLogin.java
create mode 100644 proctools/org.eclipse.linuxtools.sequoyah.device.base/src/org/eclipse/linuxtools/sequoyah/device/ui/IToolViewPart.java
create mode 100644 proctools/org.eclipse.linuxtools.sequoyah.device.base/src/org/eclipse/linuxtools/sequoyah/device/ui/Messages.java
create mode 100644 proctools/org.eclipse.linuxtools.sequoyah.device.base/src/org/eclipse/linuxtools/sequoyah/device/ui/ViewActionConnect.java
create mode 100644 proctools/org.eclipse.linuxtools.sequoyah.device.base/src/org/eclipse/linuxtools/sequoyah/device/ui/ViewActionDisconnect.java
create mode 100644 proctools/org.eclipse.linuxtools.sequoyah.device.base/src/org/eclipse/linuxtools/sequoyah/device/ui/ViewActionPause.java
create mode 100644 proctools/org.eclipse.linuxtools.sequoyah.device.base/src/org/eclipse/linuxtools/sequoyah/device/ui/ViewActionRefresh.java
create mode 100644 proctools/org.eclipse.linuxtools.sequoyah.device.base/src/org/eclipse/linuxtools/sequoyah/device/ui/ViewActionRun.java
create mode 100644 proctools/org.eclipse.linuxtools.sequoyah.device.base/src/org/eclipse/linuxtools/sequoyah/device/ui/messages.properties
create mode 100644 proctools/org.eclipse.linuxtools.sequoyah.device.base/src/org/eclipse/linuxtools/sequoyah/device/utilities/Extensions.java
create mode 100644 proctools/org.eclipse.linuxtools.sequoyah.device.base/src/org/eclipse/linuxtools/sequoyah/device/utilities/ProtocolDescriptor.java
delete mode 100644 proctools/org.eclipse.sequoyah.device.linuxtools.base/.classpath
delete mode 100644 proctools/org.eclipse.sequoyah.device.linuxtools.base/.cvsignore
delete mode 100644 proctools/org.eclipse.sequoyah.device.linuxtools.base/.project
delete mode 100644 proctools/org.eclipse.sequoyah.device.linuxtools.base/.settings/org.eclipse.core.resources.prefs
delete mode 100644 proctools/org.eclipse.sequoyah.device.linuxtools.base/ChangeLog
delete mode 100644 proctools/org.eclipse.sequoyah.device.linuxtools.base/META-INF/MANIFEST.MF
delete mode 100644 proctools/org.eclipse.sequoyah.device.linuxtools.base/build.properties
delete mode 100644 proctools/org.eclipse.sequoyah.device.linuxtools.base/plugin.properties
delete mode 100644 proctools/org.eclipse.sequoyah.device.linuxtools.base/plugin.xml
delete mode 100644 proctools/org.eclipse.sequoyah.device.linuxtools.base/schema/capabilities.exsd
delete mode 100644 proctools/org.eclipse.sequoyah.device.linuxtools.base/schema/protocols.exsd
delete mode 100644 proctools/org.eclipse.sequoyah.device.linuxtools.base/src/org/eclipse/linuxtools/sequoyah/device/network/IConnectionProvider.java
delete mode 100644 proctools/org.eclipse.sequoyah.device.linuxtools.base/src/org/eclipse/linuxtools/sequoyah/device/network/IConstants.java
delete mode 100644 proctools/org.eclipse.sequoyah.device.linuxtools.base/src/org/eclipse/linuxtools/sequoyah/device/tools/AbstractNotifier.java
delete mode 100644 proctools/org.eclipse.sequoyah.device.linuxtools.base/src/org/eclipse/linuxtools/sequoyah/device/tools/IListener.java
delete mode 100644 proctools/org.eclipse.sequoyah.device.linuxtools.base/src/org/eclipse/linuxtools/sequoyah/device/tools/INotifier.java
delete mode 100644 proctools/org.eclipse.sequoyah.device.linuxtools.base/src/org/eclipse/linuxtools/sequoyah/device/tools/ITool.java
delete mode 100644 proctools/org.eclipse.sequoyah.device.linuxtools.base/src/org/eclipse/linuxtools/sequoyah/device/ui/DialogConnect.java
delete mode 100644 proctools/org.eclipse.sequoyah.device.linuxtools.base/src/org/eclipse/linuxtools/sequoyah/device/ui/DialogLogin.java
delete mode 100644 proctools/org.eclipse.sequoyah.device.linuxtools.base/src/org/eclipse/linuxtools/sequoyah/device/ui/IToolViewPart.java
delete mode 100644 proctools/org.eclipse.sequoyah.device.linuxtools.base/src/org/eclipse/linuxtools/sequoyah/device/ui/Messages.java
delete mode 100644 proctools/org.eclipse.sequoyah.device.linuxtools.base/src/org/eclipse/linuxtools/sequoyah/device/ui/ViewActionConnect.java
delete mode 100644 proctools/org.eclipse.sequoyah.device.linuxtools.base/src/org/eclipse/linuxtools/sequoyah/device/ui/ViewActionDisconnect.java
delete mode 100644 proctools/org.eclipse.sequoyah.device.linuxtools.base/src/org/eclipse/linuxtools/sequoyah/device/ui/ViewActionPause.java
delete mode 100644 proctools/org.eclipse.sequoyah.device.linuxtools.base/src/org/eclipse/linuxtools/sequoyah/device/ui/ViewActionRefresh.java
delete mode 100644 proctools/org.eclipse.sequoyah.device.linuxtools.base/src/org/eclipse/linuxtools/sequoyah/device/ui/ViewActionRun.java
delete mode 100644 proctools/org.eclipse.sequoyah.device.linuxtools.base/src/org/eclipse/linuxtools/sequoyah/device/ui/messages.properties
delete mode 100644 proctools/org.eclipse.sequoyah.device.linuxtools.base/src/org/eclipse/linuxtools/sequoyah/device/utilities/Extensions.java
delete mode 100644 proctools/org.eclipse.sequoyah.device.linuxtools.base/src/org/eclipse/linuxtools/sequoyah/device/utilities/ProtocolDescriptor.java
diff --git a/proctools/org.eclipse.linuxtools.sequoyah.device.base/.classpath b/proctools/org.eclipse.linuxtools.sequoyah.device.base/.classpath
new file mode 100644
index 0000000000..64c5e31b7a
--- /dev/null
+++ b/proctools/org.eclipse.linuxtools.sequoyah.device.base/.classpath
@@ -0,0 +1,7 @@
+
+
+
+
+
+
+
diff --git a/proctools/org.eclipse.linuxtools.sequoyah.device.base/.cvsignore b/proctools/org.eclipse.linuxtools.sequoyah.device.base/.cvsignore
new file mode 100644
index 0000000000..e66f331e57
--- /dev/null
+++ b/proctools/org.eclipse.linuxtools.sequoyah.device.base/.cvsignore
@@ -0,0 +1,3 @@
+bin
+@dot
+plugin
diff --git a/proctools/org.eclipse.linuxtools.sequoyah.device.base/.project b/proctools/org.eclipse.linuxtools.sequoyah.device.base/.project
new file mode 100644
index 0000000000..15cae76a0b
--- /dev/null
+++ b/proctools/org.eclipse.linuxtools.sequoyah.device.base/.project
@@ -0,0 +1,28 @@
+
+
+ org.eclipse.linuxtools.sequoyah.device.base
+
+
+
+
+
+ org.eclipse.jdt.core.javabuilder
+
+
+
+
+ org.eclipse.pde.ManifestBuilder
+
+
+
+
+ org.eclipse.pde.SchemaBuilder
+
+
+
+
+
+ org.eclipse.pde.PluginNature
+ org.eclipse.jdt.core.javanature
+
+
diff --git a/proctools/org.eclipse.linuxtools.sequoyah.device.base/.settings/org.eclipse.core.resources.prefs b/proctools/org.eclipse.linuxtools.sequoyah.device.base/.settings/org.eclipse.core.resources.prefs
new file mode 100644
index 0000000000..fbb2195d9e
--- /dev/null
+++ b/proctools/org.eclipse.linuxtools.sequoyah.device.base/.settings/org.eclipse.core.resources.prefs
@@ -0,0 +1,3 @@
+#Thu Jan 29 17:09:13 ACT 2009
+eclipse.preferences.version=1
+encoding/=UTF-8
diff --git a/proctools/org.eclipse.linuxtools.sequoyah.device.base/ChangeLog b/proctools/org.eclipse.linuxtools.sequoyah.device.base/ChangeLog
new file mode 100644
index 0000000000..277ebe4b87
--- /dev/null
+++ b/proctools/org.eclipse.linuxtools.sequoyah.device.base/ChangeLog
@@ -0,0 +1,8 @@
+2010-11-02 Jeff Johnston
+
+ * plugin.xml: Initial check-in and refactoring.
+ * plugin.properties: Ditto.
+ * build.properties: Ditto.
+ * schema/*.exsd: Ditto.
+ * META-INF/MANIFEST.MF: Ditto.
+ * src/*.java: Ditto.
\ No newline at end of file
diff --git a/proctools/org.eclipse.linuxtools.sequoyah.device.base/META-INF/MANIFEST.MF b/proctools/org.eclipse.linuxtools.sequoyah.device.base/META-INF/MANIFEST.MF
new file mode 100644
index 0000000000..4bff24c4c6
--- /dev/null
+++ b/proctools/org.eclipse.linuxtools.sequoyah.device.base/META-INF/MANIFEST.MF
@@ -0,0 +1,16 @@
+Manifest-Version: 1.0
+Bundle-ManifestVersion: 2
+Bundle-Name: %pluginName
+Bundle-SymbolicName: org.eclipse.linuxtools.sequoyah.device.base;singleton:=true
+Bundle-Version: 0.5.0.qualifier
+Bundle-Vendor: %providerName
+Bundle-RequiredExecutionEnvironment: J2SE-1.5
+Bundle-ActivationPolicy: lazy
+Bundle-Localization: plugin
+Export-Package: org.eclipse.linuxtools.sequoyah.device.network,
+ org.eclipse.linuxtools.sequoyah.device.tools,
+ org.eclipse.linuxtools.sequoyah.device.ui,
+ org.eclipse.linuxtools.sequoyah.device.utilities
+Require-Bundle: org.eclipse.sequoyah.device.common.utilities,
+ org.eclipse.ui,
+ org.eclipse.core.runtime
diff --git a/proctools/org.eclipse.linuxtools.sequoyah.device.base/build.properties b/proctools/org.eclipse.linuxtools.sequoyah.device.base/build.properties
new file mode 100644
index 0000000000..a092d25e84
--- /dev/null
+++ b/proctools/org.eclipse.linuxtools.sequoyah.device.base/build.properties
@@ -0,0 +1,8 @@
+source.. = src/
+output.. = bin/
+bin.includes = plugin.xml,\
+ META-INF/,\
+ .,\
+ plugin.properties,\
+ schema/
+
diff --git a/proctools/org.eclipse.linuxtools.sequoyah.device.base/plugin.properties b/proctools/org.eclipse.linuxtools.sequoyah.device.base/plugin.properties
new file mode 100644
index 0000000000..1cb53c9eb7
--- /dev/null
+++ b/proctools/org.eclipse.linuxtools.sequoyah.device.base/plugin.properties
@@ -0,0 +1,28 @@
+################################################################################
+# Copyright (c) 2008-2010 Motorola Inc.
+# 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
+#
+# Initial Contributor:
+# Otávio Ferranti (Motorola)
+#
+# Contributors:
+# Mauren Brenner (Eldorado) - [257585] Update provider name
+# Daniel Pastore (Eldorado) - [289870] Moving and renaming Tml to Sequoyah
+################################################################################
+
+# NLS_MESSAGEFORMAT_NONE
+# NLS_ENCODING=UTF-8
+
+pluginName=Linux Tools Base Plugin (Incubation)
+providerName=Eclipse.org - DSDP
+
+category.name=Linux Tools
+
+view.memorymap.name=Memory Map
+view.cpuload.name=CPU Load
+
+
+
diff --git a/proctools/org.eclipse.linuxtools.sequoyah.device.base/plugin.xml b/proctools/org.eclipse.linuxtools.sequoyah.device.base/plugin.xml
new file mode 100644
index 0000000000..72fdccf58b
--- /dev/null
+++ b/proctools/org.eclipse.linuxtools.sequoyah.device.base/plugin.xml
@@ -0,0 +1,36 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/proctools/org.eclipse.linuxtools.sequoyah.device.base/schema/capabilities.exsd b/proctools/org.eclipse.linuxtools.sequoyah.device.base/schema/capabilities.exsd
new file mode 100644
index 0000000000..e78ce44ef1
--- /dev/null
+++ b/proctools/org.eclipse.linuxtools.sequoyah.device.base/schema/capabilities.exsd
@@ -0,0 +1,86 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Copyright (c) 2007-2010 Motorola Inc. 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
+
+
+
+
+
diff --git a/proctools/org.eclipse.linuxtools.sequoyah.device.base/schema/protocols.exsd b/proctools/org.eclipse.linuxtools.sequoyah.device.base/schema/protocols.exsd
new file mode 100644
index 0000000000..fec4175d4e
--- /dev/null
+++ b/proctools/org.eclipse.linuxtools.sequoyah.device.base/schema/protocols.exsd
@@ -0,0 +1,121 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Copyright (c) 2007-2010 Motorola Inc. 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
+
+
+
+
+
diff --git a/proctools/org.eclipse.linuxtools.sequoyah.device.base/src/org/eclipse/linuxtools/sequoyah/device/network/IConnectionProvider.java b/proctools/org.eclipse.linuxtools.sequoyah.device.base/src/org/eclipse/linuxtools/sequoyah/device/network/IConnectionProvider.java
new file mode 100644
index 0000000000..71f42f3dc7
--- /dev/null
+++ b/proctools/org.eclipse.linuxtools.sequoyah.device.base/src/org/eclipse/linuxtools/sequoyah/device/network/IConnectionProvider.java
@@ -0,0 +1,74 @@
+/********************************************************************************
+ * Copyright (c) 2008-2010 Motorola Inc. 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
+ *
+ * Initial Contributor:
+ * Otavio Ferranti (Motorola)
+ *
+ * Contributors:
+ * Daniel Pastore (Eldorado) - [289870] Moving and renaming Tml to Sequoyah
+ ********************************************************************************/
+
+package org.eclipse.linuxtools.sequoyah.device.network;
+
+import java.io.IOException;
+
+import org.eclipse.linuxtools.sequoyah.device.network.IConstants.CommandCode;
+import org.eclipse.linuxtools.sequoyah.device.tools.INotifier;
+
+/**
+ * @author Otavio Ferranti
+ */
+public interface IConnectionProvider extends INotifier{
+
+ /**
+ * This method will be executed in a separated thread and will produce
+ * an event to be sent to the registered listeners.
+ * @param host
+ * @param port
+ * @throws IOException
+ */
+ public void connect(String host, int port) throws IOException ;
+
+ /**
+ * @throws IOException
+ */
+ public void disconnect() throws IOException ;
+
+ /**
+ * This method will be executed in a separated thread and will produce
+ * an event to be sent to the registered listeners.
+ * @param user
+ * @param password
+ * @throws IOException
+ */
+ public void login(String user, String password) throws IOException ;
+
+ /**
+ * Retrieves the last response.
+ * @return
+ */
+ public StringBuffer getLastResponde() ;
+
+ /**
+ * Sends a command to be executed and waits for the results.
+ * @param command
+ * @throws IOException
+ */
+ public void sendCommand(CommandCode cmd, String cmdStr) throws IOException ;
+
+ /**
+ * Sends some command or data without waiting any response or result.
+ * @param out
+ */
+ public void sendData(String out) ;
+
+ /**
+ * Sets the maximum response length.
+ * @param maxLength
+ */
+ public void setResponseLength(int maxLength) ;
+
+}
diff --git a/proctools/org.eclipse.linuxtools.sequoyah.device.base/src/org/eclipse/linuxtools/sequoyah/device/network/IConstants.java b/proctools/org.eclipse.linuxtools.sequoyah.device.base/src/org/eclipse/linuxtools/sequoyah/device/network/IConstants.java
new file mode 100644
index 0000000000..04553945e5
--- /dev/null
+++ b/proctools/org.eclipse.linuxtools.sequoyah.device.base/src/org/eclipse/linuxtools/sequoyah/device/network/IConstants.java
@@ -0,0 +1,44 @@
+/********************************************************************************
+ * Copyright (c) 2008-2010 Motorola Inc. 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
+ *
+ * Initial Contributor:
+ * Otavio Ferranti (Motorola)
+ *
+ * Contributors:
+ * Daniel Pastore (Eldorado) - [289870] Moving and renaming Tml to Sequoyah
+ ********************************************************************************/
+
+package org.eclipse.linuxtools.sequoyah.device.network;
+
+/**
+ * @author Otavio Ferranti
+ */
+public interface IConstants {
+
+ public enum EventCode { EVT_PROVIDER_CONNECT_FINISHED,
+ EVT_PROVIDER_CONNECT_ERROR,
+ EVT_PROVIDER_LOGIN_FINISHED,
+ EVT_PROVIDER_LOGIN_ERROR,
+ EVT_PROVIDER_SENDCOMMAND_FINISHED,
+ EVT_PROVIDER_SENDCOMMAND_ERROR,
+ EVT_PROVIDER_SENDDATA_FINISHED,
+ EVT_PROVIDER_SENDDATA_ERROR,
+ EVT_PROVIDER_DISCONNECT_FINISHED,
+ EVT_PROCESSOR_GATHERDATA_FINISHED,
+ EVT_PROCESSOR_GATHERDATA_ERROR,
+ EVT_TOOL_REFRESH_VIEW,
+ EVT_TOOL_CONNECT_FINISHED,
+ EVT_TOOL_LOGIN_FINISHED,
+ EVT_TOOL_DISCONNECT_FINISHED };
+
+ public enum OperationCode { SUCCESS,
+ LOGIN_REQUIRED,
+ LOGIN_FAILED,
+ UNEXPECTED_RESULT };
+
+ public enum CommandCode { FETCH_FILE };
+
+}
diff --git a/proctools/org.eclipse.linuxtools.sequoyah.device.base/src/org/eclipse/linuxtools/sequoyah/device/tools/AbstractNotifier.java b/proctools/org.eclipse.linuxtools.sequoyah.device.base/src/org/eclipse/linuxtools/sequoyah/device/tools/AbstractNotifier.java
new file mode 100644
index 0000000000..cebb076f7e
--- /dev/null
+++ b/proctools/org.eclipse.linuxtools.sequoyah.device.base/src/org/eclipse/linuxtools/sequoyah/device/tools/AbstractNotifier.java
@@ -0,0 +1,66 @@
+/********************************************************************************
+ * Copyright (c) 2008-2010 Motorola Inc. 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
+ *
+ * Initial Contributor:
+ * Otavio Ferranti (Motorola)
+ *
+ * Contributors:
+ * Daniel Pastore (Eldorado) - [289870] Moving and renaming Tml to Sequoyah
+ ********************************************************************************/
+
+package org.eclipse.linuxtools.sequoyah.device.tools;
+
+import java.util.ArrayList;
+import java.util.List;
+
+import org.eclipse.linuxtools.sequoyah.device.network.IConstants.EventCode;
+
+/**
+ * @author Otavio Ferranti
+ */
+public class AbstractNotifier implements INotifier{
+
+ private ArrayList listeners = new ArrayList();
+
+ /* (non-Javadoc)
+ * @see org.eclipse.sequoyah.linuxmemorymapviewer.network.IConnectionProvider#addListener(org.eclipse.sequoyah.linuxmemorymapviewer.network.IListener)
+ */
+ public void addListener(IListener listener) {
+ if (null != listener) {
+ listeners.add(listener);
+ }
+ }
+
+ /* (non-Javadoc)
+ * @see org.eclipse.linuxtools.sequoyah.device.tools.INotifier#listeners()
+ */
+ public List listeners() {
+ return listeners;
+ }
+
+ /* (non-Javadoc)
+ * @see org.eclipse.sequoyah.linuxmemorymapviewer.network.IConnectionProvider#notifyListeners(org.eclipse.sequoyah.linuxmemorymapviewer.network.IConnectionConstants.EventCode, java.lang.Object)
+ */
+ public void notifyListeners(EventCode event, Object result) {
+ for (IListener listener:listeners){
+ listener.notify(this, event, result);
+ }
+ }
+
+ /* (non-Javadoc)
+ * @see org.eclipse.linuxtools.sequoyah.device.tools.INotifier#removeAllListeners()
+ */
+ public void removeAllListeners() {
+ listeners.clear();
+ }
+
+ /* (non-Javadoc)
+ * @see org.eclipse.linuxtools.sequoyah.device.tools.INotifier#removeListener(org.eclipse.linuxtools.sequoyah.device.tools.IListener)
+ */
+ public void removeListener(IListener listener) {
+ listeners.remove(listener);
+ }
+}
diff --git a/proctools/org.eclipse.linuxtools.sequoyah.device.base/src/org/eclipse/linuxtools/sequoyah/device/tools/IListener.java b/proctools/org.eclipse.linuxtools.sequoyah.device.base/src/org/eclipse/linuxtools/sequoyah/device/tools/IListener.java
new file mode 100644
index 0000000000..6edb8f43d9
--- /dev/null
+++ b/proctools/org.eclipse.linuxtools.sequoyah.device.base/src/org/eclipse/linuxtools/sequoyah/device/tools/IListener.java
@@ -0,0 +1,31 @@
+/********************************************************************************
+ * Copyright (c) 2008-2010 Motorola Inc. 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
+ *
+ * Initial Contributor:
+ * Otavio Ferranti (Motorola)
+ *
+ * Contributors:
+ * Daniel Pastore (Eldorado) - [289870] Moving and renaming Tml to Sequoyah
+ ********************************************************************************/
+
+package org.eclipse.linuxtools.sequoyah.device.tools;
+
+import org.eclipse.linuxtools.sequoyah.device.network.IConstants.EventCode;
+
+/**
+ * @author Otavio Ferranti
+ */
+public interface IListener {
+
+ /**
+ * @param notifier
+ * @param event
+ * @param result
+ */
+ public void notify (INotifier notifier,
+ EventCode event,
+ Object result);
+}
diff --git a/proctools/org.eclipse.linuxtools.sequoyah.device.base/src/org/eclipse/linuxtools/sequoyah/device/tools/INotifier.java b/proctools/org.eclipse.linuxtools.sequoyah.device.base/src/org/eclipse/linuxtools/sequoyah/device/tools/INotifier.java
new file mode 100644
index 0000000000..c3605dc70d
--- /dev/null
+++ b/proctools/org.eclipse.linuxtools.sequoyah.device.base/src/org/eclipse/linuxtools/sequoyah/device/tools/INotifier.java
@@ -0,0 +1,51 @@
+/********************************************************************************
+ * Copyright (c) 2008-2010 Motorola Inc. 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
+ *
+ * Initial Contributor:
+ * Otavio Ferranti (Motorola)
+ *
+ * Contributors:
+ * Daniel Pastore (Eldorado) - [289870] Moving and renaming Tml to Sequoyah
+ ********************************************************************************/
+
+package org.eclipse.linuxtools.sequoyah.device.tools;
+
+import java.util.List;
+
+import org.eclipse.linuxtools.sequoyah.device.network.IConstants.EventCode;
+
+/**
+ * @author Otavio Ferranti
+ */
+public interface INotifier {
+
+ /**
+ * @param listener
+ */
+ public void addListener(IListener listener);
+
+ /**
+ * @return
+ */
+ public List listeners();
+
+ /**
+ * @param event
+ * @param result
+ */
+ public void notifyListeners (EventCode event, Object result);
+
+ /**
+ *
+ */
+ public void removeAllListeners ();
+
+ /**
+ * @param listener
+ */
+ public void removeListener (IListener listener);
+
+}
diff --git a/proctools/org.eclipse.linuxtools.sequoyah.device.base/src/org/eclipse/linuxtools/sequoyah/device/tools/ITool.java b/proctools/org.eclipse.linuxtools.sequoyah.device.base/src/org/eclipse/linuxtools/sequoyah/device/tools/ITool.java
new file mode 100644
index 0000000000..707a556082
--- /dev/null
+++ b/proctools/org.eclipse.linuxtools.sequoyah.device.base/src/org/eclipse/linuxtools/sequoyah/device/tools/ITool.java
@@ -0,0 +1,75 @@
+/********************************************************************************
+ * Copyright (c) 2008-2010 Motorola Inc. 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
+ *
+ * Initial Contributor:
+ * Otavio Ferranti (Motorola)
+ *
+ * Contributors:
+ * Otavio Ferranti - Eldorado Research Institute - Bug 255255 [tml][proctools] Add extension points
+ * Daniel Pastore (Eldorado) - [289870] Moving and renaming Tml to Sequoyah
+ ********************************************************************************/
+
+package org.eclipse.linuxtools.sequoyah.device.tools;
+
+import java.util.List;
+
+import org.eclipse.linuxtools.sequoyah.device.utilities.ProtocolDescriptor;
+
+/**
+ * @author Otavio Ferranti
+ */
+public interface ITool extends INotifier {
+
+ /**
+ *
+ */
+ public void disconnect();
+
+ /**
+ * @param host
+ * @param port
+ * @param protocol
+ * @param viewer
+ */
+ public void connect(String host, int port, ProtocolDescriptor protocol);
+
+ /**
+ * @param user
+ * @param password
+ */
+ public void login(String user, String password);
+
+ /**
+ *
+ */
+ public List getProtocolsDescriptors();
+
+ /**
+ * @param delay
+ */
+ public int getRefreshDelay();
+
+ /**
+ *
+ */
+ public void refresh();
+
+ /**
+ * @param delay
+ */
+ public void setRefreshDelay(int delay);
+
+ /**
+ *
+ */
+ public void start();
+
+ /**
+ *
+ */
+ public void stop ();
+
+}
\ No newline at end of file
diff --git a/proctools/org.eclipse.linuxtools.sequoyah.device.base/src/org/eclipse/linuxtools/sequoyah/device/ui/DialogConnect.java b/proctools/org.eclipse.linuxtools.sequoyah.device.base/src/org/eclipse/linuxtools/sequoyah/device/ui/DialogConnect.java
new file mode 100644
index 0000000000..de67ff0ab8
--- /dev/null
+++ b/proctools/org.eclipse.linuxtools.sequoyah.device.base/src/org/eclipse/linuxtools/sequoyah/device/ui/DialogConnect.java
@@ -0,0 +1,184 @@
+/********************************************************************************
+ * Copyright (c) 2008-2010 Motorola Inc. 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
+ *
+ * Initial Contributor:
+ * Otavio Ferranti (Motorola)
+ *
+ * Contributors:
+ * Otavio Ferranti - Eldorado Research Institute - Bug 255255 [tml][proctools] Add extension points
+ * Daniel Pastore (Eldorado) - [289870] Moving and renaming Tml to Sequoyah
+ ********************************************************************************/
+
+package org.eclipse.linuxtools.sequoyah.device.ui;
+
+import java.util.LinkedList;
+import java.util.List;
+
+import org.eclipse.jface.dialogs.TitleAreaDialog;
+import org.eclipse.linuxtools.sequoyah.device.tools.ITool;
+import org.eclipse.linuxtools.sequoyah.device.utilities.ProtocolDescriptor;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.graphics.Point;
+import org.eclipse.swt.layout.GridData;
+import org.eclipse.swt.layout.GridLayout;
+import org.eclipse.swt.widgets.Combo;
+import org.eclipse.swt.widgets.Composite;
+import org.eclipse.swt.widgets.Control;
+import org.eclipse.swt.widgets.Event;
+import org.eclipse.swt.widgets.Label;
+import org.eclipse.swt.widgets.Listener;
+import org.eclipse.swt.widgets.Shell;
+import org.eclipse.swt.widgets.Text;
+
+
+/**
+ * @author Otavio Ferranti
+ */
+public class DialogConnect extends TitleAreaDialog {
+
+ final private String WINDOW_TITLE = Messages.OpenConnectionDialog_Window_Title;
+ final private String WINDOW_MESSAGE = Messages.OpenConnectionDialog_Window_Message;
+ final private String LABEL_HOST = Messages.OpenConnectionDialog_Label_Host;
+ final private String LABEL_PORT = Messages.OpenConnectionDialog_Label_Port;
+ final private String LABEL_PROTOCOL = Messages.OpenConnectionDialog_Label_Protocol;
+
+ private Text hostText;
+ private Text portText;
+ private Combo protocolCombo;
+
+ private ITool tool = null;
+
+ private List pdList = null;
+
+ /**
+ * The constructor.
+ * @param parent
+ */
+ public DialogConnect(Shell parent, ITool tool) {
+ super(parent);
+ this.tool = tool;
+ this.pdList = tool.getProtocolsDescriptors();
+ }
+
+ /**
+ *
+ */
+ private int getProtocolDefaultPort(String name) {
+ int retVal = -1;
+ for (ProtocolDescriptor pd : this.pdList) {
+ if(pd.getName().equalsIgnoreCase(name)) {
+ retVal = pd.getDefaultPort();;
+ break;
+ };
+ }
+ return retVal;
+ }
+
+ /**
+ *
+ */
+ private ProtocolDescriptor getProcotolDescriptor(String name) {
+ ProtocolDescriptor retVal = null;
+ for (ProtocolDescriptor pd : this.pdList) {
+ if(pd.getName().equalsIgnoreCase(name)) {
+ retVal = pd;
+ break;
+ };
+ }
+ return retVal;
+ }
+
+ /**
+ *
+ */
+ private String[] getProcotolsNames() {
+ List aux = new LinkedList();
+ for (ProtocolDescriptor pd : this.pdList) {
+ aux.add(pd.getName());
+ }
+ String[] retVal = new String[1];
+ retVal = aux.toArray(retVal);
+ return retVal;
+ }
+
+ /**
+ *
+ */
+ private void updatePortToDefault() {
+ String selection = protocolCombo.getText();
+ int port = this.getProtocolDefaultPort(selection);
+ portText.setText(new Integer(port).toString());
+ }
+
+ /* (non-Javadoc)
+ * @see org.eclipse.jface.dialogs.TitleAreaDialog#getInitialSize()
+ */
+ protected Point getInitialSize() {
+ return super.getInitialSize();
+ }
+
+ protected Control createDialogArea(Composite parent) {
+
+ setTitle(WINDOW_TITLE);
+ setMessage(WINDOW_MESSAGE);
+
+ Composite dialogArea = new Composite(parent, SWT.NONE);
+ GridLayout gridLayout = new GridLayout(2, false);
+
+ gridLayout.marginLeft = 7;
+ gridLayout.marginRight = 7;
+
+ dialogArea.setLayout(gridLayout);
+ dialogArea.setLayoutData(new GridData(GridData.FILL_BOTH));
+ dialogArea.setFont(parent.getFont());
+
+ GridData gridData = new GridData(GridData.FILL_HORIZONTAL);
+
+ Label hostLabel = new Label(dialogArea, SWT.NULL);
+ hostLabel.setText(LABEL_HOST);
+ hostText = new Text(dialogArea, SWT.BORDER);
+ hostText.setLayoutData(gridData);
+
+ Label portLabel = new Label(dialogArea, SWT.NULL);
+ portLabel.setText(LABEL_PORT);
+ portText = new Text(dialogArea, SWT.BORDER);
+ portText.setLayoutData(gridData);
+
+ Label protocolLabel = new Label(dialogArea, SWT.NULL);
+ protocolLabel.setText(LABEL_PROTOCOL);
+
+ protocolCombo = new Combo(dialogArea, SWT.READ_ONLY);
+ protocolCombo.setItems(this.getProcotolsNames());
+ protocolCombo.select(0);
+ updatePortToDefault();
+
+ protocolCombo.addListener(SWT.Selection, new Listener () {
+ public void handleEvent(Event e) {
+ updatePortToDefault();
+ }
+ });
+
+ return dialogArea;
+ }
+
+ /* (non-Javadoc)
+ * @see org.eclipse.jface.dialogs.Dialog#okPressed()
+ */
+ protected void okPressed() {
+ tool.disconnect();
+ tool.connect(hostText.getText(),
+ new Integer(portText.getText()),
+ this.getProcotolDescriptor(protocolCombo.getText()));
+ super.okPressed();
+ }
+
+ /* (non-Javadoc)
+ * @see org.eclipse.jface.dialogs.Dialog#cancelPressed()
+ */
+ protected void cancelPressed() {
+ super.cancelPressed();
+ }
+}
diff --git a/proctools/org.eclipse.linuxtools.sequoyah.device.base/src/org/eclipse/linuxtools/sequoyah/device/ui/DialogLogin.java b/proctools/org.eclipse.linuxtools.sequoyah.device.base/src/org/eclipse/linuxtools/sequoyah/device/ui/DialogLogin.java
new file mode 100644
index 0000000000..2259bf48fc
--- /dev/null
+++ b/proctools/org.eclipse.linuxtools.sequoyah.device.base/src/org/eclipse/linuxtools/sequoyah/device/ui/DialogLogin.java
@@ -0,0 +1,126 @@
+/********************************************************************************
+ * Copyright (c) 2008-2010 Motorola Inc. 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
+ *
+ * Initial Contributor:
+ * Otavio Ferranti (Motorola)
+ *
+ * Contributors:
+ * Daniel Pastore (Eldorado) - [289870] Moving and renaming Tml to Sequoyah
+ ********************************************************************************/
+
+package org.eclipse.linuxtools.sequoyah.device.ui;
+
+import org.eclipse.jface.dialogs.TitleAreaDialog;
+import org.eclipse.linuxtools.sequoyah.device.tools.ITool;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.graphics.Point;
+import org.eclipse.swt.layout.GridData;
+import org.eclipse.swt.layout.GridLayout;
+import org.eclipse.swt.widgets.Composite;
+import org.eclipse.swt.widgets.Control;
+import org.eclipse.swt.widgets.Label;
+import org.eclipse.swt.widgets.Shell;
+import org.eclipse.swt.widgets.Text;
+
+/**
+ * @author Otavio Ferranti
+ */
+public class DialogLogin extends TitleAreaDialog {
+
+ final private String WINDOW_TITLE = Messages.LoginDialog_Window_Title;
+ final private String WINDOW_MESSAGE = Messages.LoginDialog_Window_Message;
+ final private String WINDOW_MESSAGE_LOGIN_INVALID =
+ Messages.LoginDialog_Msg_Login_Invalid;
+ final private String LABEL_USER = Messages.LoginDialog_Label_User;
+ final private String LABEL_PASSWORD = Messages.LoginDialog_Label_Password;
+
+ private Text userText;
+ private Text passwordText;
+
+ private ITool tool;
+ private boolean login_retry = false;
+
+ /**
+ * The constructor.
+ * @param parentShell
+ * @param tool
+ */
+ public DialogLogin(Shell parentShell, ITool tool) {
+ this(parentShell, tool, false);
+ }
+
+ /**
+ * The other constructor.
+ * @param parentShell
+ * @param tool
+ * @param login_retry
+ */
+ public DialogLogin(Shell parentShell, ITool tool, boolean login_retry) {
+ super(parentShell);
+ this.login_retry = login_retry;
+ this.tool = tool;
+ }
+
+ /* (non-Javadoc)
+ * @see org.eclipse.jface.dialogs.TitleAreaDialog#createDialogArea(org.eclipse.swt.widgets.Composite)
+ */
+ protected Control createDialogArea(Composite parent) {
+ setTitle(WINDOW_TITLE);
+
+ if (login_retry) {
+ setErrorMessage(WINDOW_MESSAGE_LOGIN_INVALID);
+ } else {
+ setMessage(WINDOW_MESSAGE);
+ }
+
+ Composite dialogArea = new Composite(parent, SWT.NONE);
+ GridLayout gridLayout = new GridLayout(2, false);
+
+ gridLayout.marginLeft = 7;
+ gridLayout.marginRight = 7;
+
+ dialogArea.setLayout(gridLayout);
+ dialogArea.setLayoutData(new GridData(GridData.FILL_BOTH));
+ dialogArea.setFont(parent.getFont());
+
+ GridData gridData = new GridData(GridData.FILL_HORIZONTAL);
+
+ Label hostLabel = new Label(dialogArea, SWT.NULL);
+ hostLabel.setText(LABEL_USER);
+ userText = new Text(dialogArea, SWT.BORDER);
+ userText.setLayoutData(gridData);
+
+ Label portLabel = new Label(dialogArea, SWT.NULL);
+ portLabel.setText(LABEL_PASSWORD);
+ passwordText = new Text(dialogArea, SWT.BORDER | SWT.PASSWORD);
+ passwordText.setLayoutData(gridData);
+
+ return dialogArea;
+ }
+
+ /* (non-Javadoc)
+ * @see org.eclipse.jface.dialogs.TitleAreaDialog#getInitialSize()
+ */
+ protected Point getInitialSize() {
+ return super.getInitialSize();
+ }
+
+ /* (non-Javadoc)
+ * @see org.eclipse.jface.dialogs.Dialog#okPressed()
+ */
+ protected void okPressed() {
+ tool.login(userText.getText(), passwordText.getText());
+ super.okPressed();
+ }
+
+ /* (non-Javadoc)
+ * @see org.eclipse.jface.dialogs.Dialog#cancelPressed()
+ */
+ protected void cancelPressed() {
+ tool.disconnect();
+ super.cancelPressed();
+ }
+}
diff --git a/proctools/org.eclipse.linuxtools.sequoyah.device.base/src/org/eclipse/linuxtools/sequoyah/device/ui/IToolViewPart.java b/proctools/org.eclipse.linuxtools.sequoyah.device.base/src/org/eclipse/linuxtools/sequoyah/device/ui/IToolViewPart.java
new file mode 100644
index 0000000000..85f11dd7ff
--- /dev/null
+++ b/proctools/org.eclipse.linuxtools.sequoyah.device.base/src/org/eclipse/linuxtools/sequoyah/device/ui/IToolViewPart.java
@@ -0,0 +1,25 @@
+/********************************************************************************
+ * Copyright (c) 2008-2010 Motorola Inc. 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
+ *
+ * Initial Contributor:
+ * Otavio Ferranti (Motorola)
+ *
+ * Contributors:
+ * Daniel Pastore (Eldorado) - [289870] Moving and renaming Tml to Sequoyah
+ ********************************************************************************/
+
+package org.eclipse.linuxtools.sequoyah.device.ui;
+
+import org.eclipse.linuxtools.sequoyah.device.tools.ITool;
+import org.eclipse.ui.IViewPart;
+
+/**
+ * @author Otavio Ferranti
+ */
+public interface IToolViewPart extends IViewPart{
+
+ public ITool getTool();
+}
diff --git a/proctools/org.eclipse.linuxtools.sequoyah.device.base/src/org/eclipse/linuxtools/sequoyah/device/ui/Messages.java b/proctools/org.eclipse.linuxtools.sequoyah.device.base/src/org/eclipse/linuxtools/sequoyah/device/ui/Messages.java
new file mode 100644
index 0000000000..ccbd446bcc
--- /dev/null
+++ b/proctools/org.eclipse.linuxtools.sequoyah.device.base/src/org/eclipse/linuxtools/sequoyah/device/ui/Messages.java
@@ -0,0 +1,40 @@
+/********************************************************************************
+ * Copyright (c) 2008-2010 Motorola Inc. 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
+ *
+ * Initial Contributor:
+ * Otavio Ferranti (Motorola)
+ *
+ * Contributors:
+ * Daniel Pastore (Eldorado) - [289870] Moving and renaming Tml to Sequoyah
+ ********************************************************************************/
+
+package org.eclipse.linuxtools.sequoyah.device.ui;
+
+import org.eclipse.osgi.util.NLS;
+
+/**
+ * @author Otavio Ferranti
+ */
+public class Messages extends NLS {
+ private static final String BUNDLE_NAME = "org.eclipse.linuxtools.sequoyah.device.ui.messages"; //$NON-NLS-1$
+ public static String LoginDialog_Label_Password;
+ public static String LoginDialog_Label_User;
+ public static String LoginDialog_Msg_Login_Invalid;
+ public static String LoginDialog_Window_Message;
+ public static String LoginDialog_Window_Title;
+ public static String OpenConnectionDialog_Label_Host;
+ public static String OpenConnectionDialog_Label_Port;
+ public static String OpenConnectionDialog_Label_Protocol;
+ public static String OpenConnectionDialog_Window_Message;
+ public static String OpenConnectionDialog_Window_Title;
+ static {
+ // initialize resource bundle
+ NLS.initializeMessages(BUNDLE_NAME, Messages.class);
+ }
+
+ private Messages() {
+ }
+}
diff --git a/proctools/org.eclipse.linuxtools.sequoyah.device.base/src/org/eclipse/linuxtools/sequoyah/device/ui/ViewActionConnect.java b/proctools/org.eclipse.linuxtools.sequoyah.device.base/src/org/eclipse/linuxtools/sequoyah/device/ui/ViewActionConnect.java
new file mode 100644
index 0000000000..5865b7deb7
--- /dev/null
+++ b/proctools/org.eclipse.linuxtools.sequoyah.device.base/src/org/eclipse/linuxtools/sequoyah/device/ui/ViewActionConnect.java
@@ -0,0 +1,51 @@
+/********************************************************************************
+ * Copyright (c) 2008-2010 Motorola Inc. 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
+ *
+ * Initial Contributor:
+ * Otavio Ferranti (Motorola)
+ *
+ * Contributors:
+ * Daniel Pastore (Eldorado) - [289870] Moving and renaming Tml to Sequoyah
+ ********************************************************************************/
+
+package org.eclipse.linuxtools.sequoyah.device.ui;
+
+import org.eclipse.jface.action.IAction;
+import org.eclipse.jface.viewers.ISelection;
+import org.eclipse.ui.IViewActionDelegate;
+import org.eclipse.ui.IViewPart;
+import org.eclipse.ui.PlatformUI;
+
+/**
+ * @author Otavio Ferranti
+ */
+public class ViewActionConnect implements IViewActionDelegate {
+
+ private IViewPart targetPart;
+
+ /* (non-Javadoc)
+ * @see org.eclipse.ui.IViewActionDelegate#init(org.eclipse.ui.IViewPart)
+ */
+ public void init(IViewPart view) {
+ this.targetPart = view;
+ }
+
+ /* (non-Javadoc)
+ * @see org.eclipse.ui.IActionDelegate#run(org.eclipse.jface.action.IAction)
+ */
+ public void run(IAction action) {
+ final DialogConnect dialog = new DialogConnect(
+ PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(),
+ ((IToolViewPart) this.targetPart).getTool());
+ dialog.open();
+ }
+
+ /* (non-Javadoc)
+ * @see org.eclipse.ui.IActionDelegate#selectionChanged(org.eclipse.jface.action.IAction, org.eclipse.jface.viewers.ISelection)
+ */
+ public void selectionChanged(IAction action, ISelection selection) {
+ }
+}
diff --git a/proctools/org.eclipse.linuxtools.sequoyah.device.base/src/org/eclipse/linuxtools/sequoyah/device/ui/ViewActionDisconnect.java b/proctools/org.eclipse.linuxtools.sequoyah.device.base/src/org/eclipse/linuxtools/sequoyah/device/ui/ViewActionDisconnect.java
new file mode 100644
index 0000000000..2d418888a6
--- /dev/null
+++ b/proctools/org.eclipse.linuxtools.sequoyah.device.base/src/org/eclipse/linuxtools/sequoyah/device/ui/ViewActionDisconnect.java
@@ -0,0 +1,52 @@
+/********************************************************************************
+ * Copyright (c) 2008-2010 Motorola Inc. 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
+ *
+ * Initial Contributor:
+ * Otavio Ferranti (Motorola)
+ *
+ * Contributors:
+ * Daniel Pastore (Eldorado) - [289870] Moving and renaming Tml to Sequoyah
+ ********************************************************************************/
+
+package org.eclipse.linuxtools.sequoyah.device.ui;
+
+import org.eclipse.jface.action.IAction;
+import org.eclipse.jface.viewers.ISelection;
+import org.eclipse.linuxtools.sequoyah.device.tools.ITool;
+import org.eclipse.ui.IViewActionDelegate;
+import org.eclipse.ui.IViewPart;
+
+/**
+ * @author Otavio Ferranti
+ */
+public class ViewActionDisconnect implements IViewActionDelegate {
+
+ private IViewPart targetPart;
+
+ /* (non-Javadoc)
+ * @see org.eclipse.ui.IViewActionDelegate#init(org.eclipse.ui.IViewPart)
+ */
+ public void init(IViewPart view) {
+ this.targetPart = view;
+ }
+
+ /* (non-Javadoc)
+ * @see org.eclipse.ui.IActionDelegate#run(org.eclipse.jface.action.IAction)
+ */
+ public void run(IAction action) {
+ IToolViewPart toolView = ((IToolViewPart) this.targetPart);
+ ITool tool =((ITool) toolView.getTool());
+ if (null != tool) {
+ tool.disconnect();
+ }
+ }
+
+ /* (non-Javadoc)
+ * @see org.eclipse.ui.IActionDelegate#selectionChanged(org.eclipse.jface.action.IAction, org.eclipse.jface.viewers.ISelection)
+ */
+ public void selectionChanged(IAction action, ISelection selection) {
+ }
+}
diff --git a/proctools/org.eclipse.linuxtools.sequoyah.device.base/src/org/eclipse/linuxtools/sequoyah/device/ui/ViewActionPause.java b/proctools/org.eclipse.linuxtools.sequoyah.device.base/src/org/eclipse/linuxtools/sequoyah/device/ui/ViewActionPause.java
new file mode 100644
index 0000000000..3779a26792
--- /dev/null
+++ b/proctools/org.eclipse.linuxtools.sequoyah.device.base/src/org/eclipse/linuxtools/sequoyah/device/ui/ViewActionPause.java
@@ -0,0 +1,54 @@
+/********************************************************************************
+ * Copyright (c) 2008-2010 Motorola Inc. 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
+ *
+ * Initial Contributor:
+ * Otavio Ferranti (Motorola)
+ *
+ * Contributors:
+ * Daniel Pastore (Eldorado) - [289870] Moving and renaming Tml to Sequoyah
+ ********************************************************************************/
+
+package org.eclipse.linuxtools.sequoyah.device.ui;
+
+import org.eclipse.jface.action.IAction;
+import org.eclipse.jface.viewers.ISelection;
+import org.eclipse.linuxtools.sequoyah.device.tools.ITool;
+import org.eclipse.ui.IViewActionDelegate;
+import org.eclipse.ui.IViewPart;
+
+/**
+ * @author Otavio Ferranti
+ */
+public class ViewActionPause implements IViewActionDelegate {
+
+ private IViewPart targetPart;
+
+ /* (non-Javadoc)
+ * @see org.eclipse.ui.IViewActionDelegate#init(org.eclipse.ui.IViewPart)
+ */
+ public void init(IViewPart view) {
+ this.targetPart = view;
+ }
+
+ /* (non-Javadoc)
+ * @see org.eclipse.ui.IActionDelegate#run(org.eclipse.jface.action.IAction)
+ */
+ public void run(IAction action) {
+ IToolViewPart toolView = ((IToolViewPart) this.targetPart);
+ ITool tool = toolView.getTool();
+
+ if (null != tool) {
+ tool.stop();
+ }
+ }
+
+ /* (non-Javadoc)
+ * @see org.eclipse.ui.IActionDelegate#selectionChanged(org.eclipse.jface.action.IAction, org.eclipse.jface.viewers.ISelection)
+ */
+ public void selectionChanged(IAction action, ISelection selection) {
+ // TODO Auto-generated method stub
+ }
+}
\ No newline at end of file
diff --git a/proctools/org.eclipse.linuxtools.sequoyah.device.base/src/org/eclipse/linuxtools/sequoyah/device/ui/ViewActionRefresh.java b/proctools/org.eclipse.linuxtools.sequoyah.device.base/src/org/eclipse/linuxtools/sequoyah/device/ui/ViewActionRefresh.java
new file mode 100644
index 0000000000..483c2d2f9b
--- /dev/null
+++ b/proctools/org.eclipse.linuxtools.sequoyah.device.base/src/org/eclipse/linuxtools/sequoyah/device/ui/ViewActionRefresh.java
@@ -0,0 +1,54 @@
+/********************************************************************************
+ * Copyright (c) 2008-2010 Motorola Inc. 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
+ *
+ * Initial Contributor:
+ * Otavio Ferranti (Motorola)
+ *
+ * Contributors:
+ * Daniel Pastore (Eldorado) - [289870] Moving and renaming Tml to Sequoyah
+ ********************************************************************************/
+
+package org.eclipse.linuxtools.sequoyah.device.ui;
+
+import org.eclipse.jface.action.IAction;
+import org.eclipse.jface.viewers.ISelection;
+import org.eclipse.linuxtools.sequoyah.device.tools.ITool;
+import org.eclipse.ui.IViewActionDelegate;
+import org.eclipse.ui.IViewPart;
+
+/**
+ * @author Otavio Ferranti
+ */
+public class ViewActionRefresh implements IViewActionDelegate {
+
+ private IViewPart targetPart;
+
+ /* (non-Javadoc)
+ * @see org.eclipse.ui.IViewActionDelegate#init(org.eclipse.ui.IViewPart)
+ */
+ public void init(IViewPart view) {
+ this.targetPart = view;
+ }
+
+ /* (non-Javadoc)
+ * @see org.eclipse.ui.IActionDelegate#run(org.eclipse.jface.action.IAction)
+ */
+ public void run(IAction action) {
+ IToolViewPart toolView = ((IToolViewPart) this.targetPart);
+ ITool tool = toolView.getTool();
+
+ if (null != tool) {
+ tool.refresh();
+ }
+ }
+
+ /* (non-Javadoc)
+ * @see org.eclipse.ui.IActionDelegate#selectionChanged(org.eclipse.jface.action.IAction, org.eclipse.jface.viewers.ISelection)
+ */
+ public void selectionChanged(IAction action, ISelection selection) {
+ // TODO Auto-generated method stub
+ }
+}
diff --git a/proctools/org.eclipse.linuxtools.sequoyah.device.base/src/org/eclipse/linuxtools/sequoyah/device/ui/ViewActionRun.java b/proctools/org.eclipse.linuxtools.sequoyah.device.base/src/org/eclipse/linuxtools/sequoyah/device/ui/ViewActionRun.java
new file mode 100644
index 0000000000..7545163008
--- /dev/null
+++ b/proctools/org.eclipse.linuxtools.sequoyah.device.base/src/org/eclipse/linuxtools/sequoyah/device/ui/ViewActionRun.java
@@ -0,0 +1,54 @@
+/********************************************************************************
+ * Copyright (c) 2008-2010 Motorola Inc. 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
+ *
+ * Initial Contributor:
+ * Otavio Ferranti (Motorola)
+ *
+ * Contributors:
+ * Daniel Pastore (Eldorado) - [289870] Moving and renaming Tml to Sequoyah
+ ********************************************************************************/
+
+package org.eclipse.linuxtools.sequoyah.device.ui;
+
+import org.eclipse.jface.action.IAction;
+import org.eclipse.jface.viewers.ISelection;
+import org.eclipse.linuxtools.sequoyah.device.tools.ITool;
+import org.eclipse.ui.IViewActionDelegate;
+import org.eclipse.ui.IViewPart;
+
+/**
+ * @author Otavio Ferranti
+ */
+public class ViewActionRun implements IViewActionDelegate {
+
+ private IViewPart targetPart;
+
+ /* (non-Javadoc)
+ * @see org.eclipse.ui.IViewActionDelegate#init(org.eclipse.ui.IViewPart)
+ */
+ public void init(IViewPart view) {
+ this.targetPart = view;
+ }
+
+ /* (non-Javadoc)
+ * @see org.eclipse.ui.IActionDelegate#run(org.eclipse.jface.action.IAction)
+ */
+ public void run(IAction action) {
+ IToolViewPart toolView = ((IToolViewPart) this.targetPart);
+ ITool tool = toolView.getTool();
+
+ if (null != tool) {
+ tool.start();
+ }
+ }
+
+ /* (non-Javadoc)
+ * @see org.eclipse.ui.IActionDelegate#selectionChanged(org.eclipse.jface.action.IAction, org.eclipse.jface.viewers.ISelection)
+ */
+ public void selectionChanged(IAction action, ISelection selection) {
+ // TODO Auto-generated method stub
+ }
+}
\ No newline at end of file
diff --git a/proctools/org.eclipse.linuxtools.sequoyah.device.base/src/org/eclipse/linuxtools/sequoyah/device/ui/messages.properties b/proctools/org.eclipse.linuxtools.sequoyah.device.base/src/org/eclipse/linuxtools/sequoyah/device/ui/messages.properties
new file mode 100644
index 0000000000..57da3deaea
--- /dev/null
+++ b/proctools/org.eclipse.linuxtools.sequoyah.device.base/src/org/eclipse/linuxtools/sequoyah/device/ui/messages.properties
@@ -0,0 +1,31 @@
+################################################################################
+# Copyright (c) 2008-2010 Motorola Inc.
+# 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
+#
+# Initial Contributors:
+# Otávio Ferranti (Motorola)
+#
+# Contributors:
+# Daniel Pastore (Eldorado) - [289870] Moving and renaming Tml to Sequoyah
+################################################################################
+
+# NLS_MESSAGEFORMAT_VAR
+# NLS_ENCODING=UTF-8
+
+OpenConnectionDialog_Window_Title=New connection
+OpenConnectionDialog_Window_Message=Enter values for the connection parameters
+
+OpenConnectionDialog_Label_Host=Host:
+OpenConnectionDialog_Label_Port=Port:
+OpenConnectionDialog_Label_Protocol=Protocol:
+
+LoginDialog_Window_Title=Login
+LoginDialog_Window_Message=Please, enter a valid user and password
+
+LoginDialog_Msg_Login_Invalid=Login failed. Please, enter a valid user and password
+
+LoginDialog_Label_User=User:
+LoginDialog_Label_Password=Password:
diff --git a/proctools/org.eclipse.linuxtools.sequoyah.device.base/src/org/eclipse/linuxtools/sequoyah/device/utilities/Extensions.java b/proctools/org.eclipse.linuxtools.sequoyah.device.base/src/org/eclipse/linuxtools/sequoyah/device/utilities/Extensions.java
new file mode 100644
index 0000000000..677da0e7fa
--- /dev/null
+++ b/proctools/org.eclipse.linuxtools.sequoyah.device.base/src/org/eclipse/linuxtools/sequoyah/device/utilities/Extensions.java
@@ -0,0 +1,83 @@
+/********************************************************************************
+ * Copyright (c) 2008-2010 Motorola Inc. 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
+ *
+ * Initial Contributor:
+ * Otavio Ferranti (Motorola)
+ *
+ * Contributors:
+ * Otavio Ferranti - Eldorado Research Institute - Bug 255255 [tml][proctools] Add extension points
+ * Daniel Pastore (Eldorado) - [289870] Moving and renaming Tml to Sequoyah
+ ********************************************************************************/
+
+package org.eclipse.linuxtools.sequoyah.device.utilities;
+
+import java.util.Collection;
+import java.util.LinkedList;
+import java.util.List;
+
+import org.eclipse.core.runtime.CoreException;
+import org.eclipse.core.runtime.IConfigurationElement;
+import org.eclipse.core.runtime.IExtension;
+import org.eclipse.linuxtools.sequoyah.device.network.IConnectionProvider;
+import org.eclipse.sequoyah.device.common.utilities.PluginUtils;
+
+public class Extensions {
+
+ static final private String PROTOCOLS_EXTENSION =
+ "org.eclipse.sequoyah.device.linuxtools.base.protocols"; //$NON-NLS-1$
+
+ static final private String CLASS = "class"; //$NON-NLS-1$
+ static final private String DEFAULT_PORT = "default_port"; //$NON-NLS-1$
+ static final private String ID = "id"; //$NON-NLS-1$
+ static final private String NAME = "name"; //$NON-NLS-1$
+ static final private String CAPABILITY = "capability";
+
+ static public List findProcotols (String[] reqCapabilities) {
+ Collection extensions =
+ PluginUtils.getInstalledExtensions(PROTOCOLS_EXTENSION);
+
+ List pdList = new LinkedList();
+
+ for (IExtension extension:extensions){
+ IConfigurationElement[] protocolElements = extension.getConfigurationElements();
+ for (IConfigurationElement protocolElement:protocolElements) {
+ IConfigurationElement[] capabilityElements = protocolElement.getChildren(CAPABILITY);
+
+ boolean allCapabilitiesFound = true;
+ for (String reqCapability:reqCapabilities) {
+ boolean capabilityMissing = true;
+ for (IConfigurationElement capabilityElement:capabilityElements) {
+ String capabilityStr = capabilityElement.getAttribute(ID);
+ if(capabilityStr.equalsIgnoreCase(reqCapability)) {
+ capabilityMissing = false; //Capability found
+ break;
+ }
+ }
+ if (true == capabilityMissing) {
+ allCapabilitiesFound = false;
+ break; // Could not find one of the req'd capabilities
+ }
+ }
+
+ if(true == allCapabilitiesFound) {
+ String protDefaultPortStr = protocolElement.getAttribute(DEFAULT_PORT);
+ Integer protDefaultPort = new Integer(protDefaultPortStr);
+ String protIdStr = protocolElement.getAttribute(ID);
+ String protNameStr = protocolElement.getAttribute(NAME);
+ try {
+ IConnectionProvider protConnProv = (IConnectionProvider) protocolElement.createExecutableExtension(CLASS);
+ pdList.add(new ProtocolDescriptor((Class) protConnProv.getClass(), protNameStr,
+ protIdStr, protDefaultPort.intValue()));
+ } catch (CoreException e) {
+ // TODO Auto-generated catch block
+ e.printStackTrace();
+ }
+ }
+ }
+ }
+ return pdList;
+ }
+}
diff --git a/proctools/org.eclipse.linuxtools.sequoyah.device.base/src/org/eclipse/linuxtools/sequoyah/device/utilities/ProtocolDescriptor.java b/proctools/org.eclipse.linuxtools.sequoyah.device.base/src/org/eclipse/linuxtools/sequoyah/device/utilities/ProtocolDescriptor.java
new file mode 100644
index 0000000000..7a1db1daac
--- /dev/null
+++ b/proctools/org.eclipse.linuxtools.sequoyah.device.base/src/org/eclipse/linuxtools/sequoyah/device/utilities/ProtocolDescriptor.java
@@ -0,0 +1,49 @@
+/********************************************************************************
+ * Copyright (c) 2008-2010 Motorola Inc. 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
+ *
+ * Initial Contributor:
+ * Otavio Ferranti (Motorola)
+ *
+ * Contributors:
+ * Otavio Ferranti - Eldorado Research Institute - Bug 255255 [tml][proctools] Add extension points
+ * Daniel Pastore (Eldorado) - [289870] Moving and renaming Tml to Sequoyah
+ ********************************************************************************/
+
+package org.eclipse.linuxtools.sequoyah.device.utilities;
+
+import org.eclipse.linuxtools.sequoyah.device.network.IConnectionProvider;
+
+public class ProtocolDescriptor {
+
+ private Class connectionProviderClass = null;
+ private String name = null;
+ private String id = null;
+ private int defaultPort = -1;
+
+ ProtocolDescriptor(Class connectionProviderClass,
+ String name, String id, int defaultPort) {
+ this.connectionProviderClass = connectionProviderClass;
+ this.name = name;
+ this.id = id;
+ this.defaultPort = defaultPort;
+ }
+
+ public Class getConnectionProviderClass() {
+ return connectionProviderClass;
+ }
+
+ public String getName() {
+ return name;
+ }
+
+ public String getId() {
+ return id;
+ }
+
+ public int getDefaultPort() {
+ return defaultPort;
+ }
+}
diff --git a/proctools/org.eclipse.sequoyah.device.linuxtools.base/.classpath b/proctools/org.eclipse.sequoyah.device.linuxtools.base/.classpath
deleted file mode 100644
index 64c5e31b7a..0000000000
--- a/proctools/org.eclipse.sequoyah.device.linuxtools.base/.classpath
+++ /dev/null
@@ -1,7 +0,0 @@
-
-
-
-
-
-
-
diff --git a/proctools/org.eclipse.sequoyah.device.linuxtools.base/.cvsignore b/proctools/org.eclipse.sequoyah.device.linuxtools.base/.cvsignore
deleted file mode 100644
index e66f331e57..0000000000
--- a/proctools/org.eclipse.sequoyah.device.linuxtools.base/.cvsignore
+++ /dev/null
@@ -1,3 +0,0 @@
-bin
-@dot
-plugin
diff --git a/proctools/org.eclipse.sequoyah.device.linuxtools.base/.project b/proctools/org.eclipse.sequoyah.device.linuxtools.base/.project
deleted file mode 100644
index 15cae76a0b..0000000000
--- a/proctools/org.eclipse.sequoyah.device.linuxtools.base/.project
+++ /dev/null
@@ -1,28 +0,0 @@
-
-
- org.eclipse.linuxtools.sequoyah.device.base
-
-
-
-
-
- org.eclipse.jdt.core.javabuilder
-
-
-
-
- org.eclipse.pde.ManifestBuilder
-
-
-
-
- org.eclipse.pde.SchemaBuilder
-
-
-
-
-
- org.eclipse.pde.PluginNature
- org.eclipse.jdt.core.javanature
-
-
diff --git a/proctools/org.eclipse.sequoyah.device.linuxtools.base/.settings/org.eclipse.core.resources.prefs b/proctools/org.eclipse.sequoyah.device.linuxtools.base/.settings/org.eclipse.core.resources.prefs
deleted file mode 100644
index fbb2195d9e..0000000000
--- a/proctools/org.eclipse.sequoyah.device.linuxtools.base/.settings/org.eclipse.core.resources.prefs
+++ /dev/null
@@ -1,3 +0,0 @@
-#Thu Jan 29 17:09:13 ACT 2009
-eclipse.preferences.version=1
-encoding/=UTF-8
diff --git a/proctools/org.eclipse.sequoyah.device.linuxtools.base/ChangeLog b/proctools/org.eclipse.sequoyah.device.linuxtools.base/ChangeLog
deleted file mode 100644
index 277ebe4b87..0000000000
--- a/proctools/org.eclipse.sequoyah.device.linuxtools.base/ChangeLog
+++ /dev/null
@@ -1,8 +0,0 @@
-2010-11-02 Jeff Johnston
-
- * plugin.xml: Initial check-in and refactoring.
- * plugin.properties: Ditto.
- * build.properties: Ditto.
- * schema/*.exsd: Ditto.
- * META-INF/MANIFEST.MF: Ditto.
- * src/*.java: Ditto.
\ No newline at end of file
diff --git a/proctools/org.eclipse.sequoyah.device.linuxtools.base/META-INF/MANIFEST.MF b/proctools/org.eclipse.sequoyah.device.linuxtools.base/META-INF/MANIFEST.MF
deleted file mode 100644
index 4bff24c4c6..0000000000
--- a/proctools/org.eclipse.sequoyah.device.linuxtools.base/META-INF/MANIFEST.MF
+++ /dev/null
@@ -1,16 +0,0 @@
-Manifest-Version: 1.0
-Bundle-ManifestVersion: 2
-Bundle-Name: %pluginName
-Bundle-SymbolicName: org.eclipse.linuxtools.sequoyah.device.base;singleton:=true
-Bundle-Version: 0.5.0.qualifier
-Bundle-Vendor: %providerName
-Bundle-RequiredExecutionEnvironment: J2SE-1.5
-Bundle-ActivationPolicy: lazy
-Bundle-Localization: plugin
-Export-Package: org.eclipse.linuxtools.sequoyah.device.network,
- org.eclipse.linuxtools.sequoyah.device.tools,
- org.eclipse.linuxtools.sequoyah.device.ui,
- org.eclipse.linuxtools.sequoyah.device.utilities
-Require-Bundle: org.eclipse.sequoyah.device.common.utilities,
- org.eclipse.ui,
- org.eclipse.core.runtime
diff --git a/proctools/org.eclipse.sequoyah.device.linuxtools.base/build.properties b/proctools/org.eclipse.sequoyah.device.linuxtools.base/build.properties
deleted file mode 100644
index a092d25e84..0000000000
--- a/proctools/org.eclipse.sequoyah.device.linuxtools.base/build.properties
+++ /dev/null
@@ -1,8 +0,0 @@
-source.. = src/
-output.. = bin/
-bin.includes = plugin.xml,\
- META-INF/,\
- .,\
- plugin.properties,\
- schema/
-
diff --git a/proctools/org.eclipse.sequoyah.device.linuxtools.base/plugin.properties b/proctools/org.eclipse.sequoyah.device.linuxtools.base/plugin.properties
deleted file mode 100644
index 1cb53c9eb7..0000000000
--- a/proctools/org.eclipse.sequoyah.device.linuxtools.base/plugin.properties
+++ /dev/null
@@ -1,28 +0,0 @@
-################################################################################
-# Copyright (c) 2008-2010 Motorola Inc.
-# 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
-#
-# Initial Contributor:
-# Otávio Ferranti (Motorola)
-#
-# Contributors:
-# Mauren Brenner (Eldorado) - [257585] Update provider name
-# Daniel Pastore (Eldorado) - [289870] Moving and renaming Tml to Sequoyah
-################################################################################
-
-# NLS_MESSAGEFORMAT_NONE
-# NLS_ENCODING=UTF-8
-
-pluginName=Linux Tools Base Plugin (Incubation)
-providerName=Eclipse.org - DSDP
-
-category.name=Linux Tools
-
-view.memorymap.name=Memory Map
-view.cpuload.name=CPU Load
-
-
-
diff --git a/proctools/org.eclipse.sequoyah.device.linuxtools.base/plugin.xml b/proctools/org.eclipse.sequoyah.device.linuxtools.base/plugin.xml
deleted file mode 100644
index 72fdccf58b..0000000000
--- a/proctools/org.eclipse.sequoyah.device.linuxtools.base/plugin.xml
+++ /dev/null
@@ -1,36 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/proctools/org.eclipse.sequoyah.device.linuxtools.base/schema/capabilities.exsd b/proctools/org.eclipse.sequoyah.device.linuxtools.base/schema/capabilities.exsd
deleted file mode 100644
index e78ce44ef1..0000000000
--- a/proctools/org.eclipse.sequoyah.device.linuxtools.base/schema/capabilities.exsd
+++ /dev/null
@@ -1,86 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Copyright (c) 2007-2010 Motorola Inc. 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
-
-
-
-
-
diff --git a/proctools/org.eclipse.sequoyah.device.linuxtools.base/schema/protocols.exsd b/proctools/org.eclipse.sequoyah.device.linuxtools.base/schema/protocols.exsd
deleted file mode 100644
index fec4175d4e..0000000000
--- a/proctools/org.eclipse.sequoyah.device.linuxtools.base/schema/protocols.exsd
+++ /dev/null
@@ -1,121 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Copyright (c) 2007-2010 Motorola Inc. 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
-
-
-
-
-
diff --git a/proctools/org.eclipse.sequoyah.device.linuxtools.base/src/org/eclipse/linuxtools/sequoyah/device/network/IConnectionProvider.java b/proctools/org.eclipse.sequoyah.device.linuxtools.base/src/org/eclipse/linuxtools/sequoyah/device/network/IConnectionProvider.java
deleted file mode 100644
index 71f42f3dc7..0000000000
--- a/proctools/org.eclipse.sequoyah.device.linuxtools.base/src/org/eclipse/linuxtools/sequoyah/device/network/IConnectionProvider.java
+++ /dev/null
@@ -1,74 +0,0 @@
-/********************************************************************************
- * Copyright (c) 2008-2010 Motorola Inc. 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
- *
- * Initial Contributor:
- * Otavio Ferranti (Motorola)
- *
- * Contributors:
- * Daniel Pastore (Eldorado) - [289870] Moving and renaming Tml to Sequoyah
- ********************************************************************************/
-
-package org.eclipse.linuxtools.sequoyah.device.network;
-
-import java.io.IOException;
-
-import org.eclipse.linuxtools.sequoyah.device.network.IConstants.CommandCode;
-import org.eclipse.linuxtools.sequoyah.device.tools.INotifier;
-
-/**
- * @author Otavio Ferranti
- */
-public interface IConnectionProvider extends INotifier{
-
- /**
- * This method will be executed in a separated thread and will produce
- * an event to be sent to the registered listeners.
- * @param host
- * @param port
- * @throws IOException
- */
- public void connect(String host, int port) throws IOException ;
-
- /**
- * @throws IOException
- */
- public void disconnect() throws IOException ;
-
- /**
- * This method will be executed in a separated thread and will produce
- * an event to be sent to the registered listeners.
- * @param user
- * @param password
- * @throws IOException
- */
- public void login(String user, String password) throws IOException ;
-
- /**
- * Retrieves the last response.
- * @return
- */
- public StringBuffer getLastResponde() ;
-
- /**
- * Sends a command to be executed and waits for the results.
- * @param command
- * @throws IOException
- */
- public void sendCommand(CommandCode cmd, String cmdStr) throws IOException ;
-
- /**
- * Sends some command or data without waiting any response or result.
- * @param out
- */
- public void sendData(String out) ;
-
- /**
- * Sets the maximum response length.
- * @param maxLength
- */
- public void setResponseLength(int maxLength) ;
-
-}
diff --git a/proctools/org.eclipse.sequoyah.device.linuxtools.base/src/org/eclipse/linuxtools/sequoyah/device/network/IConstants.java b/proctools/org.eclipse.sequoyah.device.linuxtools.base/src/org/eclipse/linuxtools/sequoyah/device/network/IConstants.java
deleted file mode 100644
index 04553945e5..0000000000
--- a/proctools/org.eclipse.sequoyah.device.linuxtools.base/src/org/eclipse/linuxtools/sequoyah/device/network/IConstants.java
+++ /dev/null
@@ -1,44 +0,0 @@
-/********************************************************************************
- * Copyright (c) 2008-2010 Motorola Inc. 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
- *
- * Initial Contributor:
- * Otavio Ferranti (Motorola)
- *
- * Contributors:
- * Daniel Pastore (Eldorado) - [289870] Moving and renaming Tml to Sequoyah
- ********************************************************************************/
-
-package org.eclipse.linuxtools.sequoyah.device.network;
-
-/**
- * @author Otavio Ferranti
- */
-public interface IConstants {
-
- public enum EventCode { EVT_PROVIDER_CONNECT_FINISHED,
- EVT_PROVIDER_CONNECT_ERROR,
- EVT_PROVIDER_LOGIN_FINISHED,
- EVT_PROVIDER_LOGIN_ERROR,
- EVT_PROVIDER_SENDCOMMAND_FINISHED,
- EVT_PROVIDER_SENDCOMMAND_ERROR,
- EVT_PROVIDER_SENDDATA_FINISHED,
- EVT_PROVIDER_SENDDATA_ERROR,
- EVT_PROVIDER_DISCONNECT_FINISHED,
- EVT_PROCESSOR_GATHERDATA_FINISHED,
- EVT_PROCESSOR_GATHERDATA_ERROR,
- EVT_TOOL_REFRESH_VIEW,
- EVT_TOOL_CONNECT_FINISHED,
- EVT_TOOL_LOGIN_FINISHED,
- EVT_TOOL_DISCONNECT_FINISHED };
-
- public enum OperationCode { SUCCESS,
- LOGIN_REQUIRED,
- LOGIN_FAILED,
- UNEXPECTED_RESULT };
-
- public enum CommandCode { FETCH_FILE };
-
-}
diff --git a/proctools/org.eclipse.sequoyah.device.linuxtools.base/src/org/eclipse/linuxtools/sequoyah/device/tools/AbstractNotifier.java b/proctools/org.eclipse.sequoyah.device.linuxtools.base/src/org/eclipse/linuxtools/sequoyah/device/tools/AbstractNotifier.java
deleted file mode 100644
index cebb076f7e..0000000000
--- a/proctools/org.eclipse.sequoyah.device.linuxtools.base/src/org/eclipse/linuxtools/sequoyah/device/tools/AbstractNotifier.java
+++ /dev/null
@@ -1,66 +0,0 @@
-/********************************************************************************
- * Copyright (c) 2008-2010 Motorola Inc. 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
- *
- * Initial Contributor:
- * Otavio Ferranti (Motorola)
- *
- * Contributors:
- * Daniel Pastore (Eldorado) - [289870] Moving and renaming Tml to Sequoyah
- ********************************************************************************/
-
-package org.eclipse.linuxtools.sequoyah.device.tools;
-
-import java.util.ArrayList;
-import java.util.List;
-
-import org.eclipse.linuxtools.sequoyah.device.network.IConstants.EventCode;
-
-/**
- * @author Otavio Ferranti
- */
-public class AbstractNotifier implements INotifier{
-
- private ArrayList listeners = new ArrayList();
-
- /* (non-Javadoc)
- * @see org.eclipse.sequoyah.linuxmemorymapviewer.network.IConnectionProvider#addListener(org.eclipse.sequoyah.linuxmemorymapviewer.network.IListener)
- */
- public void addListener(IListener listener) {
- if (null != listener) {
- listeners.add(listener);
- }
- }
-
- /* (non-Javadoc)
- * @see org.eclipse.linuxtools.sequoyah.device.tools.INotifier#listeners()
- */
- public List listeners() {
- return listeners;
- }
-
- /* (non-Javadoc)
- * @see org.eclipse.sequoyah.linuxmemorymapviewer.network.IConnectionProvider#notifyListeners(org.eclipse.sequoyah.linuxmemorymapviewer.network.IConnectionConstants.EventCode, java.lang.Object)
- */
- public void notifyListeners(EventCode event, Object result) {
- for (IListener listener:listeners){
- listener.notify(this, event, result);
- }
- }
-
- /* (non-Javadoc)
- * @see org.eclipse.linuxtools.sequoyah.device.tools.INotifier#removeAllListeners()
- */
- public void removeAllListeners() {
- listeners.clear();
- }
-
- /* (non-Javadoc)
- * @see org.eclipse.linuxtools.sequoyah.device.tools.INotifier#removeListener(org.eclipse.linuxtools.sequoyah.device.tools.IListener)
- */
- public void removeListener(IListener listener) {
- listeners.remove(listener);
- }
-}
diff --git a/proctools/org.eclipse.sequoyah.device.linuxtools.base/src/org/eclipse/linuxtools/sequoyah/device/tools/IListener.java b/proctools/org.eclipse.sequoyah.device.linuxtools.base/src/org/eclipse/linuxtools/sequoyah/device/tools/IListener.java
deleted file mode 100644
index 6edb8f43d9..0000000000
--- a/proctools/org.eclipse.sequoyah.device.linuxtools.base/src/org/eclipse/linuxtools/sequoyah/device/tools/IListener.java
+++ /dev/null
@@ -1,31 +0,0 @@
-/********************************************************************************
- * Copyright (c) 2008-2010 Motorola Inc. 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
- *
- * Initial Contributor:
- * Otavio Ferranti (Motorola)
- *
- * Contributors:
- * Daniel Pastore (Eldorado) - [289870] Moving and renaming Tml to Sequoyah
- ********************************************************************************/
-
-package org.eclipse.linuxtools.sequoyah.device.tools;
-
-import org.eclipse.linuxtools.sequoyah.device.network.IConstants.EventCode;
-
-/**
- * @author Otavio Ferranti
- */
-public interface IListener {
-
- /**
- * @param notifier
- * @param event
- * @param result
- */
- public void notify (INotifier notifier,
- EventCode event,
- Object result);
-}
diff --git a/proctools/org.eclipse.sequoyah.device.linuxtools.base/src/org/eclipse/linuxtools/sequoyah/device/tools/INotifier.java b/proctools/org.eclipse.sequoyah.device.linuxtools.base/src/org/eclipse/linuxtools/sequoyah/device/tools/INotifier.java
deleted file mode 100644
index c3605dc70d..0000000000
--- a/proctools/org.eclipse.sequoyah.device.linuxtools.base/src/org/eclipse/linuxtools/sequoyah/device/tools/INotifier.java
+++ /dev/null
@@ -1,51 +0,0 @@
-/********************************************************************************
- * Copyright (c) 2008-2010 Motorola Inc. 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
- *
- * Initial Contributor:
- * Otavio Ferranti (Motorola)
- *
- * Contributors:
- * Daniel Pastore (Eldorado) - [289870] Moving and renaming Tml to Sequoyah
- ********************************************************************************/
-
-package org.eclipse.linuxtools.sequoyah.device.tools;
-
-import java.util.List;
-
-import org.eclipse.linuxtools.sequoyah.device.network.IConstants.EventCode;
-
-/**
- * @author Otavio Ferranti
- */
-public interface INotifier {
-
- /**
- * @param listener
- */
- public void addListener(IListener listener);
-
- /**
- * @return
- */
- public List listeners();
-
- /**
- * @param event
- * @param result
- */
- public void notifyListeners (EventCode event, Object result);
-
- /**
- *
- */
- public void removeAllListeners ();
-
- /**
- * @param listener
- */
- public void removeListener (IListener listener);
-
-}
diff --git a/proctools/org.eclipse.sequoyah.device.linuxtools.base/src/org/eclipse/linuxtools/sequoyah/device/tools/ITool.java b/proctools/org.eclipse.sequoyah.device.linuxtools.base/src/org/eclipse/linuxtools/sequoyah/device/tools/ITool.java
deleted file mode 100644
index 707a556082..0000000000
--- a/proctools/org.eclipse.sequoyah.device.linuxtools.base/src/org/eclipse/linuxtools/sequoyah/device/tools/ITool.java
+++ /dev/null
@@ -1,75 +0,0 @@
-/********************************************************************************
- * Copyright (c) 2008-2010 Motorola Inc. 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
- *
- * Initial Contributor:
- * Otavio Ferranti (Motorola)
- *
- * Contributors:
- * Otavio Ferranti - Eldorado Research Institute - Bug 255255 [tml][proctools] Add extension points
- * Daniel Pastore (Eldorado) - [289870] Moving and renaming Tml to Sequoyah
- ********************************************************************************/
-
-package org.eclipse.linuxtools.sequoyah.device.tools;
-
-import java.util.List;
-
-import org.eclipse.linuxtools.sequoyah.device.utilities.ProtocolDescriptor;
-
-/**
- * @author Otavio Ferranti
- */
-public interface ITool extends INotifier {
-
- /**
- *
- */
- public void disconnect();
-
- /**
- * @param host
- * @param port
- * @param protocol
- * @param viewer
- */
- public void connect(String host, int port, ProtocolDescriptor protocol);
-
- /**
- * @param user
- * @param password
- */
- public void login(String user, String password);
-
- /**
- *
- */
- public List getProtocolsDescriptors();
-
- /**
- * @param delay
- */
- public int getRefreshDelay();
-
- /**
- *
- */
- public void refresh();
-
- /**
- * @param delay
- */
- public void setRefreshDelay(int delay);
-
- /**
- *
- */
- public void start();
-
- /**
- *
- */
- public void stop ();
-
-}
\ No newline at end of file
diff --git a/proctools/org.eclipse.sequoyah.device.linuxtools.base/src/org/eclipse/linuxtools/sequoyah/device/ui/DialogConnect.java b/proctools/org.eclipse.sequoyah.device.linuxtools.base/src/org/eclipse/linuxtools/sequoyah/device/ui/DialogConnect.java
deleted file mode 100644
index de67ff0ab8..0000000000
--- a/proctools/org.eclipse.sequoyah.device.linuxtools.base/src/org/eclipse/linuxtools/sequoyah/device/ui/DialogConnect.java
+++ /dev/null
@@ -1,184 +0,0 @@
-/********************************************************************************
- * Copyright (c) 2008-2010 Motorola Inc. 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
- *
- * Initial Contributor:
- * Otavio Ferranti (Motorola)
- *
- * Contributors:
- * Otavio Ferranti - Eldorado Research Institute - Bug 255255 [tml][proctools] Add extension points
- * Daniel Pastore (Eldorado) - [289870] Moving and renaming Tml to Sequoyah
- ********************************************************************************/
-
-package org.eclipse.linuxtools.sequoyah.device.ui;
-
-import java.util.LinkedList;
-import java.util.List;
-
-import org.eclipse.jface.dialogs.TitleAreaDialog;
-import org.eclipse.linuxtools.sequoyah.device.tools.ITool;
-import org.eclipse.linuxtools.sequoyah.device.utilities.ProtocolDescriptor;
-import org.eclipse.swt.SWT;
-import org.eclipse.swt.graphics.Point;
-import org.eclipse.swt.layout.GridData;
-import org.eclipse.swt.layout.GridLayout;
-import org.eclipse.swt.widgets.Combo;
-import org.eclipse.swt.widgets.Composite;
-import org.eclipse.swt.widgets.Control;
-import org.eclipse.swt.widgets.Event;
-import org.eclipse.swt.widgets.Label;
-import org.eclipse.swt.widgets.Listener;
-import org.eclipse.swt.widgets.Shell;
-import org.eclipse.swt.widgets.Text;
-
-
-/**
- * @author Otavio Ferranti
- */
-public class DialogConnect extends TitleAreaDialog {
-
- final private String WINDOW_TITLE = Messages.OpenConnectionDialog_Window_Title;
- final private String WINDOW_MESSAGE = Messages.OpenConnectionDialog_Window_Message;
- final private String LABEL_HOST = Messages.OpenConnectionDialog_Label_Host;
- final private String LABEL_PORT = Messages.OpenConnectionDialog_Label_Port;
- final private String LABEL_PROTOCOL = Messages.OpenConnectionDialog_Label_Protocol;
-
- private Text hostText;
- private Text portText;
- private Combo protocolCombo;
-
- private ITool tool = null;
-
- private List pdList = null;
-
- /**
- * The constructor.
- * @param parent
- */
- public DialogConnect(Shell parent, ITool tool) {
- super(parent);
- this.tool = tool;
- this.pdList = tool.getProtocolsDescriptors();
- }
-
- /**
- *
- */
- private int getProtocolDefaultPort(String name) {
- int retVal = -1;
- for (ProtocolDescriptor pd : this.pdList) {
- if(pd.getName().equalsIgnoreCase(name)) {
- retVal = pd.getDefaultPort();;
- break;
- };
- }
- return retVal;
- }
-
- /**
- *
- */
- private ProtocolDescriptor getProcotolDescriptor(String name) {
- ProtocolDescriptor retVal = null;
- for (ProtocolDescriptor pd : this.pdList) {
- if(pd.getName().equalsIgnoreCase(name)) {
- retVal = pd;
- break;
- };
- }
- return retVal;
- }
-
- /**
- *
- */
- private String[] getProcotolsNames() {
- List aux = new LinkedList();
- for (ProtocolDescriptor pd : this.pdList) {
- aux.add(pd.getName());
- }
- String[] retVal = new String[1];
- retVal = aux.toArray(retVal);
- return retVal;
- }
-
- /**
- *
- */
- private void updatePortToDefault() {
- String selection = protocolCombo.getText();
- int port = this.getProtocolDefaultPort(selection);
- portText.setText(new Integer(port).toString());
- }
-
- /* (non-Javadoc)
- * @see org.eclipse.jface.dialogs.TitleAreaDialog#getInitialSize()
- */
- protected Point getInitialSize() {
- return super.getInitialSize();
- }
-
- protected Control createDialogArea(Composite parent) {
-
- setTitle(WINDOW_TITLE);
- setMessage(WINDOW_MESSAGE);
-
- Composite dialogArea = new Composite(parent, SWT.NONE);
- GridLayout gridLayout = new GridLayout(2, false);
-
- gridLayout.marginLeft = 7;
- gridLayout.marginRight = 7;
-
- dialogArea.setLayout(gridLayout);
- dialogArea.setLayoutData(new GridData(GridData.FILL_BOTH));
- dialogArea.setFont(parent.getFont());
-
- GridData gridData = new GridData(GridData.FILL_HORIZONTAL);
-
- Label hostLabel = new Label(dialogArea, SWT.NULL);
- hostLabel.setText(LABEL_HOST);
- hostText = new Text(dialogArea, SWT.BORDER);
- hostText.setLayoutData(gridData);
-
- Label portLabel = new Label(dialogArea, SWT.NULL);
- portLabel.setText(LABEL_PORT);
- portText = new Text(dialogArea, SWT.BORDER);
- portText.setLayoutData(gridData);
-
- Label protocolLabel = new Label(dialogArea, SWT.NULL);
- protocolLabel.setText(LABEL_PROTOCOL);
-
- protocolCombo = new Combo(dialogArea, SWT.READ_ONLY);
- protocolCombo.setItems(this.getProcotolsNames());
- protocolCombo.select(0);
- updatePortToDefault();
-
- protocolCombo.addListener(SWT.Selection, new Listener () {
- public void handleEvent(Event e) {
- updatePortToDefault();
- }
- });
-
- return dialogArea;
- }
-
- /* (non-Javadoc)
- * @see org.eclipse.jface.dialogs.Dialog#okPressed()
- */
- protected void okPressed() {
- tool.disconnect();
- tool.connect(hostText.getText(),
- new Integer(portText.getText()),
- this.getProcotolDescriptor(protocolCombo.getText()));
- super.okPressed();
- }
-
- /* (non-Javadoc)
- * @see org.eclipse.jface.dialogs.Dialog#cancelPressed()
- */
- protected void cancelPressed() {
- super.cancelPressed();
- }
-}
diff --git a/proctools/org.eclipse.sequoyah.device.linuxtools.base/src/org/eclipse/linuxtools/sequoyah/device/ui/DialogLogin.java b/proctools/org.eclipse.sequoyah.device.linuxtools.base/src/org/eclipse/linuxtools/sequoyah/device/ui/DialogLogin.java
deleted file mode 100644
index 2259bf48fc..0000000000
--- a/proctools/org.eclipse.sequoyah.device.linuxtools.base/src/org/eclipse/linuxtools/sequoyah/device/ui/DialogLogin.java
+++ /dev/null
@@ -1,126 +0,0 @@
-/********************************************************************************
- * Copyright (c) 2008-2010 Motorola Inc. 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
- *
- * Initial Contributor:
- * Otavio Ferranti (Motorola)
- *
- * Contributors:
- * Daniel Pastore (Eldorado) - [289870] Moving and renaming Tml to Sequoyah
- ********************************************************************************/
-
-package org.eclipse.linuxtools.sequoyah.device.ui;
-
-import org.eclipse.jface.dialogs.TitleAreaDialog;
-import org.eclipse.linuxtools.sequoyah.device.tools.ITool;
-import org.eclipse.swt.SWT;
-import org.eclipse.swt.graphics.Point;
-import org.eclipse.swt.layout.GridData;
-import org.eclipse.swt.layout.GridLayout;
-import org.eclipse.swt.widgets.Composite;
-import org.eclipse.swt.widgets.Control;
-import org.eclipse.swt.widgets.Label;
-import org.eclipse.swt.widgets.Shell;
-import org.eclipse.swt.widgets.Text;
-
-/**
- * @author Otavio Ferranti
- */
-public class DialogLogin extends TitleAreaDialog {
-
- final private String WINDOW_TITLE = Messages.LoginDialog_Window_Title;
- final private String WINDOW_MESSAGE = Messages.LoginDialog_Window_Message;
- final private String WINDOW_MESSAGE_LOGIN_INVALID =
- Messages.LoginDialog_Msg_Login_Invalid;
- final private String LABEL_USER = Messages.LoginDialog_Label_User;
- final private String LABEL_PASSWORD = Messages.LoginDialog_Label_Password;
-
- private Text userText;
- private Text passwordText;
-
- private ITool tool;
- private boolean login_retry = false;
-
- /**
- * The constructor.
- * @param parentShell
- * @param tool
- */
- public DialogLogin(Shell parentShell, ITool tool) {
- this(parentShell, tool, false);
- }
-
- /**
- * The other constructor.
- * @param parentShell
- * @param tool
- * @param login_retry
- */
- public DialogLogin(Shell parentShell, ITool tool, boolean login_retry) {
- super(parentShell);
- this.login_retry = login_retry;
- this.tool = tool;
- }
-
- /* (non-Javadoc)
- * @see org.eclipse.jface.dialogs.TitleAreaDialog#createDialogArea(org.eclipse.swt.widgets.Composite)
- */
- protected Control createDialogArea(Composite parent) {
- setTitle(WINDOW_TITLE);
-
- if (login_retry) {
- setErrorMessage(WINDOW_MESSAGE_LOGIN_INVALID);
- } else {
- setMessage(WINDOW_MESSAGE);
- }
-
- Composite dialogArea = new Composite(parent, SWT.NONE);
- GridLayout gridLayout = new GridLayout(2, false);
-
- gridLayout.marginLeft = 7;
- gridLayout.marginRight = 7;
-
- dialogArea.setLayout(gridLayout);
- dialogArea.setLayoutData(new GridData(GridData.FILL_BOTH));
- dialogArea.setFont(parent.getFont());
-
- GridData gridData = new GridData(GridData.FILL_HORIZONTAL);
-
- Label hostLabel = new Label(dialogArea, SWT.NULL);
- hostLabel.setText(LABEL_USER);
- userText = new Text(dialogArea, SWT.BORDER);
- userText.setLayoutData(gridData);
-
- Label portLabel = new Label(dialogArea, SWT.NULL);
- portLabel.setText(LABEL_PASSWORD);
- passwordText = new Text(dialogArea, SWT.BORDER | SWT.PASSWORD);
- passwordText.setLayoutData(gridData);
-
- return dialogArea;
- }
-
- /* (non-Javadoc)
- * @see org.eclipse.jface.dialogs.TitleAreaDialog#getInitialSize()
- */
- protected Point getInitialSize() {
- return super.getInitialSize();
- }
-
- /* (non-Javadoc)
- * @see org.eclipse.jface.dialogs.Dialog#okPressed()
- */
- protected void okPressed() {
- tool.login(userText.getText(), passwordText.getText());
- super.okPressed();
- }
-
- /* (non-Javadoc)
- * @see org.eclipse.jface.dialogs.Dialog#cancelPressed()
- */
- protected void cancelPressed() {
- tool.disconnect();
- super.cancelPressed();
- }
-}
diff --git a/proctools/org.eclipse.sequoyah.device.linuxtools.base/src/org/eclipse/linuxtools/sequoyah/device/ui/IToolViewPart.java b/proctools/org.eclipse.sequoyah.device.linuxtools.base/src/org/eclipse/linuxtools/sequoyah/device/ui/IToolViewPart.java
deleted file mode 100644
index 85f11dd7ff..0000000000
--- a/proctools/org.eclipse.sequoyah.device.linuxtools.base/src/org/eclipse/linuxtools/sequoyah/device/ui/IToolViewPart.java
+++ /dev/null
@@ -1,25 +0,0 @@
-/********************************************************************************
- * Copyright (c) 2008-2010 Motorola Inc. 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
- *
- * Initial Contributor:
- * Otavio Ferranti (Motorola)
- *
- * Contributors:
- * Daniel Pastore (Eldorado) - [289870] Moving and renaming Tml to Sequoyah
- ********************************************************************************/
-
-package org.eclipse.linuxtools.sequoyah.device.ui;
-
-import org.eclipse.linuxtools.sequoyah.device.tools.ITool;
-import org.eclipse.ui.IViewPart;
-
-/**
- * @author Otavio Ferranti
- */
-public interface IToolViewPart extends IViewPart{
-
- public ITool getTool();
-}
diff --git a/proctools/org.eclipse.sequoyah.device.linuxtools.base/src/org/eclipse/linuxtools/sequoyah/device/ui/Messages.java b/proctools/org.eclipse.sequoyah.device.linuxtools.base/src/org/eclipse/linuxtools/sequoyah/device/ui/Messages.java
deleted file mode 100644
index ccbd446bcc..0000000000
--- a/proctools/org.eclipse.sequoyah.device.linuxtools.base/src/org/eclipse/linuxtools/sequoyah/device/ui/Messages.java
+++ /dev/null
@@ -1,40 +0,0 @@
-/********************************************************************************
- * Copyright (c) 2008-2010 Motorola Inc. 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
- *
- * Initial Contributor:
- * Otavio Ferranti (Motorola)
- *
- * Contributors:
- * Daniel Pastore (Eldorado) - [289870] Moving and renaming Tml to Sequoyah
- ********************************************************************************/
-
-package org.eclipse.linuxtools.sequoyah.device.ui;
-
-import org.eclipse.osgi.util.NLS;
-
-/**
- * @author Otavio Ferranti
- */
-public class Messages extends NLS {
- private static final String BUNDLE_NAME = "org.eclipse.linuxtools.sequoyah.device.ui.messages"; //$NON-NLS-1$
- public static String LoginDialog_Label_Password;
- public static String LoginDialog_Label_User;
- public static String LoginDialog_Msg_Login_Invalid;
- public static String LoginDialog_Window_Message;
- public static String LoginDialog_Window_Title;
- public static String OpenConnectionDialog_Label_Host;
- public static String OpenConnectionDialog_Label_Port;
- public static String OpenConnectionDialog_Label_Protocol;
- public static String OpenConnectionDialog_Window_Message;
- public static String OpenConnectionDialog_Window_Title;
- static {
- // initialize resource bundle
- NLS.initializeMessages(BUNDLE_NAME, Messages.class);
- }
-
- private Messages() {
- }
-}
diff --git a/proctools/org.eclipse.sequoyah.device.linuxtools.base/src/org/eclipse/linuxtools/sequoyah/device/ui/ViewActionConnect.java b/proctools/org.eclipse.sequoyah.device.linuxtools.base/src/org/eclipse/linuxtools/sequoyah/device/ui/ViewActionConnect.java
deleted file mode 100644
index 5865b7deb7..0000000000
--- a/proctools/org.eclipse.sequoyah.device.linuxtools.base/src/org/eclipse/linuxtools/sequoyah/device/ui/ViewActionConnect.java
+++ /dev/null
@@ -1,51 +0,0 @@
-/********************************************************************************
- * Copyright (c) 2008-2010 Motorola Inc. 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
- *
- * Initial Contributor:
- * Otavio Ferranti (Motorola)
- *
- * Contributors:
- * Daniel Pastore (Eldorado) - [289870] Moving and renaming Tml to Sequoyah
- ********************************************************************************/
-
-package org.eclipse.linuxtools.sequoyah.device.ui;
-
-import org.eclipse.jface.action.IAction;
-import org.eclipse.jface.viewers.ISelection;
-import org.eclipse.ui.IViewActionDelegate;
-import org.eclipse.ui.IViewPart;
-import org.eclipse.ui.PlatformUI;
-
-/**
- * @author Otavio Ferranti
- */
-public class ViewActionConnect implements IViewActionDelegate {
-
- private IViewPart targetPart;
-
- /* (non-Javadoc)
- * @see org.eclipse.ui.IViewActionDelegate#init(org.eclipse.ui.IViewPart)
- */
- public void init(IViewPart view) {
- this.targetPart = view;
- }
-
- /* (non-Javadoc)
- * @see org.eclipse.ui.IActionDelegate#run(org.eclipse.jface.action.IAction)
- */
- public void run(IAction action) {
- final DialogConnect dialog = new DialogConnect(
- PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(),
- ((IToolViewPart) this.targetPart).getTool());
- dialog.open();
- }
-
- /* (non-Javadoc)
- * @see org.eclipse.ui.IActionDelegate#selectionChanged(org.eclipse.jface.action.IAction, org.eclipse.jface.viewers.ISelection)
- */
- public void selectionChanged(IAction action, ISelection selection) {
- }
-}
diff --git a/proctools/org.eclipse.sequoyah.device.linuxtools.base/src/org/eclipse/linuxtools/sequoyah/device/ui/ViewActionDisconnect.java b/proctools/org.eclipse.sequoyah.device.linuxtools.base/src/org/eclipse/linuxtools/sequoyah/device/ui/ViewActionDisconnect.java
deleted file mode 100644
index 2d418888a6..0000000000
--- a/proctools/org.eclipse.sequoyah.device.linuxtools.base/src/org/eclipse/linuxtools/sequoyah/device/ui/ViewActionDisconnect.java
+++ /dev/null
@@ -1,52 +0,0 @@
-/********************************************************************************
- * Copyright (c) 2008-2010 Motorola Inc. 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
- *
- * Initial Contributor:
- * Otavio Ferranti (Motorola)
- *
- * Contributors:
- * Daniel Pastore (Eldorado) - [289870] Moving and renaming Tml to Sequoyah
- ********************************************************************************/
-
-package org.eclipse.linuxtools.sequoyah.device.ui;
-
-import org.eclipse.jface.action.IAction;
-import org.eclipse.jface.viewers.ISelection;
-import org.eclipse.linuxtools.sequoyah.device.tools.ITool;
-import org.eclipse.ui.IViewActionDelegate;
-import org.eclipse.ui.IViewPart;
-
-/**
- * @author Otavio Ferranti
- */
-public class ViewActionDisconnect implements IViewActionDelegate {
-
- private IViewPart targetPart;
-
- /* (non-Javadoc)
- * @see org.eclipse.ui.IViewActionDelegate#init(org.eclipse.ui.IViewPart)
- */
- public void init(IViewPart view) {
- this.targetPart = view;
- }
-
- /* (non-Javadoc)
- * @see org.eclipse.ui.IActionDelegate#run(org.eclipse.jface.action.IAction)
- */
- public void run(IAction action) {
- IToolViewPart toolView = ((IToolViewPart) this.targetPart);
- ITool tool =((ITool) toolView.getTool());
- if (null != tool) {
- tool.disconnect();
- }
- }
-
- /* (non-Javadoc)
- * @see org.eclipse.ui.IActionDelegate#selectionChanged(org.eclipse.jface.action.IAction, org.eclipse.jface.viewers.ISelection)
- */
- public void selectionChanged(IAction action, ISelection selection) {
- }
-}
diff --git a/proctools/org.eclipse.sequoyah.device.linuxtools.base/src/org/eclipse/linuxtools/sequoyah/device/ui/ViewActionPause.java b/proctools/org.eclipse.sequoyah.device.linuxtools.base/src/org/eclipse/linuxtools/sequoyah/device/ui/ViewActionPause.java
deleted file mode 100644
index 3779a26792..0000000000
--- a/proctools/org.eclipse.sequoyah.device.linuxtools.base/src/org/eclipse/linuxtools/sequoyah/device/ui/ViewActionPause.java
+++ /dev/null
@@ -1,54 +0,0 @@
-/********************************************************************************
- * Copyright (c) 2008-2010 Motorola Inc. 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
- *
- * Initial Contributor:
- * Otavio Ferranti (Motorola)
- *
- * Contributors:
- * Daniel Pastore (Eldorado) - [289870] Moving and renaming Tml to Sequoyah
- ********************************************************************************/
-
-package org.eclipse.linuxtools.sequoyah.device.ui;
-
-import org.eclipse.jface.action.IAction;
-import org.eclipse.jface.viewers.ISelection;
-import org.eclipse.linuxtools.sequoyah.device.tools.ITool;
-import org.eclipse.ui.IViewActionDelegate;
-import org.eclipse.ui.IViewPart;
-
-/**
- * @author Otavio Ferranti
- */
-public class ViewActionPause implements IViewActionDelegate {
-
- private IViewPart targetPart;
-
- /* (non-Javadoc)
- * @see org.eclipse.ui.IViewActionDelegate#init(org.eclipse.ui.IViewPart)
- */
- public void init(IViewPart view) {
- this.targetPart = view;
- }
-
- /* (non-Javadoc)
- * @see org.eclipse.ui.IActionDelegate#run(org.eclipse.jface.action.IAction)
- */
- public void run(IAction action) {
- IToolViewPart toolView = ((IToolViewPart) this.targetPart);
- ITool tool = toolView.getTool();
-
- if (null != tool) {
- tool.stop();
- }
- }
-
- /* (non-Javadoc)
- * @see org.eclipse.ui.IActionDelegate#selectionChanged(org.eclipse.jface.action.IAction, org.eclipse.jface.viewers.ISelection)
- */
- public void selectionChanged(IAction action, ISelection selection) {
- // TODO Auto-generated method stub
- }
-}
\ No newline at end of file
diff --git a/proctools/org.eclipse.sequoyah.device.linuxtools.base/src/org/eclipse/linuxtools/sequoyah/device/ui/ViewActionRefresh.java b/proctools/org.eclipse.sequoyah.device.linuxtools.base/src/org/eclipse/linuxtools/sequoyah/device/ui/ViewActionRefresh.java
deleted file mode 100644
index 483c2d2f9b..0000000000
--- a/proctools/org.eclipse.sequoyah.device.linuxtools.base/src/org/eclipse/linuxtools/sequoyah/device/ui/ViewActionRefresh.java
+++ /dev/null
@@ -1,54 +0,0 @@
-/********************************************************************************
- * Copyright (c) 2008-2010 Motorola Inc. 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
- *
- * Initial Contributor:
- * Otavio Ferranti (Motorola)
- *
- * Contributors:
- * Daniel Pastore (Eldorado) - [289870] Moving and renaming Tml to Sequoyah
- ********************************************************************************/
-
-package org.eclipse.linuxtools.sequoyah.device.ui;
-
-import org.eclipse.jface.action.IAction;
-import org.eclipse.jface.viewers.ISelection;
-import org.eclipse.linuxtools.sequoyah.device.tools.ITool;
-import org.eclipse.ui.IViewActionDelegate;
-import org.eclipse.ui.IViewPart;
-
-/**
- * @author Otavio Ferranti
- */
-public class ViewActionRefresh implements IViewActionDelegate {
-
- private IViewPart targetPart;
-
- /* (non-Javadoc)
- * @see org.eclipse.ui.IViewActionDelegate#init(org.eclipse.ui.IViewPart)
- */
- public void init(IViewPart view) {
- this.targetPart = view;
- }
-
- /* (non-Javadoc)
- * @see org.eclipse.ui.IActionDelegate#run(org.eclipse.jface.action.IAction)
- */
- public void run(IAction action) {
- IToolViewPart toolView = ((IToolViewPart) this.targetPart);
- ITool tool = toolView.getTool();
-
- if (null != tool) {
- tool.refresh();
- }
- }
-
- /* (non-Javadoc)
- * @see org.eclipse.ui.IActionDelegate#selectionChanged(org.eclipse.jface.action.IAction, org.eclipse.jface.viewers.ISelection)
- */
- public void selectionChanged(IAction action, ISelection selection) {
- // TODO Auto-generated method stub
- }
-}
diff --git a/proctools/org.eclipse.sequoyah.device.linuxtools.base/src/org/eclipse/linuxtools/sequoyah/device/ui/ViewActionRun.java b/proctools/org.eclipse.sequoyah.device.linuxtools.base/src/org/eclipse/linuxtools/sequoyah/device/ui/ViewActionRun.java
deleted file mode 100644
index 7545163008..0000000000
--- a/proctools/org.eclipse.sequoyah.device.linuxtools.base/src/org/eclipse/linuxtools/sequoyah/device/ui/ViewActionRun.java
+++ /dev/null
@@ -1,54 +0,0 @@
-/********************************************************************************
- * Copyright (c) 2008-2010 Motorola Inc. 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
- *
- * Initial Contributor:
- * Otavio Ferranti (Motorola)
- *
- * Contributors:
- * Daniel Pastore (Eldorado) - [289870] Moving and renaming Tml to Sequoyah
- ********************************************************************************/
-
-package org.eclipse.linuxtools.sequoyah.device.ui;
-
-import org.eclipse.jface.action.IAction;
-import org.eclipse.jface.viewers.ISelection;
-import org.eclipse.linuxtools.sequoyah.device.tools.ITool;
-import org.eclipse.ui.IViewActionDelegate;
-import org.eclipse.ui.IViewPart;
-
-/**
- * @author Otavio Ferranti
- */
-public class ViewActionRun implements IViewActionDelegate {
-
- private IViewPart targetPart;
-
- /* (non-Javadoc)
- * @see org.eclipse.ui.IViewActionDelegate#init(org.eclipse.ui.IViewPart)
- */
- public void init(IViewPart view) {
- this.targetPart = view;
- }
-
- /* (non-Javadoc)
- * @see org.eclipse.ui.IActionDelegate#run(org.eclipse.jface.action.IAction)
- */
- public void run(IAction action) {
- IToolViewPart toolView = ((IToolViewPart) this.targetPart);
- ITool tool = toolView.getTool();
-
- if (null != tool) {
- tool.start();
- }
- }
-
- /* (non-Javadoc)
- * @see org.eclipse.ui.IActionDelegate#selectionChanged(org.eclipse.jface.action.IAction, org.eclipse.jface.viewers.ISelection)
- */
- public void selectionChanged(IAction action, ISelection selection) {
- // TODO Auto-generated method stub
- }
-}
\ No newline at end of file
diff --git a/proctools/org.eclipse.sequoyah.device.linuxtools.base/src/org/eclipse/linuxtools/sequoyah/device/ui/messages.properties b/proctools/org.eclipse.sequoyah.device.linuxtools.base/src/org/eclipse/linuxtools/sequoyah/device/ui/messages.properties
deleted file mode 100644
index 57da3deaea..0000000000
--- a/proctools/org.eclipse.sequoyah.device.linuxtools.base/src/org/eclipse/linuxtools/sequoyah/device/ui/messages.properties
+++ /dev/null
@@ -1,31 +0,0 @@
-################################################################################
-# Copyright (c) 2008-2010 Motorola Inc.
-# 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
-#
-# Initial Contributors:
-# Otávio Ferranti (Motorola)
-#
-# Contributors:
-# Daniel Pastore (Eldorado) - [289870] Moving and renaming Tml to Sequoyah
-################################################################################
-
-# NLS_MESSAGEFORMAT_VAR
-# NLS_ENCODING=UTF-8
-
-OpenConnectionDialog_Window_Title=New connection
-OpenConnectionDialog_Window_Message=Enter values for the connection parameters
-
-OpenConnectionDialog_Label_Host=Host:
-OpenConnectionDialog_Label_Port=Port:
-OpenConnectionDialog_Label_Protocol=Protocol:
-
-LoginDialog_Window_Title=Login
-LoginDialog_Window_Message=Please, enter a valid user and password
-
-LoginDialog_Msg_Login_Invalid=Login failed. Please, enter a valid user and password
-
-LoginDialog_Label_User=User:
-LoginDialog_Label_Password=Password:
diff --git a/proctools/org.eclipse.sequoyah.device.linuxtools.base/src/org/eclipse/linuxtools/sequoyah/device/utilities/Extensions.java b/proctools/org.eclipse.sequoyah.device.linuxtools.base/src/org/eclipse/linuxtools/sequoyah/device/utilities/Extensions.java
deleted file mode 100644
index 677da0e7fa..0000000000
--- a/proctools/org.eclipse.sequoyah.device.linuxtools.base/src/org/eclipse/linuxtools/sequoyah/device/utilities/Extensions.java
+++ /dev/null
@@ -1,83 +0,0 @@
-/********************************************************************************
- * Copyright (c) 2008-2010 Motorola Inc. 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
- *
- * Initial Contributor:
- * Otavio Ferranti (Motorola)
- *
- * Contributors:
- * Otavio Ferranti - Eldorado Research Institute - Bug 255255 [tml][proctools] Add extension points
- * Daniel Pastore (Eldorado) - [289870] Moving and renaming Tml to Sequoyah
- ********************************************************************************/
-
-package org.eclipse.linuxtools.sequoyah.device.utilities;
-
-import java.util.Collection;
-import java.util.LinkedList;
-import java.util.List;
-
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.core.runtime.IConfigurationElement;
-import org.eclipse.core.runtime.IExtension;
-import org.eclipse.linuxtools.sequoyah.device.network.IConnectionProvider;
-import org.eclipse.sequoyah.device.common.utilities.PluginUtils;
-
-public class Extensions {
-
- static final private String PROTOCOLS_EXTENSION =
- "org.eclipse.sequoyah.device.linuxtools.base.protocols"; //$NON-NLS-1$
-
- static final private String CLASS = "class"; //$NON-NLS-1$
- static final private String DEFAULT_PORT = "default_port"; //$NON-NLS-1$
- static final private String ID = "id"; //$NON-NLS-1$
- static final private String NAME = "name"; //$NON-NLS-1$
- static final private String CAPABILITY = "capability";
-
- static public List findProcotols (String[] reqCapabilities) {
- Collection extensions =
- PluginUtils.getInstalledExtensions(PROTOCOLS_EXTENSION);
-
- List pdList = new LinkedList();
-
- for (IExtension extension:extensions){
- IConfigurationElement[] protocolElements = extension.getConfigurationElements();
- for (IConfigurationElement protocolElement:protocolElements) {
- IConfigurationElement[] capabilityElements = protocolElement.getChildren(CAPABILITY);
-
- boolean allCapabilitiesFound = true;
- for (String reqCapability:reqCapabilities) {
- boolean capabilityMissing = true;
- for (IConfigurationElement capabilityElement:capabilityElements) {
- String capabilityStr = capabilityElement.getAttribute(ID);
- if(capabilityStr.equalsIgnoreCase(reqCapability)) {
- capabilityMissing = false; //Capability found
- break;
- }
- }
- if (true == capabilityMissing) {
- allCapabilitiesFound = false;
- break; // Could not find one of the req'd capabilities
- }
- }
-
- if(true == allCapabilitiesFound) {
- String protDefaultPortStr = protocolElement.getAttribute(DEFAULT_PORT);
- Integer protDefaultPort = new Integer(protDefaultPortStr);
- String protIdStr = protocolElement.getAttribute(ID);
- String protNameStr = protocolElement.getAttribute(NAME);
- try {
- IConnectionProvider protConnProv = (IConnectionProvider) protocolElement.createExecutableExtension(CLASS);
- pdList.add(new ProtocolDescriptor((Class) protConnProv.getClass(), protNameStr,
- protIdStr, protDefaultPort.intValue()));
- } catch (CoreException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- }
- }
- }
- }
- return pdList;
- }
-}
diff --git a/proctools/org.eclipse.sequoyah.device.linuxtools.base/src/org/eclipse/linuxtools/sequoyah/device/utilities/ProtocolDescriptor.java b/proctools/org.eclipse.sequoyah.device.linuxtools.base/src/org/eclipse/linuxtools/sequoyah/device/utilities/ProtocolDescriptor.java
deleted file mode 100644
index 7a1db1daac..0000000000
--- a/proctools/org.eclipse.sequoyah.device.linuxtools.base/src/org/eclipse/linuxtools/sequoyah/device/utilities/ProtocolDescriptor.java
+++ /dev/null
@@ -1,49 +0,0 @@
-/********************************************************************************
- * Copyright (c) 2008-2010 Motorola Inc. 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
- *
- * Initial Contributor:
- * Otavio Ferranti (Motorola)
- *
- * Contributors:
- * Otavio Ferranti - Eldorado Research Institute - Bug 255255 [tml][proctools] Add extension points
- * Daniel Pastore (Eldorado) - [289870] Moving and renaming Tml to Sequoyah
- ********************************************************************************/
-
-package org.eclipse.linuxtools.sequoyah.device.utilities;
-
-import org.eclipse.linuxtools.sequoyah.device.network.IConnectionProvider;
-
-public class ProtocolDescriptor {
-
- private Class connectionProviderClass = null;
- private String name = null;
- private String id = null;
- private int defaultPort = -1;
-
- ProtocolDescriptor(Class connectionProviderClass,
- String name, String id, int defaultPort) {
- this.connectionProviderClass = connectionProviderClass;
- this.name = name;
- this.id = id;
- this.defaultPort = defaultPort;
- }
-
- public Class getConnectionProviderClass() {
- return connectionProviderClass;
- }
-
- public String getName() {
- return name;
- }
-
- public String getId() {
- return id;
- }
-
- public int getDefaultPort() {
- return defaultPort;
- }
-}
--
cgit v1.2.3