aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Drigo Pastore2010-01-18 14:30:29 (EST)
committerDaniel Drigo Pastore2010-01-18 14:30:29 (EST)
commit0f1459bb9387e823312ce15c7f19293a4968814a (patch)
treec3ac86eb851ab3039332219a5bb42546046e6bc4
parent99271e36a1732c0c9dfef22de6dd9be46363ec65 (diff)
downloadorg.eclipse.linuxtools-0f1459bb9387e823312ce15c7f19293a4968814a.zip
org.eclipse.linuxtools-0f1459bb9387e823312ce15c7f19293a4968814a.tar.gz
org.eclipse.linuxtools-0f1459bb9387e823312ce15c7f19293a4968814a.tar.bz2
Merging changes from branch Refactoring.
-rw-r--r--proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/src/org/eclipse/sequoyah/linuxtools/network/IConnectionProvider.java74
-rw-r--r--proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/src/org/eclipse/sequoyah/linuxtools/network/IConstants.java44
-rw-r--r--proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/src/org/eclipse/sequoyah/linuxtools/tools/AbstractNotifier.java66
-rw-r--r--proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/src/org/eclipse/sequoyah/linuxtools/tools/IListener.java31
-rw-r--r--proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/src/org/eclipse/sequoyah/linuxtools/tools/INotifier.java51
-rw-r--r--proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/src/org/eclipse/sequoyah/linuxtools/tools/ITool.java74
-rw-r--r--proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/src/org/eclipse/sequoyah/linuxtools/ui/DialogConnect.java184
-rw-r--r--proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/src/org/eclipse/sequoyah/linuxtools/ui/DialogLogin.java127
-rw-r--r--proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/src/org/eclipse/sequoyah/linuxtools/ui/IToolViewPart.java25
-rw-r--r--proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/src/org/eclipse/sequoyah/linuxtools/ui/Messages.java40
-rw-r--r--proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/src/org/eclipse/sequoyah/linuxtools/ui/ViewActionConnect.java52
-rw-r--r--proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/src/org/eclipse/sequoyah/linuxtools/ui/ViewActionDisconnect.java53
-rw-r--r--proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/src/org/eclipse/sequoyah/linuxtools/ui/ViewActionPause.java55
-rw-r--r--proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/src/org/eclipse/sequoyah/linuxtools/ui/ViewActionRefresh.java55
-rw-r--r--proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/src/org/eclipse/sequoyah/linuxtools/ui/ViewActionRun.java55
-rw-r--r--proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/src/org/eclipse/sequoyah/linuxtools/ui/messages.properties31
-rw-r--r--proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/src/org/eclipse/sequoyah/linuxtools/utilities/Extensions.java84
-rw-r--r--proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/src/org/eclipse/sequoyah/linuxtools/utilities/ProtocolDescriptor.java48
18 files changed, 0 insertions, 1149 deletions
diff --git a/proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/src/org/eclipse/sequoyah/linuxtools/network/IConnectionProvider.java b/proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/src/org/eclipse/sequoyah/linuxtools/network/IConnectionProvider.java
deleted file mode 100644
index 9869ff4..0000000
--- a/proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/src/org/eclipse/sequoyah/linuxtools/network/IConnectionProvider.java
+++ /dev/null
@@ -1,74 +0,0 @@
-/********************************************************************************
- * Copyright (c) 2008 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:
- * {Name} (company) - description of contribution.
- ********************************************************************************/
-
-package org.eclipse.tml.linuxtools.network;
-
-import java.io.IOException;
-
-import org.eclipse.tml.linuxtools.tools.INotifier;
-import org.eclipse.tml.linuxtools.network.IConstants.CommandCode;;
-
-/**
- * @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/plugins/org.eclipse.sequoyah.device.linuxtools.base/src/org/eclipse/sequoyah/linuxtools/network/IConstants.java b/proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/src/org/eclipse/sequoyah/linuxtools/network/IConstants.java
deleted file mode 100644
index 8c62e79..0000000
--- a/proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/src/org/eclipse/sequoyah/linuxtools/network/IConstants.java
+++ /dev/null
@@ -1,44 +0,0 @@
-/********************************************************************************
- * Copyright (c) 2008 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:
- * {Name} (company) - description of contribution.
- ********************************************************************************/
-
-package org.eclipse.tml.linuxtools.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/plugins/org.eclipse.sequoyah.device.linuxtools.base/src/org/eclipse/sequoyah/linuxtools/tools/AbstractNotifier.java b/proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/src/org/eclipse/sequoyah/linuxtools/tools/AbstractNotifier.java
deleted file mode 100644
index 1fc1b96..0000000
--- a/proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/src/org/eclipse/sequoyah/linuxtools/tools/AbstractNotifier.java
+++ /dev/null
@@ -1,66 +0,0 @@
-/********************************************************************************
- * Copyright (c) 2008 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:
- * {Name} (company) - description of contribution.
- ********************************************************************************/
-
-package org.eclipse.tml.linuxtools.tools;
-
-import java.util.ArrayList;
-import java.util.List;
-
-import org.eclipse.tml.linuxtools.network.IConstants.EventCode;
-
-/**
- * @author Otavio Ferranti
- */
-public class AbstractNotifier implements INotifier{
-
- private ArrayList<IListener> listeners = new ArrayList<IListener>();
-
- /* (non-Javadoc)
- * @see org.eclipse.tml.linuxmemorymapviewer.network.IConnectionProvider#addListener(org.eclipse.tml.linuxmemorymapviewer.network.IListener)
- */
- public void addListener(IListener listener) {
- if (null != listener) {
- listeners.add(listener);
- }
- }
-
- /* (non-Javadoc)
- * @see org.eclipse.tml.linuxtools.tools.INotifier#listeners()
- */
- public List<IListener> listeners() {
- return listeners;
- }
-
- /* (non-Javadoc)
- * @see org.eclipse.tml.linuxmemorymapviewer.network.IConnectionProvider#notifyListeners(org.eclipse.tml.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.tml.linuxtools.tools.INotifier#removeAllListeners()
- */
- public void removeAllListeners() {
- listeners.clear();
- }
-
- /* (non-Javadoc)
- * @see org.eclipse.tml.linuxtools.tools.INotifier#removeListener(org.eclipse.tml.linuxtools.tools.IListener)
- */
- public void removeListener(IListener listener) {
- listeners.remove(listener);
- }
-}
diff --git a/proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/src/org/eclipse/sequoyah/linuxtools/tools/IListener.java b/proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/src/org/eclipse/sequoyah/linuxtools/tools/IListener.java
deleted file mode 100644
index d6b5829..0000000
--- a/proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/src/org/eclipse/sequoyah/linuxtools/tools/IListener.java
+++ /dev/null
@@ -1,31 +0,0 @@
-/********************************************************************************
- * Copyright (c) 2008 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:
- * {Name} (company) - description of contribution.
- ********************************************************************************/
-
-package org.eclipse.tml.linuxtools.tools;
-
-import org.eclipse.tml.linuxtools.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/plugins/org.eclipse.sequoyah.device.linuxtools.base/src/org/eclipse/sequoyah/linuxtools/tools/INotifier.java b/proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/src/org/eclipse/sequoyah/linuxtools/tools/INotifier.java
deleted file mode 100644
index 3239bd4..0000000
--- a/proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/src/org/eclipse/sequoyah/linuxtools/tools/INotifier.java
+++ /dev/null
@@ -1,51 +0,0 @@
-/********************************************************************************
- * Copyright (c) 2008 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:
- * {Name} (company) - description of contribution.
- ********************************************************************************/
-
-package org.eclipse.tml.linuxtools.tools;
-
-import java.util.List;
-
-import org.eclipse.tml.linuxtools.network.IConstants.EventCode;
-
-/**
- * @author Otavio Ferranti
- */
-public interface INotifier {
-
- /**
- * @param listener
- */
- public void addListener(IListener listener);
-
- /**
- * @return
- */
- public List<IListener> 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/plugins/org.eclipse.sequoyah.device.linuxtools.base/src/org/eclipse/sequoyah/linuxtools/tools/ITool.java b/proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/src/org/eclipse/sequoyah/linuxtools/tools/ITool.java
deleted file mode 100644
index ca37cd1..0000000
--- a/proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/src/org/eclipse/sequoyah/linuxtools/tools/ITool.java
+++ /dev/null
@@ -1,74 +0,0 @@
-/********************************************************************************
- * Copyright (c) 2008 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
- ********************************************************************************/
-
-package org.eclipse.tml.linuxtools.tools;
-
-import java.util.List;
-
-import org.eclipse.tml.linuxtools.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<ProtocolDescriptor> 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/plugins/org.eclipse.sequoyah.device.linuxtools.base/src/org/eclipse/sequoyah/linuxtools/ui/DialogConnect.java b/proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/src/org/eclipse/sequoyah/linuxtools/ui/DialogConnect.java
deleted file mode 100644
index 6e3ffbe..0000000
--- a/proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/src/org/eclipse/sequoyah/linuxtools/ui/DialogConnect.java
+++ /dev/null
@@ -1,184 +0,0 @@
-/********************************************************************************
- * Copyright (c) 2008 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
- ********************************************************************************/
-
-package org.eclipse.tml.linuxtools.ui;
-
-import java.util.LinkedList;
-import java.util.List;
-
-import org.eclipse.jface.dialogs.TitleAreaDialog;
-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;
-
-import org.eclipse.tml.linuxtools.tools.ITool;
-import org.eclipse.tml.linuxtools.utilities.ProtocolDescriptor;
-
-
-/**
- * @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 <ProtocolDescriptor> 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<String> aux = new LinkedList<String>();
- 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/plugins/org.eclipse.sequoyah.device.linuxtools.base/src/org/eclipse/sequoyah/linuxtools/ui/DialogLogin.java b/proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/src/org/eclipse/sequoyah/linuxtools/ui/DialogLogin.java
deleted file mode 100644
index 6e8ffba..0000000
--- a/proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/src/org/eclipse/sequoyah/linuxtools/ui/DialogLogin.java
+++ /dev/null
@@ -1,127 +0,0 @@
-/********************************************************************************
- * Copyright (c) 2008 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:
- * {Name} (company) - description of contribution.
- ********************************************************************************/
-
-package org.eclipse.tml.linuxtools.ui;
-
-import org.eclipse.tml.linuxtools.tools.ITool;
-
-import org.eclipse.jface.dialogs.TitleAreaDialog;
-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/plugins/org.eclipse.sequoyah.device.linuxtools.base/src/org/eclipse/sequoyah/linuxtools/ui/IToolViewPart.java b/proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/src/org/eclipse/sequoyah/linuxtools/ui/IToolViewPart.java
deleted file mode 100644
index 67c208c..0000000
--- a/proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/src/org/eclipse/sequoyah/linuxtools/ui/IToolViewPart.java
+++ /dev/null
@@ -1,25 +0,0 @@
-/********************************************************************************
- * Copyright (c) 2008 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:
- * {Name} (company) - description of contribution.
- ********************************************************************************/
-
-package org.eclipse.tml.linuxtools.ui;
-
-import org.eclipse.tml.linuxtools.tools.ITool;
-import org.eclipse.ui.IViewPart;
-
-/**
- * @author Otavio Ferranti
- */
-public interface IToolViewPart extends IViewPart{
-
- public ITool getTool();
-}
diff --git a/proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/src/org/eclipse/sequoyah/linuxtools/ui/Messages.java b/proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/src/org/eclipse/sequoyah/linuxtools/ui/Messages.java
deleted file mode 100644
index 3471193..0000000
--- a/proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/src/org/eclipse/sequoyah/linuxtools/ui/Messages.java
+++ /dev/null
@@ -1,40 +0,0 @@
-/********************************************************************************
- * Copyright (c) 2008 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:
- * {Name} (company) - description of contribution.
- ********************************************************************************/
-
-package org.eclipse.tml.linuxtools.ui;
-
-import org.eclipse.osgi.util.NLS;
-
-/**
- * @author Otavio Ferranti
- */
-public class Messages extends NLS {
- private static final String BUNDLE_NAME = "org.eclipse.tml.linuxtools.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/plugins/org.eclipse.sequoyah.device.linuxtools.base/src/org/eclipse/sequoyah/linuxtools/ui/ViewActionConnect.java b/proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/src/org/eclipse/sequoyah/linuxtools/ui/ViewActionConnect.java
deleted file mode 100644
index 75b2f39..0000000
--- a/proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/src/org/eclipse/sequoyah/linuxtools/ui/ViewActionConnect.java
+++ /dev/null
@@ -1,52 +0,0 @@
-/********************************************************************************
- * Copyright (c) 2008 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:
- * {Name} (company) - description of contribution.
- ********************************************************************************/
-
-package org.eclipse.tml.linuxtools.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/plugins/org.eclipse.sequoyah.device.linuxtools.base/src/org/eclipse/sequoyah/linuxtools/ui/ViewActionDisconnect.java b/proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/src/org/eclipse/sequoyah/linuxtools/ui/ViewActionDisconnect.java
deleted file mode 100644
index a1acad0..0000000
--- a/proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/src/org/eclipse/sequoyah/linuxtools/ui/ViewActionDisconnect.java
+++ /dev/null
@@ -1,53 +0,0 @@
-/********************************************************************************
- * Copyright (c) 2008 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:
- * {Name} (company) - description of contribution.
- ********************************************************************************/
-
-package org.eclipse.tml.linuxtools.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.tml.linuxtools.tools.ITool;
-
-/**
- * @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/plugins/org.eclipse.sequoyah.device.linuxtools.base/src/org/eclipse/sequoyah/linuxtools/ui/ViewActionPause.java b/proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/src/org/eclipse/sequoyah/linuxtools/ui/ViewActionPause.java
deleted file mode 100644
index 91274d5..0000000
--- a/proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/src/org/eclipse/sequoyah/linuxtools/ui/ViewActionPause.java
+++ /dev/null
@@ -1,55 +0,0 @@
-/********************************************************************************
- * Copyright (c) 2008 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:
- * {Name} (company) - description of contribution.
- ********************************************************************************/
-
-package org.eclipse.tml.linuxtools.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.tml.linuxtools.tools.ITool;
-
-/**
- * @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/plugins/org.eclipse.sequoyah.device.linuxtools.base/src/org/eclipse/sequoyah/linuxtools/ui/ViewActionRefresh.java b/proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/src/org/eclipse/sequoyah/linuxtools/ui/ViewActionRefresh.java
deleted file mode 100644
index 27a864b..0000000
--- a/proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/src/org/eclipse/sequoyah/linuxtools/ui/ViewActionRefresh.java
+++ /dev/null
@@ -1,55 +0,0 @@
-/********************************************************************************
- * Copyright (c) 2008 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:
- * {Name} (company) - description of contribution.
- ********************************************************************************/
-
-package org.eclipse.tml.linuxtools.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.tml.linuxtools.tools.ITool;
-
-/**
- * @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/plugins/org.eclipse.sequoyah.device.linuxtools.base/src/org/eclipse/sequoyah/linuxtools/ui/ViewActionRun.java b/proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/src/org/eclipse/sequoyah/linuxtools/ui/ViewActionRun.java
deleted file mode 100644
index d0f134d..0000000
--- a/proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/src/org/eclipse/sequoyah/linuxtools/ui/ViewActionRun.java
+++ /dev/null
@@ -1,55 +0,0 @@
-/********************************************************************************
- * Copyright (c) 2008 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:
- * {Name} (company) - description of contribution.
- ********************************************************************************/
-
-package org.eclipse.tml.linuxtools.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.tml.linuxtools.tools.ITool;
-
-/**
- * @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/plugins/org.eclipse.sequoyah.device.linuxtools.base/src/org/eclipse/sequoyah/linuxtools/ui/messages.properties b/proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/src/org/eclipse/sequoyah/linuxtools/ui/messages.properties
deleted file mode 100644
index 494d38a..0000000
--- a/proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/src/org/eclipse/sequoyah/linuxtools/ui/messages.properties
+++ /dev/null
@@ -1,31 +0,0 @@
-################################################################################
-# Copyright (c) 2008 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:
-# {Name} (company) - description of contribution.
-################################################################################
-
-# 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/plugins/org.eclipse.sequoyah.device.linuxtools.base/src/org/eclipse/sequoyah/linuxtools/utilities/Extensions.java b/proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/src/org/eclipse/sequoyah/linuxtools/utilities/Extensions.java
deleted file mode 100644
index add1591..0000000
--- a/proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/src/org/eclipse/sequoyah/linuxtools/utilities/Extensions.java
+++ /dev/null
@@ -1,84 +0,0 @@
-/********************************************************************************
- * Copyright (c) 2008 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
- ********************************************************************************/
-
-package org.eclipse.tml.linuxtools.utilities;
-
-import org.eclipse.tml.linuxtools.network.IConnectionProvider;
-
-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.tml.common.utilities.PluginUtils;
-
-public class Extensions {
-
- static final private String PROTOCOLS_EXTENSION =
- "org.eclipse.tml.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 <ProtocolDescriptor> findProcotols (String[] reqCapabilities) {
- Collection<IExtension> extensions =
- PluginUtils.getInstalledExtensions(PROTOCOLS_EXTENSION);
-
- List <ProtocolDescriptor> pdList = new LinkedList<ProtocolDescriptor>();
-
- 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/plugins/org.eclipse.sequoyah.device.linuxtools.base/src/org/eclipse/sequoyah/linuxtools/utilities/ProtocolDescriptor.java b/proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/src/org/eclipse/sequoyah/linuxtools/utilities/ProtocolDescriptor.java
deleted file mode 100644
index 54b8649..0000000
--- a/proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/src/org/eclipse/sequoyah/linuxtools/utilities/ProtocolDescriptor.java
+++ /dev/null
@@ -1,48 +0,0 @@
-/********************************************************************************
- * Copyright (c) 2008 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
- ********************************************************************************/
-
-package org.eclipse.tml.linuxtools.utilities;
-
-import org.eclipse.tml.linuxtools.network.IConnectionProvider;
-
-public class ProtocolDescriptor {
-
- private Class<IConnectionProvider> connectionProviderClass = null;
- private String name = null;
- private String id = null;
- private int defaultPort = -1;
-
- ProtocolDescriptor(Class<IConnectionProvider> connectionProviderClass,
- String name, String id, int defaultPort) {
- this.connectionProviderClass = connectionProviderClass;
- this.name = name;
- this.id = id;
- this.defaultPort = defaultPort;
- }
-
- public Class<IConnectionProvider> getConnectionProviderClass() {
- return connectionProviderClass;
- }
-
- public String getName() {
- return name;
- }
-
- public String getId() {
- return id;
- }
-
- public int getDefaultPort() {
- return defaultPort;
- }
-}