Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base')
-rw-r--r--proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/.classpath7
-rw-r--r--proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/.cvsignore3
-rw-r--r--proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/.project28
-rw-r--r--proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/.settings/org.eclipse.core.resources.prefs3
-rw-r--r--proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/META-INF/MANIFEST.MF16
-rw-r--r--proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/bin/org/eclipse/sequoyah/device/linuxtools/network/IConnectionProvider.classbin0 -> 867 bytes
-rw-r--r--proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/bin/org/eclipse/sequoyah/device/linuxtools/network/IConstants$CommandCode.classbin0 -> 1317 bytes
-rw-r--r--proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/bin/org/eclipse/sequoyah/device/linuxtools/network/IConstants$EventCode.classbin0 -> 2392 bytes
-rw-r--r--proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/bin/org/eclipse/sequoyah/device/linuxtools/network/IConstants$OperationCode.classbin0 -> 1516 bytes
-rw-r--r--proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/bin/org/eclipse/sequoyah/device/linuxtools/network/IConstants.classbin0 -> 462 bytes
-rw-r--r--proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/bin/org/eclipse/sequoyah/device/linuxtools/tools/AbstractNotifier.classbin0 -> 2255 bytes
-rw-r--r--proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/bin/org/eclipse/sequoyah/device/linuxtools/tools/IListener.classbin0 -> 489 bytes
-rw-r--r--proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/bin/org/eclipse/sequoyah/device/linuxtools/tools/INotifier.classbin0 -> 726 bytes
-rw-r--r--proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/bin/org/eclipse/sequoyah/device/linuxtools/tools/ITool.classbin0 -> 676 bytes
-rw-r--r--proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/bin/org/eclipse/sequoyah/device/linuxtools/ui/DialogConnect$1.classbin0 -> 956 bytes
-rw-r--r--proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/bin/org/eclipse/sequoyah/device/linuxtools/ui/DialogConnect.classbin0 -> 5881 bytes
-rw-r--r--proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/bin/org/eclipse/sequoyah/device/linuxtools/ui/DialogLogin.classbin0 -> 3443 bytes
-rw-r--r--proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/bin/org/eclipse/sequoyah/device/linuxtools/ui/IToolViewPart.classbin0 -> 256 bytes
-rw-r--r--proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/bin/org/eclipse/sequoyah/device/linuxtools/ui/Messages.classbin0 -> 1012 bytes
-rw-r--r--proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/bin/org/eclipse/sequoyah/device/linuxtools/ui/ViewActionConnect.classbin0 -> 1716 bytes
-rw-r--r--proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/bin/org/eclipse/sequoyah/device/linuxtools/ui/ViewActionDisconnect.classbin0 -> 1423 bytes
-rw-r--r--proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/bin/org/eclipse/sequoyah/device/linuxtools/ui/ViewActionPause.classbin0 -> 1402 bytes
-rw-r--r--proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/bin/org/eclipse/sequoyah/device/linuxtools/ui/ViewActionRefresh.classbin0 -> 1411 bytes
-rw-r--r--proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/bin/org/eclipse/sequoyah/device/linuxtools/ui/ViewActionRun.classbin0 -> 1397 bytes
-rw-r--r--proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/bin/org/eclipse/sequoyah/device/linuxtools/ui/messages.properties31
-rw-r--r--proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/bin/org/eclipse/sequoyah/device/linuxtools/utilities/Extensions.classbin0 -> 4086 bytes
-rw-r--r--proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/bin/org/eclipse/sequoyah/device/linuxtools/utilities/ProtocolDescriptor.classbin0 -> 1473 bytes
-rw-r--r--proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/build.properties8
-rw-r--r--proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/plugin.properties27
-rw-r--r--proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/plugin.xml36
-rw-r--r--proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/schema/capabilities.exsd74
-rw-r--r--proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/schema/protocols.exsd109
-rw-r--r--proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/src/org/eclipse/sequoyah/device/linuxtools/network/IConnectionProvider.java74
-rw-r--r--proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/src/org/eclipse/sequoyah/device/linuxtools/network/IConstants.java44
-rw-r--r--proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/src/org/eclipse/sequoyah/device/linuxtools/tools/AbstractNotifier.java66
-rw-r--r--proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/src/org/eclipse/sequoyah/device/linuxtools/tools/IListener.java31
-rw-r--r--proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/src/org/eclipse/sequoyah/device/linuxtools/tools/INotifier.java51
-rw-r--r--proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/src/org/eclipse/sequoyah/device/linuxtools/tools/ITool.java74
-rw-r--r--proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/src/org/eclipse/sequoyah/device/linuxtools/ui/DialogConnect.java183
-rw-r--r--proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/src/org/eclipse/sequoyah/device/linuxtools/ui/DialogLogin.java126
-rw-r--r--proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/src/org/eclipse/sequoyah/device/linuxtools/ui/IToolViewPart.java25
-rw-r--r--proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/src/org/eclipse/sequoyah/device/linuxtools/ui/Messages.java40
-rw-r--r--proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/src/org/eclipse/sequoyah/device/linuxtools/ui/ViewActionConnect.java51
-rw-r--r--proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/src/org/eclipse/sequoyah/device/linuxtools/ui/ViewActionDisconnect.java52
-rw-r--r--proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/src/org/eclipse/sequoyah/device/linuxtools/ui/ViewActionPause.java54
-rw-r--r--proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/src/org/eclipse/sequoyah/device/linuxtools/ui/ViewActionRefresh.java54
-rw-r--r--proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/src/org/eclipse/sequoyah/device/linuxtools/ui/ViewActionRun.java54
-rw-r--r--proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/src/org/eclipse/sequoyah/device/linuxtools/ui/messages.properties31
-rw-r--r--proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/src/org/eclipse/sequoyah/device/linuxtools/utilities/Extensions.java82
-rw-r--r--proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/src/org/eclipse/sequoyah/device/linuxtools/utilities/ProtocolDescriptor.java48
50 files changed, 1482 insertions, 0 deletions
diff --git a/proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/.classpath b/proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/.classpath
new file mode 100644
index 0000000000..64c5e31b7a
--- /dev/null
+++ b/proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/.classpath
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5"/>
+ <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
+ <classpathentry kind="src" path="src"/>
+ <classpathentry kind="output" path="bin"/>
+</classpath>
diff --git a/proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/.cvsignore b/proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/.cvsignore
new file mode 100644
index 0000000000..e66f331e57
--- /dev/null
+++ b/proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/.cvsignore
@@ -0,0 +1,3 @@
+bin
+@dot
+plugin
diff --git a/proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/.project b/proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/.project
new file mode 100644
index 0000000000..1af3a79a97
--- /dev/null
+++ b/proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/.project
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>org.eclipse.sequoyah.device.linuxtools.base</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.jdt.core.javabuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.pde.ManifestBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.pde.SchemaBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.pde.PluginNature</nature>
+ <nature>org.eclipse.jdt.core.javanature</nature>
+ </natures>
+</projectDescription>
diff --git a/proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/.settings/org.eclipse.core.resources.prefs b/proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/.settings/org.eclipse.core.resources.prefs
new file mode 100644
index 0000000000..fbb2195d9e
--- /dev/null
+++ b/proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/.settings/org.eclipse.core.resources.prefs
@@ -0,0 +1,3 @@
+#Thu Jan 29 17:09:13 ACT 2009
+eclipse.preferences.version=1
+encoding/<project>=UTF-8
diff --git a/proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/META-INF/MANIFEST.MF b/proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/META-INF/MANIFEST.MF
new file mode 100644
index 0000000000..f91aaf9df0
--- /dev/null
+++ b/proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/META-INF/MANIFEST.MF
@@ -0,0 +1,16 @@
+Manifest-Version: 1.0
+Bundle-ManifestVersion: 2
+Bundle-Name: %pluginName
+Bundle-SymbolicName: org.eclipse.sequoyah.device.linuxtools.base;singleton:=true
+Bundle-Version: 0.1.0.qualifier
+Bundle-Vendor: %providerName
+Bundle-RequiredExecutionEnvironment: J2SE-1.5
+Bundle-ActivationPolicy: lazy
+Bundle-Localization: plugin
+Export-Package: org.eclipse.sequoyah.device.linuxtools.network,
+ org.eclipse.sequoyah.device.linuxtools.tools,
+ org.eclipse.sequoyah.device.linuxtools.ui,
+ org.eclipse.sequoyah.device.linuxtools.utilities
+Require-Bundle: org.eclipse.sequoyah.device.common.utilities,
+ org.eclipse.ui,
+ org.eclipse.core.runtime
diff --git a/proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/bin/org/eclipse/sequoyah/device/linuxtools/network/IConnectionProvider.class b/proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/bin/org/eclipse/sequoyah/device/linuxtools/network/IConnectionProvider.class
new file mode 100644
index 0000000000..3945faaf45
--- /dev/null
+++ b/proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/bin/org/eclipse/sequoyah/device/linuxtools/network/IConnectionProvider.class
Binary files differ
diff --git a/proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/bin/org/eclipse/sequoyah/device/linuxtools/network/IConstants$CommandCode.class b/proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/bin/org/eclipse/sequoyah/device/linuxtools/network/IConstants$CommandCode.class
new file mode 100644
index 0000000000..15fadaef62
--- /dev/null
+++ b/proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/bin/org/eclipse/sequoyah/device/linuxtools/network/IConstants$CommandCode.class
Binary files differ
diff --git a/proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/bin/org/eclipse/sequoyah/device/linuxtools/network/IConstants$EventCode.class b/proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/bin/org/eclipse/sequoyah/device/linuxtools/network/IConstants$EventCode.class
new file mode 100644
index 0000000000..e0216661f1
--- /dev/null
+++ b/proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/bin/org/eclipse/sequoyah/device/linuxtools/network/IConstants$EventCode.class
Binary files differ
diff --git a/proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/bin/org/eclipse/sequoyah/device/linuxtools/network/IConstants$OperationCode.class b/proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/bin/org/eclipse/sequoyah/device/linuxtools/network/IConstants$OperationCode.class
new file mode 100644
index 0000000000..9d7b645b94
--- /dev/null
+++ b/proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/bin/org/eclipse/sequoyah/device/linuxtools/network/IConstants$OperationCode.class
Binary files differ
diff --git a/proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/bin/org/eclipse/sequoyah/device/linuxtools/network/IConstants.class b/proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/bin/org/eclipse/sequoyah/device/linuxtools/network/IConstants.class
new file mode 100644
index 0000000000..a4b449dd3f
--- /dev/null
+++ b/proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/bin/org/eclipse/sequoyah/device/linuxtools/network/IConstants.class
Binary files differ
diff --git a/proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/bin/org/eclipse/sequoyah/device/linuxtools/tools/AbstractNotifier.class b/proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/bin/org/eclipse/sequoyah/device/linuxtools/tools/AbstractNotifier.class
new file mode 100644
index 0000000000..21af4fa60a
--- /dev/null
+++ b/proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/bin/org/eclipse/sequoyah/device/linuxtools/tools/AbstractNotifier.class
Binary files differ
diff --git a/proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/bin/org/eclipse/sequoyah/device/linuxtools/tools/IListener.class b/proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/bin/org/eclipse/sequoyah/device/linuxtools/tools/IListener.class
new file mode 100644
index 0000000000..3d73a89104
--- /dev/null
+++ b/proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/bin/org/eclipse/sequoyah/device/linuxtools/tools/IListener.class
Binary files differ
diff --git a/proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/bin/org/eclipse/sequoyah/device/linuxtools/tools/INotifier.class b/proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/bin/org/eclipse/sequoyah/device/linuxtools/tools/INotifier.class
new file mode 100644
index 0000000000..1be5ba377b
--- /dev/null
+++ b/proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/bin/org/eclipse/sequoyah/device/linuxtools/tools/INotifier.class
Binary files differ
diff --git a/proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/bin/org/eclipse/sequoyah/device/linuxtools/tools/ITool.class b/proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/bin/org/eclipse/sequoyah/device/linuxtools/tools/ITool.class
new file mode 100644
index 0000000000..a4275df732
--- /dev/null
+++ b/proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/bin/org/eclipse/sequoyah/device/linuxtools/tools/ITool.class
Binary files differ
diff --git a/proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/bin/org/eclipse/sequoyah/device/linuxtools/ui/DialogConnect$1.class b/proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/bin/org/eclipse/sequoyah/device/linuxtools/ui/DialogConnect$1.class
new file mode 100644
index 0000000000..a57cbd2523
--- /dev/null
+++ b/proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/bin/org/eclipse/sequoyah/device/linuxtools/ui/DialogConnect$1.class
Binary files differ
diff --git a/proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/bin/org/eclipse/sequoyah/device/linuxtools/ui/DialogConnect.class b/proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/bin/org/eclipse/sequoyah/device/linuxtools/ui/DialogConnect.class
new file mode 100644
index 0000000000..069e4794da
--- /dev/null
+++ b/proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/bin/org/eclipse/sequoyah/device/linuxtools/ui/DialogConnect.class
Binary files differ
diff --git a/proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/bin/org/eclipse/sequoyah/device/linuxtools/ui/DialogLogin.class b/proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/bin/org/eclipse/sequoyah/device/linuxtools/ui/DialogLogin.class
new file mode 100644
index 0000000000..85f3dcd598
--- /dev/null
+++ b/proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/bin/org/eclipse/sequoyah/device/linuxtools/ui/DialogLogin.class
Binary files differ
diff --git a/proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/bin/org/eclipse/sequoyah/device/linuxtools/ui/IToolViewPart.class b/proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/bin/org/eclipse/sequoyah/device/linuxtools/ui/IToolViewPart.class
new file mode 100644
index 0000000000..e20eb2a0a8
--- /dev/null
+++ b/proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/bin/org/eclipse/sequoyah/device/linuxtools/ui/IToolViewPart.class
Binary files differ
diff --git a/proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/bin/org/eclipse/sequoyah/device/linuxtools/ui/Messages.class b/proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/bin/org/eclipse/sequoyah/device/linuxtools/ui/Messages.class
new file mode 100644
index 0000000000..b5261a4689
--- /dev/null
+++ b/proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/bin/org/eclipse/sequoyah/device/linuxtools/ui/Messages.class
Binary files differ
diff --git a/proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/bin/org/eclipse/sequoyah/device/linuxtools/ui/ViewActionConnect.class b/proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/bin/org/eclipse/sequoyah/device/linuxtools/ui/ViewActionConnect.class
new file mode 100644
index 0000000000..8589d0f5a6
--- /dev/null
+++ b/proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/bin/org/eclipse/sequoyah/device/linuxtools/ui/ViewActionConnect.class
Binary files differ
diff --git a/proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/bin/org/eclipse/sequoyah/device/linuxtools/ui/ViewActionDisconnect.class b/proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/bin/org/eclipse/sequoyah/device/linuxtools/ui/ViewActionDisconnect.class
new file mode 100644
index 0000000000..a06dd273d5
--- /dev/null
+++ b/proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/bin/org/eclipse/sequoyah/device/linuxtools/ui/ViewActionDisconnect.class
Binary files differ
diff --git a/proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/bin/org/eclipse/sequoyah/device/linuxtools/ui/ViewActionPause.class b/proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/bin/org/eclipse/sequoyah/device/linuxtools/ui/ViewActionPause.class
new file mode 100644
index 0000000000..eff919f844
--- /dev/null
+++ b/proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/bin/org/eclipse/sequoyah/device/linuxtools/ui/ViewActionPause.class
Binary files differ
diff --git a/proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/bin/org/eclipse/sequoyah/device/linuxtools/ui/ViewActionRefresh.class b/proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/bin/org/eclipse/sequoyah/device/linuxtools/ui/ViewActionRefresh.class
new file mode 100644
index 0000000000..1ed754d013
--- /dev/null
+++ b/proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/bin/org/eclipse/sequoyah/device/linuxtools/ui/ViewActionRefresh.class
Binary files differ
diff --git a/proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/bin/org/eclipse/sequoyah/device/linuxtools/ui/ViewActionRun.class b/proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/bin/org/eclipse/sequoyah/device/linuxtools/ui/ViewActionRun.class
new file mode 100644
index 0000000000..4e5a5baa3e
--- /dev/null
+++ b/proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/bin/org/eclipse/sequoyah/device/linuxtools/ui/ViewActionRun.class
Binary files differ
diff --git a/proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/bin/org/eclipse/sequoyah/device/linuxtools/ui/messages.properties b/proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/bin/org/eclipse/sequoyah/device/linuxtools/ui/messages.properties
new file mode 100644
index 0000000000..494d38abcb
--- /dev/null
+++ b/proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/bin/org/eclipse/sequoyah/device/linuxtools/ui/messages.properties
@@ -0,0 +1,31 @@
+################################################################################
+# 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/bin/org/eclipse/sequoyah/device/linuxtools/utilities/Extensions.class b/proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/bin/org/eclipse/sequoyah/device/linuxtools/utilities/Extensions.class
new file mode 100644
index 0000000000..3d40d4a71a
--- /dev/null
+++ b/proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/bin/org/eclipse/sequoyah/device/linuxtools/utilities/Extensions.class
Binary files differ
diff --git a/proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/bin/org/eclipse/sequoyah/device/linuxtools/utilities/ProtocolDescriptor.class b/proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/bin/org/eclipse/sequoyah/device/linuxtools/utilities/ProtocolDescriptor.class
new file mode 100644
index 0000000000..bf94c30493
--- /dev/null
+++ b/proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/bin/org/eclipse/sequoyah/device/linuxtools/utilities/ProtocolDescriptor.class
Binary files differ
diff --git a/proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/build.properties b/proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/build.properties
new file mode 100644
index 0000000000..a092d25e84
--- /dev/null
+++ b/proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/build.properties
@@ -0,0 +1,8 @@
+source.. = src/
+output.. = bin/
+bin.includes = plugin.xml,\
+ META-INF/,\
+ .,\
+ plugin.properties,\
+ schema/
+
diff --git a/proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/plugin.properties b/proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/plugin.properties
new file mode 100644
index 0000000000..0db3ea49cf
--- /dev/null
+++ b/proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/plugin.properties
@@ -0,0 +1,27 @@
+################################################################################
+# Copyright (c) 2008, 2009 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
+################################################################################
+
+# 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/plugins/org.eclipse.sequoyah.device.linuxtools.base/plugin.xml b/proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/plugin.xml
new file mode 100644
index 0000000000..0874964d09
--- /dev/null
+++ b/proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/plugin.xml
@@ -0,0 +1,36 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<?eclipse version="3.2"?>
+<plugin>
+<extension-point id="org.eclipse.sequoyah.device.linuxtools.base.protocols" name="Linux Tools protocols" schema="schema/protocols.exsd" />
+<extension-point id="org.eclipse.sequoyah.device.linuxtools.base.capabilities" name="Linux Tools capabilities" schema="schema/capabilities.exsd"/>
+<extension
+ point="org.eclipse.sequoyah.device.linuxtools.base.capabilities">
+ <capability
+ id="GET_FILE"
+ name="Get file"/>
+ <capability
+ id="PUT_FILE"
+ name="Create/store file"/>
+ <capability
+ id="REMOVE_FILE"
+ name="Remove file"/>
+ <capability
+ id="LIST_DIR"
+ name="List directories"/>
+ <capability
+ id="PUT_DIR"
+ name="Create directories"/>
+ <capability
+ id="REMOVE_DIR"
+ name="Remove directories"/>
+ <capability
+ id="START_PROCESS"
+ name="Start process"/>
+ <capability
+ id="KILL_PROCESS"
+ name="Kill process"/>
+ <capability
+ id="LIST_PROCESS"
+ name="List process"/>
+</extension>
+</plugin>
diff --git a/proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/schema/capabilities.exsd b/proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/schema/capabilities.exsd
new file mode 100644
index 0000000000..7a5e14cd8d
--- /dev/null
+++ b/proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/schema/capabilities.exsd
@@ -0,0 +1,74 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<!-- Schema file written by PDE -->
+<schema targetNamespace="org.eclipse.sequoyah.device.linuxtools.base" xmlns="http://www.w3.org/2001/XMLSchema">
+<annotation>
+ <appInfo>
+ <meta.schema plugin="org.eclipse.sequoyah.device.linuxtools.base" id="org.eclipse.sequoyah.device.linuxtools.base.capabilities" name="Linux tools capabilities"/>
+ </appInfo>
+ <documentation>
+
+ </documentation>
+ </annotation>
+
+ <element name="extension">
+ <annotation>
+ <appInfo>
+ <meta.element />
+ </appInfo>
+ </annotation>
+ <complexType>
+ <sequence>
+ <element ref="capability" minOccurs="0" maxOccurs="unbounded"/>
+ </sequence>
+ <attribute name="point" type="string" use="required">
+ <annotation>
+ <documentation>
+
+ </documentation>
+ </annotation>
+ </attribute>
+ <attribute name="id" type="string">
+ <annotation>
+ <documentation>
+
+ </documentation>
+ </annotation>
+ </attribute>
+ <attribute name="name" type="string">
+ <annotation>
+ <documentation>
+
+ </documentation>
+ <appInfo>
+ <meta.attribute translatable="true"/>
+ </appInfo>
+ </annotation>
+ </attribute>
+ </complexType>
+ </element>
+
+ <element name="capability">
+ <complexType>
+ <attribute name="name" type="string" use="required">
+ <annotation>
+ <documentation>
+
+ </documentation>
+ </annotation>
+ </attribute>
+ <attribute name="id" type="string" use="required">
+ <annotation>
+ <documentation>
+
+ </documentation>
+ </annotation>
+ </attribute>
+ </complexType>
+ </element>
+
+
+
+
+
+
+</schema>
diff --git a/proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/schema/protocols.exsd b/proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/schema/protocols.exsd
new file mode 100644
index 0000000000..369d9809a1
--- /dev/null
+++ b/proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/schema/protocols.exsd
@@ -0,0 +1,109 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<!-- Schema file written by PDE -->
+<schema targetNamespace="org.eclipse.sequoyah.device.linuxtools.base" xmlns="http://www.w3.org/2001/XMLSchema">
+<annotation>
+ <appInfo>
+ <meta.schema plugin="org.eclipse.sequoyah.device.linuxtools.base" id="org.eclipse.sequoyah.device.linuxtools.base.protocols" name="Linux Tools protocols"/>
+ </appInfo>
+ <documentation>
+
+ </documentation>
+ </annotation>
+
+ <element name="extension">
+ <annotation>
+ <appInfo>
+ <meta.element />
+ </appInfo>
+ </annotation>
+ <complexType>
+ <sequence>
+ <element ref="protocol" minOccurs="0" maxOccurs="unbounded"/>
+ </sequence>
+ <attribute name="point" type="string" use="required">
+ <annotation>
+ <documentation>
+
+ </documentation>
+ </annotation>
+ </attribute>
+ <attribute name="id" type="string">
+ <annotation>
+ <documentation>
+
+ </documentation>
+ </annotation>
+ </attribute>
+ <attribute name="name" type="string">
+ <annotation>
+ <documentation>
+
+ </documentation>
+ <appInfo>
+ <meta.attribute translatable="true"/>
+ </appInfo>
+ </annotation>
+ </attribute>
+ </complexType>
+ </element>
+
+ <element name="protocol">
+ <complexType>
+ <sequence>
+ <element ref="capability" minOccurs="1" maxOccurs="unbounded"/>
+ </sequence>
+ <attribute name="name" type="string" use="required">
+ <annotation>
+ <documentation>
+
+ </documentation>
+ </annotation>
+ </attribute>
+ <attribute name="class" type="string" use="required">
+ <annotation>
+ <documentation>
+
+ </documentation>
+ <appInfo>
+ <meta.attribute kind="java" basedOn=":org.eclipse.sequoyah.device.linuxtools.network.IConnectionProvider"/>
+ </appInfo>
+ </annotation>
+ </attribute>
+ <attribute name="default_port" type="string" use="required">
+ <annotation>
+ <documentation>
+
+ </documentation>
+ </annotation>
+ </attribute>
+ <attribute name="id" type="string" use="required">
+ <annotation>
+ <documentation>
+
+ </documentation>
+ </annotation>
+ </attribute>
+ </complexType>
+ </element>
+
+ <element name="capability">
+ <complexType>
+ <attribute name="id" type="string">
+ <annotation>
+ <documentation>
+
+ </documentation>
+ <appInfo>
+ <meta.attribute kind="identifier" basedOn="org.eclipse.tml.linuxtools.base.capabilities/capability/@id"/>
+ </appInfo>
+ </annotation>
+ </attribute>
+ </complexType>
+ </element>
+
+
+
+
+
+
+</schema>
diff --git a/proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/src/org/eclipse/sequoyah/device/linuxtools/network/IConnectionProvider.java b/proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/src/org/eclipse/sequoyah/device/linuxtools/network/IConnectionProvider.java
new file mode 100644
index 0000000000..e65bd6af02
--- /dev/null
+++ b/proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/src/org/eclipse/sequoyah/device/linuxtools/network/IConnectionProvider.java
@@ -0,0 +1,74 @@
+/********************************************************************************
+ * 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.sequoyah.device.linuxtools.network;
+
+import java.io.IOException;
+
+import org.eclipse.sequoyah.device.linuxtools.network.IConstants.CommandCode;
+import org.eclipse.sequoyah.device.linuxtools.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/plugins/org.eclipse.sequoyah.device.linuxtools.base/src/org/eclipse/sequoyah/device/linuxtools/network/IConstants.java b/proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/src/org/eclipse/sequoyah/device/linuxtools/network/IConstants.java
new file mode 100644
index 0000000000..5493c6ffad
--- /dev/null
+++ b/proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/src/org/eclipse/sequoyah/device/linuxtools/network/IConstants.java
@@ -0,0 +1,44 @@
+/********************************************************************************
+ * 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.sequoyah.device.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/device/linuxtools/tools/AbstractNotifier.java b/proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/src/org/eclipse/sequoyah/device/linuxtools/tools/AbstractNotifier.java
new file mode 100644
index 0000000000..2c2b326f21
--- /dev/null
+++ b/proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/src/org/eclipse/sequoyah/device/linuxtools/tools/AbstractNotifier.java
@@ -0,0 +1,66 @@
+/********************************************************************************
+ * 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.sequoyah.device.linuxtools.tools;
+
+import java.util.ArrayList;
+import java.util.List;
+
+import org.eclipse.sequoyah.device.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.sequoyah.device.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.sequoyah.device.linuxtools.tools.INotifier#removeAllListeners()
+ */
+ public void removeAllListeners() {
+ listeners.clear();
+ }
+
+ /* (non-Javadoc)
+ * @see org.eclipse.sequoyah.device.linuxtools.tools.INotifier#removeListener(org.eclipse.sequoyah.device.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/device/linuxtools/tools/IListener.java b/proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/src/org/eclipse/sequoyah/device/linuxtools/tools/IListener.java
new file mode 100644
index 0000000000..513c1dc502
--- /dev/null
+++ b/proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/src/org/eclipse/sequoyah/device/linuxtools/tools/IListener.java
@@ -0,0 +1,31 @@
+/********************************************************************************
+ * 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.sequoyah.device.linuxtools.tools;
+
+import org.eclipse.sequoyah.device.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/device/linuxtools/tools/INotifier.java b/proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/src/org/eclipse/sequoyah/device/linuxtools/tools/INotifier.java
new file mode 100644
index 0000000000..edeb2280a3
--- /dev/null
+++ b/proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/src/org/eclipse/sequoyah/device/linuxtools/tools/INotifier.java
@@ -0,0 +1,51 @@
+/********************************************************************************
+ * 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.sequoyah.device.linuxtools.tools;
+
+import java.util.List;
+
+import org.eclipse.sequoyah.device.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/device/linuxtools/tools/ITool.java b/proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/src/org/eclipse/sequoyah/device/linuxtools/tools/ITool.java
new file mode 100644
index 0000000000..245233f2d5
--- /dev/null
+++ b/proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/src/org/eclipse/sequoyah/device/linuxtools/tools/ITool.java
@@ -0,0 +1,74 @@
+/********************************************************************************
+ * 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.sequoyah.device.linuxtools.tools;
+
+import java.util.List;
+
+import org.eclipse.sequoyah.device.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/device/linuxtools/ui/DialogConnect.java b/proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/src/org/eclipse/sequoyah/device/linuxtools/ui/DialogConnect.java
new file mode 100644
index 0000000000..30879c8274
--- /dev/null
+++ b/proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/src/org/eclipse/sequoyah/device/linuxtools/ui/DialogConnect.java
@@ -0,0 +1,183 @@
+/********************************************************************************
+ * 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.sequoyah.device.linuxtools.ui;
+
+import java.util.LinkedList;
+import java.util.List;
+
+import org.eclipse.jface.dialogs.TitleAreaDialog;
+import org.eclipse.sequoyah.device.linuxtools.tools.ITool;
+import org.eclipse.sequoyah.device.linuxtools.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 <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/device/linuxtools/ui/DialogLogin.java b/proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/src/org/eclipse/sequoyah/device/linuxtools/ui/DialogLogin.java
new file mode 100644
index 0000000000..c91a4b59f0
--- /dev/null
+++ b/proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/src/org/eclipse/sequoyah/device/linuxtools/ui/DialogLogin.java
@@ -0,0 +1,126 @@
+/********************************************************************************
+ * 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.sequoyah.device.linuxtools.ui;
+
+import org.eclipse.jface.dialogs.TitleAreaDialog;
+import org.eclipse.sequoyah.device.linuxtools.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/plugins/org.eclipse.sequoyah.device.linuxtools.base/src/org/eclipse/sequoyah/device/linuxtools/ui/IToolViewPart.java b/proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/src/org/eclipse/sequoyah/device/linuxtools/ui/IToolViewPart.java
new file mode 100644
index 0000000000..bc1acb97ce
--- /dev/null
+++ b/proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/src/org/eclipse/sequoyah/device/linuxtools/ui/IToolViewPart.java
@@ -0,0 +1,25 @@
+/********************************************************************************
+ * 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.sequoyah.device.linuxtools.ui;
+
+import org.eclipse.sequoyah.device.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/device/linuxtools/ui/Messages.java b/proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/src/org/eclipse/sequoyah/device/linuxtools/ui/Messages.java
new file mode 100644
index 0000000000..725c6683d3
--- /dev/null
+++ b/proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/src/org/eclipse/sequoyah/device/linuxtools/ui/Messages.java
@@ -0,0 +1,40 @@
+/********************************************************************************
+ * 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.sequoyah.device.linuxtools.ui;
+
+import org.eclipse.osgi.util.NLS;
+
+/**
+ * @author Otavio Ferranti
+ */
+public class Messages extends NLS {
+ private static final String BUNDLE_NAME = "org.eclipse.sequoyah.device.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/device/linuxtools/ui/ViewActionConnect.java b/proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/src/org/eclipse/sequoyah/device/linuxtools/ui/ViewActionConnect.java
new file mode 100644
index 0000000000..963cc74d1e
--- /dev/null
+++ b/proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/src/org/eclipse/sequoyah/device/linuxtools/ui/ViewActionConnect.java
@@ -0,0 +1,51 @@
+/********************************************************************************
+ * 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.sequoyah.device.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/device/linuxtools/ui/ViewActionDisconnect.java b/proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/src/org/eclipse/sequoyah/device/linuxtools/ui/ViewActionDisconnect.java
new file mode 100644
index 0000000000..308ff5dc92
--- /dev/null
+++ b/proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/src/org/eclipse/sequoyah/device/linuxtools/ui/ViewActionDisconnect.java
@@ -0,0 +1,52 @@
+/********************************************************************************
+ * 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.sequoyah.device.linuxtools.ui;
+
+import org.eclipse.jface.action.IAction;
+import org.eclipse.jface.viewers.ISelection;
+import org.eclipse.sequoyah.device.linuxtools.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/plugins/org.eclipse.sequoyah.device.linuxtools.base/src/org/eclipse/sequoyah/device/linuxtools/ui/ViewActionPause.java b/proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/src/org/eclipse/sequoyah/device/linuxtools/ui/ViewActionPause.java
new file mode 100644
index 0000000000..3e2a031e8a
--- /dev/null
+++ b/proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/src/org/eclipse/sequoyah/device/linuxtools/ui/ViewActionPause.java
@@ -0,0 +1,54 @@
+/********************************************************************************
+ * 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.sequoyah.device.linuxtools.ui;
+
+import org.eclipse.jface.action.IAction;
+import org.eclipse.jface.viewers.ISelection;
+import org.eclipse.sequoyah.device.linuxtools.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/plugins/org.eclipse.sequoyah.device.linuxtools.base/src/org/eclipse/sequoyah/device/linuxtools/ui/ViewActionRefresh.java b/proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/src/org/eclipse/sequoyah/device/linuxtools/ui/ViewActionRefresh.java
new file mode 100644
index 0000000000..15d7822ffa
--- /dev/null
+++ b/proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/src/org/eclipse/sequoyah/device/linuxtools/ui/ViewActionRefresh.java
@@ -0,0 +1,54 @@
+/********************************************************************************
+ * 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.sequoyah.device.linuxtools.ui;
+
+import org.eclipse.jface.action.IAction;
+import org.eclipse.jface.viewers.ISelection;
+import org.eclipse.sequoyah.device.linuxtools.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/plugins/org.eclipse.sequoyah.device.linuxtools.base/src/org/eclipse/sequoyah/device/linuxtools/ui/ViewActionRun.java b/proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/src/org/eclipse/sequoyah/device/linuxtools/ui/ViewActionRun.java
new file mode 100644
index 0000000000..28a3e604ef
--- /dev/null
+++ b/proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/src/org/eclipse/sequoyah/device/linuxtools/ui/ViewActionRun.java
@@ -0,0 +1,54 @@
+/********************************************************************************
+ * 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.sequoyah.device.linuxtools.ui;
+
+import org.eclipse.jface.action.IAction;
+import org.eclipse.jface.viewers.ISelection;
+import org.eclipse.sequoyah.device.linuxtools.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/plugins/org.eclipse.sequoyah.device.linuxtools.base/src/org/eclipse/sequoyah/device/linuxtools/ui/messages.properties b/proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/src/org/eclipse/sequoyah/device/linuxtools/ui/messages.properties
new file mode 100644
index 0000000000..494d38abcb
--- /dev/null
+++ b/proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/src/org/eclipse/sequoyah/device/linuxtools/ui/messages.properties
@@ -0,0 +1,31 @@
+################################################################################
+# 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/device/linuxtools/utilities/Extensions.java b/proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/src/org/eclipse/sequoyah/device/linuxtools/utilities/Extensions.java
new file mode 100644
index 0000000000..69104887fb
--- /dev/null
+++ b/proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/src/org/eclipse/sequoyah/device/linuxtools/utilities/Extensions.java
@@ -0,0 +1,82 @@
+/********************************************************************************
+ * 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.sequoyah.device.linuxtools.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.sequoyah.device.common.utilities.PluginUtils;
+import org.eclipse.sequoyah.device.linuxtools.network.IConnectionProvider;
+
+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/device/linuxtools/utilities/ProtocolDescriptor.java b/proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/src/org/eclipse/sequoyah/device/linuxtools/utilities/ProtocolDescriptor.java
new file mode 100644
index 0000000000..8476a75dd4
--- /dev/null
+++ b/proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/src/org/eclipse/sequoyah/device/linuxtools/utilities/ProtocolDescriptor.java
@@ -0,0 +1,48 @@
+/********************************************************************************
+ * 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.sequoyah.device.linuxtools.utilities;
+
+import org.eclipse.sequoyah.device.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;
+ }
+}

Back to the top