Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Kurtakov2013-04-25 14:00:17 +0000
committerCamilo Bernal2013-04-25 16:10:28 +0000
commit216c1388f745b0e51a1bc1ca6ab1e7f3402f183f (patch)
tree84e7f60e039f4b8889407a2d0cdc36d2d1aa5d14
parent27f4ad2d5b7373ec9769cbf393863f6a436bc072 (diff)
downloadorg.eclipse.linuxtools-216c1388f745b0e51a1bc1ca6ab1e7f3402f183f.tar.gz
org.eclipse.linuxtools-216c1388f745b0e51a1bc1ca6ab1e7f3402f183f.tar.xz
org.eclipse.linuxtools-216c1388f745b0e51a1bc1ca6ab1e7f3402f183f.zip
Remove o.e.l.profiling.launch.remote.
This is an RSE based remote launch which is not used anymore since whe have the proxy. Change-Id: Ia63f0e784d00e328ed0b26d67d458278bf725852 Reviewed-on: https://git.eclipse.org/r/12194 Tested-by: Hudson CI Reviewed-by: Camilo Bernal <cabernal@redhat.com> IP-Clean: Camilo Bernal <cabernal@redhat.com> Tested-by: Camilo Bernal <cabernal@redhat.com>
-rw-r--r--profiling/org.eclipse.linuxtools.profiling.launch.remote/.classpath7
-rw-r--r--profiling/org.eclipse.linuxtools.profiling.launch.remote/.gitignore4
-rw-r--r--profiling/org.eclipse.linuxtools.profiling.launch.remote/.project34
-rw-r--r--profiling/org.eclipse.linuxtools.profiling.launch.remote/.settings/org.eclipse.jdt.core.prefs91
-rw-r--r--profiling/org.eclipse.linuxtools.profiling.launch.remote/ChangeLog100
-rw-r--r--profiling/org.eclipse.linuxtools.profiling.launch.remote/META-INF/MANIFEST.MF22
-rw-r--r--profiling/org.eclipse.linuxtools.profiling.launch.remote/OSGI-INF/l10n/bundle.properties3
-rw-r--r--profiling/org.eclipse.linuxtools.profiling.launch.remote/about.html28
-rw-r--r--profiling/org.eclipse.linuxtools.profiling.launch.remote/build.properties7
-rw-r--r--profiling/org.eclipse.linuxtools.profiling.launch.remote/icons/arguments_tab.gifbin95 -> 0 bytes
-rw-r--r--profiling/org.eclipse.linuxtools.profiling.launch.remote/icons/system_view.gifbin362 -> 0 bytes
-rw-r--r--profiling/org.eclipse.linuxtools.profiling.launch.remote/icons/tcf.gifbin165 -> 0 bytes
-rw-r--r--profiling/org.eclipse.linuxtools.profiling.launch.remote/pom.xml44
-rw-r--r--profiling/org.eclipse.linuxtools.profiling.launch.remote/src/org/eclipse/linuxtools/internal/profiling/launch/remote/ProfileRemoteLaunchConfigurationTabGroup.java43
-rw-r--r--profiling/org.eclipse.linuxtools.profiling.launch.remote/src/org/eclipse/linuxtools/internal/profiling/launch/remote/ProfileRemoteLaunchPlugin.java20
-rw-r--r--profiling/org.eclipse.linuxtools.profiling.launch.remote/src/org/eclipse/linuxtools/internal/profiling/launch/remote/RemoteArgumentsTab.java163
-rw-r--r--profiling/org.eclipse.linuxtools.profiling.launch.remote/src/org/eclipse/linuxtools/internal/profiling/launch/remote/RemoteCommandShellOperation.java349
-rw-r--r--profiling/org.eclipse.linuxtools.profiling.launch.remote/src/org/eclipse/linuxtools/internal/profiling/launch/remote/RemoteLaunchConstants.java24
-rw-r--r--profiling/org.eclipse.linuxtools.profiling.launch.remote/src/org/eclipse/linuxtools/internal/profiling/launch/remote/RemoteMessages.java47
-rw-r--r--profiling/org.eclipse.linuxtools.profiling.launch.remote/src/org/eclipse/linuxtools/internal/profiling/launch/remote/remoteMessages.properties32
-rw-r--r--profiling/org.eclipse.linuxtools.profiling.launch.remote/src/org/eclipse/linuxtools/profiling/launch/remote/ProfileRemoteLaunchConfigurationTabGroup.java44
-rw-r--r--profiling/org.eclipse.linuxtools.profiling.launch.remote/src/org/eclipse/linuxtools/profiling/launch/remote/RemoteConnection.java326
-rw-r--r--profiling/org.eclipse.linuxtools.profiling.launch.remote/src/org/eclipse/linuxtools/profiling/launch/remote/RemoteTab.java227
-rw-r--r--profiling/org.eclipse.linuxtools.profiling.remote-feature/feature.xml7
-rw-r--r--profiling/pom.xml1
25 files changed, 0 insertions, 1623 deletions
diff --git a/profiling/org.eclipse.linuxtools.profiling.launch.remote/.classpath b/profiling/org.eclipse.linuxtools.profiling.launch.remote/.classpath
deleted file mode 100644
index 64c5e31b7a..0000000000
--- a/profiling/org.eclipse.linuxtools.profiling.launch.remote/.classpath
+++ /dev/null
@@ -1,7 +0,0 @@
-<?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/profiling/org.eclipse.linuxtools.profiling.launch.remote/.gitignore b/profiling/org.eclipse.linuxtools.profiling.launch.remote/.gitignore
deleted file mode 100644
index 50c1b30a80..0000000000
--- a/profiling/org.eclipse.linuxtools.profiling.launch.remote/.gitignore
+++ /dev/null
@@ -1,4 +0,0 @@
-bin
-@dot
-javaCompiler...args
-build.xml
diff --git a/profiling/org.eclipse.linuxtools.profiling.launch.remote/.project b/profiling/org.eclipse.linuxtools.profiling.launch.remote/.project
deleted file mode 100644
index ef5f81b659..0000000000
--- a/profiling/org.eclipse.linuxtools.profiling.launch.remote/.project
+++ /dev/null
@@ -1,34 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<projectDescription>
- <name>org.eclipse.linuxtools.profiling.launch.remote</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>
- <buildCommand>
- <name>org.eclipse.pde.api.tools.apiAnalysisBuilder</name>
- <arguments>
- </arguments>
- </buildCommand>
- </buildSpec>
- <natures>
- <nature>org.eclipse.pde.PluginNature</nature>
- <nature>org.eclipse.jdt.core.javanature</nature>
- <nature>org.eclipse.pde.api.tools.apiAnalysisNature</nature>
- </natures>
-</projectDescription>
diff --git a/profiling/org.eclipse.linuxtools.profiling.launch.remote/.settings/org.eclipse.jdt.core.prefs b/profiling/org.eclipse.linuxtools.profiling.launch.remote/.settings/org.eclipse.jdt.core.prefs
deleted file mode 100644
index 893f1b2a3b..0000000000
--- a/profiling/org.eclipse.linuxtools.profiling.launch.remote/.settings/org.eclipse.jdt.core.prefs
+++ /dev/null
@@ -1,91 +0,0 @@
-eclipse.preferences.version=1
-org.eclipse.jdt.core.compiler.annotation.missingNonNullByDefaultAnnotation=ignore
-org.eclipse.jdt.core.compiler.annotation.nonnull=org.eclipse.jdt.annotation.NonNull
-org.eclipse.jdt.core.compiler.annotation.nonnullbydefault=org.eclipse.jdt.annotation.NonNullByDefault
-org.eclipse.jdt.core.compiler.annotation.nullable=org.eclipse.jdt.annotation.Nullable
-org.eclipse.jdt.core.compiler.annotation.nullanalysis=disabled
-org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
-org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
-org.eclipse.jdt.core.compiler.compliance=1.5
-org.eclipse.jdt.core.compiler.problem.annotationSuperInterface=warning
-org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
-org.eclipse.jdt.core.compiler.problem.autoboxing=ignore
-org.eclipse.jdt.core.compiler.problem.comparingIdentical=warning
-org.eclipse.jdt.core.compiler.problem.deadCode=warning
-org.eclipse.jdt.core.compiler.problem.deprecation=warning
-org.eclipse.jdt.core.compiler.problem.deprecationInDeprecatedCode=disabled
-org.eclipse.jdt.core.compiler.problem.deprecationWhenOverridingDeprecatedMethod=disabled
-org.eclipse.jdt.core.compiler.problem.discouragedReference=warning
-org.eclipse.jdt.core.compiler.problem.emptyStatement=warning
-org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
-org.eclipse.jdt.core.compiler.problem.explicitlyClosedAutoCloseable=ignore
-org.eclipse.jdt.core.compiler.problem.fallthroughCase=ignore
-org.eclipse.jdt.core.compiler.problem.fatalOptionalError=disabled
-org.eclipse.jdt.core.compiler.problem.fieldHiding=ignore
-org.eclipse.jdt.core.compiler.problem.finalParameterBound=warning
-org.eclipse.jdt.core.compiler.problem.finallyBlockNotCompletingNormally=warning
-org.eclipse.jdt.core.compiler.problem.forbiddenReference=error
-org.eclipse.jdt.core.compiler.problem.hiddenCatchBlock=warning
-org.eclipse.jdt.core.compiler.problem.includeNullInfoFromAsserts=disabled
-org.eclipse.jdt.core.compiler.problem.incompatibleNonInheritedInterfaceMethod=warning
-org.eclipse.jdt.core.compiler.problem.incompleteEnumSwitch=warning
-org.eclipse.jdt.core.compiler.problem.indirectStaticAccess=warning
-org.eclipse.jdt.core.compiler.problem.localVariableHiding=ignore
-org.eclipse.jdt.core.compiler.problem.methodWithConstructorName=warning
-org.eclipse.jdt.core.compiler.problem.missingDefaultCase=ignore
-org.eclipse.jdt.core.compiler.problem.missingDeprecatedAnnotation=warning
-org.eclipse.jdt.core.compiler.problem.missingEnumCaseDespiteDefault=disabled
-org.eclipse.jdt.core.compiler.problem.missingHashCodeMethod=warning
-org.eclipse.jdt.core.compiler.problem.missingOverrideAnnotation=warning
-org.eclipse.jdt.core.compiler.problem.missingOverrideAnnotationForInterfaceMethodImplementation=enabled
-org.eclipse.jdt.core.compiler.problem.missingSerialVersion=warning
-org.eclipse.jdt.core.compiler.problem.missingSynchronizedOnInheritedMethod=warning
-org.eclipse.jdt.core.compiler.problem.noEffectAssignment=warning
-org.eclipse.jdt.core.compiler.problem.noImplicitStringConversion=warning
-org.eclipse.jdt.core.compiler.problem.nonExternalizedStringLiteral=warning
-org.eclipse.jdt.core.compiler.problem.nullAnnotationInferenceConflict=error
-org.eclipse.jdt.core.compiler.problem.nullReference=warning
-org.eclipse.jdt.core.compiler.problem.nullSpecViolation=error
-org.eclipse.jdt.core.compiler.problem.nullUncheckedConversion=warning
-org.eclipse.jdt.core.compiler.problem.overridingPackageDefaultMethod=warning
-org.eclipse.jdt.core.compiler.problem.parameterAssignment=ignore
-org.eclipse.jdt.core.compiler.problem.possibleAccidentalBooleanAssignment=ignore
-org.eclipse.jdt.core.compiler.problem.potentialNullReference=ignore
-org.eclipse.jdt.core.compiler.problem.potentiallyUnclosedCloseable=ignore
-org.eclipse.jdt.core.compiler.problem.rawTypeReference=warning
-org.eclipse.jdt.core.compiler.problem.redundantNullAnnotation=warning
-org.eclipse.jdt.core.compiler.problem.redundantNullCheck=ignore
-org.eclipse.jdt.core.compiler.problem.redundantSpecificationOfTypeArguments=ignore
-org.eclipse.jdt.core.compiler.problem.redundantSuperinterface=warning
-org.eclipse.jdt.core.compiler.problem.reportMethodCanBePotentiallyStatic=ignore
-org.eclipse.jdt.core.compiler.problem.reportMethodCanBeStatic=ignore
-org.eclipse.jdt.core.compiler.problem.specialParameterHidingField=disabled
-org.eclipse.jdt.core.compiler.problem.staticAccessReceiver=warning
-org.eclipse.jdt.core.compiler.problem.suppressOptionalErrors=disabled
-org.eclipse.jdt.core.compiler.problem.suppressWarnings=enabled
-org.eclipse.jdt.core.compiler.problem.syntheticAccessEmulation=ignore
-org.eclipse.jdt.core.compiler.problem.typeParameterHiding=warning
-org.eclipse.jdt.core.compiler.problem.unavoidableGenericTypeProblems=enabled
-org.eclipse.jdt.core.compiler.problem.uncheckedTypeOperation=warning
-org.eclipse.jdt.core.compiler.problem.unclosedCloseable=warning
-org.eclipse.jdt.core.compiler.problem.undocumentedEmptyBlock=ignore
-org.eclipse.jdt.core.compiler.problem.unhandledWarningToken=warning
-org.eclipse.jdt.core.compiler.problem.unnecessaryElse=ignore
-org.eclipse.jdt.core.compiler.problem.unnecessaryTypeCheck=warning
-org.eclipse.jdt.core.compiler.problem.unqualifiedFieldAccess=ignore
-org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownException=warning
-org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionExemptExceptionAndThrowable=disabled
-org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionIncludeDocCommentReference=disabled
-org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionWhenOverriding=enabled
-org.eclipse.jdt.core.compiler.problem.unusedImport=warning
-org.eclipse.jdt.core.compiler.problem.unusedLabel=warning
-org.eclipse.jdt.core.compiler.problem.unusedLocal=warning
-org.eclipse.jdt.core.compiler.problem.unusedObjectAllocation=ignore
-org.eclipse.jdt.core.compiler.problem.unusedParameter=ignore
-org.eclipse.jdt.core.compiler.problem.unusedParameterIncludeDocCommentReference=enabled
-org.eclipse.jdt.core.compiler.problem.unusedParameterWhenImplementingAbstract=disabled
-org.eclipse.jdt.core.compiler.problem.unusedParameterWhenOverridingConcrete=disabled
-org.eclipse.jdt.core.compiler.problem.unusedPrivateMember=warning
-org.eclipse.jdt.core.compiler.problem.unusedWarningToken=warning
-org.eclipse.jdt.core.compiler.problem.varargsArgumentNeedCast=warning
-org.eclipse.jdt.core.compiler.source=1.5
diff --git a/profiling/org.eclipse.linuxtools.profiling.launch.remote/ChangeLog b/profiling/org.eclipse.linuxtools.profiling.launch.remote/ChangeLog
deleted file mode 100644
index 80eed0381f..0000000000
--- a/profiling/org.eclipse.linuxtools.profiling.launch.remote/ChangeLog
+++ /dev/null
@@ -1,100 +0,0 @@
-2011-11-21 Jeff Johnston <jjohnstn@redhat.com>
-
- Resolves: bug #364420
- * src/org/eclipse/linuxtools/profiling/launch/remote/RemoteTab.java (createControl): Fix typo
- for loop waiting for RSE initialization.
-
-2011-08-24 Jeff Johnston <jjohnstn@redhat.com>
-
- * src/org/eclipse/linuxtools/internal/profiling/launch/remote/remoteMessages.properties: Add
- new message.
- * src/org/eclipse/linuxtools/internal/profiling/launch/remote/RemoteMessages.java (RemoteLaunchDelegate_error_interrupted):
- Ditto.
- * src/org/eclipse/linuxtools/profiling/launch/remote/RemoteTab.java (createControl): Add
- wait for RSE init so hosts list won't be empty and will at least
- contain local host.
- * src/org/eclipse/linuxtools/profiling/launch/remote/RemoteConnection.java (initialize): Ditto
-
-2011-08-15 Jeff Johnston <jjohnstn@redhat.com>
-
- * src/org/eclipse/linuxtools/profiling/launch/remote/RemoteConnection.java (runCommand): Change to
- return return-code and to save output in ArrayList argument.
- * src/org/eclipse/linuxtools/internal/profiling/launch/remote/RemoteCommandShellOperation.java (getReturnCode):
- New method.
- (getEchoResult): Add blank after "done".
- (getEchoCmd): Add $? to get return code of command.
- (commandMatches): Add return code support. Remove extraneous echo statement from output that is used
- to get return code.
-
-2011-08-08 Jeff Johnston <jjohnstn@redhat.com>
-
- * META-INF/MANIFEST.MF: Remove TCF references.
-
-2011-08-03 Jeff Johnston <jjohnstn@redhat.com>
-
- * src/org/eclipse/linuxtools/profiling/launch/remote/RemoteConnectionException.java (RemoteConnectionException):
- Rewrite class to inherit from CoreException and to accept a low-level throwable as argument
- to constructor.
- * src/org/eclipse/linuxtools/profiling/launch/remote/RemoteConnection.java: Change all
- RemoteConnectionExceptions to include a throwable argument or null.
-
-2011-07-18 Jeff Johnston <jjohnstn@redhat.com>
-
- * icons/system_view.gif: New icon.
- * src/org/eclipse/linuxtools/profiling/launch/remote/RemoteTab.java (refreshViewer): Use list of hosts.
- (getImage): Use RSE system icon instead of TCF icon.
- (performApply): Work with RSE hosts.
- (initializeFrom): Ditto.
- (createControl): Ditto.
- (RemoteSystemLabelProvider): New class.
- (RemoteLabelProvider): Removed.
- * src/org/eclipse/linuxtools/profiling/launch/remote/RemoteConnection.java (initialize): Rewritten to assume an RSE
- host has already been chosen and no TCF interaction is required.
- * src/org/eclipse/linuxtools/internal/profiling/launch/remote/RemoteMessages.java: Remove TCF-only messages.
- * src/org/eclipse/linuxtools/internal/profiling/launch/remote/remoteMessages.properties: Ditto.
- * src/org/eclipse/linuxtools/internal/profiling/launch/remote/RemoteLaunchConstants.java (ATTR_REMOTE_PEERID): Removed.
-
-2011-06-29 Jeff Johnston <jjohnstn@redhat.com>
-
- Part of rewrite of remote Valgrind to use RSE/TCF.
- * META-INF/MANIFEST.MF: Add RSE dependencies.
- * src/org/eclipse/linuxtools/profiling/launch/remote/ProfileRemoteLaunchConfigurationTabGroup.java: Moved from internal
- package.
- * src/org/eclipse/linuxtools/internal/profiling/launch/remote/RemoteCommandShellOperation.java: New file.
- * src/org/eclipse/linuxtools/internal/profiling/launch/remote/RemoteLaunchConstants.java: New file.
- * src/org/eclipse/linuxtools/internal/profiling/launch/remote/RemoteMessages.java: New file.
- * src/org/eclipse/linuxtools/internal/profiling/launch/remote/remoteMessages.properties: New file.
- * src/org/eclipse/linuxtools/profiling/launch/remote/RemoteTab.java: New file.
- * src/org/eclipse/linuxtools/profiling/launch/remote/RemoteConnectionException.java: New file.
- * src/org/eclipse/linuxtools/profiling/launch/remote/RemoteConnection.java: New file.
-
-2010-08-11 Elliott Baron <ebaron@fedoraproject.org>
-
- * META-INF/MANIFEST.MF: Removed unnecessary dependency.
-
-2010-08-06 Elliott Baron <ebaron@fedoraproject.org>
-
- * icons/arguments_tab.gif: New file.
- * src/org/eclipse/linuxtools/internal/profiling/launch/remote/RemoteArgumentsTab.java: New file.
- * build.properties: Add icons folder.
- * META-INF/MANIFEST.MF: New deps.
- * src/org/eclipse/linuxtools/internal/profiling/launch/remote/ProfileRemoteLaunchConfigurationTabGroup.java (createTabs): Use RemoteArgumentsTab.
- * src/org/eclipse/linuxtools/internal/profiling/launch/remote/ProfileRemoteLaunchPlugin.java (PLUGIN_ID): Fix plugin ID.
-
-2010-08-01 Elliott Baron <ebaron@fedoraproject.org>
-
- * .project: Remove "internal" from project name.
-
-2010-07-26 Elliott Baron <ebaron@fedoraproject.org>
-
- * .classpath: New file.
- * .project: New file.
- * .settings/org.eclipse.jdt.core.prefs: New file.
- * about.html: New file.
- * build.properties: New file.
- * OSGI-INF/l10n/bundle.properties: New file.
- * src/org/eclipse/linuxtools/internal/profiling/launch/remote/ProfileRemoteLaunchConfigurationTabGroup.java: New file.
- * src/org/eclipse/linuxtools/internal/profiling/launch/remote/ProfileRemoteLaunchPlugin.java: New file.
- * META-INF/MANIFEST.MF: New file.
-
- \ No newline at end of file
diff --git a/profiling/org.eclipse.linuxtools.profiling.launch.remote/META-INF/MANIFEST.MF b/profiling/org.eclipse.linuxtools.profiling.launch.remote/META-INF/MANIFEST.MF
deleted file mode 100644
index 46261c27fb..0000000000
--- a/profiling/org.eclipse.linuxtools.profiling.launch.remote/META-INF/MANIFEST.MF
+++ /dev/null
@@ -1,22 +0,0 @@
-Manifest-Version: 1.0
-Bundle-ManifestVersion: 2
-Bundle-Name: %Bundle-Name
-Bundle-SymbolicName: org.eclipse.linuxtools.profiling.launch.remote;singleton:=true
-Bundle-Version: 1.0.0.qualifier
-Bundle-Vendor: %Bundle-Vendor
-Require-Bundle: org.eclipse.ui,
- org.eclipse.core.runtime,
- org.eclipse.rse.core;bundle-version="3.2.0",
- org.eclipse.rse.subsystems.files.core;bundle-version="3.2.100",
- org.eclipse.rse.subsystems.shells.core;bundle-version="3.1.200",
- org.eclipse.rse.services;bundle-version="3.2.100"
-Bundle-RequiredExecutionEnvironment: J2SE-1.5
-Bundle-ActivationPolicy: lazy
-Import-Package: org.eclipse.cdt.debug.core,
- org.eclipse.cdt.launch.ui,
- org.eclipse.debug.core,
- org.eclipse.debug.ui,
- org.eclipse.debug.ui.sourcelookup,
- org.eclipse.linuxtools.profiling.launch
-Export-Package:
- org.eclipse.linuxtools.profiling.launch.remote
diff --git a/profiling/org.eclipse.linuxtools.profiling.launch.remote/OSGI-INF/l10n/bundle.properties b/profiling/org.eclipse.linuxtools.profiling.launch.remote/OSGI-INF/l10n/bundle.properties
deleted file mode 100644
index 0b8eb5f053..0000000000
--- a/profiling/org.eclipse.linuxtools.profiling.launch.remote/OSGI-INF/l10n/bundle.properties
+++ /dev/null
@@ -1,3 +0,0 @@
-#Properties file for org.eclipse.linuxtools.profiling.launch.remote
-Bundle-Vendor = Eclipse Linux Tools
-Bundle-Name = Profiling Remote Launch Plug-in
diff --git a/profiling/org.eclipse.linuxtools.profiling.launch.remote/about.html b/profiling/org.eclipse.linuxtools.profiling.launch.remote/about.html
deleted file mode 100644
index c258ef55d8..0000000000
--- a/profiling/org.eclipse.linuxtools.profiling.launch.remote/about.html
+++ /dev/null
@@ -1,28 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/>
-<title>About</title>
-</head>
-<body lang="EN-US">
-<h2>About This Content</h2>
-
-<p>June 5, 2006</p>
-<h3>License</h3>
-
-<p>The Eclipse Foundation makes available all content in this plug-in (&quot;Content&quot;). Unless otherwise
-indicated below, the Content is provided to you under the terms and conditions of the
-Eclipse Public License Version 1.0 (&quot;EPL&quot;). A copy of the EPL is available
-at <a href="http://www.eclipse.org/legal/epl-v10.html">http://www.eclipse.org/legal/epl-v10.html</a>.
-For purposes of the EPL, &quot;Program&quot; will mean the Content.</p>
-
-<p>If you did not receive this Content directly from the Eclipse Foundation, the Content is
-being redistributed by another party (&quot;Redistributor&quot;) and different terms and conditions may
-apply to your use of any object code in the Content. Check the Redistributor's license that was
-provided with the Content. If no such license exists, contact the Redistributor. Unless otherwise
-indicated below, the terms and conditions of the EPL still apply to any source code in the Content
-and such source code may be obtained at <a href="http://www.eclipse.org/">http://www.eclipse.org</a>.</p>
-
-</body>
-</html> \ No newline at end of file
diff --git a/profiling/org.eclipse.linuxtools.profiling.launch.remote/build.properties b/profiling/org.eclipse.linuxtools.profiling.launch.remote/build.properties
deleted file mode 100644
index ebc71a78fa..0000000000
--- a/profiling/org.eclipse.linuxtools.profiling.launch.remote/build.properties
+++ /dev/null
@@ -1,7 +0,0 @@
-source.. = src/
-output.. = bin/
-bin.includes = META-INF/,\
- .,\
- OSGI-INF/,\
- about.html,\
- icons/
diff --git a/profiling/org.eclipse.linuxtools.profiling.launch.remote/icons/arguments_tab.gif b/profiling/org.eclipse.linuxtools.profiling.launch.remote/icons/arguments_tab.gif
deleted file mode 100644
index 44660b5f0b..0000000000
--- a/profiling/org.eclipse.linuxtools.profiling.launch.remote/icons/arguments_tab.gif
+++ /dev/null
Binary files differ
diff --git a/profiling/org.eclipse.linuxtools.profiling.launch.remote/icons/system_view.gif b/profiling/org.eclipse.linuxtools.profiling.launch.remote/icons/system_view.gif
deleted file mode 100644
index c3fe221a1d..0000000000
--- a/profiling/org.eclipse.linuxtools.profiling.launch.remote/icons/system_view.gif
+++ /dev/null
Binary files differ
diff --git a/profiling/org.eclipse.linuxtools.profiling.launch.remote/icons/tcf.gif b/profiling/org.eclipse.linuxtools.profiling.launch.remote/icons/tcf.gif
deleted file mode 100644
index 3198679aea..0000000000
--- a/profiling/org.eclipse.linuxtools.profiling.launch.remote/icons/tcf.gif
+++ /dev/null
Binary files differ
diff --git a/profiling/org.eclipse.linuxtools.profiling.launch.remote/pom.xml b/profiling/org.eclipse.linuxtools.profiling.launch.remote/pom.xml
deleted file mode 100644
index c15ee1c995..0000000000
--- a/profiling/org.eclipse.linuxtools.profiling.launch.remote/pom.xml
+++ /dev/null
@@ -1,44 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright (C) 2011, Red Hat, 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
--->
-<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
- <modelVersion>4.0.0</modelVersion>
-
- <parent>
- <artifactId>linuxtools-profiling-parent</artifactId>
- <groupId>org.eclipse.linuxtools.profiling</groupId>
- <version>2.0.0-SNAPSHOT</version>
- </parent>
-
- <artifactId>org.eclipse.linuxtools.profiling.launch.remote</artifactId>
- <version>1.0.0-SNAPSHOT</version>
- <packaging>eclipse-plugin</packaging>
-
- <name>Linux Tools Profiling Remote Launch Plug-in</name>
-
- <build>
- <!-- workaround for https://issues.sonatype.org/browse/TYCHO-168 -->
- <resources>
- <resource>
- <directory>src</directory>
- <excludes>
- <exclude>**/*.java</exclude>
- </excludes>
- </resource>
- </resources>
- <plugins>
- <plugin>
- <groupId>org.eclipse.tycho</groupId>
- <artifactId>tycho-source-plugin</artifactId>
- </plugin>
- </plugins>
- </build>
-
-</project>
diff --git a/profiling/org.eclipse.linuxtools.profiling.launch.remote/src/org/eclipse/linuxtools/internal/profiling/launch/remote/ProfileRemoteLaunchConfigurationTabGroup.java b/profiling/org.eclipse.linuxtools.profiling.launch.remote/src/org/eclipse/linuxtools/internal/profiling/launch/remote/ProfileRemoteLaunchConfigurationTabGroup.java
deleted file mode 100644
index 8996bb2bf4..0000000000
--- a/profiling/org.eclipse.linuxtools.profiling.launch.remote/src/org/eclipse/linuxtools/internal/profiling/launch/remote/ProfileRemoteLaunchConfigurationTabGroup.java
+++ /dev/null
@@ -1,43 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2010 Elliott Baron
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Elliott Baron <ebaron@fedoraproject.org> - initial API and implementation
- *******************************************************************************/
-package org.eclipse.linuxtools.internal.profiling.launch.remote;
-
-import java.util.ArrayList;
-import java.util.Arrays;
-
-import org.eclipse.cdt.launch.ui.CMainTab;
-import org.eclipse.debug.ui.AbstractLaunchConfigurationTab;
-import org.eclipse.debug.ui.AbstractLaunchConfigurationTabGroup;
-import org.eclipse.debug.ui.CommonTab;
-import org.eclipse.debug.ui.EnvironmentTab;
-import org.eclipse.debug.ui.ILaunchConfigurationDialog;
-import org.eclipse.debug.ui.sourcelookup.SourceLookupTab;
-
-public abstract class ProfileRemoteLaunchConfigurationTabGroup extends
- AbstractLaunchConfigurationTabGroup {
-
- public void createTabs(ILaunchConfigurationDialog dialog, String mode) {
- ArrayList<AbstractLaunchConfigurationTab> tabs = new ArrayList<AbstractLaunchConfigurationTab>();
- tabs.add(new CMainTab(true));
- tabs.add(new RemoteArgumentsTab());
-
- tabs.addAll(Arrays.asList(getProfileTabs()));
-
- tabs.add(new EnvironmentTab());
- tabs.add(new SourceLookupTab());
- tabs.add(new CommonTab());
-
- setTabs(tabs.toArray(new AbstractLaunchConfigurationTab[tabs.size()]));
- }
-
- public abstract AbstractLaunchConfigurationTab[] getProfileTabs();
-
-}
diff --git a/profiling/org.eclipse.linuxtools.profiling.launch.remote/src/org/eclipse/linuxtools/internal/profiling/launch/remote/ProfileRemoteLaunchPlugin.java b/profiling/org.eclipse.linuxtools.profiling.launch.remote/src/org/eclipse/linuxtools/internal/profiling/launch/remote/ProfileRemoteLaunchPlugin.java
deleted file mode 100644
index f22fb90d51..0000000000
--- a/profiling/org.eclipse.linuxtools.profiling.launch.remote/src/org/eclipse/linuxtools/internal/profiling/launch/remote/ProfileRemoteLaunchPlugin.java
+++ /dev/null
@@ -1,20 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2010 Elliott Baron
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Elliott Baron <ebaron@fedoraproject.org> - initial API and implementation
- *******************************************************************************/
-package org.eclipse.linuxtools.internal.profiling.launch.remote;
-
-/**
- * The activator class controls the plug-in life cycle
- */
-public class ProfileRemoteLaunchPlugin {
-
- // The plug-in ID
- public static final String PLUGIN_ID = "org.eclipse.linuxtools.profiling.launch.remote"; //$NON-NLS-1$
-}
diff --git a/profiling/org.eclipse.linuxtools.profiling.launch.remote/src/org/eclipse/linuxtools/internal/profiling/launch/remote/RemoteArgumentsTab.java b/profiling/org.eclipse.linuxtools.profiling.launch.remote/src/org/eclipse/linuxtools/internal/profiling/launch/remote/RemoteArgumentsTab.java
deleted file mode 100644
index efe9acfcc7..0000000000
--- a/profiling/org.eclipse.linuxtools.profiling.launch.remote/src/org/eclipse/linuxtools/internal/profiling/launch/remote/RemoteArgumentsTab.java
+++ /dev/null
@@ -1,163 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007, 2010 Wind River Systems, Inc. and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Wind River Systems - initial API and implementation
- * Elliott Baron - modified for use with Profiling plugins
- *******************************************************************************/
-package org.eclipse.linuxtools.internal.profiling.launch.remote;
-
-import org.eclipse.cdt.debug.core.ICDTLaunchConfigurationConstants;
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.debug.core.ILaunchConfiguration;
-import org.eclipse.debug.core.ILaunchConfigurationWorkingCopy;
-import org.eclipse.debug.ui.AbstractLaunchConfigurationTab;
-import org.eclipse.debug.ui.StringVariableSelectionDialog;
-import org.eclipse.swt.SWT;
-import org.eclipse.swt.events.ModifyEvent;
-import org.eclipse.swt.events.ModifyListener;
-import org.eclipse.swt.events.SelectionAdapter;
-import org.eclipse.swt.events.SelectionEvent;
-import org.eclipse.swt.graphics.Font;
-import org.eclipse.swt.graphics.Image;
-import org.eclipse.swt.layout.GridData;
-import org.eclipse.swt.layout.GridLayout;
-import org.eclipse.swt.widgets.Button;
-import org.eclipse.swt.widgets.Composite;
-import org.eclipse.swt.widgets.Label;
-import org.eclipse.swt.widgets.Text;
-import org.eclipse.ui.plugin.AbstractUIPlugin;
-
-public class RemoteArgumentsTab extends AbstractLaunchConfigurationTab {
-
- private Text text_arguments;
- private Button button_variables;
- private Exception init_error;
-
- public void createControl(Composite parent) {
- Font font = parent.getFont();
- Composite comp = new Composite(parent, SWT.NONE);
- GridLayout layout = new GridLayout(1, true);
- comp.setLayout(layout);
- comp.setFont(font);
-
- GridData gd = new GridData(GridData.FILL_BOTH);
- comp.setLayoutData(gd);
- setControl(comp);
-
- createArgumentsGroup(comp);
- }
-
- private void createArgumentsGroup(Composite parent) {
- Composite comp = new Composite(parent, SWT.NONE);
- GridLayout layout = new GridLayout();
- layout.marginHeight = 0;
- layout.marginWidth = 0;
- comp.setLayout(layout);
- GridData gd = new GridData(GridData.FILL_BOTH);
- comp.setLayoutData(gd);
-
- Label label = new Label(comp, SWT.NONE);
- label.setText("Program Arguments:");
- gd = new GridData();
- gd.horizontalSpan = 2;
- label.setLayoutData(gd);
-
- text_arguments = new Text(comp, SWT.MULTI | SWT.WRAP | SWT.BORDER | SWT.V_SCROLL);
- gd = new GridData(GridData.FILL_BOTH);
- gd.heightHint = 40;
- gd.widthHint = 100;
- text_arguments.setLayoutData(gd);
- text_arguments.addModifyListener(new ModifyListener() {
- public void modifyText(ModifyEvent evt) {
- updateLaunchConfigurationDialog();
- }
- });
- button_variables = createPushButton(comp, "Variables", null);
- gd = new GridData(GridData.HORIZONTAL_ALIGN_END);
- button_variables.setLayoutData(gd);
- button_variables.addSelectionListener(new SelectionAdapter() {
- @Override
- public void widgetSelected(SelectionEvent arg0) {
- handleVariablesButtonSelected(text_arguments);
- }
- });
- }
-
- /**
- * A variable entry button has been pressed for the given text
- * field. Prompt the user for a variable and enter the result
- * in the given field.
- */
- private void handleVariablesButtonSelected(Text textField) {
- String variable = getVariable();
- if (variable != null) textField.append(variable);
- }
-
- /**
- * Prompts the user to choose and configure a variable and returns
- * the resulting string, suitable to be used as an attribute.
- */
- private String getVariable() {
- StringVariableSelectionDialog dialog = new StringVariableSelectionDialog(getShell());
- dialog.open();
- return dialog.getVariableExpression();
- }
-
- public void setDefaults(ILaunchConfigurationWorkingCopy config) {
- config.setAttribute(ICDTLaunchConfigurationConstants.ATTR_PROGRAM_ARGUMENTS, (String) null);
- }
-
- public void initializeFrom(ILaunchConfiguration configuration) {
- setErrorMessage(null);
- setMessage(null);
- try {
- text_arguments.setText(configuration.getAttribute(ICDTLaunchConfigurationConstants.ATTR_PROGRAM_ARGUMENTS, "")); //$NON-NLS-1$
- }
- catch (CoreException e) {
- init_error = e;
- setErrorMessage("Cannot read launch configuration: " + e);
- e.printStackTrace();
- }
- }
-
- public void performApply(ILaunchConfigurationWorkingCopy configuration) {
- configuration.setAttribute(
- ICDTLaunchConfigurationConstants.ATTR_PROGRAM_ARGUMENTS,
- getAttributeValueFrom(text_arguments));
- }
-
- @Override
- public boolean isValid(ILaunchConfiguration config) {
- setErrorMessage(null);
- setMessage(null);
-
- if (init_error != null) {
- setErrorMessage("Cannot read launch configuration: " + init_error);
- return false;
- }
-
- return true;
- }
-
- protected String getAttributeValueFrom(Text text) {
- String content = text.getText().trim();
- content = content.replaceAll("\r\n", "\n"); // eliminate Windows \r line delimiter //$NON-NLS-1$ //$NON-NLS-2$
- if (content.length() > 0) return content;
- return null;
- }
-
- public String getName() {
- return "Arguments";
- }
-
- @Override
- public Image getImage() {
- return AbstractUIPlugin.imageDescriptorFromPlugin(ProfileRemoteLaunchPlugin.PLUGIN_ID, "icons/arguments_tab.gif").createImage();
- }
-
-}
diff --git a/profiling/org.eclipse.linuxtools.profiling.launch.remote/src/org/eclipse/linuxtools/internal/profiling/launch/remote/RemoteCommandShellOperation.java b/profiling/org.eclipse.linuxtools.profiling.launch.remote/src/org/eclipse/linuxtools/internal/profiling/launch/remote/RemoteCommandShellOperation.java
deleted file mode 100644
index 16dfdf6796..0000000000
--- a/profiling/org.eclipse.linuxtools.profiling.launch.remote/src/org/eclipse/linuxtools/internal/profiling/launch/remote/RemoteCommandShellOperation.java
+++ /dev/null
@@ -1,349 +0,0 @@
-/********************************************************************************
- * Copyright (c) 2006, 2008, 2011 IBM Corporation and others. 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:
- * The following IBM employees contributed to the Remote System Explorer
- * component that contains this file: David McKnight, Kushal Munir,
- * Michael Berger, David Dykstal, Phil Coulthard, Don Yantzi, Eric Simpson,
- * Emily Bruner, Mazen Faraj, Adrian Storisteanu, Li Ding, and Kent Hawley.
- *
- * Contributors:
- * Martin Oberhuber (Wind River) - [168975] Move RSE Events API to Core
- * Martin Oberhuber (Wind River) - [186128] Move IProgressMonitor last in all API
- * Martin Oberhuber (Wind River) - [186773] split ISystemRegistryUI from ISystemRegistry
- * Red Hat Inc. - modified to be used in Linux Tools profiling by removing UI elements
- ********************************************************************************/
-
-package org.eclipse.linuxtools.internal.profiling.launch.remote;
-
-import java.util.Random;
-import java.util.Stack;
-
-import org.eclipse.core.runtime.NullProgressMonitor;
-import org.eclipse.rse.core.RSECorePlugin;
-import org.eclipse.rse.core.events.ISystemResourceChangeEvent;
-import org.eclipse.rse.core.events.ISystemResourceChangeEvents;
-import org.eclipse.rse.core.events.ISystemResourceChangeListener;
-import org.eclipse.rse.subsystems.files.core.subsystems.IRemoteFile;
-import org.eclipse.rse.subsystems.shells.core.subsystems.IRemoteCmdSubSystem;
-import org.eclipse.rse.subsystems.shells.core.subsystems.IRemoteCommandShell;
-import org.eclipse.rse.subsystems.shells.core.subsystems.IRemoteOutput;
-
-/**
- * Base class for command shell wrappers that use echo markers to parse command finish.
- * This abstract class can be extended to provide a command shell wrapper. When
- * running a shell, commands can be piped to the shell via the sendCommand()
- * method. Echo commands are used to determine when each command is complete.
- * Whenever a command completes, the handleCommandFinished() method is called.
- *
- */
-public abstract class RemoteCommandShellOperation
- implements ISystemResourceChangeListener
-{
-
- protected static class CommandAlias
- {
- private String _alias;
- private String _command;
- public CommandAlias(String alias, String command)
- {
- _alias = alias;
- _command = command;
- }
-
- public String getAlias()
- {
- return _alias;
- }
-
- public String getCommand()
- {
- return _command;
- }
- }
-
-
- protected IRemoteCmdSubSystem _cmdSubSystem;
- protected IRemoteFile _pwd;
-
- protected IRemoteCommandShell _remoteCmdShell;
-
- @SuppressWarnings("rawtypes")
- private Stack _commandStack;
- private int _outputOffset = 0;
- private String _cmdSeparator = ";"; //$NON-NLS-1$
-
- private Random _random;
- private int rc;
-
- /**
- * Constructor
- */
- @SuppressWarnings("rawtypes")
- public RemoteCommandShellOperation(IRemoteCmdSubSystem cmdSubSystem, IRemoteFile pwd)
- {
- _random = new Random(System.currentTimeMillis());
- _pwd = pwd;
- _cmdSubSystem = cmdSubSystem;
- _commandStack = new Stack();
- _cmdSeparator = _cmdSubSystem.getParentRemoteCmdSubSystemConfiguration().getCommandSeparator();
- }
-
- public void setWorkingDirectory(IRemoteFile pwd)
- {
- _pwd = pwd;
- }
-
- /**
- * Launches a new remote shell
- */
- public IRemoteCommandShell run()
- {
- try
- {
- RSECorePlugin.getTheSystemRegistry().addSystemResourceChangeListener(this);
- _remoteCmdShell = _cmdSubSystem.runShell(_pwd, new NullProgressMonitor());
- }
- catch (Exception e)
- {
- e.printStackTrace();
- }
- return _remoteCmdShell;
- }
-
- public IRemoteCommandShell getRemoteCommandShell()
- {
- return _remoteCmdShell;
- }
-
- /**
- * Called when a shell is complete.
- */
- public void finish()
- {
- RSECorePlugin.getTheSystemRegistry().removeSystemResourceChangeListener(this);
- if (_remoteCmdShell != null && _remoteCmdShell.isActive())
- {
- try
- {
- _cmdSubSystem.cancelShell(_remoteCmdShell, new NullProgressMonitor());
- }
- catch (Exception e)
- {
- }
- }
-
- }
-
- private String getEchoCmd(CommandAlias alias)
- {
- return "echo " + getEchoResult(alias) + "$?"; //$NON-NLS-1$ //$NON-NLS-2$
- }
-
- private String getEchoResult(CommandAlias alias)
- {
- return "BEGIN-END-TAG:" + alias.getAlias() + " done "; //$NON-NLS-1$ //$NON-NLS-2$
- }
-
- public String getCurrentCommand()
- {
- if (_commandStack != null && _commandStack.size() > 0)
- {
- CommandAlias firstCommand = (CommandAlias)_commandStack.firstElement();
- return firstCommand.getCommand();
- }
- return null;
- }
-
- public int getReturnCode() {
- return rc;
- }
-
- /**
- * Send a command to the running command shell.
- * @param cmd the command to run in the shell
- */
- @SuppressWarnings("unchecked")
- public void sendCommand(String cmd)
- {
- if (_remoteCmdShell != null)
- {
- try
- {
- String newId = String.valueOf(_random.nextInt());
- CommandAlias alias = new CommandAlias(newId, cmd);
- _commandStack.push(alias);
- String echoCmd = getEchoCmd(alias);
-
- // echo command appended after ; so that
- // it isn't treated like stdin for the intial command
- _cmdSubSystem.sendCommandToShell(cmd + _cmdSeparator + echoCmd, _remoteCmdShell, new NullProgressMonitor());
-
- }
- catch (Exception e)
- {
- }
- }
- }
-
- /**
- * Send input to the running command shell. The input is treated as input to
- * a running program - rather than a new command. As such, no echos are used
- * and it's not logged for completion.
- * @param input the input to send to the running program
- */
- public void sendInput(String input)
- {
- if (_remoteCmdShell != null)
- {
- try
- {
- _cmdSubSystem.sendCommandToShell(input, _remoteCmdShell, new NullProgressMonitor());
-
- }
- catch (Exception e)
- {
- }
- }
- }
-
-
- /**
- * Indicates whether the command shell is active or not
- * @return true if the command shell is running
- */
- public boolean isActive()
- {
- if (_remoteCmdShell != null)
- {
- return _remoteCmdShell.isActive() && _cmdSubSystem.isConnected();
- }
- return false;
- }
-
- /*
- * Check for remote changes
- */
- public void systemResourceChanged(ISystemResourceChangeEvent event)
- {
- if (event.getType() == ISystemResourceChangeEvents.EVENT_COMMAND_SHELL_FINISHED)
- {
- Object source = event.getSource();
- if (source == _cmdSubSystem)
- {
- handleShellFinished();
- }
- else if (source == _remoteCmdShell)
- {
- handleShellFinished();
- }
- }
- else if (event.getType() == ISystemResourceChangeEvents.EVENT_REFRESH)
- {
- Object parent = event.getParent();
- if (parent == _remoteCmdShell)
- {
- outputUpdated();
- }
- }
- }
-
- /**
- * Called (on the main Thread) whenever output is retrieved from the host
- */
- public void outputUpdated()
- {
- // check for command completion
- synchronized(_commandStack)
- {
- if (!_commandStack.empty())
- {
- Object[] outputs = _remoteCmdShell.listOutput();
- synchronized(outputs)
- {
- for (int i = _outputOffset; i < outputs.length && !_commandStack.empty(); i++)
- {
- boolean handledOutput = false;
-
- CommandAlias firstCommand = (CommandAlias)_commandStack.firstElement();
-
- Object output = outputs[_outputOffset];
- if (output instanceof IRemoteOutput)
- {
- IRemoteOutput rmtOutput = (IRemoteOutput)output;
- String text = rmtOutput.getText();
- if (commandMatches(text, firstCommand))
- {
- _remoteCmdShell.removeOutput(output);
- _commandStack.remove(0);
- handleCommandFinished(firstCommand.getCommand());
- handledOutput = true;
- }
- }
- if (!handledOutput)
- {
- handleOutputChanged(firstCommand.getCommand(), output);
- }
- _outputOffset++;
- }
- }
-
- }
- }
- }
-
- protected boolean commandMatches(String outputEcho, CommandAlias firstCommand)
- {
- String expected = getEchoResult(firstCommand);
- if (outputEcho.startsWith(expected))
- {
- try {
- int k = Integer.valueOf(outputEcho.substring(expected.length()));
- rc = k;
- } catch (NumberFormatException e) {
- // do nothing
- }
- return true;
- }
- else
- {
- int index = outputEcho.indexOf(expected);
- if (index > 0)
- {
- if (outputEcho.charAt(index - 1) != ';' && (outputEcho.indexOf("echo") == -1)) //$NON-NLS-1$
- {
- return true;
- }
- }
- }
-
- return false;
- }
-
- /**
- * Called (on the main Thread) when the shell is complete
- */
- public void handleShellFinished()
- {
- finish();
- }
-
- /**
- * Called (on the main Thread) when the specified command is complete
- *
- * @param cmd the completed command
- */
- public abstract void handleCommandFinished(String cmd);
-
- /**
- * Called (on the main Thread) whenever output has changed
- *
- * @param command the current command
- * @param output the new output object
- */
- public abstract void handleOutputChanged(String command, Object output);
-
-} \ No newline at end of file
diff --git a/profiling/org.eclipse.linuxtools.profiling.launch.remote/src/org/eclipse/linuxtools/internal/profiling/launch/remote/RemoteLaunchConstants.java b/profiling/org.eclipse.linuxtools.profiling.launch.remote/src/org/eclipse/linuxtools/internal/profiling/launch/remote/RemoteLaunchConstants.java
deleted file mode 100644
index c68dc5548d..0000000000
--- a/profiling/org.eclipse.linuxtools.profiling.launch.remote/src/org/eclipse/linuxtools/internal/profiling/launch/remote/RemoteLaunchConstants.java
+++ /dev/null
@@ -1,24 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2010, 2011 Elliott Baron
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Elliott Baron <ebaron@fedoraproject.org> - initial API and implementation
- * Red Hat Inc. - modified for shared usage with remote tools
- *******************************************************************************/
-package org.eclipse.linuxtools.internal.profiling.launch.remote;
-
-public final class RemoteLaunchConstants {
-
- private static final String PLUGIN_ID = "org.eclipse.linuxtools.profiling.launch.remote"; //$NON-NLS-1$
-
- public static final String ATTR_REMOTE_HOSTID = PLUGIN_ID + ".REMOTE_HOSTID"; //$NON-NLS-1$
-
- public static final String DEFAULT_REMOTE_PEERID = null;
-
- public static final String DEFAULT_REMOTE_HOSTID = null;
-
-}
diff --git a/profiling/org.eclipse.linuxtools.profiling.launch.remote/src/org/eclipse/linuxtools/internal/profiling/launch/remote/RemoteMessages.java b/profiling/org.eclipse.linuxtools.profiling.launch.remote/src/org/eclipse/linuxtools/internal/profiling/launch/remote/RemoteMessages.java
deleted file mode 100644
index 6fc32ab6f0..0000000000
--- a/profiling/org.eclipse.linuxtools.profiling.launch.remote/src/org/eclipse/linuxtools/internal/profiling/launch/remote/RemoteMessages.java
+++ /dev/null
@@ -1,47 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2010, 2011 Elliott Baron
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Elliott Baron <ebaron@fedoraproject.org> - initial API and implementation
- * Red Hat Inc. - modified to be shared by remote tools
- *******************************************************************************/
-package org.eclipse.linuxtools.internal.profiling.launch.remote;
-
-import org.eclipse.osgi.util.NLS;
-
-public class RemoteMessages extends NLS {
- private static final String BUNDLE_NAME = "org.eclipse.linuxtools.internal.profiling.launch.remote.remoteMessages"; //$NON-NLS-1$
- public static String RemoteLaunchDelegate_error_launch_failed;
- public static String RemoteLaunchDelegate_error_no_fs;
- public static String RemoteLaunchDelegate_error_no_host;
- public static String RemoteLaunchDelegate_error_no_proc;
- public static String RemoteLaunchDelegate_error_no_streams;
- public static String RemoteLaunchDelegate_task_name;
- public static String RemoteLaunchDelegate_error_interrupted;
- public static String RemoteProcess_error_proc_not_term;
- public static String RemoteTab_error_dest_wd;
- public static String RemoteTab_error_location_VG;
- public static String RemoteTab_error_tmp_dir;
- public static String RemoteTab_header_ID;
- public static String RemoteTab_header_name;
- public static String RemoteTab_header_OS;
- public static String RemoteTab_header_hostname;
- public static String RemoteTab_header_type;
- public static String RemoteTab_header_transport;
- public static String RemoteTab_label_dest_wd;
- public static String RemoteTab_label_location_VG;
- public static String RemoteTab_label_hosts;
- public static String RemoteTab_label_tmp_dir;
- public static String RemoteTab_tab_name;
- static {
- // initialize resource bundle
- NLS.initializeMessages(BUNDLE_NAME, RemoteMessages.class);
- }
-
- private RemoteMessages() {
- }
-}
diff --git a/profiling/org.eclipse.linuxtools.profiling.launch.remote/src/org/eclipse/linuxtools/internal/profiling/launch/remote/remoteMessages.properties b/profiling/org.eclipse.linuxtools.profiling.launch.remote/src/org/eclipse/linuxtools/internal/profiling/launch/remote/remoteMessages.properties
deleted file mode 100644
index 533c47a548..0000000000
--- a/profiling/org.eclipse.linuxtools.profiling.launch.remote/src/org/eclipse/linuxtools/internal/profiling/launch/remote/remoteMessages.properties
+++ /dev/null
@@ -1,32 +0,0 @@
-#*******************************************************************************
-# * Copyright (c) 2011 Red Hat 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
-# *
-# * Contributors:
-# * Red Hat Inc. - Initial implementation
-# *******************************************************************************/
-RemoteLaunchDelegate_error_launch_failed=Launch failed.
-RemoteLaunchDelegate_error_no_fs=FileSystem service is unavailable on target.
-RemoteLaunchDelegate_error_no_host=No available RSE host has been selected.
-RemoteLaunchDelegate_error_no_proc=Processes service is unavailable on target.
-RemoteLaunchDelegate_error_no_streams=Streams service is unavailable on target.
-RemoteLaunchDelegate_error_interrupted=RSE initialization interrupted.
-RemoteLaunchDelegate_task_name=Profiling Remote C/C++ Application
-RemoteProcess_error_proc_not_term=Process has not terminated.
-RemoteTab_error_dest_wd=Please specify destination/working directory.
-RemoteTab_error_location_VG=Please specify the location of the binary.
-RemoteTab_error_tmp_dir=Please specify temporary files directory.
-RemoteTab_header_ID=ID
-RemoteTab_header_name=Name
-RemoteTab_header_OS=OS
-RemoteTab_header_hostname=Host
-RemoteTab_header_type=Type
-RemoteTab_header_transport=Transport
-RemoteTab_label_dest_wd=Destination/working directory:
-RemoteTab_label_location_VG=Location of binary:
-RemoteTab_label_hosts=Available RSE Hosts:
-RemoteTab_label_tmp_dir=Temporary files directory:
-RemoteTab_tab_name=Target
diff --git a/profiling/org.eclipse.linuxtools.profiling.launch.remote/src/org/eclipse/linuxtools/profiling/launch/remote/ProfileRemoteLaunchConfigurationTabGroup.java b/profiling/org.eclipse.linuxtools.profiling.launch.remote/src/org/eclipse/linuxtools/profiling/launch/remote/ProfileRemoteLaunchConfigurationTabGroup.java
deleted file mode 100644
index de5cb0e64e..0000000000
--- a/profiling/org.eclipse.linuxtools.profiling.launch.remote/src/org/eclipse/linuxtools/profiling/launch/remote/ProfileRemoteLaunchConfigurationTabGroup.java
+++ /dev/null
@@ -1,44 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2010 Elliott Baron
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Elliott Baron <ebaron@fedoraproject.org> - initial API and implementation
- *******************************************************************************/
-package org.eclipse.linuxtools.profiling.launch.remote;
-
-import java.util.ArrayList;
-import java.util.Arrays;
-
-import org.eclipse.cdt.launch.ui.CMainTab;
-import org.eclipse.debug.ui.AbstractLaunchConfigurationTab;
-import org.eclipse.debug.ui.AbstractLaunchConfigurationTabGroup;
-import org.eclipse.debug.ui.CommonTab;
-import org.eclipse.debug.ui.EnvironmentTab;
-import org.eclipse.debug.ui.ILaunchConfigurationDialog;
-import org.eclipse.debug.ui.sourcelookup.SourceLookupTab;
-import org.eclipse.linuxtools.internal.profiling.launch.remote.RemoteArgumentsTab;
-
-public abstract class ProfileRemoteLaunchConfigurationTabGroup extends
- AbstractLaunchConfigurationTabGroup {
-
- public void createTabs(ILaunchConfigurationDialog dialog, String mode) {
- ArrayList<AbstractLaunchConfigurationTab> tabs = new ArrayList<AbstractLaunchConfigurationTab>();
- tabs.add(new CMainTab(true));
- tabs.add(new RemoteArgumentsTab());
-
- tabs.addAll(Arrays.asList(getProfileTabs()));
-
- tabs.add(new EnvironmentTab());
- tabs.add(new SourceLookupTab());
- tabs.add(new CommonTab());
-
- setTabs(tabs.toArray(new AbstractLaunchConfigurationTab[tabs.size()]));
- }
-
- public abstract AbstractLaunchConfigurationTab[] getProfileTabs();
-
-}
diff --git a/profiling/org.eclipse.linuxtools.profiling.launch.remote/src/org/eclipse/linuxtools/profiling/launch/remote/RemoteConnection.java b/profiling/org.eclipse.linuxtools.profiling.launch.remote/src/org/eclipse/linuxtools/profiling/launch/remote/RemoteConnection.java
deleted file mode 100644
index bbdaf5902f..0000000000
--- a/profiling/org.eclipse.linuxtools.profiling.launch.remote/src/org/eclipse/linuxtools/profiling/launch/remote/RemoteConnection.java
+++ /dev/null
@@ -1,326 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2011 Red Hat 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
- *
- * Contributors:
- * Red Hat Inc. - Initial implementation
- *******************************************************************************/
-package org.eclipse.linuxtools.profiling.launch.remote;
-
-import java.io.File;
-import java.util.ArrayList;
-
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.core.runtime.IPath;
-import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.core.runtime.NullProgressMonitor;
-import org.eclipse.debug.core.ILaunchConfiguration;
-import org.eclipse.linuxtools.internal.profiling.launch.remote.RemoteCommandShellOperation;
-import org.eclipse.linuxtools.internal.profiling.launch.remote.RemoteLaunchConstants;
-import org.eclipse.linuxtools.internal.profiling.launch.remote.RemoteMessages;
-import org.eclipse.linuxtools.profiling.launch.RemoteConnectionException;
-import org.eclipse.rse.core.RSECorePlugin;
-import org.eclipse.rse.core.model.IHost;
-import org.eclipse.rse.core.model.ISystemRegistry;
-import org.eclipse.rse.core.model.SystemStartHere;
-import org.eclipse.rse.core.subsystems.ISubSystem;
-import org.eclipse.rse.services.clientserver.messages.SystemMessageException;
-import org.eclipse.rse.services.files.IFileService;
-import org.eclipse.rse.subsystems.files.core.subsystems.IRemoteFile;
-import org.eclipse.rse.subsystems.files.core.subsystems.IRemoteFileSubSystem;
-import org.eclipse.rse.subsystems.shells.core.subsystems.IRemoteCmdSubSystem;
-import org.eclipse.rse.subsystems.shells.core.subsystems.IRemoteCommandShell;
-
-public class RemoteConnection {
-
- private static final String UTF_8 = "UTF-8"; //$NON-NLS-1$
- private ILaunchConfiguration config;
- private IHost rseHost;
- private IRemoteFileSubSystem fs;
- private IRemoteCmdSubSystem rcs;
- private String hostName;
-
- public RemoteConnection(ILaunchConfiguration config) throws RemoteConnectionException {
- this.config = config;
- initialize();
- }
-
- public RemoteConnection(String hostName) throws RemoteConnectionException {
- this.config = null;
- this.hostName = hostName;
- initialize();
- }
-
- // To run a remote command we use the RemoteCmdSubSystem, however,
- // we cannot just call runCommand() on the subsystem as there is
- // no way for us to tell when the command has completed. To handle this,
- // we use a special wrapper class to call the command and use echo statements
- // to tell when the command has completed.
- private static class RemoteCommand extends RemoteCommandShellOperation {
-
- private boolean finished;
-
- public RemoteCommand(IRemoteCmdSubSystem cmdSubSystem, IRemoteFile pwd) {
- super(cmdSubSystem, pwd);
- }
-
- public boolean isFinished() {
- return finished;
- }
-
- @Override
- public void handleCommandFinished(String cmd) {
- finished = true;
- }
-
- @Override
- public void handleOutputChanged(String command, Object output) {
- // do nothing
- }
-
- @Override
- public void finish() {
- super.finish();
- if (_remoteCmdShell != null && _cmdSubSystem != null && !_remoteCmdShell.isActive()) {
- try
- {
- _cmdSubSystem.removeShell(_remoteCmdShell);
- }
- catch (Exception e)
- {
- }
- }
-
- }
- }
-
- private void initialize() throws RemoteConnectionException {
- try {
- RSECorePlugin.waitForInitCompletion();
- } catch (InterruptedException e2) {
- throw new RemoteConnectionException(RemoteMessages.RemoteLaunchDelegate_error_interrupted, e2);
- }
- ISystemRegistry registry = SystemStartHere.getSystemRegistry();
- if (hostName == null) {
- if (config != null) {
- try {
- hostName = config.getAttribute(RemoteLaunchConstants.ATTR_REMOTE_HOSTID, RemoteLaunchConstants.DEFAULT_REMOTE_HOSTID);
- } catch (CoreException e1) {
- throw new RemoteConnectionException(RemoteMessages.RemoteLaunchDelegate_error_launch_failed, e1);
- }
- } else {
- throw new RemoteConnectionException(RemoteMessages.RemoteLaunchDelegate_error_no_host, null);
- }
- }
-
- if (hostName == null)
- throw new RemoteConnectionException(RemoteMessages.RemoteLaunchDelegate_error_no_host, null);
-
- IHost[] hosts = registry.getHosts();
- for (int i = 0; i < hosts.length; ++i) {
- IHost host = hosts[i];
- if (host.getName().equals(hostName)) {
- rseHost = host;
- break;
- }
- }
-
- if (rseHost == null)
- throw new RemoteConnectionException(RemoteMessages.RemoteLaunchDelegate_error_no_host, null);
-
- // Get pertinent remote RSE services
- ISubSystem[] subSystems = registry.getSubSystems(rseHost);
- for (int i = 0; i < subSystems.length; ++i) {
- ISubSystem subSystem = subSystems[i];
- if (subSystem instanceof IRemoteFileSubSystem)
- fs = (IRemoteFileSubSystem)subSystem;
- else if (subSystem instanceof IRemoteCmdSubSystem) {
- rcs = (IRemoteCmdSubSystem)subSystem;
- }
- }
-
- try {
- fs.connect(new NullProgressMonitor(), false);
- } catch (Exception e) {
- throw new RemoteConnectionException(RemoteMessages.RemoteLaunchDelegate_error_no_fs, e);
- }
-
- }
-
- /**
- * Return the id for this remote connection.
- *
- * @return id
- */
- public String getId() {
- return rseHost.getName();
- }
-
- /***
- * Upload files to remote target directory. This method is recursive. If a local directory is
- * specified as the input, then all folders and files are uploaded to the remote target
- * directory. The remote target directory must exist prior to calling this method or
- * else failure will occur.
- *
- * A RemoteConnectionException is thrown on any failure condition.
- *
- * @param localPath - the local path to file
- * @param remotePath - the remote path
- * @param monitor - progress monitor
- * @throws RemoteConnectionException
- */
- public void upload(IPath localPath, IPath remotePath, IProgressMonitor monitor) throws RemoteConnectionException {
- File f = localPath.toFile();
- uploadRecursive(f, remotePath, monitor);
- }
-
- private void uploadRecursive(File f, IPath remotePath, IProgressMonitor monitor) throws RemoteConnectionException {
- try {
- if (f.isDirectory()) {
- File[] children = f.listFiles();
- for (int i = 0; i < children.length; ++i) {
- File child = children[i];
- if (child.isDirectory()) {
- IPath remoteChildPath = remotePath.append(child.getName());
- createFolder(remoteChildPath, monitor);
- uploadRecursive(child, remoteChildPath, monitor);
- }
- }
- } else {
- fs.upload(f.getAbsolutePath().toString(), UTF_8, remotePath.append(f.getName()).toString(), UTF_8, monitor);
- }
- } catch (SystemMessageException e1) {
- throw new RemoteConnectionException(e1.getLocalizedMessage(), e1);
- }
- }
-
-
- /**
- * Create a folder on the remote system. A RemoteConnectionException is thrown if any failure
- * occurs.
- *
- * @param remoteFolderPath - path of the remote folder to create
- * @param monitor - progress monitor
- * @throws RemoteConnectionException
- */
- public void createFolder(IPath remoteFolderPath, IProgressMonitor monitor) throws RemoteConnectionException {
- try {
- IRemoteFile rf = fs.getRemoteFileObject(remoteFolderPath.toString(), monitor);
- fs.createFolder(rf, new NullProgressMonitor());
- } catch (SystemMessageException e1) {
- throw new RemoteConnectionException(e1.getLocalizedMessage(), e1);
- }
- }
-
- /**
- * Run a command on the remote system.
- *
- * @param command - the command to run remotely
- * @param remoteWorkingDir - the working directory on the remote system
- * @param monitor - progress monitor
- * @return An array of String representing the command line output, if any.
- * @throws RemoteConnectionException
- */
- public int runCommand(String command, IPath remoteWorkingDir, ArrayList<String> output, IProgressMonitor monitor) throws RemoteConnectionException {
- try {
- IRemoteFile rf = fs.getRemoteFileObject(remoteWorkingDir.toString(), monitor);
- RemoteCommand rc = new RemoteCommand(rcs, rf);
- IRemoteCommandShell shell = rc.run();
- rc.sendCommand(command);
- while (!rc.isFinished() && !monitor.isCanceled()) {
- // wait until complete before continuing
- Thread.sleep(100);
- }
- rc.finish();
- for (int i = 0; i < shell.getSize(); ++i) {
- Object outputLine = shell.getOutputAt(i);
- output.add(outputLine.toString());
- }
- return rc.getReturnCode();
- } catch (Exception e1) {
- throw new RemoteConnectionException(e1.getLocalizedMessage(), e1);
- }
- }
-
- /**
- * Remote delete function. This method is recursive. If a remote directory is specified,
- * the remote directory and all its contents are removed. A RemoteConnectionException is
- * thrown if failure occurs for any reason.
- *
- * @param remotePath - the remote path of the file or folder to be deleted
- * @param monitor - progress monitor
- * @throws RemoteConnectionException
- */
- public void delete(IPath remotePath, IProgressMonitor monitor) throws RemoteConnectionException {
- try {
- IRemoteFile rf = fs.getRemoteFileObject(remotePath.toString(), monitor);
- deleteRecursive(rf, monitor);
- } catch (SystemMessageException e1) {
- throw new RemoteConnectionException(e1.getLocalizedMessage(), e1);
- }
- }
-
- private void deleteRecursive(IRemoteFile rf, IProgressMonitor monitor) throws RemoteConnectionException {
- try {
- if (rf.isDirectory()) {
- IRemoteFile[] children = fs.list(rf, IFileService.FILE_TYPE_FILES_AND_FOLDERS, monitor);
- for (int i = 0; i < children.length; ++i) {
- IRemoteFile remotelogfile = children[i];
- deleteRecursive(remotelogfile, monitor);
- }
- }
- fs.delete(rf, monitor);
- } catch (SystemMessageException e1) {
- throw new RemoteConnectionException(e1.getLocalizedMessage(), e1);
- }
- }
-
- /**
- * Download a file or folder from a remote system. The method is recursive. If a remote folder
- * is specified, all the contents of the folder are downloaded, including folders, and placed
- * under the directory specified by the localPath variable. It is assumed that any remote non-binary
- * file is UTF-8. A RemoteConnectionException is thrown if any failure occurs.
- *
- * @param remotePath - path to remote file or folder
- * @param localPath - local directory target
- * @param monitor - progress monitor
- * @throws RemoteConnectionException
- */
- public void download(IPath remotePath, IPath localPath, IProgressMonitor monitor) throws RemoteConnectionException {
- try {
- IRemoteFile rf = fs.getRemoteFileObject(remotePath.toString(), monitor);
- downloadRecursive(rf, localPath, monitor);
- } catch (SystemMessageException e1) {
- throw new RemoteConnectionException(e1.getLocalizedMessage(), e1);
- }
-
- }
-
- private void downloadRecursive(IRemoteFile rf, IPath localPath, IProgressMonitor monitor) throws RemoteConnectionException {
- try {
- if (rf.isDirectory()) {
- IPath dirPath = localPath;
- IRemoteFile[] children = fs.list(rf, IFileService.FILE_TYPE_FILES_AND_FOLDERS, monitor);
- for (int i = 0; i < children.length; ++i) {
- IRemoteFile remotelogfile = children[i];
- if (remotelogfile.isDirectory()) {
- dirPath = localPath.append(remotelogfile.getName());
- File f = dirPath.toFile();
- f.mkdir();
- }
- downloadRecursive(remotelogfile, dirPath, monitor);
- }
- } else {
- fs.download(rf, localPath.append(rf.getName()).toString(), UTF_8, monitor);
- }
- } catch (SystemMessageException e1) {
- throw new RemoteConnectionException(e1.getLocalizedMessage(), e1);
- }
- }
-
-
-
-}
diff --git a/profiling/org.eclipse.linuxtools.profiling.launch.remote/src/org/eclipse/linuxtools/profiling/launch/remote/RemoteTab.java b/profiling/org.eclipse.linuxtools.profiling.launch.remote/src/org/eclipse/linuxtools/profiling/launch/remote/RemoteTab.java
deleted file mode 100644
index 05503810dc..0000000000
--- a/profiling/org.eclipse.linuxtools.profiling.launch.remote/src/org/eclipse/linuxtools/profiling/launch/remote/RemoteTab.java
+++ /dev/null
@@ -1,227 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2010, 2011 Elliott Baron
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Elliott Baron <ebaron@fedoraproject.org> - initial API and implementation
- * Red Hat Inc. - modify code to be shared among tools
- *******************************************************************************/
-package org.eclipse.linuxtools.profiling.launch.remote;
-
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.debug.core.ILaunchConfiguration;
-import org.eclipse.debug.core.ILaunchConfigurationWorkingCopy;
-import org.eclipse.debug.ui.AbstractLaunchConfigurationTab;
-import org.eclipse.jface.viewers.ArrayContentProvider;
-import org.eclipse.jface.viewers.ISelection;
-import org.eclipse.jface.viewers.ISelectionChangedListener;
-import org.eclipse.jface.viewers.IStructuredSelection;
-import org.eclipse.jface.viewers.ITableLabelProvider;
-import org.eclipse.jface.viewers.LabelProvider;
-import org.eclipse.jface.viewers.SelectionChangedEvent;
-import org.eclipse.jface.viewers.StructuredSelection;
-import org.eclipse.jface.viewers.TableViewer;
-import org.eclipse.jface.viewers.TableViewerColumn;
-import org.eclipse.linuxtools.internal.profiling.launch.remote.ProfileRemoteLaunchPlugin;
-import org.eclipse.linuxtools.internal.profiling.launch.remote.RemoteLaunchConstants;
-import org.eclipse.linuxtools.internal.profiling.launch.remote.RemoteMessages;
-import org.eclipse.rse.core.RSECorePlugin;
-import org.eclipse.rse.core.events.ISystemModelChangeEvent;
-import org.eclipse.rse.core.events.ISystemModelChangeListener;
-import org.eclipse.rse.core.model.IHost;
-import org.eclipse.rse.core.model.ISystemRegistry;
-import org.eclipse.rse.core.model.SystemStartHere;
-import org.eclipse.swt.SWT;
-import org.eclipse.swt.graphics.Image;
-import org.eclipse.swt.layout.GridData;
-import org.eclipse.swt.layout.GridLayout;
-import org.eclipse.swt.widgets.Composite;
-import org.eclipse.swt.widgets.Display;
-import org.eclipse.swt.widgets.Label;
-import org.eclipse.swt.widgets.Table;
-import org.eclipse.ui.plugin.AbstractUIPlugin;
-
-public abstract class RemoteTab extends AbstractLaunchConfigurationTab {
-
- private TableViewer tableViewer;
- private boolean isInitializing;
- private IHost[] hosts;
- private String name;
-
- private static class RemoteSystemLabelProvider extends LabelProvider implements ITableLabelProvider {
-
- public Image getColumnImage(Object element, int columnIndex) {
- return null;
- }
-
- public String getColumnText(Object element, int columnIndex) {
- String text = null;
- IHost host = (IHost) element;
- switch (columnIndex) {
- case 0:
- text = host.getName();
- break;
- case 1:
- text = host.getHostName();
- break;
- case 2:
- text = host.getSystemType().getLabel();
- break;
- }
- return text;
- }
-
- }
-
- private class RemoteModelListener implements ISystemModelChangeListener {
-
- public void systemModelResourceChanged(ISystemModelChangeEvent arg0) {
- ISystemRegistry registry = SystemStartHere.getSystemRegistry();
- hosts = registry.getHosts();
- Display.getDefault().asyncExec(new Runnable() {
- public void run() {
- refreshViewer();
- }
- });
- }
-
- }
-
- public RemoteTab(String name) {
- this.name = name;
- // Query Locator service for available peers
- ISystemRegistry registry = SystemStartHere.getSystemRegistry();
- hosts = registry.getHosts();
- registry.addSystemModelChangeListener(new RemoteModelListener());
- }
-
- protected void localCreateControl(Composite top) {}
-
- public void createControl(Composite parent) {
- Composite top = new Composite(parent, SWT.NONE);
- top.setLayout(new GridLayout());
- top.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));
-
- // Create Peers table
- Label peersLabel = new Label(top, SWT.NONE);
- peersLabel.setText(RemoteMessages.RemoteTab_label_hosts);
-
- tableViewer = new TableViewer(top, SWT.BORDER | SWT.FULL_SELECTION);
- tableViewer.getTable().setLayoutData(new GridData(SWT.FILL, SWT.BEGINNING, true, false));
-
- String[] titles = { RemoteMessages.RemoteTab_header_name, RemoteMessages.RemoteTab_header_hostname, RemoteMessages.RemoteTab_header_type };
- int[] bounds = { 200, 100, 250, 100 };
-
- for (int i = 0; i < titles.length; i++) {
- TableViewerColumn column = new TableViewerColumn(tableViewer, SWT.NONE);
- column.getColumn().setText(titles[i]);
- column.getColumn().setWidth(bounds[i]);
- column.getColumn().setResizable(true);
- column.getColumn().setMoveable(true);
- }
- Table table = tableViewer.getTable();
- table.setHeaderVisible(true);
- table.setLinesVisible(true);
-
- tableViewer.setContentProvider(new ArrayContentProvider());
- tableViewer.setLabelProvider(new RemoteSystemLabelProvider());
- tableViewer.addSelectionChangedListener(new ISelectionChangedListener() {
- public void selectionChanged(SelectionChangedEvent event) {
- updateLaunchConfigurationDialog();
- }
- });
-
- while (!RSECorePlugin.isInitComplete(RSECorePlugin.INIT_ALL)) {
- try {
- RSECorePlugin.waitForInitCompletion();
- } catch (InterruptedException e2) {
- // do nothing
- }
- }
-
- ISystemRegistry registry = SystemStartHere.getSystemRegistry();
- hosts = registry.getHosts();
- tableViewer.setInput(hosts);
-
- localCreateControl(top);
-
- setControl(top);
- }
-
- public void setDefaults(ILaunchConfigurationWorkingCopy configuration) {
- configuration.setAttribute(RemoteLaunchConstants.ATTR_REMOTE_HOSTID, RemoteLaunchConstants.DEFAULT_REMOTE_HOSTID);
- }
-
- public void localInitializeFrom(ILaunchConfiguration configuration) throws CoreException {}
-
- public void initializeFrom(ILaunchConfiguration configuration) {
- isInitializing = true;
- try {
- String hostID = configuration.getAttribute(RemoteLaunchConstants.ATTR_REMOTE_HOSTID, RemoteLaunchConstants.DEFAULT_REMOTE_HOSTID);
- if (hostID != null) {
- IHost[] hosts = (IHost[]) tableViewer.getInput();
-
- // Search for corresponding peer and select in table
- for (int i = 0; i < hosts.length; i++) {
- if (hosts[i].getName().equals(hostID)) {
- tableViewer.setSelection(new StructuredSelection(hosts[i]));
- }
- }
- }
- localInitializeFrom(configuration);
- } catch (CoreException e) {
- e.printStackTrace();
- }
- isInitializing = false;
- }
-
- public void performApply(ILaunchConfigurationWorkingCopy configuration) {
- ISelection selected = tableViewer.getSelection();
- if (selected == null) {
- configuration.setAttribute(RemoteLaunchConstants.ATTR_REMOTE_HOSTID, (String) null);
- }
- else if (selected instanceof IStructuredSelection) {
- IHost host = (IHost) ((IStructuredSelection) selected).getFirstElement();
- if (host != null)
- configuration.setAttribute(RemoteLaunchConstants.ATTR_REMOTE_HOSTID, host.getName());
- }
- }
-
- @Override
- public boolean isValid(ILaunchConfiguration launchConfig) {
- setErrorMessage(null);
- boolean valid = false;
-
- ISelection selected = tableViewer.getSelection();
- valid = selected != null && selected instanceof IStructuredSelection
- && !((IStructuredSelection) selected).isEmpty();
- return valid;
- }
-
- public String getName() {
- return name;
- }
-
- @Override
- public Image getImage() {
- return AbstractUIPlugin.imageDescriptorFromPlugin(ProfileRemoteLaunchPlugin.PLUGIN_ID, "icons/system_view.gif").createImage(); //$NON-NLS-1$
- }
-
- @Override
- protected void updateLaunchConfigurationDialog() {
- if (!isInitializing) {
- super.updateLaunchConfigurationDialog();
- }
- }
-
- private void refreshViewer() {
- if (tableViewer != null && tableViewer.getContentProvider() != null) {
- tableViewer.setInput(hosts);
- tableViewer.refresh();
- }
- }
-}
-
diff --git a/profiling/org.eclipse.linuxtools.profiling.remote-feature/feature.xml b/profiling/org.eclipse.linuxtools.profiling.remote-feature/feature.xml
index 77e4fd9432..b7afc35664 100644
--- a/profiling/org.eclipse.linuxtools.profiling.remote-feature/feature.xml
+++ b/profiling/org.eclipse.linuxtools.profiling.remote-feature/feature.xml
@@ -34,13 +34,6 @@
</requires>
<plugin
- id="org.eclipse.linuxtools.profiling.launch.remote"
- download-size="0"
- install-size="0"
- version="0.0.0"
- unpack="false"/>
-
- <plugin
id="org.eclipse.linuxtools.rdt.proxy"
download-size="0"
install-size="0"
diff --git a/profiling/pom.xml b/profiling/pom.xml
index c6e5070181..952eebc9f3 100644
--- a/profiling/pom.xml
+++ b/profiling/pom.xml
@@ -58,7 +58,6 @@
<module>org.eclipse.linuxtools.profiling-feature</module>
<module>org.eclipse.linuxtools.profiling.launch</module>
<module>org.eclipse.linuxtools.profiling.launch.ui.rdt.proxy</module>
- <module>org.eclipse.linuxtools.profiling.launch.remote</module>
<module>org.eclipse.linuxtools.profiling.provider.tests</module>
<module>org.eclipse.linuxtools.profiling.remote-feature</module>
<module>org.eclipse.linuxtools.profiling.tests</module>

Back to the top