Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEugene Tarassov2013-12-04 19:45:05 +0000
committerEugene Tarassov2013-12-04 19:45:05 +0000
commitfd3c08423f2fafab7f39b76424e2efbd2ad16d06 (patch)
tree65993c6c60351ba064cf9406596a5cb1081596ec
parenta564ea9211ded2112ae555fe2f707ce3d6a00888 (diff)
downloadorg.eclipse.tcf-fd3c08423f2fafab7f39b76424e2efbd2ad16d06.tar.gz
org.eclipse.tcf-fd3c08423f2fafab7f39b76424e2efbd2ad16d06.tar.xz
org.eclipse.tcf-fd3c08423f2fafab7f39b76424e2efbd2ad16d06.zip
Bug 422854 - API Tooling Errors in TCF Core
-rw-r--r--plugins/org.eclipse.tcf.cdt.ui/.project6
-rw-r--r--plugins/org.eclipse.tcf.cdt.ui/src/org/eclipse/tcf/internal/cdt/ui/breakpoints/TCFBreakpointScopeDetailPaneFactory.java3
-rw-r--r--plugins/org.eclipse.tcf.core/.project6
-rw-r--r--plugins/org.eclipse.tcf.core/src/org/eclipse/tcf/core/AbstractChannel.java6
-rw-r--r--plugins/org.eclipse.tcf.core/src/org/eclipse/tcf/core/Base64.java1
-rw-r--r--plugins/org.eclipse.tcf.core/src/org/eclipse/tcf/protocol/JSON.java1
-rw-r--r--plugins/org.eclipse.tcf.core/src/org/eclipse/tcf/protocol/Protocol.java1
-rw-r--r--plugins/org.eclipse.tcf.core/src/org/eclipse/tcf/services/IBreakpoints.java2
-rw-r--r--plugins/org.eclipse.tcf.core/src/org/eclipse/tcf/services/IContextQuery.java2
-rw-r--r--plugins/org.eclipse.tcf.core/src/org/eclipse/tcf/services/IDPrintf.java2
-rw-r--r--plugins/org.eclipse.tcf.core/src/org/eclipse/tcf/services/IDiagnostics.java2
-rw-r--r--plugins/org.eclipse.tcf.core/src/org/eclipse/tcf/services/IDisassembly.java2
-rw-r--r--plugins/org.eclipse.tcf.core/src/org/eclipse/tcf/services/IExpressions.java4
-rw-r--r--plugins/org.eclipse.tcf.core/src/org/eclipse/tcf/services/IFileSystem.java2
-rw-r--r--plugins/org.eclipse.tcf.core/src/org/eclipse/tcf/services/ILineNumbers.java2
-rw-r--r--plugins/org.eclipse.tcf.core/src/org/eclipse/tcf/services/ILocator.java3
-rw-r--r--plugins/org.eclipse.tcf.core/src/org/eclipse/tcf/services/IMemory.java2
-rw-r--r--plugins/org.eclipse.tcf.core/src/org/eclipse/tcf/services/IMemoryMap.java2
-rw-r--r--plugins/org.eclipse.tcf.core/src/org/eclipse/tcf/services/IPathMap.java2
-rw-r--r--plugins/org.eclipse.tcf.core/src/org/eclipse/tcf/services/IProcesses.java2
-rw-r--r--plugins/org.eclipse.tcf.core/src/org/eclipse/tcf/services/IProcessesV1.java86
-rw-r--r--plugins/org.eclipse.tcf.core/src/org/eclipse/tcf/services/IProfiler.java80
-rw-r--r--plugins/org.eclipse.tcf.core/src/org/eclipse/tcf/services/IRegisters.java2
-rw-r--r--plugins/org.eclipse.tcf.core/src/org/eclipse/tcf/services/IRunControl.java91
-rw-r--r--plugins/org.eclipse.tcf.core/src/org/eclipse/tcf/services/IStackTrace.java105
-rw-r--r--plugins/org.eclipse.tcf.core/src/org/eclipse/tcf/services/IStreams.java2
-rw-r--r--plugins/org.eclipse.tcf.core/src/org/eclipse/tcf/services/ISymbols.java2
-rw-r--r--plugins/org.eclipse.tcf.core/src/org/eclipse/tcf/services/ISysMonitor.java2
-rw-r--r--plugins/org.eclipse.tcf.core/src/org/eclipse/tcf/services/ITerminals.java2
-rw-r--r--plugins/org.eclipse.tcf.core/src/org/eclipse/tcf/util/TCFFileInputStream.java2
-rw-r--r--plugins/org.eclipse.tcf.core/src/org/eclipse/tcf/util/TCFFileOutputStream.java2
-rw-r--r--plugins/org.eclipse.tcf.core/src/org/eclipse/tcf/util/TCFVirtualInputStream.java2
-rw-r--r--plugins/org.eclipse.tcf.core/src/org/eclipse/tcf/util/TCFVirtualOutputStream.java2
-rw-r--r--plugins/org.eclipse.tcf.debug.ui/.project6
-rw-r--r--plugins/org.eclipse.tcf.debug.ui/src/org/eclipse/tcf/internal/debug/ui/commands/DisconnectCommand.java2
-rw-r--r--plugins/org.eclipse.tcf.debug.ui/src/org/eclipse/tcf/internal/debug/ui/model/TCFConsole.java16
-rw-r--r--plugins/org.eclipse.tcf.debug.ui/src/org/eclipse/tcf/internal/debug/ui/model/TCFDetailPaneFactory.java3
-rw-r--r--plugins/org.eclipse.tcf.debug/.project6
-rw-r--r--plugins/org.eclipse.tcf.debug/src/org/eclipse/tcf/internal/debug/model/TCFError.java68
-rw-r--r--plugins/org.eclipse.tcf.debug/src/org/eclipse/tcf/internal/debug/model/TCFLaunch.java3
-rw-r--r--plugins/org.eclipse.tcf.rse/.project6
-rw-r--r--plugins/org.eclipse.tcf/.project6
42 files changed, 359 insertions, 190 deletions
diff --git a/plugins/org.eclipse.tcf.cdt.ui/.project b/plugins/org.eclipse.tcf.cdt.ui/.project
index e03217589..7f4f58f8f 100644
--- a/plugins/org.eclipse.tcf.cdt.ui/.project
+++ b/plugins/org.eclipse.tcf.cdt.ui/.project
@@ -20,10 +20,16 @@
<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>
<filteredResources>
<filter>
diff --git a/plugins/org.eclipse.tcf.cdt.ui/src/org/eclipse/tcf/internal/cdt/ui/breakpoints/TCFBreakpointScopeDetailPaneFactory.java b/plugins/org.eclipse.tcf.cdt.ui/src/org/eclipse/tcf/internal/cdt/ui/breakpoints/TCFBreakpointScopeDetailPaneFactory.java
index b7440672b..28ee59529 100644
--- a/plugins/org.eclipse.tcf.cdt.ui/src/org/eclipse/tcf/internal/cdt/ui/breakpoints/TCFBreakpointScopeDetailPaneFactory.java
+++ b/plugins/org.eclipse.tcf.cdt.ui/src/org/eclipse/tcf/internal/cdt/ui/breakpoints/TCFBreakpointScopeDetailPaneFactory.java
@@ -39,8 +39,7 @@ public class TCFBreakpointScopeDetailPaneFactory implements IDetailPaneFactory {
return TCFBreakpointScopeDetailPane.DESC;
}
- @SuppressWarnings("rawtypes")
- public Set getDetailPaneTypes(IStructuredSelection selection) {
+ public Set<String> getDetailPaneTypes(IStructuredSelection selection) {
HashSet<String> set = new HashSet<String>();
set.add(TCFBreakpointScopeDetailPane.ID);
return set;
diff --git a/plugins/org.eclipse.tcf.core/.project b/plugins/org.eclipse.tcf.core/.project
index 97061f3d2..f38427186 100644
--- a/plugins/org.eclipse.tcf.core/.project
+++ b/plugins/org.eclipse.tcf.core/.project
@@ -20,10 +20,16 @@
<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>
<filteredResources>
<filter>
diff --git a/plugins/org.eclipse.tcf.core/src/org/eclipse/tcf/core/AbstractChannel.java b/plugins/org.eclipse.tcf.core/src/org/eclipse/tcf/core/AbstractChannel.java
index 19d10c8c3..cfd09d407 100644
--- a/plugins/org.eclipse.tcf.core/src/org/eclipse/tcf/core/AbstractChannel.java
+++ b/plugins/org.eclipse.tcf.core/src/org/eclipse/tcf/core/AbstractChannel.java
@@ -145,6 +145,9 @@ public abstract class AbstractChannel implements IChannel {
private int local_congestion_cnt;
private Collection<TraceListener> trace_listeners;
+ /**
+ * @since 1.2
+ */
protected static final boolean TRACE = Boolean.getBoolean("org.eclipse.tcf.core.tracing.channel");
public static final int
@@ -1018,7 +1021,8 @@ public abstract class AbstractChannel implements IChannel {
Protocol.log("Exception in channel listener", x);
}
}
- } else if (TRACE){
+ }
+ else if (TRACE){
Protocol.log("TCF channel opened but no one is listening.", null);
}
notifying_channel_opened = false;
diff --git a/plugins/org.eclipse.tcf.core/src/org/eclipse/tcf/core/Base64.java b/plugins/org.eclipse.tcf.core/src/org/eclipse/tcf/core/Base64.java
index 62fd34bde..0424618e1 100644
--- a/plugins/org.eclipse.tcf.core/src/org/eclipse/tcf/core/Base64.java
+++ b/plugins/org.eclipse.tcf.core/src/org/eclipse/tcf/core/Base64.java
@@ -12,7 +12,6 @@ package org.eclipse.tcf.core;
/**
* Methods for translating Base64 encoded strings to byte arrays and back.
- * @noextend This class is not intended to be subclassed by clients.
* @noinstantiate This class is not intended to be instantiated by clients.
*/
public final class Base64 {
diff --git a/plugins/org.eclipse.tcf.core/src/org/eclipse/tcf/protocol/JSON.java b/plugins/org.eclipse.tcf.core/src/org/eclipse/tcf/protocol/JSON.java
index ebbea0cfa..5e9dce07b 100644
--- a/plugins/org.eclipse.tcf.core/src/org/eclipse/tcf/protocol/JSON.java
+++ b/plugins/org.eclipse.tcf.core/src/org/eclipse/tcf/protocol/JSON.java
@@ -37,7 +37,6 @@ import org.eclipse.tcf.core.Base64;
* Clients can enable writing support for objects of a other classes by
* registering ObjectWriter interface implementation.
*
- * @noextend This class is not intended to be subclassed by clients.
* @noinstantiate This class is not intended to be instantiated by clients.
*/
public final class JSON {
diff --git a/plugins/org.eclipse.tcf.core/src/org/eclipse/tcf/protocol/Protocol.java b/plugins/org.eclipse.tcf.core/src/org/eclipse/tcf/protocol/Protocol.java
index 1eaec053b..88d961122 100644
--- a/plugins/org.eclipse.tcf.core/src/org/eclipse/tcf/protocol/Protocol.java
+++ b/plugins/org.eclipse.tcf.core/src/org/eclipse/tcf/protocol/Protocol.java
@@ -32,7 +32,6 @@ import org.eclipse.tcf.services.ILocator;
* Before TCF can be used, it should be given an object implementing IEventQueue interface:
* @see #setEventQueue
*
- * @noextend This class is not intended to be subclassed by clients.
* @noinstantiate This class is not intended to be instantiated by clients.
*/
public final class Protocol {
diff --git a/plugins/org.eclipse.tcf.core/src/org/eclipse/tcf/services/IBreakpoints.java b/plugins/org.eclipse.tcf.core/src/org/eclipse/tcf/services/IBreakpoints.java
index 29209f9fa..6b682bb7c 100644
--- a/plugins/org.eclipse.tcf.core/src/org/eclipse/tcf/services/IBreakpoints.java
+++ b/plugins/org.eclipse.tcf.core/src/org/eclipse/tcf/services/IBreakpoints.java
@@ -28,6 +28,8 @@ import org.eclipse.tcf.protocol.IToken;
* breakpoint status (Map<String,Object>, see STATUS_*). While breakpoint properties are
* persistent and represent user input, breakpoint status reflects dynamic target agent reports
* about breakpoint current state, like actual addresses where breakpoint is planted or planting errors.
+ *
+ * @noimplement This interface is not intended to be implemented by clients.
*/
public interface IBreakpoints extends IService {
diff --git a/plugins/org.eclipse.tcf.core/src/org/eclipse/tcf/services/IContextQuery.java b/plugins/org.eclipse.tcf.core/src/org/eclipse/tcf/services/IContextQuery.java
index e60088a8c..eba68b9f5 100644
--- a/plugins/org.eclipse.tcf.core/src/org/eclipse/tcf/services/IContextQuery.java
+++ b/plugins/org.eclipse.tcf.core/src/org/eclipse/tcf/services/IContextQuery.java
@@ -69,6 +69,8 @@ import org.eclipse.tcf.protocol.IToken;
* context. The part "**" matches any sequence of contexts. If the query
* starts with a "/" the first part of the query must match a child of
* the root of the context tree.
+ *
+ * @noimplement This interface is not intended to be implemented by clients.
*/
public interface IContextQuery extends IService {
diff --git a/plugins/org.eclipse.tcf.core/src/org/eclipse/tcf/services/IDPrintf.java b/plugins/org.eclipse.tcf.core/src/org/eclipse/tcf/services/IDPrintf.java
index 6f184e483..dd8429e62 100644
--- a/plugins/org.eclipse.tcf.core/src/org/eclipse/tcf/services/IDPrintf.java
+++ b/plugins/org.eclipse.tcf.core/src/org/eclipse/tcf/services/IDPrintf.java
@@ -18,6 +18,8 @@ import org.eclipse.tcf.protocol.IToken;
/**
* DPrintf service provides access to "dynamic printf" output stream that is generated by invocations of
* '$printf' function on the remote target. '$printf' is usually used as a breakpoint action.
+ *
+ * @noimplement This interface is not intended to be implemented by clients.
*/
public interface IDPrintf extends IService {
diff --git a/plugins/org.eclipse.tcf.core/src/org/eclipse/tcf/services/IDiagnostics.java b/plugins/org.eclipse.tcf.core/src/org/eclipse/tcf/services/IDiagnostics.java
index 96a836bba..41dc45dfa 100644
--- a/plugins/org.eclipse.tcf.core/src/org/eclipse/tcf/services/IDiagnostics.java
+++ b/plugins/org.eclipse.tcf.core/src/org/eclipse/tcf/services/IDiagnostics.java
@@ -19,6 +19,8 @@ import org.eclipse.tcf.protocol.IToken;
* This is optional service that can be implemented by a peer.
* If implemented, the service can be used for testing of the peer and
* communication channel functionality and reliability.
+ *
+ * @noimplement This interface is not intended to be implemented by clients.
*/
public interface IDiagnostics extends IService {
diff --git a/plugins/org.eclipse.tcf.core/src/org/eclipse/tcf/services/IDisassembly.java b/plugins/org.eclipse.tcf.core/src/org/eclipse/tcf/services/IDisassembly.java
index 52c35792a..83baa99c7 100644
--- a/plugins/org.eclipse.tcf.core/src/org/eclipse/tcf/services/IDisassembly.java
+++ b/plugins/org.eclipse.tcf.core/src/org/eclipse/tcf/services/IDisassembly.java
@@ -17,6 +17,8 @@ import org.eclipse.tcf.protocol.IToken;
/**
* TCF Disassembly service interface.
+ *
+ * @noimplement This interface is not intended to be implemented by clients.
*/
public interface IDisassembly extends IService {
diff --git a/plugins/org.eclipse.tcf.core/src/org/eclipse/tcf/services/IExpressions.java b/plugins/org.eclipse.tcf.core/src/org/eclipse/tcf/services/IExpressions.java
index 5150168fa..0cb734e3c 100644
--- a/plugins/org.eclipse.tcf.core/src/org/eclipse/tcf/services/IExpressions.java
+++ b/plugins/org.eclipse.tcf.core/src/org/eclipse/tcf/services/IExpressions.java
@@ -18,6 +18,8 @@ import org.eclipse.tcf.protocol.IToken;
/**
* Expressions service allows TCF client to perform expression evaluation on remote target.
* The service can be used to retrieve or modify values of variables or any data structures in remote target memory.
+ *
+ * @noimplement This interface is not intended to be implemented by clients.
*/
public interface IExpressions extends IService {
@@ -123,6 +125,7 @@ public interface IExpressions extends IService {
/**
* Expression scope attributes.
+ * @since 1.2
*/
static final String
SCOPE_CONTEXT_ID = "ContextID",
@@ -270,6 +273,7 @@ public interface IExpressions extends IService {
* @param expression - expression script
* @param done - call back interface called when operation is completed.
* @return - pending command handle.
+ * @since 1.2
*/
IToken createInScope(Map<String,Object> scope, String expression, DoneCreate done);
diff --git a/plugins/org.eclipse.tcf.core/src/org/eclipse/tcf/services/IFileSystem.java b/plugins/org.eclipse.tcf.core/src/org/eclipse/tcf/services/IFileSystem.java
index a522fccb0..442cc0f64 100644
--- a/plugins/org.eclipse.tcf.core/src/org/eclipse/tcf/services/IFileSystem.java
+++ b/plugins/org.eclipse.tcf.core/src/org/eclipse/tcf/services/IFileSystem.java
@@ -75,6 +75,8 @@ import org.eclipse.tcf.protocol.IToken;
* Clients should not make any other assumptions; however, they can
* splice path name components returned by readdir() together
* using a slash ('/') as the separator, and that will work as expected.
+ *
+ * @noimplement This interface is not intended to be implemented by clients.
*/
public interface IFileSystem extends IService {
diff --git a/plugins/org.eclipse.tcf.core/src/org/eclipse/tcf/services/ILineNumbers.java b/plugins/org.eclipse.tcf.core/src/org/eclipse/tcf/services/ILineNumbers.java
index d08ec3577..28bd8b937 100644
--- a/plugins/org.eclipse.tcf.core/src/org/eclipse/tcf/services/ILineNumbers.java
+++ b/plugins/org.eclipse.tcf.core/src/org/eclipse/tcf/services/ILineNumbers.java
@@ -17,6 +17,8 @@ import org.eclipse.tcf.protocol.JSON;
/**
* Line numbers service associates locations in the source files with the corresponding
* machine instruction addresses in the executable object.
+ *
+ * @noimplement This interface is not intended to be implemented by clients.
*/
public interface ILineNumbers extends IService {
diff --git a/plugins/org.eclipse.tcf.core/src/org/eclipse/tcf/services/ILocator.java b/plugins/org.eclipse.tcf.core/src/org/eclipse/tcf/services/ILocator.java
index 5dd53c9f9..dac27d1de 100644
--- a/plugins/org.eclipse.tcf.core/src/org/eclipse/tcf/services/ILocator.java
+++ b/plugins/org.eclipse.tcf.core/src/org/eclipse/tcf/services/ILocator.java
@@ -26,8 +26,9 @@ import org.eclipse.tcf.protocol.IToken;
*
* Clients should use Protocol.getLocator() to obtain local instance of ILocator,
* then ILocator.getPeers() can be used to get list of available peers (hosts and targets).
+ *
+ * @noimplement This interface is not intended to be implemented by clients.
*/
-
public interface ILocator extends IService {
static final String NAME = "Locator";
diff --git a/plugins/org.eclipse.tcf.core/src/org/eclipse/tcf/services/IMemory.java b/plugins/org.eclipse.tcf.core/src/org/eclipse/tcf/services/IMemory.java
index 56adbdba9..05eef9c4a 100644
--- a/plugins/org.eclipse.tcf.core/src/org/eclipse/tcf/services/IMemory.java
+++ b/plugins/org.eclipse.tcf.core/src/org/eclipse/tcf/services/IMemory.java
@@ -19,6 +19,8 @@ import org.eclipse.tcf.protocol.IToken;
/**
* IMemory service provides basic operations to read/write memory on a target.
+ *
+ * @noimplement This interface is not intended to be implemented by clients.
*/
public interface IMemory extends IService {
diff --git a/plugins/org.eclipse.tcf.core/src/org/eclipse/tcf/services/IMemoryMap.java b/plugins/org.eclipse.tcf.core/src/org/eclipse/tcf/services/IMemoryMap.java
index bf6fb660f..14790c3a2 100644
--- a/plugins/org.eclipse.tcf.core/src/org/eclipse/tcf/services/IMemoryMap.java
+++ b/plugins/org.eclipse.tcf.core/src/org/eclipse/tcf/services/IMemoryMap.java
@@ -17,6 +17,8 @@ import org.eclipse.tcf.protocol.IToken;
/**
* IMemoryMap service provides information about executable modules (files) mapped (loaded) into target memory.
+ *
+ * @noimplement This interface is not intended to be implemented by clients.
*/
public interface IMemoryMap extends IService {
diff --git a/plugins/org.eclipse.tcf.core/src/org/eclipse/tcf/services/IPathMap.java b/plugins/org.eclipse.tcf.core/src/org/eclipse/tcf/services/IPathMap.java
index d857463bf..5fb266d35 100644
--- a/plugins/org.eclipse.tcf.core/src/org/eclipse/tcf/services/IPathMap.java
+++ b/plugins/org.eclipse.tcf.core/src/org/eclipse/tcf/services/IPathMap.java
@@ -17,6 +17,8 @@ import org.eclipse.tcf.protocol.IToken;
/**
* IPathMap service manages file path translation across systems.
+ *
+ * @noimplement This interface is not intended to be implemented by clients.
*/
public interface IPathMap extends IService {
diff --git a/plugins/org.eclipse.tcf.core/src/org/eclipse/tcf/services/IProcesses.java b/plugins/org.eclipse.tcf.core/src/org/eclipse/tcf/services/IProcesses.java
index 0a76bcc32..9c62629c0 100644
--- a/plugins/org.eclipse.tcf.core/src/org/eclipse/tcf/services/IProcesses.java
+++ b/plugins/org.eclipse.tcf.core/src/org/eclipse/tcf/services/IProcesses.java
@@ -27,6 +27,8 @@ import org.eclipse.tcf.protocol.IToken;
* If a process is started by this service, its standard input/output streams are
* available for client to read/write using Streams service. Stream type of such
* streams is set to "Processes".
+ *
+ * @noimplement This interface is not intended to be implemented by clients.
*/
public interface IProcesses extends IService {
diff --git a/plugins/org.eclipse.tcf.core/src/org/eclipse/tcf/services/IProcessesV1.java b/plugins/org.eclipse.tcf.core/src/org/eclipse/tcf/services/IProcessesV1.java
index a6e41f4eb..33c36da99 100644
--- a/plugins/org.eclipse.tcf.core/src/org/eclipse/tcf/services/IProcessesV1.java
+++ b/plugins/org.eclipse.tcf.core/src/org/eclipse/tcf/services/IProcessesV1.java
@@ -17,40 +17,58 @@ import org.eclipse.tcf.protocol.IToken;
/**
* Extension of Processes service.
* It provides new "start" command that supports additional parameters.
+ *
+ * @noimplement This interface is not intended to be implemented by clients.
*/
public interface IProcessesV1 extends IProcesses {
static final String NAME = "ProcessesV1";
- /** Process start parameters */
- static final String
- /** Boolean, attach the debugger to the process */
- START_ATTACH = "Attach",
- /** Boolean, auto-attach process children */
- START_ATTACH_CHILDREN = "AttachChildren",
- /** Boolean, stop at process entry */
- START_STOP_AT_ENTRY = "StopAtEntry",
- /** Boolean, stop at main() */
- START_STOP_AT_MAIN = "StopAtMain",
- /** Boolean, Use pseudo-terminal for the process standard I/O */
- START_USE_TERMINAL = "UseTerminal",
- /** Bit set of signals that should not be intercepted by the debugger */
- START_SIG_DONT_STOP = "SigDontStop",
- /** Bit set of signals that should not be delivered to the process */
- START_SIG_DONT_PASS = "SigDontPass";
+ /* Process start parameters */
/**
- * Client call back interface for getCapabilities().
+ * Process start parameter:
+ * Boolean, attach the debugger to the process.
*/
- interface DoneGetCapabilities {
- /**
- * Called when the capability retrieval is done.
- *
- * @param error The error description if the operation failed, <code>null</code> if succeeded.
- * @param properties The global processes service or context specific capabilities.
- */
- public void doneGetCapabilities(IToken token, Exception error, Map<String, Object> properties);
- }
+ static final String START_ATTACH = "Attach";
+
+ /**
+ * Process start parameter:
+ * Boolean, auto-attach process children.
+ */
+ static final String START_ATTACH_CHILDREN = "AttachChildren";
+
+ /**
+ * Process start parameter:
+ * Boolean, stop at process entry.
+ */
+ static final String START_STOP_AT_ENTRY = "StopAtEntry";
+
+ /**
+ * Process start parameter:
+ * Boolean, stop at main().
+ */
+ static final String START_STOP_AT_MAIN = "StopAtMain";
+
+ /**
+ * Process start parameter:
+ * Boolean, Use pseudo-terminal for the process standard I/O.
+ */
+ static final String START_USE_TERMINAL = "UseTerminal";
+
+ /**
+ * Process start parameter:
+ * Bit set of signals that should not be intercepted by the debugger.
+ * @since 1.2
+ */
+ static final String START_SIG_DONT_STOP = "SigDontStop";
+
+ /**
+ * Process start parameter:
+ * Bit set of signals that should not be delivered to the process.
+ * @since 1.2
+ */
+ static final String START_SIG_DONT_PASS = "SigDontPass";
/**
* Start a new process on remote machine.
@@ -77,10 +95,25 @@ public interface IProcessesV1 extends IProcesses {
* @param row - number of rows.
* @param done - call back interface called when operation is completed.
* @return pending command handle, can be used to cancel the command.
+ * @since 1.2
*/
IToken setWinSize(String id, int col, int row, DoneCommand done);
/**
+ * Client call back interface for getCapabilities().
+ * @since 1.2
+ */
+ interface DoneGetCapabilities {
+ /**
+ * Called when the capability retrieval is done.
+ *
+ * @param error The error description if the operation failed, <code>null</code> if succeeded.
+ * @param properties The global processes service or context specific capabilities.
+ */
+ public void doneGetCapabilities(IToken token, Exception error, Map<String, Object> properties);
+ }
+
+ /**
* The command reports the ProcessesV1 service capabilities to clients so they can adjust
* to different implementations of the service. When called with a null ("") context
* ID the global capabilities are returned, otherwise context specific capabilities
@@ -88,6 +121,7 @@ public interface IProcessesV1 extends IProcesses {
*
* @param id The context ID or <code>null</code>.
* @param done The call back interface called when the operation is completed. Must not be <code>null</code>.
+ * @since 1.2
*/
public IToken getCapabilities(String id, DoneGetCapabilities done);
}
diff --git a/plugins/org.eclipse.tcf.core/src/org/eclipse/tcf/services/IProfiler.java b/plugins/org.eclipse.tcf.core/src/org/eclipse/tcf/services/IProfiler.java
index 20318587e..394352b50 100644
--- a/plugins/org.eclipse.tcf.core/src/org/eclipse/tcf/services/IProfiler.java
+++ b/plugins/org.eclipse.tcf.core/src/org/eclipse/tcf/services/IProfiler.java
@@ -27,6 +27,8 @@ import org.eclipse.tcf.protocol.IToken;
* If a client has started profiling, it is expected to read and process profiling data periodically.
* Profiling data format is a contract between the profiler and its clients,
* the service does not try to interpret the data.
+ *
+ * @noimplement This interface is not intended to be implemented by clients.
*/
public interface IProfiler extends IService {
@@ -35,43 +37,55 @@ public interface IProfiler extends IService {
*/
static final String NAME = "Profiler";
- /** Profiler configuration parameters */
- static final String
- /**
- * Number: size of stack traces in profiling samples,
- * 0 means no profiling,
- * 1 means no stack tracing.
- */
- PARAM_FRAME_CNT = "FrameCnt",
- /**
- * Number: size of profiling data buffer, in samples.
- */
- PARAM_MAX_SAMPLES = "MaxSamples";
+ /* Profiler configuration parameters ----------------------------------- */
- /** Profile data properties */
- static final String
- /**
- * String: data format.
- */
- PROP_FORMAT = "Format",
+ /**
+ * Profiler configuration parameter:
+ * Number: size of stack traces in profiling samples,
+ * 0 means no profiling,
+ * 1 means no stack tracing.
+ */
+ static final String PARAM_FRAME_CNT = "FrameCnt";
- /**
- * Number: address size in bytes.
- * Default is 4 bytes.
- */
- PROP_ADDR_SIZE = "AddrSize",
+ /**
+ * Profiler configuration parameter:
+ * Number: size of profiling data buffer, in samples.
+ */
+ static final String PARAM_MAX_SAMPLES = "MaxSamples";
- /**
- * Sample endianess.
- * Default is little-endian.
- */
- PROP_BIG_ENDIAN = "BigEndian",
- /**
- * Byte array of profile samples.
- */
- PROP_DATA = "Data";
+ /* Profile data properties --------------------------------------------- */
+
+ /**
+ * Profile data property:
+ * String: data format.
+ * @since 1.2
+ */
+ static final String PROP_FORMAT = "Format";
+
+ /**
+ * Profile data property:
+ * Number: address size in bytes.
+ * Default is 4 bytes.
+ */
+ static final String PROP_ADDR_SIZE = "AddrSize";
+
+ /**
+ * Profile data property:
+ * Sample endianess.
+ * Default is little-endian.
+ */
+ static final String PROP_BIG_ENDIAN = "BigEndian";
+
+ /**
+ * Profile data property:
+ * Byte array of profile samples.
+ */
+ static final String PROP_DATA = "Data";
+
+
+ /* Commands ------------------------------------------------------------ */
/**
* Configure profiling of a debug context 'ctx'.
@@ -110,7 +124,7 @@ public interface IProfiler extends IService {
* @param token - command handle.
* @param error - error object or null.
* @param data - array of profile data buffers.
- * Each buffer is collection of properties, see PROP_*.
+ * Each buffer is collection of properties, see PROP_*.
*/
void doneRead(IToken token, Exception error, Map<String,Object> data[]);
}
diff --git a/plugins/org.eclipse.tcf.core/src/org/eclipse/tcf/services/IRegisters.java b/plugins/org.eclipse.tcf.core/src/org/eclipse/tcf/services/IRegisters.java
index f55f7f6f4..81bd6b716 100644
--- a/plugins/org.eclipse.tcf.core/src/org/eclipse/tcf/services/IRegisters.java
+++ b/plugins/org.eclipse.tcf.core/src/org/eclipse/tcf/services/IRegisters.java
@@ -19,6 +19,8 @@ import org.eclipse.tcf.protocol.IToken;
/**
* IRegisters service provides access to target CPU register values and properties.
+ *
+ * @noimplement This interface is not intended to be implemented by clients.
*/
public interface IRegisters extends IService {
diff --git a/plugins/org.eclipse.tcf.core/src/org/eclipse/tcf/services/IRunControl.java b/plugins/org.eclipse.tcf.core/src/org/eclipse/tcf/services/IRunControl.java
index 89b156220..67f1878ac 100644
--- a/plugins/org.eclipse.tcf.core/src/org/eclipse/tcf/services/IRunControl.java
+++ b/plugins/org.eclipse.tcf.core/src/org/eclipse/tcf/services/IRunControl.java
@@ -15,14 +15,17 @@ import java.util.Map;
import org.eclipse.tcf.protocol.IService;
import org.eclipse.tcf.protocol.IToken;
-
+/**
+ * Run Control service provides basic run control operations for execution contexts on a target.
+ *
+ * @noimplement This interface is not intended to be implemented by clients.
+ */
public interface IRunControl extends IService {
static final String NAME = "RunControl";
- /**
- * Context property names.
- */
+ /* Context property names ---------------------------------------------- */
+
static final String
/** Run control context ID */
PROP_ID = "ID",
@@ -218,44 +221,76 @@ public interface IRunControl extends IService {
/** Context suspended because of an error in execution environment */
REASON_ERROR = "Error";
+
+ /* Optional parameters of context state -------------------------------- */
+
/**
- * Optional parameters of context state.
+ * Context state parameter:
+ * Integer - signal that caused the context to become suspended.
*/
- static final String
- /** Integer - signal that caused the context to become suspended */
- STATE_SIGNAL = "Signal",
+ static final String STATE_SIGNAL = "Signal";
+
+ /**
+ * Context state parameter:
+ * String - name of the signal that caused the context to become suspended.
+ */
+ static final String STATE_SIGNAL_NAME = "SignalName";
+
+ /**
+ * Context state parameter:
+ * String - description of the signal that caused the context to become suspended.
+ */
+ static final String STATE_SIGNAL_DESCRIPTION = "SignalDescription";
- /** String - name of the signal that caused the context to become suspended */
- STATE_SIGNAL_NAME = "SignalName",
+ /**
+ * Context state parameter:
+ * Array of string - IDs of breakpoints that were triggered by the context.
+ */
+ static final String STATE_BREAKPOINT_IDS = "BPs";
- /** String - description of the signal that caused the context to become suspended */
- STATE_SIGNAL_DESCRIPTION = "SignalDescription",
+ /**
+ * Context state parameter:
+ * Object - error report that describes a reason why program counter of the context is not available.
+ */
+ static final String STATE_PC_ERROR = "PCError";
+
+ /**
+ * Context state parameter:
+ * Object - error report if last stepping operation failed to reach its destination.
+ * @since 1.2
+ */
+ static final String STATE_STEP_ERROR = "StepError";
- /** Array of string - IDs of breakpoints that were triggered by the context */
- STATE_BREAKPOINT_IDS = "BPs",
+ /**
+ * Context state parameter:
+ * Boolean - true if the context is stopped by a function call injection.
+ * @since 1.2
+ */
+ static final String STATE_FUNC_CALL = "FuncCall";
- /** Object - error report that describes a reason why program counter of the context is not available */
- STATE_PC_ERROR = "PCError",
+ /**
+ * Context state parameter:
+ * Boolean - true if the context is running in reverse.
+ */
+ static final String STATE_REVERSING = "Reversing";
- /** Object - error report if last stepping operation failed to reach its destination */
- STATE_STEP_ERROR = "StepError",
- /** Boolean - true if the context is stopped by a function call injection */
- STATE_FUNC_CALL = "FuncCall",
+ /* Optional parameters of resume command ------------------------------- */
- /** Boolean - true if the context is running in reverse */
- STATE_REVERSING = "Reversing";
+ /**
+ * Resume command parameter:
+ * Integer - starting address of step range, inclusive.
+ */
+ static final String RP_RANGE_START = "RangeStart";
/**
- * Optional parameters of resume command.
+ * Resume command parameter:
+ * Integer - ending address of step range, exclusive.
*/
- static final String
- /** Integer - starting address of step range, inclusive */
- RP_RANGE_START = "RangeStart",
+ static final String RP_RANGE_END = "RangeEnd";
- /** Integer - ending address of step range, exclusive */
- RP_RANGE_END = "RangeEnd";
+ /* Commands ------------------------------------------------------------ */
/**
* Retrieve context properties for given context ID.
diff --git a/plugins/org.eclipse.tcf.core/src/org/eclipse/tcf/services/IStackTrace.java b/plugins/org.eclipse.tcf.core/src/org/eclipse/tcf/services/IStackTrace.java
index 37fb284dc..bf12e1557 100644
--- a/plugins/org.eclipse.tcf.core/src/org/eclipse/tcf/services/IStackTrace.java
+++ b/plugins/org.eclipse.tcf.core/src/org/eclipse/tcf/services/IStackTrace.java
@@ -15,7 +15,11 @@ import java.util.Map;
import org.eclipse.tcf.protocol.IService;
import org.eclipse.tcf.protocol.IToken;
-
+/**
+ * Stack Trace service implements thread stack back tracing.
+ *
+ * @noimplement This interface is not intended to be implemented by clients.
+ */
public interface IStackTrace extends IService {
static final String NAME = "StackTrace";
@@ -23,49 +27,85 @@ public interface IStackTrace extends IService {
/**
* Stack frame context property names.
*/
- static final String
- /** String, stack frame ID */
- PROP_ID = "ID",
- /** String, stack frame parent ID */
- PROP_PARENT_ID = "ParentID",
+ static final String PROP_ID = "ID";
- /** String, stack frame process ID */
- PROP_PROCESS_ID = "ProcessID",
+ /**
+ * Stack frame property:
+ * String, stack frame parent ID.
+ */
+ static final String PROP_PARENT_ID = "ParentID";
- /** String, human readable name */
- PROP_NAME = "Name",
+ /**
+ * Stack frame property:
+ * String, stack frame process ID.
+ */
+ static final String PROP_PROCESS_ID = "ProcessID";
- /** Boolean, true if the frame is top frame on a stack */
- PROP_TOP_FRAME = "TopFrame",
+ /**
+ * Stack frame property:
+ * String, human readable name.
+ */
+ static final String PROP_NAME = "Name";
- /** Integer, stack frame index, starting from stack top (current frame) */
- PROP_INDEX = "Index",
+ /**
+ * Stack frame property:
+ * Boolean, true if the frame is top frame on a stack.
+ */
+ static final String PROP_TOP_FRAME = "TopFrame";
- /** Boolean, true if the frame data was computed using symbols info,
- * false or not set if the data was collected using stack crawl logic. */
- PROP_WALK = "Walk",
+ /**
+ * Stack frame property:
+ * Integer, stack frame index, starting from stack top (current frame).
+ * @since 1.2
+ */
+ static final String PROP_INDEX = "Index";
- /** Number, stack frame memory address */
- PROP_FRAME_ADDRESS = "FP",
+ /**
+ * Stack frame property:
+ * Boolean, true if the frame data was computed using symbols info,
+ * false or not set if the data was collected using stack crawl logic.
+ * @since 1.2
+ */
+ static final String PROP_WALK = "Walk";
- /** Number, return address */
- PROP_RETURN_ADDRESS = "RP",
+ /**
+ * Stack frame property:
+ * Number, stack frame memory address.
+ */
+ static final String PROP_FRAME_ADDRESS = "FP";
- /** Number, instruction pointer */
- PROP_INSTRUCTION_ADDRESS = "IP",
+ /**
+ * Stack frame property:
+ * Number, return address.
+ */
+ static final String PROP_RETURN_ADDRESS = "RP";
- /** Integer, number of function arguments */
- PROP_ARGUMENTS_COUNT = "ArgsCnt",
+ /**
+ * Stack frame property:
+ * Number, instruction pointer.
+ */
+ static final String PROP_INSTRUCTION_ADDRESS = "IP";
- /** Number, memory address of function arguments */
- PROP_ARGUMENTS_ADDRESS = "ArgsAddr";
+ /**
+ * Stack frame property:
+ * Integer, number of function arguments.
+ */
+ static final String PROP_ARGUMENTS_COUNT = "ArgsCnt";
+
+ /**
+ * Stack frame property:
+ * Number, memory address of function arguments.
+ */
+ static final String PROP_ARGUMENTS_ADDRESS = "ArgsAddr";
- static final String
- /** Integer, stack frame level, starting from stack bottom
- * @deprecated, use "Index" property.
- * Note: "Index" is counted from the top of the stack, while "Level" is counted from the bottom. */
- PROP_LEVEL = "Level";
+ /**
+ * Stack frame property:
+ * Integer, stack frame level, starting from stack bottom
+ * @deprecated, use "Index" property.
+ * Note: "Index" is counted from the top of the stack, while "Level" is counted from the bottom.
+ */
+ static final String PROP_LEVEL = "Level";
/**
* Retrieve context info for given context IDs.
@@ -123,6 +163,7 @@ public interface IStackTrace extends IService {
* @param range_start - start of the range (inclusive).
* @param range_end - end of the range (inclusive).
* @param done - call back interface called when operation is completed.
+ * @since 1.2
*/
IToken getChildrenRange(String parent_context_id, int range_start, int range_end, DoneGetChildren done);
diff --git a/plugins/org.eclipse.tcf.core/src/org/eclipse/tcf/services/IStreams.java b/plugins/org.eclipse.tcf.core/src/org/eclipse/tcf/services/IStreams.java
index 4a314c147..4c1e0ad46 100644
--- a/plugins/org.eclipse.tcf.core/src/org/eclipse/tcf/services/IStreams.java
+++ b/plugins/org.eclipse.tcf.core/src/org/eclipse/tcf/services/IStreams.java
@@ -22,6 +22,8 @@ import org.eclipse.tcf.protocol.IToken;
* 2. Multicast: multiple clients can receive data from same stream.
* 3. Subscription model: clients are required to expressed interest in particular streams by subscribing for the service.
* 4. Flow control: peers can throttle data flow of individual streams by delaying 'read' and 'write' commands.
+ *
+ * @noimplement This interface is not intended to be implemented by clients.
*/
public interface IStreams extends IService {
diff --git a/plugins/org.eclipse.tcf.core/src/org/eclipse/tcf/services/ISymbols.java b/plugins/org.eclipse.tcf.core/src/org/eclipse/tcf/services/ISymbols.java
index c73b9352d..176e3c0e5 100644
--- a/plugins/org.eclipse.tcf.core/src/org/eclipse/tcf/services/ISymbols.java
+++ b/plugins/org.eclipse.tcf.core/src/org/eclipse/tcf/services/ISymbols.java
@@ -17,6 +17,8 @@ import org.eclipse.tcf.protocol.IToken;
/**
* TCF symbols service interface.
+ *
+ * @noimplement This interface is not intended to be implemented by clients.
*/
public interface ISymbols extends IService {
diff --git a/plugins/org.eclipse.tcf.core/src/org/eclipse/tcf/services/ISysMonitor.java b/plugins/org.eclipse.tcf.core/src/org/eclipse/tcf/services/ISysMonitor.java
index 46e1c3459..319387cc2 100644
--- a/plugins/org.eclipse.tcf.core/src/org/eclipse/tcf/services/ISysMonitor.java
+++ b/plugins/org.eclipse.tcf.core/src/org/eclipse/tcf/services/ISysMonitor.java
@@ -22,6 +22,8 @@ import org.eclipse.tcf.protocol.IToken;
* It provides list of running processes, different process attributes like command line, environment, etc.,
* and some resource utilization data. The service can be used by a client to provide functionality
* similar to Unix 'top' utility or Windows 'Task Manager'.
+ *
+ * @noimplement This interface is not intended to be implemented by clients.
*/
public interface ISysMonitor extends IService {
diff --git a/plugins/org.eclipse.tcf.core/src/org/eclipse/tcf/services/ITerminals.java b/plugins/org.eclipse.tcf.core/src/org/eclipse/tcf/services/ITerminals.java
index 4aa41fdcd..6299438ea 100644
--- a/plugins/org.eclipse.tcf.core/src/org/eclipse/tcf/services/ITerminals.java
+++ b/plugins/org.eclipse.tcf.core/src/org/eclipse/tcf/services/ITerminals.java
@@ -18,6 +18,8 @@ import org.eclipse.tcf.protocol.IToken;
/**
* ITerminalsService allows to launch a new terminal on the remote target system.
+ *
+ * @noimplement This interface is not intended to be implemented by clients.
*/
public interface ITerminals extends IService {
diff --git a/plugins/org.eclipse.tcf.core/src/org/eclipse/tcf/util/TCFFileInputStream.java b/plugins/org.eclipse.tcf.core/src/org/eclipse/tcf/util/TCFFileInputStream.java
index e5863d508..52c1fd271 100644
--- a/plugins/org.eclipse.tcf.core/src/org/eclipse/tcf/util/TCFFileInputStream.java
+++ b/plugins/org.eclipse.tcf.core/src/org/eclipse/tcf/util/TCFFileInputStream.java
@@ -24,8 +24,6 @@ import org.eclipse.tcf.services.IFileSystem.IFileHandle;
/**
* TCFFileInputStream is high performance InputStream implementation over TCF FileSystem service.
* The class uses read-ahead buffers to achieve maximum throughput.
- *
- * @noextend This class is not intended to be subclassed by clients.
*/
public final class TCFFileInputStream extends InputStream {
diff --git a/plugins/org.eclipse.tcf.core/src/org/eclipse/tcf/util/TCFFileOutputStream.java b/plugins/org.eclipse.tcf.core/src/org/eclipse/tcf/util/TCFFileOutputStream.java
index de9f8f1a2..797ac86d1 100644
--- a/plugins/org.eclipse.tcf.core/src/org/eclipse/tcf/util/TCFFileOutputStream.java
+++ b/plugins/org.eclipse.tcf.core/src/org/eclipse/tcf/util/TCFFileOutputStream.java
@@ -25,8 +25,6 @@ import org.eclipse.tcf.services.IFileSystem.IFileHandle;
/**
* TCFFileOutputStream is high performance OutputStream implementation over TCF FileSystem service.
* The class uses write-back buffers to achieve maximum throughput.
- *
- * @noextend This class is not intended to be subclassed by clients.
*/
public final class TCFFileOutputStream extends OutputStream {
diff --git a/plugins/org.eclipse.tcf.core/src/org/eclipse/tcf/util/TCFVirtualInputStream.java b/plugins/org.eclipse.tcf.core/src/org/eclipse/tcf/util/TCFVirtualInputStream.java
index dd1c673f5..de9ce25b0 100644
--- a/plugins/org.eclipse.tcf.core/src/org/eclipse/tcf/util/TCFVirtualInputStream.java
+++ b/plugins/org.eclipse.tcf.core/src/org/eclipse/tcf/util/TCFVirtualInputStream.java
@@ -21,7 +21,7 @@ import org.eclipse.tcf.services.IStreams;
/**
* TCFVirtualInputStream is InputStream implementation over TCF Streams service.
*
- * @noextend This class is not intended to be subclassed by clients.
+ * @since 1.2
*/
public final class TCFVirtualInputStream extends InputStream {
diff --git a/plugins/org.eclipse.tcf.core/src/org/eclipse/tcf/util/TCFVirtualOutputStream.java b/plugins/org.eclipse.tcf.core/src/org/eclipse/tcf/util/TCFVirtualOutputStream.java
index e5cc8535c..3e1144820 100644
--- a/plugins/org.eclipse.tcf.core/src/org/eclipse/tcf/util/TCFVirtualOutputStream.java
+++ b/plugins/org.eclipse.tcf.core/src/org/eclipse/tcf/util/TCFVirtualOutputStream.java
@@ -22,7 +22,7 @@ import org.eclipse.tcf.services.IStreams;
/**
* TCFVirtualInputStream is OutputStream implementation over TCF Streams service.
*
- * @noextend This class is not intended to be subclassed by clients.
+ * @since 1.2
*/
public final class TCFVirtualOutputStream extends OutputStream {
diff --git a/plugins/org.eclipse.tcf.debug.ui/.project b/plugins/org.eclipse.tcf.debug.ui/.project
index ff991fefe..3d7c4449e 100644
--- a/plugins/org.eclipse.tcf.debug.ui/.project
+++ b/plugins/org.eclipse.tcf.debug.ui/.project
@@ -20,10 +20,16 @@
<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>
<filteredResources>
<filter>
diff --git a/plugins/org.eclipse.tcf.debug.ui/src/org/eclipse/tcf/internal/debug/ui/commands/DisconnectCommand.java b/plugins/org.eclipse.tcf.debug.ui/src/org/eclipse/tcf/internal/debug/ui/commands/DisconnectCommand.java
index e997c1872..85a1a7aa0 100644
--- a/plugins/org.eclipse.tcf.debug.ui/src/org/eclipse/tcf/internal/debug/ui/commands/DisconnectCommand.java
+++ b/plugins/org.eclipse.tcf.debug.ui/src/org/eclipse/tcf/internal/debug/ui/commands/DisconnectCommand.java
@@ -45,7 +45,7 @@ public class DisconnectCommand implements IDisconnectHandler {
monitor.setStatus(Status.OK_STATUS);
}
catch (Throwable x) {
- monitor.setStatus(new TCFError(x).getStatus());
+ monitor.setStatus(new TCFError(x));
}
done();
}
diff --git a/plugins/org.eclipse.tcf.debug.ui/src/org/eclipse/tcf/internal/debug/ui/model/TCFConsole.java b/plugins/org.eclipse.tcf.debug.ui/src/org/eclipse/tcf/internal/debug/ui/model/TCFConsole.java
index 8becf32fd..097187c41 100644
--- a/plugins/org.eclipse.tcf.debug.ui/src/org/eclipse/tcf/internal/debug/ui/model/TCFConsole.java
+++ b/plugins/org.eclipse.tcf.debug.ui/src/org/eclipse/tcf/internal/debug/ui/model/TCFConsole.java
@@ -37,7 +37,6 @@ import org.eclipse.tm.internal.terminal.provisional.api.ITerminalConnector;
import org.eclipse.tm.internal.terminal.provisional.api.ITerminalControl;
import org.eclipse.tm.internal.terminal.provisional.api.TerminalState;
import org.eclipse.ui.IActionBars;
-import org.eclipse.ui.PartInitException;
import org.eclipse.ui.PlatformUI;
import org.eclipse.ui.console.AbstractConsole;
import org.eclipse.ui.console.ConsolePlugin;
@@ -45,7 +44,7 @@ import org.eclipse.ui.console.IConsole;
import org.eclipse.ui.console.IConsoleManager;
import org.eclipse.ui.console.IConsoleView;
import org.eclipse.ui.part.IPageBookViewPage;
-import org.eclipse.ui.part.IPageSite;
+import org.eclipse.ui.part.Page;
@SuppressWarnings("restriction")
class TCFConsole extends AbstractConsole {
@@ -71,7 +70,7 @@ class TCFConsole extends AbstractConsole {
byte[] data;
}
- private class ViewPage implements IPageBookViewPage, ITerminalConnector, ITerminalListener {
+ private class ViewPage extends Page implements ITerminalConnector, ITerminalListener {
private final String page_id = "Page-" + page_id_cnt++;
private final LinkedList<Message> inp_queue = new LinkedList<Message>();
@@ -96,7 +95,6 @@ class TCFConsole extends AbstractConsole {
};
private ITerminalViewControl view_control;
- private IPageSite page_site;
private OutputStream rtt;
private int ws_col;
private int ws_row;
@@ -172,16 +170,6 @@ class TCFConsole extends AbstractConsole {
}
@Override
- public IPageSite getSite() {
- return page_site;
- }
-
- @Override
- public void init(IPageSite site) throws PartInitException {
- page_site = site;
- }
-
- @Override
@SuppressWarnings("rawtypes")
public Object getAdapter(Class adapter) {
return null;
diff --git a/plugins/org.eclipse.tcf.debug.ui/src/org/eclipse/tcf/internal/debug/ui/model/TCFDetailPaneFactory.java b/plugins/org.eclipse.tcf.debug.ui/src/org/eclipse/tcf/internal/debug/ui/model/TCFDetailPaneFactory.java
index 1c703d004..089d7f7a4 100644
--- a/plugins/org.eclipse.tcf.debug.ui/src/org/eclipse/tcf/internal/debug/ui/model/TCFDetailPaneFactory.java
+++ b/plugins/org.eclipse.tcf.debug.ui/src/org/eclipse/tcf/internal/debug/ui/model/TCFDetailPaneFactory.java
@@ -40,8 +40,7 @@ public class TCFDetailPaneFactory implements IDetailPaneFactory {
return TCFDetailPane.DESC;
}
- @SuppressWarnings("rawtypes")
- public Set getDetailPaneTypes(IStructuredSelection selection) {
+ public Set<String> getDetailPaneTypes(IStructuredSelection selection) {
HashSet<String> set = new HashSet<String>();
set.add(TCFDetailPane.ID);
return set;
diff --git a/plugins/org.eclipse.tcf.debug/.project b/plugins/org.eclipse.tcf.debug/.project
index 16bf40f51..7daf2d492 100644
--- a/plugins/org.eclipse.tcf.debug/.project
+++ b/plugins/org.eclipse.tcf.debug/.project
@@ -20,10 +20,16 @@
<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>
<filteredResources>
<filter>
diff --git a/plugins/org.eclipse.tcf.debug/src/org/eclipse/tcf/internal/debug/model/TCFError.java b/plugins/org.eclipse.tcf.debug/src/org/eclipse/tcf/internal/debug/model/TCFError.java
index a2d99a46b..b074dde45 100644
--- a/plugins/org.eclipse.tcf.debug/src/org/eclipse/tcf/internal/debug/model/TCFError.java
+++ b/plugins/org.eclipse.tcf.debug/src/org/eclipse/tcf/internal/debug/model/TCFError.java
@@ -11,60 +11,50 @@
package org.eclipse.tcf.internal.debug.model;
import org.eclipse.core.runtime.IStatus;
-import org.eclipse.debug.core.DebugException;
import org.eclipse.tcf.internal.debug.Activator;
-public class TCFError extends DebugException {
+public class TCFError implements IStatus {
- private static final long serialVersionUID = -4261097789666829020L;
+ private final Throwable exception;
public TCFError(Throwable exception) {
- super(new Status(exception));
+ this.exception = exception;
}
- private static class Status implements IStatus {
-
- private final Throwable exception;
-
- private Status(Throwable exception) {
- this.exception = exception;
- }
-
- public IStatus[] getChildren() {
- return null;
- }
+ public IStatus[] getChildren() {
+ return null;
+ }
- public int getCode() {
- return 1;
- }
+ public int getCode() {
+ return 1;
+ }
- public Throwable getException() {
- return exception;
- }
+ public Throwable getException() {
+ return exception;
+ }
- public String getMessage() {
- return exception.getMessage();
- }
+ public String getMessage() {
+ return exception.getMessage();
+ }
- public String getPlugin() {
- return Activator.PLUGIN_ID;
- }
+ public String getPlugin() {
+ return Activator.PLUGIN_ID;
+ }
- public int getSeverity() {
- return ERROR;
- }
+ public int getSeverity() {
+ return ERROR;
+ }
- public boolean isMultiStatus() {
- return false;
- }
+ public boolean isMultiStatus() {
+ return false;
+ }
- public boolean isOK() {
- return false;
- }
+ public boolean isOK() {
+ return false;
+ }
- public boolean matches(int severityMask) {
- return false;
- }
+ public boolean matches(int severityMask) {
+ return false;
}
}
diff --git a/plugins/org.eclipse.tcf.debug/src/org/eclipse/tcf/internal/debug/model/TCFLaunch.java b/plugins/org.eclipse.tcf.debug/src/org/eclipse/tcf/internal/debug/model/TCFLaunch.java
index 1eeb8b1e1..7bcc6f7b5 100644
--- a/plugins/org.eclipse.tcf.debug/src/org/eclipse/tcf/internal/debug/model/TCFLaunch.java
+++ b/plugins/org.eclipse.tcf.debug/src/org/eclipse/tcf/internal/debug/model/TCFLaunch.java
@@ -893,7 +893,6 @@ public class TCFLaunch extends Launch {
}
}
- @SuppressWarnings("unchecked")
private void startRemoteProcess(final ILaunchConfiguration cfg) throws Exception {
final String project = cfg.getAttribute(TCFLaunchDelegate.ATTR_PROJECT_NAME, "");
final String local_file = cfg.getAttribute(TCFLaunchDelegate.ATTR_LOCAL_PROGRAM_FILE, "");
@@ -1473,7 +1472,7 @@ public class TCFLaunch extends Launch {
// Don't report this exception - it means Eclipse is being shut down
}
catch (Exception x) {
- throw new TCFError(x);
+ throw new DebugException(new TCFError(x));
}
}
diff --git a/plugins/org.eclipse.tcf.rse/.project b/plugins/org.eclipse.tcf.rse/.project
index 79dce5e36..963953559 100644
--- a/plugins/org.eclipse.tcf.rse/.project
+++ b/plugins/org.eclipse.tcf.rse/.project
@@ -20,10 +20,16 @@
<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>
<filteredResources>
<filter>
diff --git a/plugins/org.eclipse.tcf/.project b/plugins/org.eclipse.tcf/.project
index 7ca504e20..7f9221d62 100644
--- a/plugins/org.eclipse.tcf/.project
+++ b/plugins/org.eclipse.tcf/.project
@@ -20,10 +20,16 @@
<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>
<filteredResources>
<filter>

Back to the top