mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-07 17:56:01 +02:00
Move some leftover plugins from Java 5 to Java 7.
Signed-off-by: Marc Khouzam <marc.khouzam@ericsson.com>
This commit is contained in:
parent
a04d64606e
commit
4781f20495
115 changed files with 615 additions and 244 deletions
|
@ -1,11 +1,11 @@
|
||||||
eclipse.preferences.version=1
|
eclipse.preferences.version=1
|
||||||
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
|
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
|
||||||
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
|
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7
|
||||||
org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
|
org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
|
||||||
org.eclipse.jdt.core.compiler.compliance=1.5
|
org.eclipse.jdt.core.compiler.compliance=1.7
|
||||||
org.eclipse.jdt.core.compiler.debug.lineNumber=generate
|
org.eclipse.jdt.core.compiler.debug.lineNumber=generate
|
||||||
org.eclipse.jdt.core.compiler.debug.localVariable=generate
|
org.eclipse.jdt.core.compiler.debug.localVariable=generate
|
||||||
org.eclipse.jdt.core.compiler.debug.sourceFile=generate
|
org.eclipse.jdt.core.compiler.debug.sourceFile=generate
|
||||||
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
|
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
|
||||||
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
|
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
|
||||||
org.eclipse.jdt.core.compiler.source=1.5
|
org.eclipse.jdt.core.compiler.source=1.7
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<classpath>
|
<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.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.7"/>
|
||||||
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
|
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
|
||||||
<classpathentry kind="src" path="src"/>
|
<classpathentry kind="src" path="src"/>
|
||||||
<classpathentry kind="output" path="bin"/>
|
<classpathentry kind="output" path="bin"/>
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#Fri Apr 25 15:24:03 EDT 2008
|
#Fri Apr 25 15:24:03 EDT 2008
|
||||||
eclipse.preferences.version=1
|
eclipse.preferences.version=1
|
||||||
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
|
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7
|
||||||
org.eclipse.jdt.core.compiler.compliance=1.5
|
org.eclipse.jdt.core.compiler.compliance=1.7
|
||||||
org.eclipse.jdt.core.compiler.problem.annotationSuperInterface=warning
|
org.eclipse.jdt.core.compiler.problem.annotationSuperInterface=warning
|
||||||
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
|
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
|
||||||
org.eclipse.jdt.core.compiler.problem.autoboxing=ignore
|
org.eclipse.jdt.core.compiler.problem.autoboxing=ignore
|
||||||
|
@ -62,4 +62,4 @@ org.eclipse.jdt.core.compiler.problem.unusedParameterWhenOverridingConcrete=enab
|
||||||
org.eclipse.jdt.core.compiler.problem.unusedPrivateMember=warning
|
org.eclipse.jdt.core.compiler.problem.unusedPrivateMember=warning
|
||||||
org.eclipse.jdt.core.compiler.problem.unusedWarningToken=warning
|
org.eclipse.jdt.core.compiler.problem.unusedWarningToken=warning
|
||||||
org.eclipse.jdt.core.compiler.problem.varargsArgumentNeedCast=warning
|
org.eclipse.jdt.core.compiler.problem.varargsArgumentNeedCast=warning
|
||||||
org.eclipse.jdt.core.compiler.source=1.5
|
org.eclipse.jdt.core.compiler.source=1.7
|
||||||
|
|
|
@ -23,4 +23,4 @@ Require-Bundle: org.eclipse.core.runtime,
|
||||||
org.eclipse.cdt.debug.ui.tests
|
org.eclipse.cdt.debug.ui.tests
|
||||||
Bundle-Vendor: %Bundle-Vendor.0
|
Bundle-Vendor: %Bundle-Vendor.0
|
||||||
Bundle-Localization: plugin
|
Bundle-Localization: plugin
|
||||||
Bundle-RequiredExecutionEnvironment: J2SE-1.5
|
Bundle-RequiredExecutionEnvironment: JavaSE-1.7
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<classpath>
|
<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.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.7"/>
|
||||||
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins">
|
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins">
|
||||||
<accessrules>
|
<accessrules>
|
||||||
<accessrule kind="discouraged" pattern="**/internal/**"/>
|
<accessrule kind="discouraged" pattern="**/internal/**"/>
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
#Tue Jun 01 14:51:21 MSD 2010
|
#Tue Jun 01 14:51:21 MSD 2010
|
||||||
eclipse.preferences.version=1
|
eclipse.preferences.version=1
|
||||||
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
|
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
|
||||||
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
|
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7
|
||||||
org.eclipse.jdt.core.compiler.compliance=1.5
|
org.eclipse.jdt.core.compiler.compliance=1.7
|
||||||
org.eclipse.jdt.core.compiler.doc.comment.support=enabled
|
org.eclipse.jdt.core.compiler.doc.comment.support=enabled
|
||||||
org.eclipse.jdt.core.compiler.problem.annotationSuperInterface=warning
|
org.eclipse.jdt.core.compiler.problem.annotationSuperInterface=warning
|
||||||
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
|
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
|
||||||
|
@ -68,4 +68,4 @@ org.eclipse.jdt.core.compiler.problem.unusedParameterWhenImplementingAbstract=di
|
||||||
org.eclipse.jdt.core.compiler.problem.unusedParameterWhenOverridingConcrete=disabled
|
org.eclipse.jdt.core.compiler.problem.unusedParameterWhenOverridingConcrete=disabled
|
||||||
org.eclipse.jdt.core.compiler.problem.unusedPrivateMember=warning
|
org.eclipse.jdt.core.compiler.problem.unusedPrivateMember=warning
|
||||||
org.eclipse.jdt.core.compiler.problem.varargsArgumentNeedCast=warning
|
org.eclipse.jdt.core.compiler.problem.varargsArgumentNeedCast=warning
|
||||||
org.eclipse.jdt.core.compiler.source=1.5
|
org.eclipse.jdt.core.compiler.source=1.7
|
||||||
|
|
|
@ -29,7 +29,7 @@ Require-Bundle: org.eclipse.rse.ui;bundle-version="[3.0.0,4.0.0)",
|
||||||
Bundle-ActivationPolicy: lazy
|
Bundle-ActivationPolicy: lazy
|
||||||
Eclipse-LazyStart: true
|
Eclipse-LazyStart: true
|
||||||
Bundle-Vendor: %providerName
|
Bundle-Vendor: %providerName
|
||||||
Bundle-RequiredExecutionEnvironment: J2SE-1.5
|
Bundle-RequiredExecutionEnvironment: JavaSE-1.7
|
||||||
Export-Package: org.eclipse.cdt.internal.launch.remote;x-internal:=true,
|
Export-Package: org.eclipse.cdt.internal.launch.remote;x-internal:=true,
|
||||||
org.eclipse.cdt.launch.remote;x-internal:=true,
|
org.eclipse.cdt.launch.remote;x-internal:=true,
|
||||||
org.eclipse.cdt.launch.remote.launching;x-internal:=true,
|
org.eclipse.cdt.launch.remote.launching;x-internal:=true,
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<classpath>
|
<classpath>
|
||||||
<classpathentry kind="src" path="src"/>
|
<classpathentry kind="src" path="src"/>
|
||||||
<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.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.7"/>
|
||||||
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
|
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
|
||||||
<classpathentry kind="output" path="bin"/>
|
<classpathentry kind="output" path="bin"/>
|
||||||
</classpath>
|
</classpath>
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#Tue Jun 24 11:03:46 PDT 2008
|
#Tue Jun 24 11:03:46 PDT 2008
|
||||||
eclipse.preferences.version=1
|
eclipse.preferences.version=1
|
||||||
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
|
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7
|
||||||
org.eclipse.jdt.core.compiler.compliance=1.5
|
org.eclipse.jdt.core.compiler.compliance=1.7
|
||||||
org.eclipse.jdt.core.compiler.problem.annotationSuperInterface=warning
|
org.eclipse.jdt.core.compiler.problem.annotationSuperInterface=warning
|
||||||
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
|
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
|
||||||
org.eclipse.jdt.core.compiler.problem.autoboxing=ignore
|
org.eclipse.jdt.core.compiler.problem.autoboxing=ignore
|
||||||
|
@ -62,4 +62,4 @@ org.eclipse.jdt.core.compiler.problem.unusedParameterWhenOverridingConcrete=disa
|
||||||
org.eclipse.jdt.core.compiler.problem.unusedPrivateMember=warning
|
org.eclipse.jdt.core.compiler.problem.unusedPrivateMember=warning
|
||||||
org.eclipse.jdt.core.compiler.problem.unusedWarningToken=warning
|
org.eclipse.jdt.core.compiler.problem.unusedWarningToken=warning
|
||||||
org.eclipse.jdt.core.compiler.problem.varargsArgumentNeedCast=warning
|
org.eclipse.jdt.core.compiler.problem.varargsArgumentNeedCast=warning
|
||||||
org.eclipse.jdt.core.compiler.source=1.5
|
org.eclipse.jdt.core.compiler.source=1.7
|
||||||
|
|
|
@ -24,5 +24,5 @@ Export-Package: org.eclipse.cdt.examples.dsf.pda.ui,
|
||||||
org.eclipse.cdt.examples.dsf.pda.ui.breakpoints,
|
org.eclipse.cdt.examples.dsf.pda.ui.breakpoints,
|
||||||
org.eclipse.cdt.examples.dsf.pda.ui.editor,
|
org.eclipse.cdt.examples.dsf.pda.ui.editor,
|
||||||
org.eclipse.cdt.examples.dsf.pda.ui.launcher
|
org.eclipse.cdt.examples.dsf.pda.ui.launcher
|
||||||
Bundle-RequiredExecutionEnvironment: J2SE-1.5
|
Bundle-RequiredExecutionEnvironment: JavaSE-1.7
|
||||||
Bundle-Vendor: %providerName
|
Bundle-Vendor: %providerName
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
<classpath>
|
<classpath>
|
||||||
<classpathentry kind="src" path="src"/>
|
<classpathentry kind="src" path="src"/>
|
||||||
<classpathentry kind="src" path="pdavm/src"/>
|
<classpathentry kind="src" path="pdavm/src"/>
|
||||||
<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.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.7"/>
|
||||||
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
|
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
|
||||||
<classpathentry kind="output" path="bin"/>
|
<classpathentry kind="output" path="bin"/>
|
||||||
</classpath>
|
</classpath>
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
#Tue Jun 24 11:03:29 PDT 2008
|
#Tue Jun 24 11:03:29 PDT 2008
|
||||||
eclipse.preferences.version=1
|
eclipse.preferences.version=1
|
||||||
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
|
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
|
||||||
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
|
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7
|
||||||
org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
|
org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
|
||||||
org.eclipse.jdt.core.compiler.compliance=1.5
|
org.eclipse.jdt.core.compiler.compliance=1.7
|
||||||
org.eclipse.jdt.core.compiler.debug.lineNumber=generate
|
org.eclipse.jdt.core.compiler.debug.lineNumber=generate
|
||||||
org.eclipse.jdt.core.compiler.debug.localVariable=generate
|
org.eclipse.jdt.core.compiler.debug.localVariable=generate
|
||||||
org.eclipse.jdt.core.compiler.debug.sourceFile=generate
|
org.eclipse.jdt.core.compiler.debug.sourceFile=generate
|
||||||
|
@ -67,4 +67,4 @@ org.eclipse.jdt.core.compiler.problem.unusedParameterWhenOverridingConcrete=disa
|
||||||
org.eclipse.jdt.core.compiler.problem.unusedPrivateMember=warning
|
org.eclipse.jdt.core.compiler.problem.unusedPrivateMember=warning
|
||||||
org.eclipse.jdt.core.compiler.problem.unusedWarningToken=warning
|
org.eclipse.jdt.core.compiler.problem.unusedWarningToken=warning
|
||||||
org.eclipse.jdt.core.compiler.problem.varargsArgumentNeedCast=warning
|
org.eclipse.jdt.core.compiler.problem.varargsArgumentNeedCast=warning
|
||||||
org.eclipse.jdt.core.compiler.source=1.5
|
org.eclipse.jdt.core.compiler.source=1.7
|
||||||
|
|
|
@ -19,6 +19,6 @@ Export-Package: org.eclipse.cdt.examples.dsf.pda,
|
||||||
org.eclipse.cdt.examples.dsf.pda.service,
|
org.eclipse.cdt.examples.dsf.pda.service,
|
||||||
org.eclipse.cdt.examples.dsf.pda.service.commands,
|
org.eclipse.cdt.examples.dsf.pda.service.commands,
|
||||||
org.eclipse.cdt.examples.dsf.pda.sourcelookup
|
org.eclipse.cdt.examples.dsf.pda.sourcelookup
|
||||||
Bundle-RequiredExecutionEnvironment: J2SE-1.5
|
Bundle-RequiredExecutionEnvironment: JavaSE-1.7
|
||||||
Bundle-Vendor: %providerName
|
Bundle-Vendor: %providerName
|
||||||
Import-Package: com.ibm.icu.text
|
Import-Package: com.ibm.icu.text
|
||||||
|
|
|
@ -52,6 +52,7 @@ public class PDALineBreakpoint extends LineBreakpoint {
|
||||||
*/
|
*/
|
||||||
public PDALineBreakpoint(final IResource resource, final int lineNumber) throws CoreException {
|
public PDALineBreakpoint(final IResource resource, final int lineNumber) throws CoreException {
|
||||||
IWorkspaceRunnable runnable = new IWorkspaceRunnable() {
|
IWorkspaceRunnable runnable = new IWorkspaceRunnable() {
|
||||||
|
@Override
|
||||||
public void run(IProgressMonitor monitor) throws CoreException {
|
public void run(IProgressMonitor monitor) throws CoreException {
|
||||||
IMarker marker = resource.createMarker("org.eclipse.cdt.examples.dsf.pda.markerType.lineBreakpoint");
|
IMarker marker = resource.createMarker("org.eclipse.cdt.examples.dsf.pda.markerType.lineBreakpoint");
|
||||||
setMarker(marker);
|
setMarker(marker);
|
||||||
|
@ -67,6 +68,7 @@ public class PDALineBreakpoint extends LineBreakpoint {
|
||||||
/* (non-Javadoc)
|
/* (non-Javadoc)
|
||||||
* @see org.eclipse.debug.core.model.IBreakpoint#getModelIdentifier()
|
* @see org.eclipse.debug.core.model.IBreakpoint#getModelIdentifier()
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
public String getModelIdentifier() {
|
public String getModelIdentifier() {
|
||||||
return PDAPlugin.ID_PDA_DEBUG_MODEL;
|
return PDAPlugin.ID_PDA_DEBUG_MODEL;
|
||||||
}
|
}
|
||||||
|
|
|
@ -63,6 +63,7 @@ public class PDAWatchpoint extends PDALineBreakpoint implements IWatchpoint {
|
||||||
*/
|
*/
|
||||||
public PDAWatchpoint(final IResource resource, final int lineNumber, final String functionName, final String varName, final boolean access, final boolean modification) throws CoreException {
|
public PDAWatchpoint(final IResource resource, final int lineNumber, final String functionName, final String varName, final boolean access, final boolean modification) throws CoreException {
|
||||||
IWorkspaceRunnable runnable = new IWorkspaceRunnable() {
|
IWorkspaceRunnable runnable = new IWorkspaceRunnable() {
|
||||||
|
@Override
|
||||||
public void run(IProgressMonitor monitor) throws CoreException {
|
public void run(IProgressMonitor monitor) throws CoreException {
|
||||||
IMarker marker = resource.createMarker("org.eclipse.cdt.examples.dsf.pda.markerType.watchpoint");
|
IMarker marker = resource.createMarker("org.eclipse.cdt.examples.dsf.pda.markerType.watchpoint");
|
||||||
setMarker(marker);
|
setMarker(marker);
|
||||||
|
@ -81,6 +82,7 @@ public class PDAWatchpoint extends PDALineBreakpoint implements IWatchpoint {
|
||||||
/* (non-Javadoc)
|
/* (non-Javadoc)
|
||||||
* @see org.eclipse.debug.core.model.IWatchpoint#isAccess()
|
* @see org.eclipse.debug.core.model.IWatchpoint#isAccess()
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
public boolean isAccess() throws CoreException {
|
public boolean isAccess() throws CoreException {
|
||||||
return getMarker().getAttribute(ACCESS, true);
|
return getMarker().getAttribute(ACCESS, true);
|
||||||
}
|
}
|
||||||
|
@ -88,6 +90,7 @@ public class PDAWatchpoint extends PDALineBreakpoint implements IWatchpoint {
|
||||||
/* (non-Javadoc)
|
/* (non-Javadoc)
|
||||||
* @see org.eclipse.debug.core.model.IWatchpoint#setAccess(boolean)
|
* @see org.eclipse.debug.core.model.IWatchpoint#setAccess(boolean)
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
public void setAccess(boolean access) throws CoreException {
|
public void setAccess(boolean access) throws CoreException {
|
||||||
setAttribute(ACCESS, access);
|
setAttribute(ACCESS, access);
|
||||||
}
|
}
|
||||||
|
@ -95,6 +98,7 @@ public class PDAWatchpoint extends PDALineBreakpoint implements IWatchpoint {
|
||||||
/* (non-Javadoc)
|
/* (non-Javadoc)
|
||||||
* @see org.eclipse.debug.core.model.IWatchpoint#isModification()
|
* @see org.eclipse.debug.core.model.IWatchpoint#isModification()
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
public boolean isModification() throws CoreException {
|
public boolean isModification() throws CoreException {
|
||||||
return getMarker().getAttribute(MODIFICATION, true);
|
return getMarker().getAttribute(MODIFICATION, true);
|
||||||
}
|
}
|
||||||
|
@ -102,6 +106,7 @@ public class PDAWatchpoint extends PDALineBreakpoint implements IWatchpoint {
|
||||||
/* (non-Javadoc)
|
/* (non-Javadoc)
|
||||||
* @see org.eclipse.debug.core.model.IWatchpoint#setModification(boolean)
|
* @see org.eclipse.debug.core.model.IWatchpoint#setModification(boolean)
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
public void setModification(boolean modification) throws CoreException {
|
public void setModification(boolean modification) throws CoreException {
|
||||||
setAttribute(MODIFICATION, modification);
|
setAttribute(MODIFICATION, modification);
|
||||||
}
|
}
|
||||||
|
@ -109,6 +114,7 @@ public class PDAWatchpoint extends PDALineBreakpoint implements IWatchpoint {
|
||||||
/* (non-Javadoc)
|
/* (non-Javadoc)
|
||||||
* @see org.eclipse.debug.core.model.IWatchpoint#supportsAccess()
|
* @see org.eclipse.debug.core.model.IWatchpoint#supportsAccess()
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
public boolean supportsAccess() {
|
public boolean supportsAccess() {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
@ -116,6 +122,7 @@ public class PDAWatchpoint extends PDALineBreakpoint implements IWatchpoint {
|
||||||
/* (non-Javadoc)
|
/* (non-Javadoc)
|
||||||
* @see org.eclipse.debug.core.model.IWatchpoint#supportsModification()
|
* @see org.eclipse.debug.core.model.IWatchpoint#supportsModification()
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
public boolean supportsModification() {
|
public boolean supportsModification() {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
|
@ -80,6 +80,7 @@ public class PDALaunchDelegate extends LaunchConfigurationDelegate {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void launch(ILaunchConfiguration configuration, String mode, ILaunch launch, IProgressMonitor monitor) throws CoreException {
|
public void launch(ILaunchConfiguration configuration, String mode, ILaunch launch, IProgressMonitor monitor) throws CoreException {
|
||||||
String program = configuration.getAttribute(PDAPlugin.ATTR_PDA_PROGRAM, (String)null);
|
String program = configuration.getAttribute(PDAPlugin.ATTR_PDA_PROGRAM, (String)null);
|
||||||
if (program == null) {
|
if (program == null) {
|
||||||
|
|
|
@ -67,10 +67,12 @@ public class PDABreakpointAttributeTranslator implements IBreakpointAttributeTra
|
||||||
|
|
||||||
// PDA breakpoints translator doesn't keep any state and it doesn't
|
// PDA breakpoints translator doesn't keep any state and it doesn't
|
||||||
// need to initialize or clean up.
|
// need to initialize or clean up.
|
||||||
|
@Override
|
||||||
public void initialize(BreakpointsMediator2 mediator) {
|
public void initialize(BreakpointsMediator2 mediator) {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@Override
|
||||||
public void dispose() {
|
public void dispose() {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -208,6 +210,7 @@ public class PDABreakpointAttributeTranslator implements IBreakpointAttributeTra
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public boolean canUpdateAttributes(IBreakpoint bp, IBreakpointsTargetDMContext context,
|
public boolean canUpdateAttributes(IBreakpoint bp, IBreakpointsTargetDMContext context,
|
||||||
Map<String, Object> attributes)
|
Map<String, Object> attributes)
|
||||||
{
|
{
|
||||||
|
@ -222,11 +225,13 @@ public class PDABreakpointAttributeTranslator implements IBreakpointAttributeTra
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public boolean supportsBreakpoint(IBreakpoint bp) {
|
public boolean supportsBreakpoint(IBreakpoint bp) {
|
||||||
return bp.getModelIdentifier().equals(PDAPlugin.ID_PDA_DEBUG_MODEL) ||
|
return bp.getModelIdentifier().equals(PDAPlugin.ID_PDA_DEBUG_MODEL) ||
|
||||||
bp instanceof ICLineBreakpoint || bp instanceof ICWatchpoint;
|
bp instanceof ICLineBreakpoint || bp instanceof ICWatchpoint;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void updateBreakpointsStatus(
|
public void updateBreakpointsStatus(
|
||||||
Map<IBreakpoint, Map<IBreakpointsTargetDMContext, ITargetBreakpointInfo[]>> bpsInfo,
|
Map<IBreakpoint, Map<IBreakpointsTargetDMContext, ITargetBreakpointInfo[]>> bpsInfo,
|
||||||
BreakpointEventType eventType)
|
BreakpointEventType eventType)
|
||||||
|
@ -251,6 +256,7 @@ public class PDABreakpointAttributeTranslator implements IBreakpointAttributeTra
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void resolveBreakpoint(IBreakpointsTargetDMContext context, IBreakpoint breakpoint,
|
public void resolveBreakpoint(IBreakpointsTargetDMContext context, IBreakpoint breakpoint,
|
||||||
Map<String, Object> bpAttributes, DataRequestMonitor<List<Map<String, Object>>> drm)
|
Map<String, Object> bpAttributes, DataRequestMonitor<List<Map<String, Object>>> drm)
|
||||||
{
|
{
|
||||||
|
@ -262,6 +268,7 @@ public class PDABreakpointAttributeTranslator implements IBreakpointAttributeTra
|
||||||
drm.done();
|
drm.done();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public Map<String, Object> getAllBreakpointAttributes(IBreakpoint platformBP, boolean bpManagerEnabled)
|
public Map<String, Object> getAllBreakpointAttributes(IBreakpoint platformBP, boolean bpManagerEnabled)
|
||||||
throws CoreException
|
throws CoreException
|
||||||
{
|
{
|
||||||
|
@ -272,6 +279,7 @@ public class PDABreakpointAttributeTranslator implements IBreakpointAttributeTra
|
||||||
return marker.getAttributes();
|
return marker.getAttributes();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public Map<String, Object> convertAttributes(Map<String, Object> platformBPAttr) {
|
public Map<String, Object> convertAttributes(Map<String, Object> platformBPAttr) {
|
||||||
return platformBPAttr;
|
return platformBPAttr;
|
||||||
}
|
}
|
||||||
|
|
|
@ -162,6 +162,7 @@ public class PDABreakpoints extends AbstractDsfService implements IBreakpoints
|
||||||
return PDAPlugin.getBundleContext();
|
return PDAPlugin.getBundleContext();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void getBreakpoints(final IBreakpointsTargetDMContext context, final DataRequestMonitor<IBreakpointDMContext[]> rm) {
|
public void getBreakpoints(final IBreakpointsTargetDMContext context, final DataRequestMonitor<IBreakpointDMContext[]> rm) {
|
||||||
// Validate the context
|
// Validate the context
|
||||||
if (!fCommandControl.getContext().equals(context)) {
|
if (!fCommandControl.getContext().equals(context)) {
|
||||||
|
@ -173,10 +174,12 @@ public class PDABreakpoints extends AbstractDsfService implements IBreakpoints
|
||||||
rm.done();
|
rm.done();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void getBreakpointDMData(IBreakpointDMContext dmc, DataRequestMonitor<IBreakpointDMData> rm) {
|
public void getBreakpointDMData(IBreakpointDMContext dmc, DataRequestMonitor<IBreakpointDMData> rm) {
|
||||||
PDAPlugin.failRequest(rm, NOT_SUPPORTED, "Retrieving breakpoint data is not supported");
|
PDAPlugin.failRequest(rm, NOT_SUPPORTED, "Retrieving breakpoint data is not supported");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void insertBreakpoint(IBreakpointsTargetDMContext context, Map<String, Object> attributes,
|
public void insertBreakpoint(IBreakpointsTargetDMContext context, Map<String, Object> attributes,
|
||||||
DataRequestMonitor<IBreakpointDMContext> rm)
|
DataRequestMonitor<IBreakpointDMContext> rm)
|
||||||
{
|
{
|
||||||
|
@ -328,6 +331,7 @@ public class PDABreakpoints extends AbstractDsfService implements IBreakpoints
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void removeBreakpoint(IBreakpointDMContext bpCtx, RequestMonitor rm) {
|
public void removeBreakpoint(IBreakpointDMContext bpCtx, RequestMonitor rm) {
|
||||||
if (!fBreakpoints.contains(bpCtx)) {
|
if (!fBreakpoints.contains(bpCtx)) {
|
||||||
PDAPlugin.failRequest(rm, REQUEST_FAILED, "Breakpoint already removed");
|
PDAPlugin.failRequest(rm, REQUEST_FAILED, "Breakpoint already removed");
|
||||||
|
@ -364,6 +368,7 @@ public class PDABreakpoints extends AbstractDsfService implements IBreakpoints
|
||||||
new DataRequestMonitor<PDACommandResult>(getExecutor(), rm));
|
new DataRequestMonitor<PDACommandResult>(getExecutor(), rm));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void updateBreakpoint(final IBreakpointDMContext bpCtx, Map<String, Object> attributes, final RequestMonitor rm) {
|
public void updateBreakpoint(final IBreakpointDMContext bpCtx, Map<String, Object> attributes, final RequestMonitor rm) {
|
||||||
if (!fBreakpoints.contains(bpCtx)) {
|
if (!fBreakpoints.contains(bpCtx)) {
|
||||||
PDAPlugin.failRequest(rm, REQUEST_FAILED, "Breakpoint not installed");
|
PDAPlugin.failRequest(rm, REQUEST_FAILED, "Breakpoint not installed");
|
||||||
|
|
|
@ -131,6 +131,7 @@ public class PDACommandControl extends AbstractDsfService implements ICommandCon
|
||||||
|
|
||||||
// Add a listener for PDA events to track the started/terminated state.
|
// Add a listener for PDA events to track the started/terminated state.
|
||||||
addEventListener(new IEventListener() {
|
addEventListener(new IEventListener() {
|
||||||
|
@Override
|
||||||
public void eventReceived(Object output) {
|
public void eventReceived(Object output) {
|
||||||
if ("started 1".equals(output)) {
|
if ("started 1".equals(output)) {
|
||||||
setStarted();
|
setStarted();
|
||||||
|
@ -222,6 +223,7 @@ public class PDACommandControl extends AbstractDsfService implements ICommandCon
|
||||||
// Process the reply in the executor thread.
|
// Process the reply in the executor thread.
|
||||||
try {
|
try {
|
||||||
getExecutor().execute(new DsfRunnable() {
|
getExecutor().execute(new DsfRunnable() {
|
||||||
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
processCommandDone(commandHandle, response);
|
processCommandDone(commandHandle, response);
|
||||||
}
|
}
|
||||||
|
@ -238,6 +240,7 @@ public class PDACommandControl extends AbstractDsfService implements ICommandCon
|
||||||
// Process error it in the executor thread
|
// Process error it in the executor thread
|
||||||
try {
|
try {
|
||||||
getExecutor().execute(new DsfRunnable() {
|
getExecutor().execute(new DsfRunnable() {
|
||||||
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
processCommandException(commandHandle, e);
|
processCommandException(commandHandle, e);
|
||||||
}
|
}
|
||||||
|
@ -278,6 +281,7 @@ public class PDACommandControl extends AbstractDsfService implements ICommandCon
|
||||||
try {
|
try {
|
||||||
// Process the event in executor thread.
|
// Process the event in executor thread.
|
||||||
getExecutor().execute(new DsfRunnable() {
|
getExecutor().execute(new DsfRunnable() {
|
||||||
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
processEventReceived(event);
|
processEventReceived(event);
|
||||||
}
|
}
|
||||||
|
@ -295,6 +299,7 @@ public class PDACommandControl extends AbstractDsfService implements ICommandCon
|
||||||
// has exited. Call setTerminated() in executor thread.
|
// has exited. Call setTerminated() in executor thread.
|
||||||
try {
|
try {
|
||||||
getExecutor().execute(new DsfRunnable() {
|
getExecutor().execute(new DsfRunnable() {
|
||||||
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
setTerminated();
|
setTerminated();
|
||||||
}
|
}
|
||||||
|
@ -306,8 +311,10 @@ public class PDACommandControl extends AbstractDsfService implements ICommandCon
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public <V extends ICommandResult> ICommandToken queueCommand(final ICommand<V> command, DataRequestMonitor<V> rm) {
|
public <V extends ICommandResult> ICommandToken queueCommand(final ICommand<V> command, DataRequestMonitor<V> rm) {
|
||||||
ICommandToken token = new ICommandToken() {
|
ICommandToken token = new ICommandToken() {
|
||||||
|
@Override
|
||||||
public ICommand<?> getCommand() {
|
public ICommand<?> getCommand() {
|
||||||
return command;
|
return command;
|
||||||
}
|
}
|
||||||
|
@ -332,6 +339,7 @@ public class PDACommandControl extends AbstractDsfService implements ICommandCon
|
||||||
// In a separate dispatch cycle. This allows command listeners to respond to the
|
// In a separate dispatch cycle. This allows command listeners to respond to the
|
||||||
// command queued event.
|
// command queued event.
|
||||||
getExecutor().execute(new DsfRunnable() {
|
getExecutor().execute(new DsfRunnable() {
|
||||||
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
processQueues();
|
processQueues();
|
||||||
}
|
}
|
||||||
|
@ -342,6 +350,7 @@ public class PDACommandControl extends AbstractDsfService implements ICommandCon
|
||||||
return token;
|
return token;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void removeCommand(ICommandToken token) {
|
public void removeCommand(ICommandToken token) {
|
||||||
// Removes given command from the queue and notify the listeners
|
// Removes given command from the queue and notify the listeners
|
||||||
for (Iterator<CommandHandle> itr = fCommandQueue.iterator(); itr.hasNext();) {
|
for (Iterator<CommandHandle> itr = fCommandQueue.iterator(); itr.hasNext();) {
|
||||||
|
@ -355,18 +364,22 @@ public class PDACommandControl extends AbstractDsfService implements ICommandCon
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void addCommandListener(ICommandListener processor) {
|
public void addCommandListener(ICommandListener processor) {
|
||||||
fCommandListeners.add(processor);
|
fCommandListeners.add(processor);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void removeCommandListener(ICommandListener processor) {
|
public void removeCommandListener(ICommandListener processor) {
|
||||||
fCommandListeners.remove(processor);
|
fCommandListeners.remove(processor);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void addEventListener(IEventListener processor) {
|
public void addEventListener(IEventListener processor) {
|
||||||
fEventListeners.add(processor);
|
fEventListeners.add(processor);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void removeEventListener(IEventListener processor) {
|
public void removeEventListener(IEventListener processor) {
|
||||||
fEventListeners.remove(processor);
|
fEventListeners.remove(processor);
|
||||||
}
|
}
|
||||||
|
@ -456,11 +469,13 @@ public class PDACommandControl extends AbstractDsfService implements ICommandCon
|
||||||
* Return the PDA Debugger top-level Data Model context.
|
* Return the PDA Debugger top-level Data Model context.
|
||||||
* @see PDAVirtualMachineDMContext
|
* @see PDAVirtualMachineDMContext
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
@ThreadSafe
|
@ThreadSafe
|
||||||
public PDAVirtualMachineDMContext getContext() {
|
public PDAVirtualMachineDMContext getContext() {
|
||||||
return fDMContext;
|
return fDMContext;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public String getId() {
|
public String getId() {
|
||||||
return fBackend.getPorgramName();
|
return fBackend.getPorgramName();
|
||||||
}
|
}
|
||||||
|
@ -479,6 +494,7 @@ public class PDACommandControl extends AbstractDsfService implements ICommandCon
|
||||||
/**
|
/**
|
||||||
* Returns whether the PDA debugger has started and is processing commands.
|
* Returns whether the PDA debugger has started and is processing commands.
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
public boolean isActive() {
|
public boolean isActive() {
|
||||||
return fStarted && !isTerminated();
|
return fStarted && !isTerminated();
|
||||||
}
|
}
|
||||||
|
|
|
@ -56,6 +56,7 @@ public class PDAExpressions extends AbstractDsfService implements ICachingServic
|
||||||
fExpression = expressin;
|
fExpression = expressin;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public String getExpression() {
|
public String getExpression() {
|
||||||
return fExpression;
|
return fExpression;
|
||||||
}
|
}
|
||||||
|
@ -89,30 +90,37 @@ public class PDAExpressions extends AbstractDsfService implements ICachingServic
|
||||||
fExpression = expression;
|
fExpression = expression;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public BasicType getBasicType() {
|
public BasicType getBasicType() {
|
||||||
return BasicType.basic;
|
return BasicType.basic;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public String getEncoding() {
|
public String getEncoding() {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public Map<String, Integer> getEnumerations() {
|
public Map<String, Integer> getEnumerations() {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public String getName() {
|
public String getName() {
|
||||||
return fExpression;
|
return fExpression;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public IRegisterDMContext getRegister() {
|
public IRegisterDMContext getRegister() {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public String getTypeId() {
|
public String getTypeId() {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public String getTypeName() {
|
public String getTypeName() {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
@ -147,6 +155,7 @@ public class PDAExpressions extends AbstractDsfService implements ICachingServic
|
||||||
return baseToString() + ".invalid_expr[" + fExpression + "]";
|
return baseToString() + ".invalid_expr[" + fExpression + "]";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public String getExpression() {
|
public String getExpression() {
|
||||||
return fExpression;
|
return fExpression;
|
||||||
}
|
}
|
||||||
|
@ -206,11 +215,13 @@ public class PDAExpressions extends AbstractDsfService implements ICachingServic
|
||||||
super.shutdown(rm);
|
super.shutdown(rm);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void canWriteExpression(IExpressionDMContext expressionContext, DataRequestMonitor<Boolean> rm) {
|
public void canWriteExpression(IExpressionDMContext expressionContext, DataRequestMonitor<Boolean> rm) {
|
||||||
rm.setData(true);
|
rm.setData(true);
|
||||||
rm.done();
|
rm.done();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public IExpressionDMContext createExpression(IDMContext ctx, String expression) {
|
public IExpressionDMContext createExpression(IDMContext ctx, String expression) {
|
||||||
// Create an expression based on the given context and string expression.
|
// Create an expression based on the given context and string expression.
|
||||||
PDAThreadDMContext threadCtx = DMContexts.getAncestorOfType(ctx, PDAThreadDMContext.class);
|
PDAThreadDMContext threadCtx = DMContexts.getAncestorOfType(ctx, PDAThreadDMContext.class);
|
||||||
|
@ -232,14 +243,17 @@ public class PDAExpressions extends AbstractDsfService implements ICachingServic
|
||||||
return new InvalidExpressionDMContext(getSession().getId(), ctx, expression);
|
return new InvalidExpressionDMContext(getSession().getId(), ctx, expression);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void getBaseExpressions(IExpressionDMContext exprContext, DataRequestMonitor<IExpressionDMContext[]> rm) {
|
public void getBaseExpressions(IExpressionDMContext exprContext, DataRequestMonitor<IExpressionDMContext[]> rm) {
|
||||||
PDAPlugin.failRequest(rm, NOT_SUPPORTED, "Not supported");
|
PDAPlugin.failRequest(rm, NOT_SUPPORTED, "Not supported");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void getExpressionAddressData(IExpressionDMContext dmc, DataRequestMonitor<IExpressionDMAddress> rm) {
|
public void getExpressionAddressData(IExpressionDMContext dmc, DataRequestMonitor<IExpressionDMAddress> rm) {
|
||||||
PDAPlugin.failRequest(rm, NOT_SUPPORTED, "Not supported");
|
PDAPlugin.failRequest(rm, NOT_SUPPORTED, "Not supported");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void getExpressionData(final IExpressionDMContext exprCtx, final DataRequestMonitor<IExpressionDMData> rm) {
|
public void getExpressionData(final IExpressionDMContext exprCtx, final DataRequestMonitor<IExpressionDMData> rm) {
|
||||||
// Since expression data doesn't contain any more information than the
|
// Since expression data doesn't contain any more information than the
|
||||||
// context, it doesn't require any debugger commmands.
|
// context, it doesn't require any debugger commmands.
|
||||||
|
@ -251,6 +265,7 @@ public class PDAExpressions extends AbstractDsfService implements ICachingServic
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void getSubExpressionCount(final IExpressionDMContext exprCtx, final DataRequestMonitor<Integer> rm) {
|
public void getSubExpressionCount(final IExpressionDMContext exprCtx, final DataRequestMonitor<Integer> rm) {
|
||||||
if (exprCtx instanceof ExpressionDMContext) {
|
if (exprCtx instanceof ExpressionDMContext) {
|
||||||
final PDAThreadDMContext threadCtx = DMContexts.getAncestorOfType(exprCtx, PDAThreadDMContext.class);
|
final PDAThreadDMContext threadCtx = DMContexts.getAncestorOfType(exprCtx, PDAThreadDMContext.class);
|
||||||
|
@ -283,10 +298,12 @@ public class PDAExpressions extends AbstractDsfService implements ICachingServic
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void getSubExpressions(IExpressionDMContext exprCtx, DataRequestMonitor<IExpressionDMContext[]> rm) {
|
public void getSubExpressions(IExpressionDMContext exprCtx, DataRequestMonitor<IExpressionDMContext[]> rm) {
|
||||||
getSubExpressions(exprCtx, -1, -1, rm);
|
getSubExpressions(exprCtx, -1, -1, rm);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void getSubExpressions(final IExpressionDMContext exprCtx, final int startIndexArg, final int lengthArg,
|
public void getSubExpressions(final IExpressionDMContext exprCtx, final int startIndexArg, final int lengthArg,
|
||||||
final DataRequestMonitor<IExpressionDMContext[]> rm)
|
final DataRequestMonitor<IExpressionDMContext[]> rm)
|
||||||
{
|
{
|
||||||
|
@ -328,6 +345,7 @@ public class PDAExpressions extends AbstractDsfService implements ICachingServic
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void getAvailableFormats(IFormattedDataDMContext dmc, final DataRequestMonitor<String[]> rm) {
|
public void getAvailableFormats(IFormattedDataDMContext dmc, final DataRequestMonitor<String[]> rm) {
|
||||||
getFormattedExpressionValue(
|
getFormattedExpressionValue(
|
||||||
new FormattedValueDMContext(this, dmc, NATURAL_FORMAT),
|
new FormattedValueDMContext(this, dmc, NATURAL_FORMAT),
|
||||||
|
@ -352,11 +370,13 @@ public class PDAExpressions extends AbstractDsfService implements ICachingServic
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public FormattedValueDMContext getFormattedValueContext(IFormattedDataDMContext exprCtx, String formatId) {
|
public FormattedValueDMContext getFormattedValueContext(IFormattedDataDMContext exprCtx, String formatId) {
|
||||||
// Creates a context that can be used to retrieve a formatted value.
|
// Creates a context that can be used to retrieve a formatted value.
|
||||||
return new FormattedValueDMContext(this, exprCtx, formatId);
|
return new FormattedValueDMContext(this, exprCtx, formatId);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void getFormattedExpressionValue(FormattedValueDMContext formattedCtx,
|
public void getFormattedExpressionValue(FormattedValueDMContext formattedCtx,
|
||||||
final DataRequestMonitor<FormattedValueDMData> rm)
|
final DataRequestMonitor<FormattedValueDMData> rm)
|
||||||
{
|
{
|
||||||
|
@ -436,6 +456,7 @@ public class PDAExpressions extends AbstractDsfService implements ICachingServic
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@Override
|
||||||
public void writeExpression(final IExpressionDMContext exprCtx, final String exprValue, String formatId,
|
public void writeExpression(final IExpressionDMContext exprCtx, final String exprValue, String formatId,
|
||||||
final RequestMonitor rm)
|
final RequestMonitor rm)
|
||||||
{
|
{
|
||||||
|
@ -535,6 +556,7 @@ public class PDAExpressions extends AbstractDsfService implements ICachingServic
|
||||||
fCommandCache.reset(DMContexts.getAncestorOfType(e.getDMContext(), PDAThreadDMContext.class));
|
fCommandCache.reset(DMContexts.getAncestorOfType(e.getDMContext(), PDAThreadDMContext.class));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void flushCache(IDMContext context) {
|
public void flushCache(IDMContext context) {
|
||||||
fCommandCache.reset(context);
|
fCommandCache.reset(context);
|
||||||
}
|
}
|
||||||
|
|
|
@ -127,7 +127,9 @@ public class PDARegisters extends AbstractDsfService
|
||||||
public RegisterGroupDMData(String name) {
|
public RegisterGroupDMData(String name) {
|
||||||
fName = name;
|
fName = name;
|
||||||
}
|
}
|
||||||
|
@Override
|
||||||
public String getName() { return fName; }
|
public String getName() { return fName; }
|
||||||
|
@Override
|
||||||
public String getDescription() { return "Description of the " + fName + " register group"; }
|
public String getDescription() { return "Description of the " + fName + " register group"; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -139,15 +141,24 @@ public class PDARegisters extends AbstractDsfService
|
||||||
fRegister = reg;
|
fRegister = reg;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public boolean isReadable() { return true; }
|
public boolean isReadable() { return true; }
|
||||||
|
@Override
|
||||||
public boolean isReadOnce() { return false; }
|
public boolean isReadOnce() { return false; }
|
||||||
|
@Override
|
||||||
public boolean isWriteable() { return fRegister.fWritable; }
|
public boolean isWriteable() { return fRegister.fWritable; }
|
||||||
|
@Override
|
||||||
public boolean isWriteOnce() { return false; }
|
public boolean isWriteOnce() { return false; }
|
||||||
|
@Override
|
||||||
public boolean hasSideEffects() { return false; }
|
public boolean hasSideEffects() { return false; }
|
||||||
|
@Override
|
||||||
public boolean isVolatile() { return true; }
|
public boolean isVolatile() { return true; }
|
||||||
|
|
||||||
|
@Override
|
||||||
public boolean isFloat() { return false; }
|
public boolean isFloat() { return false; }
|
||||||
|
@Override
|
||||||
public String getName() { return fRegister.fName; }
|
public String getName() { return fRegister.fName; }
|
||||||
|
@Override
|
||||||
public String getDescription() { return "Description of the " + fRegister.fName + " register"; }
|
public String getDescription() { return "Description of the " + fRegister.fName + " register"; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -161,7 +172,9 @@ public class PDARegisters extends AbstractDsfService
|
||||||
final private BigInteger fValue;
|
final private BigInteger fValue;
|
||||||
final private int fNumBits;
|
final private int fNumBits;
|
||||||
|
|
||||||
|
@Override
|
||||||
public String getShortName() { return fName; }
|
public String getShortName() { return fName; }
|
||||||
|
@Override
|
||||||
public String getLongName() { return fName; }
|
public String getLongName() { return fName; }
|
||||||
|
|
||||||
public BigInteger getValue() { return fValue; }
|
public BigInteger getValue() { return fValue; }
|
||||||
|
@ -193,7 +206,9 @@ public class PDARegisters extends AbstractDsfService
|
||||||
|
|
||||||
fBitGroups = new IBitGroup[] {
|
fBitGroups = new IBitGroup[] {
|
||||||
new IBitGroup() {
|
new IBitGroup() {
|
||||||
|
@Override
|
||||||
public int startBit() { return fBitField.fOffset; }
|
public int startBit() { return fBitField.fOffset; }
|
||||||
|
@Override
|
||||||
public int bitCount() { return fBitField.fCount; }
|
public int bitCount() { return fBitField.fCount; }
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
@ -212,21 +227,33 @@ public class PDARegisters extends AbstractDsfService
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@Override
|
||||||
public IBitGroup[] getBitGroup() { return fBitGroups; }
|
public IBitGroup[] getBitGroup() { return fBitGroups; }
|
||||||
|
@Override
|
||||||
public IMnemonic[] getMnemonics() { return fMnemonics; }
|
public IMnemonic[] getMnemonics() { return fMnemonics; }
|
||||||
|
|
||||||
|
@Override
|
||||||
public boolean isZeroBasedNumbering() { return true; }
|
public boolean isZeroBasedNumbering() { return true; }
|
||||||
|
@Override
|
||||||
public boolean isZeroBitLeftMost() { return true; }
|
public boolean isZeroBitLeftMost() { return true; }
|
||||||
|
@Override
|
||||||
public boolean isReadable() { return true; }
|
public boolean isReadable() { return true; }
|
||||||
|
@Override
|
||||||
public boolean isReadOnce() { return false; }
|
public boolean isReadOnce() { return false; }
|
||||||
|
@Override
|
||||||
public boolean isWriteable() { return true; }
|
public boolean isWriteable() { return true; }
|
||||||
|
@Override
|
||||||
public boolean isWriteOnce() { return false; }
|
public boolean isWriteOnce() { return false; }
|
||||||
|
@Override
|
||||||
public boolean hasSideEffects() { return false; }
|
public boolean hasSideEffects() { return false; }
|
||||||
public boolean isFloat() { return false; }
|
public boolean isFloat() { return false; }
|
||||||
|
|
||||||
|
@Override
|
||||||
public String getName() { return fBitField.fName; }
|
public String getName() { return fBitField.fName; }
|
||||||
|
@Override
|
||||||
public String getDescription() { return "Description of the " + fBitField.fName + " bit field"; }
|
public String getDescription() { return "Description of the " + fBitField.fName + " bit field"; }
|
||||||
|
|
||||||
|
@Override
|
||||||
public IMnemonic getCurrentMnemonicValue() { return fMnemonicValue; }
|
public IMnemonic getCurrentMnemonicValue() { return fMnemonicValue; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -296,6 +323,7 @@ public class PDARegisters extends AbstractDsfService
|
||||||
super.shutdown(requestMonitor);
|
super.shutdown(requestMonitor);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void getRegisterGroups(IDMContext ctx, final DataRequestMonitor<IRegisterGroupDMContext[]> rm ) {
|
public void getRegisterGroups(IDMContext ctx, final DataRequestMonitor<IRegisterGroupDMContext[]> rm ) {
|
||||||
final PDAVirtualMachineDMContext dmc = DMContexts.getAncestorOfType(ctx, PDAVirtualMachineDMContext.class);
|
final PDAVirtualMachineDMContext dmc = DMContexts.getAncestorOfType(ctx, PDAVirtualMachineDMContext.class);
|
||||||
if (dmc == null) {
|
if (dmc == null) {
|
||||||
|
@ -318,6 +346,7 @@ public class PDARegisters extends AbstractDsfService
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void getRegisters(final IDMContext ctx, final DataRequestMonitor<IRegisterDMContext[]> rm) {
|
public void getRegisters(final IDMContext ctx, final DataRequestMonitor<IRegisterDMContext[]> rm) {
|
||||||
final PDAThreadDMContext execDmc = DMContexts.getAncestorOfType(ctx, PDAThreadDMContext.class);
|
final PDAThreadDMContext execDmc = DMContexts.getAncestorOfType(ctx, PDAThreadDMContext.class);
|
||||||
if ( execDmc == null ) {
|
if ( execDmc == null ) {
|
||||||
|
@ -347,6 +376,7 @@ public class PDARegisters extends AbstractDsfService
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void getBitFields( IDMContext dmc , DataRequestMonitor<IBitFieldDMContext[]> rm ) {
|
public void getBitFields( IDMContext dmc , DataRequestMonitor<IBitFieldDMContext[]> rm ) {
|
||||||
|
|
||||||
RegisterDMContext registerDmc = DMContexts.getAncestorOfType(dmc, RegisterDMContext.class);
|
RegisterDMContext registerDmc = DMContexts.getAncestorOfType(dmc, RegisterDMContext.class);
|
||||||
|
@ -367,6 +397,7 @@ public class PDARegisters extends AbstractDsfService
|
||||||
rm.done();
|
rm.done();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void writeRegister(final IRegisterDMContext regCtx, String regValue, String formatId, final RequestMonitor rm) {
|
public void writeRegister(final IRegisterDMContext regCtx, String regValue, String formatId, final RequestMonitor rm) {
|
||||||
if (regCtx instanceof RegisterDMContext) {
|
if (regCtx instanceof RegisterDMContext) {
|
||||||
IExpressionDMContext exprCtx = createRegisterExpressionDmc( (RegisterDMContext)regCtx );
|
IExpressionDMContext exprCtx = createRegisterExpressionDmc( (RegisterDMContext)regCtx );
|
||||||
|
@ -386,6 +417,7 @@ public class PDARegisters extends AbstractDsfService
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void writeBitField(final IBitFieldDMContext bitFieldCtx, String bitFieldValue, String formatId, final RequestMonitor rm) {
|
public void writeBitField(final IBitFieldDMContext bitFieldCtx, String bitFieldValue, String formatId, final RequestMonitor rm) {
|
||||||
if (bitFieldCtx instanceof BitFieldDMContext) {
|
if (bitFieldCtx instanceof BitFieldDMContext) {
|
||||||
IExpressionDMContext exprCtx = createBitFieldExpressionDmc( (BitFieldDMContext)bitFieldCtx );
|
IExpressionDMContext exprCtx = createBitFieldExpressionDmc( (BitFieldDMContext)bitFieldCtx );
|
||||||
|
@ -404,6 +436,7 @@ public class PDARegisters extends AbstractDsfService
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void writeBitField(IBitFieldDMContext bitFieldCtx, IMnemonic mnemonic, RequestMonitor rm) {
|
public void writeBitField(IBitFieldDMContext bitFieldCtx, IMnemonic mnemonic, RequestMonitor rm) {
|
||||||
if (mnemonic instanceof Mnemonic) {
|
if (mnemonic instanceof Mnemonic) {
|
||||||
writeBitField(bitFieldCtx, ((Mnemonic)mnemonic).fValue.toString(), NATURAL_FORMAT, rm);
|
writeBitField(bitFieldCtx, ((Mnemonic)mnemonic).fValue.toString(), NATURAL_FORMAT, rm);
|
||||||
|
@ -412,6 +445,7 @@ public class PDARegisters extends AbstractDsfService
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void getAvailableFormats(IFormattedDataDMContext dmc, DataRequestMonitor<String[]> rm) {
|
public void getAvailableFormats(IFormattedDataDMContext dmc, DataRequestMonitor<String[]> rm) {
|
||||||
IExpressionDMContext exprCtx = null;
|
IExpressionDMContext exprCtx = null;
|
||||||
if ( dmc instanceof RegisterDMContext ) {
|
if ( dmc instanceof RegisterDMContext ) {
|
||||||
|
@ -426,6 +460,7 @@ public class PDARegisters extends AbstractDsfService
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public FormattedValueDMContext getFormattedValueContext(IFormattedDataDMContext dmc, String formatId) {
|
public FormattedValueDMContext getFormattedValueContext(IFormattedDataDMContext dmc, String formatId) {
|
||||||
IExpressionDMContext exprCtx = null;
|
IExpressionDMContext exprCtx = null;
|
||||||
if ( dmc instanceof RegisterDMContext ) {
|
if ( dmc instanceof RegisterDMContext ) {
|
||||||
|
@ -440,22 +475,27 @@ public class PDARegisters extends AbstractDsfService
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void findRegisterGroup(IDMContext ctx, String name, DataRequestMonitor<IRegisterGroupDMContext> rm) {
|
public void findRegisterGroup(IDMContext ctx, String name, DataRequestMonitor<IRegisterGroupDMContext> rm) {
|
||||||
PDAPlugin.failRequest(rm, NOT_SUPPORTED, "Finding context not supported"); //$NON-NLS-1$
|
PDAPlugin.failRequest(rm, NOT_SUPPORTED, "Finding context not supported"); //$NON-NLS-1$
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void findRegister(IDMContext ctx, String name, DataRequestMonitor<IRegisterDMContext> rm) {
|
public void findRegister(IDMContext ctx, String name, DataRequestMonitor<IRegisterDMContext> rm) {
|
||||||
PDAPlugin.failRequest(rm, NOT_SUPPORTED, "Finding context not supported"); //$NON-NLS-1$
|
PDAPlugin.failRequest(rm, NOT_SUPPORTED, "Finding context not supported"); //$NON-NLS-1$
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void findBitField(IDMContext ctx, String name, DataRequestMonitor<IBitFieldDMContext> rm) {
|
public void findBitField(IDMContext ctx, String name, DataRequestMonitor<IBitFieldDMContext> rm) {
|
||||||
PDAPlugin.failRequest(rm, NOT_SUPPORTED, "Finding context not supported"); //$NON-NLS-1$
|
PDAPlugin.failRequest(rm, NOT_SUPPORTED, "Finding context not supported"); //$NON-NLS-1$
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void getFormattedExpressionValue(FormattedValueDMContext dmc, DataRequestMonitor<FormattedValueDMData> rm) {
|
public void getFormattedExpressionValue(FormattedValueDMContext dmc, DataRequestMonitor<FormattedValueDMData> rm) {
|
||||||
fExpressions.getFormattedExpressionValue(dmc, rm);
|
fExpressions.getFormattedExpressionValue(dmc, rm);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void getRegisterGroupData(IRegisterGroupDMContext regGroupDmc, DataRequestMonitor<IRegisterGroupDMData> rm) {
|
public void getRegisterGroupData(IRegisterGroupDMContext regGroupDmc, DataRequestMonitor<IRegisterGroupDMData> rm) {
|
||||||
if (regGroupDmc instanceof RegisterGroupDMContext) {
|
if (regGroupDmc instanceof RegisterGroupDMContext) {
|
||||||
rm.setData(new RegisterGroupDMData( ((RegisterGroupDMContext)regGroupDmc).fName ));
|
rm.setData(new RegisterGroupDMData( ((RegisterGroupDMContext)regGroupDmc).fName ));
|
||||||
|
@ -465,6 +505,7 @@ public class PDARegisters extends AbstractDsfService
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void getRegisterData(IRegisterDMContext regDmc , DataRequestMonitor<IRegisterDMData> rm) {
|
public void getRegisterData(IRegisterDMContext regDmc , DataRequestMonitor<IRegisterDMData> rm) {
|
||||||
if (regDmc instanceof RegisterDMContext) {
|
if (regDmc instanceof RegisterDMContext) {
|
||||||
rm.setData(new RegisterDMData( ((RegisterDMContext)regDmc).fRegister ));
|
rm.setData(new RegisterDMData( ((RegisterDMContext)regDmc).fRegister ));
|
||||||
|
@ -474,6 +515,7 @@ public class PDARegisters extends AbstractDsfService
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void getBitFieldData(IBitFieldDMContext dmc, final DataRequestMonitor<IBitFieldDMData> rm) {
|
public void getBitFieldData(IBitFieldDMContext dmc, final DataRequestMonitor<IBitFieldDMData> rm) {
|
||||||
if ( !(dmc instanceof BitFieldDMContext) ) {
|
if ( !(dmc instanceof BitFieldDMContext) ) {
|
||||||
PDAPlugin.failRequest(rm, INVALID_HANDLE, "Invalid context"); //$NON-NLS-1$
|
PDAPlugin.failRequest(rm, INVALID_HANDLE, "Invalid context"); //$NON-NLS-1$
|
||||||
|
@ -521,6 +563,7 @@ public class PDARegisters extends AbstractDsfService
|
||||||
getSession().dispatchEvent(new RegisterChangedDMEvent(dmc), getProperties());
|
getSession().dispatchEvent(new RegisterChangedDMEvent(dmc), getProperties());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void eventReceived(Object output) {
|
public void eventReceived(Object output) {
|
||||||
if (!(output instanceof String)) return;
|
if (!(output instanceof String)) return;
|
||||||
if ("registers".equals(output)) {
|
if ("registers".equals(output)) {
|
||||||
|
@ -528,6 +571,7 @@ public class PDARegisters extends AbstractDsfService
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void flushCache(IDMContext context) {
|
public void flushCache(IDMContext context) {
|
||||||
fExpressions.flushCache(context);
|
fExpressions.flushCache(context);
|
||||||
}
|
}
|
||||||
|
|
|
@ -76,6 +76,7 @@ public class PDARunControl extends AbstractDsfService
|
||||||
fReason = reason;
|
fReason = reason;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public StateChangeReason getReason() {
|
public StateChangeReason getReason() {
|
||||||
return fReason;
|
return fReason;
|
||||||
}
|
}
|
||||||
|
@ -97,10 +98,12 @@ public class PDARunControl extends AbstractDsfService
|
||||||
fReason = reason;
|
fReason = reason;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public StateChangeReason getReason() {
|
public StateChangeReason getReason() {
|
||||||
return fReason;
|
return fReason;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public IExecutionDMContext[] getTriggeringContexts() {
|
public IExecutionDMContext[] getTriggeringContexts() {
|
||||||
return EMPTY_TRIGGERING_CONTEXTS_ARRAY;
|
return EMPTY_TRIGGERING_CONTEXTS_ARRAY;
|
||||||
}
|
}
|
||||||
|
@ -122,6 +125,7 @@ public class PDARunControl extends AbstractDsfService
|
||||||
fReason = reason;
|
fReason = reason;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public StateChangeReason getReason() {
|
public StateChangeReason getReason() {
|
||||||
return fReason;
|
return fReason;
|
||||||
}
|
}
|
||||||
|
@ -150,10 +154,12 @@ public class PDARunControl extends AbstractDsfService
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public StateChangeReason getReason() {
|
public StateChangeReason getReason() {
|
||||||
return fReason;
|
return fReason;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public IExecutionDMContext[] getTriggeringContexts() {
|
public IExecutionDMContext[] getTriggeringContexts() {
|
||||||
return fTriggeringThreads;
|
return fTriggeringThreads;
|
||||||
}
|
}
|
||||||
|
@ -174,6 +180,7 @@ public class PDARunControl extends AbstractDsfService
|
||||||
ExecutionDMData(StateChangeReason reason) {
|
ExecutionDMData(StateChangeReason reason) {
|
||||||
fReason = reason;
|
fReason = reason;
|
||||||
}
|
}
|
||||||
|
@Override
|
||||||
public StateChangeReason getStateChangeReason() { return fReason; }
|
public StateChangeReason getStateChangeReason() { return fReason; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -285,6 +292,7 @@ public class PDARunControl extends AbstractDsfService
|
||||||
super.shutdown(rm);
|
super.shutdown(rm);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void eventReceived(Object output) {
|
public void eventReceived(Object output) {
|
||||||
if (!(output instanceof String)) return;
|
if (!(output instanceof String)) return;
|
||||||
String event = (String)output;
|
String event = (String)output;
|
||||||
|
@ -421,6 +429,7 @@ public class PDARunControl extends AbstractDsfService
|
||||||
fThreads.remove(threadCtx.getID());
|
fThreads.remove(threadCtx.getID());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void canResume(IExecutionDMContext context, DataRequestMonitor<Boolean> rm) {
|
public void canResume(IExecutionDMContext context, DataRequestMonitor<Boolean> rm) {
|
||||||
rm.setData(doCanResume(context));
|
rm.setData(doCanResume(context));
|
||||||
rm.done();
|
rm.done();
|
||||||
|
@ -457,6 +466,7 @@ public class PDARunControl extends AbstractDsfService
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void canSuspend(IExecutionDMContext context, DataRequestMonitor<Boolean> rm) {
|
public void canSuspend(IExecutionDMContext context, DataRequestMonitor<Boolean> rm) {
|
||||||
rm.setData(doCanSuspend(context));
|
rm.setData(doCanSuspend(context));
|
||||||
rm.done();
|
rm.done();
|
||||||
|
@ -478,6 +488,7 @@ public class PDARunControl extends AbstractDsfService
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public boolean isSuspended(IExecutionDMContext context) {
|
public boolean isSuspended(IExecutionDMContext context) {
|
||||||
if (context instanceof PDAThreadDMContext) {
|
if (context instanceof PDAThreadDMContext) {
|
||||||
PDAThreadDMContext threadContext = (PDAThreadDMContext)context;
|
PDAThreadDMContext threadContext = (PDAThreadDMContext)context;
|
||||||
|
@ -492,6 +503,7 @@ public class PDARunControl extends AbstractDsfService
|
||||||
return fVMSuspended;
|
return fVMSuspended;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public boolean isStepping(IExecutionDMContext context) {
|
public boolean isStepping(IExecutionDMContext context) {
|
||||||
if (!isSuspended(context)) {
|
if (!isSuspended(context)) {
|
||||||
if (context instanceof PDAThreadDMContext) {
|
if (context instanceof PDAThreadDMContext) {
|
||||||
|
@ -509,6 +521,7 @@ public class PDARunControl extends AbstractDsfService
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void resume(IExecutionDMContext context, final RequestMonitor rm) {
|
public void resume(IExecutionDMContext context, final RequestMonitor rm) {
|
||||||
assert context != null;
|
assert context != null;
|
||||||
|
|
||||||
|
@ -547,6 +560,7 @@ public class PDARunControl extends AbstractDsfService
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void suspend(IExecutionDMContext context, final RequestMonitor rm){
|
public void suspend(IExecutionDMContext context, final RequestMonitor rm){
|
||||||
assert context != null;
|
assert context != null;
|
||||||
|
|
||||||
|
@ -585,11 +599,13 @@ public class PDARunControl extends AbstractDsfService
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void canStep(IExecutionDMContext context, StepType stepType, DataRequestMonitor<Boolean> rm) {
|
public void canStep(IExecutionDMContext context, StepType stepType, DataRequestMonitor<Boolean> rm) {
|
||||||
rm.setData(doCanStep(context, stepType));
|
rm.setData(doCanStep(context, stepType));
|
||||||
rm.done();
|
rm.done();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void step(IExecutionDMContext context, StepType stepType, final RequestMonitor rm) {
|
public void step(IExecutionDMContext context, StepType stepType, final RequestMonitor rm) {
|
||||||
assert context != null;
|
assert context != null;
|
||||||
|
|
||||||
|
@ -633,6 +649,7 @@ public class PDARunControl extends AbstractDsfService
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void getExecutionContexts(final IContainerDMContext containerDmc, final DataRequestMonitor<IExecutionDMContext[]> rm) {
|
public void getExecutionContexts(final IContainerDMContext containerDmc, final DataRequestMonitor<IExecutionDMContext[]> rm) {
|
||||||
IExecutionDMContext[] threads = new IExecutionDMContext[fThreads.size()];
|
IExecutionDMContext[] threads = new IExecutionDMContext[fThreads.size()];
|
||||||
int i = 0;
|
int i = 0;
|
||||||
|
@ -643,6 +660,7 @@ public class PDARunControl extends AbstractDsfService
|
||||||
rm.done();
|
rm.done();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void getExecutionData(IExecutionDMContext dmc, DataRequestMonitor<IExecutionDMData> rm) {
|
public void getExecutionData(IExecutionDMContext dmc, DataRequestMonitor<IExecutionDMData> rm) {
|
||||||
if (dmc instanceof PDAThreadDMContext) {
|
if (dmc instanceof PDAThreadDMContext) {
|
||||||
ThreadInfo info = fThreads.get(((PDAThreadDMContext)dmc).getID());
|
ThreadInfo info = fThreads.get(((PDAThreadDMContext)dmc).getID());
|
||||||
|
|
|
@ -67,6 +67,7 @@ public class PDAStack extends AbstractDsfService implements IStack, ICachingServ
|
||||||
fLevel = level;
|
fLevel = level;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public int getLevel() { return fLevel; }
|
public int getLevel() { return fLevel; }
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -97,26 +98,32 @@ public class PDAStack extends AbstractDsfService implements IStack, ICachingServ
|
||||||
fFrame = frame;
|
fFrame = frame;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public String getFile() {
|
public String getFile() {
|
||||||
return fFrame.fFilePath.lastSegment();
|
return fFrame.fFilePath.lastSegment();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public String getFunction() {
|
public String getFunction() {
|
||||||
return fFrame.fFunction;
|
return fFrame.fFunction;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public int getLine() {
|
public int getLine() {
|
||||||
return fFrame.fLine + 1;
|
return fFrame.fLine + 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public int getColumn() {
|
public int getColumn() {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public IAddress getAddress() {
|
public IAddress getAddress() {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public String getModule() {
|
public String getModule() {
|
||||||
return "";//$NON-NLS-1$
|
return "";//$NON-NLS-1$
|
||||||
}
|
}
|
||||||
|
@ -165,10 +172,12 @@ public class PDAStack extends AbstractDsfService implements IStack, ICachingServ
|
||||||
fVariable = variable;
|
fVariable = variable;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public String getName() {
|
public String getName() {
|
||||||
return fVariable;
|
return fVariable;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public String getValue() {
|
public String getValue() {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
@ -226,10 +235,12 @@ public class PDAStack extends AbstractDsfService implements IStack, ICachingServ
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@Override
|
||||||
public void getArguments(IFrameDMContext frameCtx, DataRequestMonitor<IVariableDMContext[]> rm) {
|
public void getArguments(IFrameDMContext frameCtx, DataRequestMonitor<IVariableDMContext[]> rm) {
|
||||||
PDAPlugin.failRequest(rm, IDsfStatusConstants.NOT_SUPPORTED, "PDA debugger does not support function arguments.");
|
PDAPlugin.failRequest(rm, IDsfStatusConstants.NOT_SUPPORTED, "PDA debugger does not support function arguments.");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void getFrameData(final IFrameDMContext frameCtx, final DataRequestMonitor<IFrameDMData> rm) {
|
public void getFrameData(final IFrameDMContext frameCtx, final DataRequestMonitor<IFrameDMData> rm) {
|
||||||
final PDAThreadDMContext threadCtx =
|
final PDAThreadDMContext threadCtx =
|
||||||
DMContexts.getAncestorOfType(frameCtx, PDAThreadDMContext.class);
|
DMContexts.getAncestorOfType(frameCtx, PDAThreadDMContext.class);
|
||||||
|
@ -269,6 +280,7 @@ public class PDAStack extends AbstractDsfService implements IStack, ICachingServ
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@Override
|
||||||
public void getFrames(IDMContext context, final DataRequestMonitor<IFrameDMContext[]> rm) {
|
public void getFrames(IDMContext context, final DataRequestMonitor<IFrameDMContext[]> rm) {
|
||||||
// Can only create stack frames for an execution context as a parent,
|
// Can only create stack frames for an execution context as a parent,
|
||||||
// however the argument context is a generic context type, so it could
|
// however the argument context is a generic context type, so it could
|
||||||
|
@ -299,6 +311,7 @@ public class PDAStack extends AbstractDsfService implements IStack, ICachingServ
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void getFrames(IDMContext context, final int startIndex, final int endIndex, final DataRequestMonitor<IFrameDMContext[]> rm) {
|
public void getFrames(IDMContext context, final int startIndex, final int endIndex, final DataRequestMonitor<IFrameDMContext[]> rm) {
|
||||||
// Validate index range.
|
// Validate index range.
|
||||||
assert startIndex >=0 && (endIndex < 0 || startIndex <= endIndex);
|
assert startIndex >=0 && (endIndex < 0 || startIndex <= endIndex);
|
||||||
|
@ -331,6 +344,7 @@ public class PDAStack extends AbstractDsfService implements IStack, ICachingServ
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void getLocals(IFrameDMContext context, final DataRequestMonitor<IVariableDMContext[]> rm) {
|
public void getLocals(IFrameDMContext context, final DataRequestMonitor<IVariableDMContext[]> rm) {
|
||||||
if (!(context instanceof FrameDMContext)) {
|
if (!(context instanceof FrameDMContext)) {
|
||||||
rm.setStatus(new Status(IStatus.ERROR, PDAPlugin.PLUGIN_ID, INVALID_HANDLE, "Invalid context" + context, null));
|
rm.setStatus(new Status(IStatus.ERROR, PDAPlugin.PLUGIN_ID, INVALID_HANDLE, "Invalid context" + context, null));
|
||||||
|
@ -373,6 +387,7 @@ public class PDAStack extends AbstractDsfService implements IStack, ICachingServ
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void getStackDepth(IDMContext context, final int maxDepth, final DataRequestMonitor<Integer> rm) {
|
public void getStackDepth(IDMContext context, final int maxDepth, final DataRequestMonitor<Integer> rm) {
|
||||||
final PDAThreadDMContext threadCtx =
|
final PDAThreadDMContext threadCtx =
|
||||||
DMContexts.getAncestorOfType(context, PDAThreadDMContext.class);
|
DMContexts.getAncestorOfType(context, PDAThreadDMContext.class);
|
||||||
|
@ -399,6 +414,7 @@ public class PDAStack extends AbstractDsfService implements IStack, ICachingServ
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void getTopFrame(IDMContext context, final DataRequestMonitor<IFrameDMContext> rm) {
|
public void getTopFrame(IDMContext context, final DataRequestMonitor<IFrameDMContext> rm) {
|
||||||
// Can only create stack frames for an execution context as a parent,
|
// Can only create stack frames for an execution context as a parent,
|
||||||
// however the argument context is a generic context type, so it could
|
// however the argument context is a generic context type, so it could
|
||||||
|
@ -416,6 +432,7 @@ public class PDAStack extends AbstractDsfService implements IStack, ICachingServ
|
||||||
rm.done();
|
rm.done();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void getVariableData(IVariableDMContext variableCtx, DataRequestMonitor<IVariableDMData> rm) {
|
public void getVariableData(IVariableDMContext variableCtx, DataRequestMonitor<IVariableDMData> rm) {
|
||||||
if ( !(variableCtx instanceof VariableDMContext) ) {
|
if ( !(variableCtx instanceof VariableDMContext) ) {
|
||||||
PDAPlugin.failRequest(rm, IDsfStatusConstants.INVALID_HANDLE, "Invalid context " + variableCtx);
|
PDAPlugin.failRequest(rm, IDsfStatusConstants.INVALID_HANDLE, "Invalid context " + variableCtx);
|
||||||
|
@ -461,6 +478,7 @@ public class PDAStack extends AbstractDsfService implements IStack, ICachingServ
|
||||||
fCommandCache.reset(e.getDMContext());
|
fCommandCache.reset(e.getDMContext());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void flushCache(IDMContext context) {
|
public void flushCache(IDMContext context) {
|
||||||
fCommandCache.reset(context);
|
fCommandCache.reset(context);
|
||||||
}
|
}
|
||||||
|
|
|
@ -51,6 +51,7 @@ public class PDAVirtualMachineDMContext extends PlatformObject
|
||||||
fProgram = program;
|
fProgram = program;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public String getSessionId() {
|
public String getSessionId() {
|
||||||
return fSessionId;
|
return fSessionId;
|
||||||
}
|
}
|
||||||
|
@ -59,6 +60,7 @@ public class PDAVirtualMachineDMContext extends PlatformObject
|
||||||
return fProgram;
|
return fProgram;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public IDMContext[] getParents() {
|
public IDMContext[] getParents() {
|
||||||
return EMPTY_PARENTS_ARRAY;
|
return EMPTY_PARENTS_ARRAY;
|
||||||
}
|
}
|
||||||
|
@ -68,6 +70,7 @@ public class PDAVirtualMachineDMContext extends PlatformObject
|
||||||
return "pda[" + getSessionId() + "]";
|
return "pda[" + getSessionId() + "]";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public String getCommandControlId() {
|
public String getCommandControlId() {
|
||||||
return getProgram();
|
return getProgram();
|
||||||
}
|
}
|
||||||
|
|
|
@ -31,10 +31,12 @@ abstract public class AbstractPDACommand<V extends PDACommandResult> implements
|
||||||
fRequest = request;
|
fRequest = request;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public IDMContext getContext() {
|
public IDMContext getContext() {
|
||||||
return fContext;
|
return fContext;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public ICommand<? extends ICommandResult> coalesceWith(ICommand<? extends ICommandResult> command) {
|
public ICommand<? extends ICommandResult> coalesceWith(ICommand<? extends ICommandResult> command) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
|
@ -29,6 +29,7 @@ public class PDACommandResult implements ICommandResult {
|
||||||
fResponseText = response;
|
fResponseText = response;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public <V extends ICommandResult> V getSubsetResult(ICommand<V> command) {
|
public <V extends ICommandResult> V getSubsetResult(ICommand<V> command) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
|
@ -18,6 +18,7 @@ import org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector;
|
||||||
* PDA source lookup director.
|
* PDA source lookup director.
|
||||||
*/
|
*/
|
||||||
public class PDASourceLookupDirector extends AbstractSourceLookupDirector {
|
public class PDASourceLookupDirector extends AbstractSourceLookupDirector {
|
||||||
|
@Override
|
||||||
public void initializeParticipants() {
|
public void initializeParticipants() {
|
||||||
// No need to add participants here, the source display adapter will
|
// No need to add participants here, the source display adapter will
|
||||||
// add the participant with the correct session ID.
|
// add the participant with the correct session ID.
|
||||||
|
|
|
@ -40,6 +40,7 @@ import org.eclipse.debug.core.sourcelookup.containers.WorkspaceSourceContainer;
|
||||||
*/
|
*/
|
||||||
public class PDASourcePathComputerDelegate implements ISourcePathComputerDelegate {
|
public class PDASourcePathComputerDelegate implements ISourcePathComputerDelegate {
|
||||||
|
|
||||||
|
@Override
|
||||||
public ISourceContainer[] computeSourceContainers(ILaunchConfiguration configuration, IProgressMonitor monitor) throws CoreException {
|
public ISourceContainer[] computeSourceContainers(ILaunchConfiguration configuration, IProgressMonitor monitor) throws CoreException {
|
||||||
String path = configuration.getAttribute(PDAPlugin.ATTR_PDA_PROGRAM, (String)null);
|
String path = configuration.getAttribute(PDAPlugin.ATTR_PDA_PROGRAM, (String)null);
|
||||||
ISourceContainer sourceContainer = null;
|
ISourceContainer sourceContainer = null;
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<classpath>
|
<classpath>
|
||||||
<classpathentry kind="src" path="src"/>
|
<classpathentry kind="src" path="src"/>
|
||||||
<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.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.7"/>
|
||||||
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
|
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
|
||||||
<classpathentry kind="src" path="src_ant"/>
|
<classpathentry kind="src" path="src_ant"/>
|
||||||
<classpathentry kind="output" path="bin"/>
|
<classpathentry kind="output" path="bin"/>
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
#Tue Jun 24 11:03:17 PDT 2008
|
#Tue Jun 24 11:03:17 PDT 2008
|
||||||
eclipse.preferences.version=1
|
eclipse.preferences.version=1
|
||||||
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
|
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
|
||||||
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
|
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7
|
||||||
org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
|
org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
|
||||||
org.eclipse.jdt.core.compiler.compliance=1.5
|
org.eclipse.jdt.core.compiler.compliance=1.7
|
||||||
org.eclipse.jdt.core.compiler.debug.lineNumber=generate
|
org.eclipse.jdt.core.compiler.debug.lineNumber=generate
|
||||||
org.eclipse.jdt.core.compiler.debug.localVariable=generate
|
org.eclipse.jdt.core.compiler.debug.localVariable=generate
|
||||||
org.eclipse.jdt.core.compiler.debug.sourceFile=generate
|
org.eclipse.jdt.core.compiler.debug.sourceFile=generate
|
||||||
|
@ -68,4 +68,4 @@ org.eclipse.jdt.core.compiler.problem.unusedParameterWhenOverridingConcrete=disa
|
||||||
org.eclipse.jdt.core.compiler.problem.unusedPrivateMember=warning
|
org.eclipse.jdt.core.compiler.problem.unusedPrivateMember=warning
|
||||||
org.eclipse.jdt.core.compiler.problem.unusedWarningToken=warning
|
org.eclipse.jdt.core.compiler.problem.unusedWarningToken=warning
|
||||||
org.eclipse.jdt.core.compiler.problem.varargsArgumentNeedCast=warning
|
org.eclipse.jdt.core.compiler.problem.varargsArgumentNeedCast=warning
|
||||||
org.eclipse.jdt.core.compiler.source=1.5
|
org.eclipse.jdt.core.compiler.source=1.7
|
||||||
|
|
|
@ -15,4 +15,4 @@ Require-Bundle: org.eclipse.ui,
|
||||||
org.eclipse.cdt.dsf.ui,
|
org.eclipse.cdt.dsf.ui,
|
||||||
org.apache.ant;bundle-version="1.7.0";resolution:=optional
|
org.apache.ant;bundle-version="1.7.0";resolution:=optional
|
||||||
Eclipse-LazyStart: true
|
Eclipse-LazyStart: true
|
||||||
Bundle-RequiredExecutionEnvironment: J2SE-1.5
|
Bundle-RequiredExecutionEnvironment: JavaSE-1.7
|
||||||
|
|
|
@ -33,6 +33,7 @@ public class FileBrowserAction extends ActionDelegate
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void init(IWorkbenchWindow window) {
|
public void init(IWorkbenchWindow window) {
|
||||||
fWindow = window;
|
fWindow = window;
|
||||||
}
|
}
|
||||||
|
|
|
@ -70,6 +70,7 @@ public class FileBrowserDialog extends Dialog {
|
||||||
text.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
|
text.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
|
||||||
|
|
||||||
fViewer.addSelectionChangedListener(new ISelectionChangedListener() {
|
fViewer.addSelectionChangedListener(new ISelectionChangedListener() {
|
||||||
|
@Override
|
||||||
public void selectionChanged(SelectionChangedEvent event) {
|
public void selectionChanged(SelectionChangedEvent event) {
|
||||||
/*
|
/*
|
||||||
* Update the file name in the text control, to match the
|
* Update the file name in the text control, to match the
|
||||||
|
@ -90,6 +91,7 @@ public class FileBrowserDialog extends Dialog {
|
||||||
});
|
});
|
||||||
|
|
||||||
text.addModifyListener(new ModifyListener() {
|
text.addModifyListener(new ModifyListener() {
|
||||||
|
@Override
|
||||||
public void modifyText(ModifyEvent e) {
|
public void modifyText(ModifyEvent e) {
|
||||||
if (!fDisableTextChangeNotifications) {
|
if (!fDisableTextChangeNotifications) {
|
||||||
fModelAdapter.getVMProvider().selectionTextChanged(text.getText());
|
fModelAdapter.getVMProvider().selectionTextChanged(text.getText());
|
||||||
|
|
|
@ -35,6 +35,7 @@ public class FileBrowserVMProvider extends AbstractVMProvider
|
||||||
/**
|
/**
|
||||||
* The input object provides the viewer access to the viewer model adapter.
|
* The input object provides the viewer access to the viewer model adapter.
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
@SuppressWarnings("unchecked")
|
@SuppressWarnings("unchecked")
|
||||||
public Object getAdapter(Class adapter) {
|
public Object getAdapter(Class adapter) {
|
||||||
if ( adapter.isInstance(getVMAdapter()) ) {
|
if ( adapter.isInstance(getVMAdapter()) ) {
|
||||||
|
@ -87,6 +88,7 @@ public class FileBrowserVMProvider extends AbstractVMProvider
|
||||||
// and then call root layout node.
|
// and then call root layout node.
|
||||||
try {
|
try {
|
||||||
getExecutor().execute(new Runnable() {
|
getExecutor().execute(new Runnable() {
|
||||||
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
if (isDisposed()) return;
|
if (isDisposed()) return;
|
||||||
handleEvent(text);
|
handleEvent(text);
|
||||||
|
|
|
@ -67,6 +67,7 @@ class FileVMNode
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@Override
|
||||||
public void dispose() {
|
public void dispose() {
|
||||||
// All resources garbage collected.
|
// All resources garbage collected.
|
||||||
}
|
}
|
||||||
|
@ -84,6 +85,7 @@ class FileVMNode
|
||||||
return fChildNodes;
|
return fChildNodes;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void update(final IHasChildrenUpdate[] updates) {
|
public void update(final IHasChildrenUpdate[] updates) {
|
||||||
new Job("") { //$NON-NLS-1$
|
new Job("") { //$NON-NLS-1$
|
||||||
{
|
{
|
||||||
|
@ -109,6 +111,7 @@ class FileVMNode
|
||||||
}.schedule();
|
}.schedule();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void update(final IChildrenCountUpdate[] updates) {
|
public void update(final IChildrenCountUpdate[] updates) {
|
||||||
new Job("") { //$NON-NLS-1$
|
new Job("") { //$NON-NLS-1$
|
||||||
{
|
{
|
||||||
|
@ -127,6 +130,7 @@ class FileVMNode
|
||||||
}.schedule();
|
}.schedule();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void update(final IChildrenUpdate[] updates) {
|
public void update(final IChildrenUpdate[] updates) {
|
||||||
new Job("") { //$NON-NLS-1$
|
new Job("") { //$NON-NLS-1$
|
||||||
{
|
{
|
||||||
|
@ -150,6 +154,7 @@ class FileVMNode
|
||||||
}.schedule();
|
}.schedule();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void update(final ILabelUpdate[] updates) {
|
public void update(final ILabelUpdate[] updates) {
|
||||||
new Job("") { //$NON-NLS-1$
|
new Job("") { //$NON-NLS-1$
|
||||||
{
|
{
|
||||||
|
@ -195,11 +200,13 @@ class FileVMNode
|
||||||
return vmc.getFile().getName();
|
return vmc.getFile().getName();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void getContextsForEvent(VMDelta parentDelta, Object event, DataRequestMonitor<IVMContext[]> rm) {
|
public void getContextsForEvent(VMDelta parentDelta, Object event, DataRequestMonitor<IVMContext[]> rm) {
|
||||||
rm.setStatus(new Status(IStatus.ERROR, DsfUIPlugin.PLUGIN_ID, IDsfStatusConstants.NOT_SUPPORTED, "", null)); //$NON-NLS-1$
|
rm.setStatus(new Status(IStatus.ERROR, DsfUIPlugin.PLUGIN_ID, IDsfStatusConstants.NOT_SUPPORTED, "", null)); //$NON-NLS-1$
|
||||||
rm.done();
|
rm.done();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public int getDeltaFlags(Object e) {
|
public int getDeltaFlags(Object e) {
|
||||||
/*
|
/*
|
||||||
* @see buildDelta()
|
* @see buildDelta()
|
||||||
|
@ -212,6 +219,7 @@ class FileVMNode
|
||||||
return retVal;
|
return retVal;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void buildDelta(final Object event, final VMDelta parentDelta, final int nodeOffset, final RequestMonitor requestMonitor) {
|
public void buildDelta(final Object event, final VMDelta parentDelta, final int nodeOffset, final RequestMonitor requestMonitor) {
|
||||||
/*
|
/*
|
||||||
* The FileLayoutNode is recursive, with itself as the only child. In this
|
* The FileLayoutNode is recursive, with itself as the only child. In this
|
||||||
|
@ -306,6 +314,7 @@ class FileVMNode
|
||||||
return nodes;
|
return nodes;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public IVMProvider getVMProvider() {
|
public IVMProvider getVMProvider() {
|
||||||
return fProvider;
|
return fProvider;
|
||||||
}
|
}
|
||||||
|
|
|
@ -47,6 +47,7 @@ class FilesystemRootsVMNode extends AbstractVMNode
|
||||||
return "FilesystemRootsVMNode";
|
return "FilesystemRootsVMNode";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void update(final IChildrenUpdate[] updates) {
|
public void update(final IChildrenUpdate[] updates) {
|
||||||
new Job("") { //$NON-NLS-1$
|
new Job("") { //$NON-NLS-1$
|
||||||
{
|
{
|
||||||
|
@ -70,6 +71,7 @@ class FilesystemRootsVMNode extends AbstractVMNode
|
||||||
}.schedule();
|
}.schedule();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void update(final IHasChildrenUpdate[] updates) {
|
public void update(final IHasChildrenUpdate[] updates) {
|
||||||
for (IHasChildrenUpdate update : updates) {
|
for (IHasChildrenUpdate update : updates) {
|
||||||
/*
|
/*
|
||||||
|
@ -82,6 +84,7 @@ class FilesystemRootsVMNode extends AbstractVMNode
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void update(final IChildrenCountUpdate[] updates) {
|
public void update(final IChildrenCountUpdate[] updates) {
|
||||||
new Job("") { //$NON-NLS-1$
|
new Job("") { //$NON-NLS-1$
|
||||||
{
|
{
|
||||||
|
@ -101,6 +104,7 @@ class FilesystemRootsVMNode extends AbstractVMNode
|
||||||
}.schedule();
|
}.schedule();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void update(final ILabelUpdate[] updates) {
|
public void update(final ILabelUpdate[] updates) {
|
||||||
new Job("") { //$NON-NLS-1$
|
new Job("") { //$NON-NLS-1$
|
||||||
{
|
{
|
||||||
|
@ -130,6 +134,7 @@ class FilesystemRootsVMNode extends AbstractVMNode
|
||||||
return vmc.getFile().getAbsolutePath();
|
return vmc.getFile().getAbsolutePath();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public int getDeltaFlags(Object e) {
|
public int getDeltaFlags(Object e) {
|
||||||
/*
|
/*
|
||||||
* @see buildDelta()
|
* @see buildDelta()
|
||||||
|
@ -142,6 +147,7 @@ class FilesystemRootsVMNode extends AbstractVMNode
|
||||||
return retVal;
|
return retVal;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void buildDelta(final Object event, final VMDelta parentDelta, final int nodeOffset, final RequestMonitor requestMonitor) {
|
public void buildDelta(final Object event, final VMDelta parentDelta, final int nodeOffset, final RequestMonitor requestMonitor) {
|
||||||
if (event instanceof String) {
|
if (event instanceof String) {
|
||||||
new Job("") { //$NON-NLS-1$
|
new Job("") { //$NON-NLS-1$
|
||||||
|
|
|
@ -73,6 +73,7 @@ class AlarmsVMNode extends AbstractDMVMNode
|
||||||
update.done();
|
update.done();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void update(ILabelUpdate[] updates) {
|
public void update(ILabelUpdate[] updates) {
|
||||||
for (ILabelUpdate update : updates) {
|
for (ILabelUpdate update : updates) {
|
||||||
update.setLabel("ALARM TRIGGERED", 0);
|
update.setLabel("ALARM TRIGGERED", 0);
|
||||||
|
@ -85,6 +86,7 @@ class AlarmsVMNode extends AbstractDMVMNode
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@Override
|
||||||
public int getDeltaFlags(Object e) {
|
public int getDeltaFlags(Object e) {
|
||||||
if (e instanceof AlarmService.AlarmTriggeredDMEvent) {
|
if (e instanceof AlarmService.AlarmTriggeredDMEvent) {
|
||||||
return IModelDelta.ADDED | IModelDelta.SELECT | IModelDelta.EXPAND;
|
return IModelDelta.ADDED | IModelDelta.SELECT | IModelDelta.EXPAND;
|
||||||
|
@ -92,6 +94,7 @@ class AlarmsVMNode extends AbstractDMVMNode
|
||||||
return IModelDelta.NO_CHANGE;
|
return IModelDelta.NO_CHANGE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void buildDelta(Object e, VMDelta parentDelta, int nodeOffset, RequestMonitor requestMonitor) {
|
public void buildDelta(Object e, VMDelta parentDelta, int nodeOffset, RequestMonitor requestMonitor) {
|
||||||
// The alarm element is added when and selected upon a triggered event.
|
// The alarm element is added when and selected upon a triggered event.
|
||||||
// Parent element is also expanded allow the alarm to be selected.
|
// Parent element is also expanded allow the alarm to be selected.
|
||||||
|
|
|
@ -158,6 +158,7 @@ public class TimerService extends AbstractDsfService
|
||||||
// for canceling the scheduling of the runnable.
|
// for canceling the scheduling of the runnable.
|
||||||
Future<?> timerFuture = getExecutor().scheduleAtFixedRate(
|
Future<?> timerFuture = getExecutor().scheduleAtFixedRate(
|
||||||
new Runnable() {
|
new Runnable() {
|
||||||
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
fTimers.put(newTimer, fTimers.get(newTimer) + 1);
|
fTimers.put(newTimer, fTimers.get(newTimer) + 1);
|
||||||
getSession().dispatchEvent(new TimerTickDMEvent(newTimer), getProperties());
|
getSession().dispatchEvent(new TimerTickDMEvent(newTimer), getProperties());
|
||||||
|
|
|
@ -83,6 +83,7 @@ class TimersVMNode extends AbstractDMVMNode
|
||||||
return "TimersVMNode(" + getSession().getId() + ")"; //$NON-NLS-1$ //$NON-NLS-2$
|
return "TimersVMNode(" + getSession().getId() + ")"; //$NON-NLS-1$ //$NON-NLS-2$
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void update(ILabelUpdate[] updates) {
|
public void update(ILabelUpdate[] updates) {
|
||||||
fgLabelProvider.update(updates);
|
fgLabelProvider.update(updates);
|
||||||
}
|
}
|
||||||
|
@ -103,10 +104,12 @@ class TimersVMNode extends AbstractDMVMNode
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@Override
|
||||||
public void update(final IPropertiesUpdate[] updates) {
|
public void update(final IPropertiesUpdate[] updates) {
|
||||||
// Switch to the session thread before processing the updates.
|
// Switch to the session thread before processing the updates.
|
||||||
try {
|
try {
|
||||||
getSession().getExecutor().execute(new DsfRunnable() {
|
getSession().getExecutor().execute(new DsfRunnable() {
|
||||||
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
for (IPropertiesUpdate update : updates) {
|
for (IPropertiesUpdate update : updates) {
|
||||||
updatePropertiesInSessionThread(update);
|
updatePropertiesInSessionThread(update);
|
||||||
|
@ -143,6 +146,7 @@ class TimersVMNode extends AbstractDMVMNode
|
||||||
update.done();
|
update.done();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public int getDeltaFlags(Object e) {
|
public int getDeltaFlags(Object e) {
|
||||||
// This node generates delta if the timers have changed, or if the
|
// This node generates delta if the timers have changed, or if the
|
||||||
// label has changed.
|
// label has changed.
|
||||||
|
@ -154,6 +158,7 @@ class TimersVMNode extends AbstractDMVMNode
|
||||||
return IModelDelta.NO_CHANGE;
|
return IModelDelta.NO_CHANGE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void buildDelta(Object e, VMDelta parentDelta, int nodeOffset, RequestMonitor requestMonitor) {
|
public void buildDelta(Object e, VMDelta parentDelta, int nodeOffset, RequestMonitor requestMonitor) {
|
||||||
if (e instanceof TimerService.TimerTickDMEvent) {
|
if (e instanceof TimerService.TimerTickDMEvent) {
|
||||||
// Add delta indicating that the given timer has changed.
|
// Add delta indicating that the given timer has changed.
|
||||||
|
|
|
@ -51,6 +51,7 @@ public class TimersVMProvider extends AbstractDMVMProvider {
|
||||||
// Add ourselves as listener for DM events events.
|
// Add ourselves as listener for DM events events.
|
||||||
try {
|
try {
|
||||||
session.getExecutor().execute(new Runnable() {
|
session.getExecutor().execute(new Runnable() {
|
||||||
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
if (DsfSession.isSessionActive(getSession().getId())) {
|
if (DsfSession.isSessionActive(getSession().getId())) {
|
||||||
getSession().addServiceEventListener(TimersVMProvider.this, null);
|
getSession().addServiceEventListener(TimersVMProvider.this, null);
|
||||||
|
@ -77,6 +78,7 @@ public class TimersVMProvider extends AbstractDMVMProvider {
|
||||||
// completeness sake.
|
// completeness sake.
|
||||||
try {
|
try {
|
||||||
getSession().getExecutor().execute(new Runnable() {
|
getSession().getExecutor().execute(new Runnable() {
|
||||||
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
if (fRegisteredEventListener && DsfSession.isSessionActive(getSession().getId())) {
|
if (fRegisteredEventListener && DsfSession.isSessionActive(getSession().getId())) {
|
||||||
getSession().removeServiceEventListener(TimersVMProvider.this);
|
getSession().removeServiceEventListener(TimersVMProvider.this);
|
||||||
|
@ -140,6 +142,7 @@ public class TimersVMProvider extends AbstractDMVMProvider {
|
||||||
|
|
||||||
try {
|
try {
|
||||||
getExecutor().execute(new Runnable() {
|
getExecutor().execute(new Runnable() {
|
||||||
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
if (isDisposed()) return;
|
if (isDisposed()) return;
|
||||||
handleEvent(event);
|
handleEvent(event);
|
||||||
|
@ -154,6 +157,7 @@ public class TimersVMProvider extends AbstractDMVMProvider {
|
||||||
|
|
||||||
try {
|
try {
|
||||||
getExecutor().execute(new Runnable() {
|
getExecutor().execute(new Runnable() {
|
||||||
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
if (isDisposed()) return;
|
if (isDisposed()) return;
|
||||||
handleEvent(event);
|
handleEvent(event);
|
||||||
|
|
|
@ -137,6 +137,7 @@ public class TimersView extends ViewPart {
|
||||||
/**
|
/**
|
||||||
* The input object provides the viewer access to the viewer model adapter.
|
* The input object provides the viewer access to the viewer model adapter.
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
@SuppressWarnings("unchecked")
|
@SuppressWarnings("unchecked")
|
||||||
public Object getAdapter(Class adapter) {
|
public Object getAdapter(Class adapter) {
|
||||||
if ( adapter.isInstance(fTimersVMAdapter) ) {
|
if ( adapter.isInstance(fTimersVMAdapter) ) {
|
||||||
|
@ -163,6 +164,7 @@ public class TimersView extends ViewPart {
|
||||||
// This operation needs to be performed in the session executor
|
// This operation needs to be performed in the session executor
|
||||||
// thread. Block using Future.get() until this call completes.
|
// thread. Block using Future.get() until this call completes.
|
||||||
fSession.getExecutor().submit(new Runnable() {
|
fSession.getExecutor().submit(new Runnable() {
|
||||||
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
fSession.unregisterModelAdapter(IElementContentProvider.class);
|
fSession.unregisterModelAdapter(IElementContentProvider.class);
|
||||||
fSession.unregisterModelAdapter(IModelProxyFactory.class);
|
fSession.unregisterModelAdapter(IModelProxyFactory.class);
|
||||||
|
@ -186,6 +188,7 @@ public class TimersView extends ViewPart {
|
||||||
|
|
||||||
// Finally end the session and the executor.
|
// Finally end the session and the executor.
|
||||||
fSession.getExecutor().submit(new Runnable() {
|
fSession.getExecutor().submit(new Runnable() {
|
||||||
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
DsfSession.endSession(fSession);
|
DsfSession.endSession(fSession);
|
||||||
fSession = null;
|
fSession = null;
|
||||||
|
@ -230,6 +233,7 @@ public class TimersView extends ViewPart {
|
||||||
@Override
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
fExecutor.execute(new Runnable() {
|
fExecutor.execute(new Runnable() {
|
||||||
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
// Only need to create the new timer, the events will
|
// Only need to create the new timer, the events will
|
||||||
// cause the view to refresh.
|
// cause the view to refresh.
|
||||||
|
@ -252,6 +256,7 @@ public class TimersView extends ViewPart {
|
||||||
"Please enter trigger value",
|
"Please enter trigger value",
|
||||||
"",
|
"",
|
||||||
new IInputValidator() {
|
new IInputValidator() {
|
||||||
|
@Override
|
||||||
public String isValid(String input) {
|
public String isValid(String input) {
|
||||||
try {
|
try {
|
||||||
int i= Integer.parseInt(input);
|
int i= Integer.parseInt(input);
|
||||||
|
@ -272,6 +277,7 @@ public class TimersView extends ViewPart {
|
||||||
} catch (NumberFormatException x) { assert false; }
|
} catch (NumberFormatException x) { assert false; }
|
||||||
final int triggerValue = tmpTriggerValue;
|
final int triggerValue = tmpTriggerValue;
|
||||||
fExecutor.execute(new Runnable() {
|
fExecutor.execute(new Runnable() {
|
||||||
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
// Create the new trigger
|
// Create the new trigger
|
||||||
fServices.getService(AlarmService.class).
|
fServices.getService(AlarmService.class).
|
||||||
|
@ -295,12 +301,14 @@ public class TimersView extends ViewPart {
|
||||||
// Based on the context from the selection, call the
|
// Based on the context from the selection, call the
|
||||||
// appropriate service to remove the item.
|
// appropriate service to remove the item.
|
||||||
if (selectedCtx instanceof TimerDMContext) {
|
if (selectedCtx instanceof TimerDMContext) {
|
||||||
fExecutor.execute(new Runnable() { public void run() {
|
fExecutor.execute(new Runnable() { @Override
|
||||||
|
public void run() {
|
||||||
fServices.getService(TimerService.class).killTimer(
|
fServices.getService(TimerService.class).killTimer(
|
||||||
((TimerDMContext)selectedCtx));
|
((TimerDMContext)selectedCtx));
|
||||||
}});
|
}});
|
||||||
} else if (selectedCtx instanceof AlarmService.TriggerDMContext) {
|
} else if (selectedCtx instanceof AlarmService.TriggerDMContext) {
|
||||||
fExecutor.execute(new Runnable() { public void run() {
|
fExecutor.execute(new Runnable() { @Override
|
||||||
|
public void run() {
|
||||||
fServices.getService(AlarmService.class).deleteTrigger(
|
fServices.getService(AlarmService.class).deleteTrigger(
|
||||||
(AlarmService.TriggerDMContext)selectedCtx);
|
(AlarmService.TriggerDMContext)selectedCtx);
|
||||||
}});
|
}});
|
||||||
|
|
|
@ -25,14 +25,18 @@ public class TimersViewColumnPresentation implements IColumnPresentation {
|
||||||
public static final String COL_ID = ID + ".COL_ID"; //$NON-NLS-1$
|
public static final String COL_ID = ID + ".COL_ID"; //$NON-NLS-1$
|
||||||
public static final String COL_VALUE = ID + ".COL_VALUE"; //$NON-NLS-1$
|
public static final String COL_VALUE = ID + ".COL_VALUE"; //$NON-NLS-1$
|
||||||
|
|
||||||
|
@Override
|
||||||
public void init(IPresentationContext context) {}
|
public void init(IPresentationContext context) {}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void dispose() {}
|
public void dispose() {}
|
||||||
|
|
||||||
|
@Override
|
||||||
public String[] getAvailableColumns() {
|
public String[] getAvailableColumns() {
|
||||||
return new String[] { COL_ID, COL_VALUE };
|
return new String[] { COL_ID, COL_VALUE };
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public String getHeader(String id) {
|
public String getHeader(String id) {
|
||||||
if (COL_ID.equals(id)) {
|
if (COL_ID.equals(id)) {
|
||||||
return "ID"; //$NON-NLS-1$
|
return "ID"; //$NON-NLS-1$
|
||||||
|
@ -42,18 +46,22 @@ public class TimersViewColumnPresentation implements IColumnPresentation {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public String getId() {
|
public String getId() {
|
||||||
return ID;
|
return ID;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public ImageDescriptor getImageDescriptor(String id) {
|
public ImageDescriptor getImageDescriptor(String id) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public String[] getInitialColumns() {
|
public String[] getInitialColumns() {
|
||||||
return getAvailableColumns();
|
return getAvailableColumns();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public boolean isOptional() {
|
public boolean isOptional() {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
|
@ -53,11 +53,13 @@ public class TriggerCellModifier implements ICellModifier {
|
||||||
fSession = session;
|
fSession = session;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public boolean canModify(Object element, String property) {
|
public boolean canModify(Object element, String property) {
|
||||||
return TimersViewColumnPresentation.COL_VALUE.equals(property) &&
|
return TimersViewColumnPresentation.COL_VALUE.equals(property) &&
|
||||||
getAlarmDMC(element) != null;
|
getAlarmDMC(element) != null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public Object getValue(Object element, String property) {
|
public Object getValue(Object element, String property) {
|
||||||
if (!TimersViewColumnPresentation.COL_VALUE.equals(property)) return "";
|
if (!TimersViewColumnPresentation.COL_VALUE.equals(property)) return "";
|
||||||
|
|
||||||
|
@ -86,6 +88,7 @@ public class TriggerCellModifier implements ICellModifier {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@Override
|
||||||
public void modify(Object element, String property, Object value) {
|
public void modify(Object element, String property, Object value) {
|
||||||
if (!TimersViewColumnPresentation.COL_VALUE.equals(property)) return;
|
if (!TimersViewColumnPresentation.COL_VALUE.equals(property)) return;
|
||||||
|
|
||||||
|
|
|
@ -101,14 +101,17 @@ class TriggersVMNode extends AbstractDMVMNode
|
||||||
update.done();
|
update.done();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void update(ILabelUpdate[] updates) {
|
public void update(ILabelUpdate[] updates) {
|
||||||
fgLabelProvider.update(updates);
|
fgLabelProvider.update(updates);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void update(final IPropertiesUpdate[] updates) {
|
public void update(final IPropertiesUpdate[] updates) {
|
||||||
// Switch to the session thread before processing the updates.
|
// Switch to the session thread before processing the updates.
|
||||||
try {
|
try {
|
||||||
getSession().getExecutor().execute(new DsfRunnable() {
|
getSession().getExecutor().execute(new DsfRunnable() {
|
||||||
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
for (IPropertiesUpdate update : updates) {
|
for (IPropertiesUpdate update : updates) {
|
||||||
updatePropertiesInSessionThread(update);
|
updatePropertiesInSessionThread(update);
|
||||||
|
@ -147,6 +150,7 @@ class TriggersVMNode extends AbstractDMVMNode
|
||||||
update.done();
|
update.done();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public CellEditor getCellEditor(IPresentationContext context, String columnId,
|
public CellEditor getCellEditor(IPresentationContext context, String columnId,
|
||||||
Object element, Composite parent)
|
Object element, Composite parent)
|
||||||
{
|
{
|
||||||
|
@ -159,6 +163,7 @@ class TriggersVMNode extends AbstractDMVMNode
|
||||||
|
|
||||||
// Note: this method is synchronized because IElementEditor.getCellModifier can be called
|
// Note: this method is synchronized because IElementEditor.getCellModifier can be called
|
||||||
// on any thread, even though in practice it should be only called on the UI thread.
|
// on any thread, even though in practice it should be only called on the UI thread.
|
||||||
|
@Override
|
||||||
public ICellModifier getCellModifier(IPresentationContext context,
|
public ICellModifier getCellModifier(IPresentationContext context,
|
||||||
Object element)
|
Object element)
|
||||||
{
|
{
|
||||||
|
@ -169,6 +174,7 @@ class TriggersVMNode extends AbstractDMVMNode
|
||||||
return fAlarmCellModifier;
|
return fAlarmCellModifier;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public int getDeltaFlags(Object e) {
|
public int getDeltaFlags(Object e) {
|
||||||
// Since the label for triggers doesn't change, this node will generate
|
// Since the label for triggers doesn't change, this node will generate
|
||||||
// delta info only if the list of alarms is changed.
|
// delta info only if the list of alarms is changed.
|
||||||
|
@ -179,6 +185,7 @@ class TriggersVMNode extends AbstractDMVMNode
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@Override
|
||||||
public void buildDelta(Object event, VMDelta parentDelta, int nodeOffset,
|
public void buildDelta(Object event, VMDelta parentDelta, int nodeOffset,
|
||||||
RequestMonitor requestMonitor)
|
RequestMonitor requestMonitor)
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<classpath>
|
<classpath>
|
||||||
<classpathentry kind="src" path="src"/>
|
<classpathentry kind="src" path="src"/>
|
||||||
<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.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.7"/>
|
||||||
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
|
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
|
||||||
<classpathentry kind="output" path="bin"/>
|
<classpathentry kind="output" path="bin"/>
|
||||||
</classpath>
|
</classpath>
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
#Wed Mar 10 12:16:35 PST 2010
|
#Wed Mar 10 12:16:35 PST 2010
|
||||||
eclipse.preferences.version=1
|
eclipse.preferences.version=1
|
||||||
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
|
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
|
||||||
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
|
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7
|
||||||
org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
|
org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
|
||||||
org.eclipse.jdt.core.compiler.compliance=1.5
|
org.eclipse.jdt.core.compiler.compliance=1.7
|
||||||
org.eclipse.jdt.core.compiler.debug.lineNumber=generate
|
org.eclipse.jdt.core.compiler.debug.lineNumber=generate
|
||||||
org.eclipse.jdt.core.compiler.debug.localVariable=generate
|
org.eclipse.jdt.core.compiler.debug.localVariable=generate
|
||||||
org.eclipse.jdt.core.compiler.debug.sourceFile=generate
|
org.eclipse.jdt.core.compiler.debug.sourceFile=generate
|
||||||
|
@ -73,4 +73,4 @@ org.eclipse.jdt.core.compiler.problem.unusedParameterWhenOverridingConcrete=disa
|
||||||
org.eclipse.jdt.core.compiler.problem.unusedPrivateMember=warning
|
org.eclipse.jdt.core.compiler.problem.unusedPrivateMember=warning
|
||||||
org.eclipse.jdt.core.compiler.problem.unusedWarningToken=warning
|
org.eclipse.jdt.core.compiler.problem.unusedWarningToken=warning
|
||||||
org.eclipse.jdt.core.compiler.problem.varargsArgumentNeedCast=warning
|
org.eclipse.jdt.core.compiler.problem.varargsArgumentNeedCast=warning
|
||||||
org.eclipse.jdt.core.compiler.source=1.5
|
org.eclipse.jdt.core.compiler.source=1.7
|
||||||
|
|
|
@ -17,4 +17,4 @@ Require-Bundle: org.eclipse.core.runtime,
|
||||||
org.eclipse.cdt.core;bundle-version="5.2.0",
|
org.eclipse.cdt.core;bundle-version="5.2.0",
|
||||||
org.eclipse.test.performance;bundle-version="3.6.0",
|
org.eclipse.test.performance;bundle-version="3.6.0",
|
||||||
org.junit;bundle-version="3.8.2"
|
org.junit;bundle-version="3.8.2"
|
||||||
Bundle-RequiredExecutionEnvironment: J2SE-1.5
|
Bundle-RequiredExecutionEnvironment: JavaSE-1.7
|
||||||
|
|
|
@ -325,6 +325,7 @@ public class ViewerUpdatesListener
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void updateStarted(IViewerUpdate update) {
|
public void updateStarted(IViewerUpdate update) {
|
||||||
synchronized (this) {
|
synchronized (this) {
|
||||||
fContentUpdatesCounter++;
|
fContentUpdatesCounter++;
|
||||||
|
@ -338,6 +339,7 @@ public class ViewerUpdatesListener
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void updateComplete(IViewerUpdate update) {
|
public void updateComplete(IViewerUpdate update) {
|
||||||
synchronized (this) {
|
synchronized (this) {
|
||||||
fContentUpdatesCounter--;
|
fContentUpdatesCounter--;
|
||||||
|
@ -378,6 +380,7 @@ public class ViewerUpdatesListener
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void viewerUpdatesBegin() {
|
public void viewerUpdatesBegin() {
|
||||||
if (fFailOnMultipleModelUpdateSequences && fContentSequenceComplete) {
|
if (fFailOnMultipleModelUpdateSequences && fContentSequenceComplete) {
|
||||||
fMultipleModelUpdateSequencesObserved = true;
|
fMultipleModelUpdateSequencesObserved = true;
|
||||||
|
@ -385,10 +388,12 @@ public class ViewerUpdatesListener
|
||||||
fContentSequenceStarted = true;
|
fContentSequenceStarted = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void viewerUpdatesComplete() {
|
public void viewerUpdatesComplete() {
|
||||||
fContentSequenceComplete = true;
|
fContentSequenceComplete = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void labelUpdateComplete(ILabelUpdate update) {
|
public void labelUpdateComplete(ILabelUpdate update) {
|
||||||
synchronized (this) {
|
synchronized (this) {
|
||||||
fLabelUpdatesRunning.remove(update);
|
fLabelUpdatesRunning.remove(update);
|
||||||
|
@ -400,6 +405,7 @@ public class ViewerUpdatesListener
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void labelUpdateStarted(ILabelUpdate update) {
|
public void labelUpdateStarted(ILabelUpdate update) {
|
||||||
synchronized (this) {
|
synchronized (this) {
|
||||||
fLabelUpdatesRunning.add(update);
|
fLabelUpdatesRunning.add(update);
|
||||||
|
@ -407,6 +413,7 @@ public class ViewerUpdatesListener
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void labelUpdatesBegin() {
|
public void labelUpdatesBegin() {
|
||||||
if (fFailOnMultipleLabelUpdateSequences && fLabelSequenceComplete) {
|
if (fFailOnMultipleLabelUpdateSequences && fLabelSequenceComplete) {
|
||||||
fMultipleLabelUpdateSequencesObserved = true;
|
fMultipleLabelUpdateSequencesObserved = true;
|
||||||
|
@ -414,10 +421,12 @@ public class ViewerUpdatesListener
|
||||||
fLabelUpdatesStarted = true;
|
fLabelUpdatesStarted = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void labelUpdatesComplete() {
|
public void labelUpdatesComplete() {
|
||||||
fLabelSequenceComplete = true;
|
fLabelSequenceComplete = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void propertiesUpdatesStarted(IPropertiesUpdate[] updates) {
|
public void propertiesUpdatesStarted(IPropertiesUpdate[] updates) {
|
||||||
for (IPropertiesUpdate update : updates) {
|
for (IPropertiesUpdate update : updates) {
|
||||||
fPropertiesUpdatesRunning.add(update);
|
fPropertiesUpdatesRunning.add(update);
|
||||||
|
@ -425,6 +434,7 @@ public class ViewerUpdatesListener
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void propertiesUpdateCompleted(IPropertiesUpdate update) {
|
public void propertiesUpdateCompleted(IPropertiesUpdate update) {
|
||||||
synchronized (this) {
|
synchronized (this) {
|
||||||
fPropertiesUpdatesRunning.remove(update);
|
fPropertiesUpdatesRunning.remove(update);
|
||||||
|
@ -437,29 +447,36 @@ public class ViewerUpdatesListener
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void modelChanged(IModelDelta delta, IModelProxy proxy) {
|
public void modelChanged(IModelDelta delta, IModelProxy proxy) {
|
||||||
fModelChangedComplete = true;
|
fModelChangedComplete = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void stateRestoreUpdatesBegin(Object input) {
|
public void stateRestoreUpdatesBegin(Object input) {
|
||||||
fStateRestoreStarted = true;
|
fStateRestoreStarted = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void stateRestoreUpdatesComplete(Object input) {
|
public void stateRestoreUpdatesComplete(Object input) {
|
||||||
fStateRestoreComplete = true;
|
fStateRestoreComplete = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void stateSaveUpdatesBegin(Object input) {
|
public void stateSaveUpdatesBegin(Object input) {
|
||||||
fStateSaveStarted = true;
|
fStateSaveStarted = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void stateSaveUpdatesComplete(Object input) {
|
public void stateSaveUpdatesComplete(Object input) {
|
||||||
fStateSaveComplete = true;
|
fStateSaveComplete = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void stateUpdateComplete(Object input, IViewerUpdate update) {
|
public void stateUpdateComplete(Object input, IViewerUpdate update) {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void stateUpdateStarted(Object input, IViewerUpdate update) {
|
public void stateUpdateStarted(Object input, IViewerUpdate update) {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -155,7 +155,8 @@ public class BreakpointMediatorTests {
|
||||||
fExecutor.execute(seq);
|
fExecutor.execute(seq);
|
||||||
seq.get();
|
seq.get();
|
||||||
|
|
||||||
fExecutor.submit(new DsfRunnable() { public void run() {
|
fExecutor.submit(new DsfRunnable() { @Override
|
||||||
|
public void run() {
|
||||||
fExecutor.shutdown();
|
fExecutor.shutdown();
|
||||||
}}).get();
|
}}).get();
|
||||||
if (fExecutor.exceptionsCaught()) {
|
if (fExecutor.exceptionsCaught()) {
|
||||||
|
|
|
@ -46,6 +46,7 @@ public class DsfTestBreakpoint extends Breakpoint {
|
||||||
{
|
{
|
||||||
final IResource resource = ResourcesPlugin.getWorkspace().getRoot();
|
final IResource resource = ResourcesPlugin.getWorkspace().getRoot();
|
||||||
IWorkspaceRunnable runnable = new IWorkspaceRunnable() {
|
IWorkspaceRunnable runnable = new IWorkspaceRunnable() {
|
||||||
|
@Override
|
||||||
public void run(IProgressMonitor monitor) throws CoreException {
|
public void run(IProgressMonitor monitor) throws CoreException {
|
||||||
IMarker marker = resource.createMarker("org.eclipse.cdt.tests.dsf.markerType.breakpoint");
|
IMarker marker = resource.createMarker("org.eclipse.cdt.tests.dsf.markerType.breakpoint");
|
||||||
setMarker(marker);
|
setMarker(marker);
|
||||||
|
@ -65,6 +66,7 @@ public class DsfTestBreakpoint extends Breakpoint {
|
||||||
return (Integer)ensureMarker().getAttribute(ATTR_ID);
|
return (Integer)ensureMarker().getAttribute(ATTR_ID);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public String getModelIdentifier() {
|
public String getModelIdentifier() {
|
||||||
return DSF_TEST_BREAKPOINT_MODEL_ID;
|
return DSF_TEST_BREAKPOINT_MODEL_ID;
|
||||||
}
|
}
|
||||||
|
|
|
@ -29,16 +29,20 @@ import org.eclipse.debug.core.model.IBreakpoint;
|
||||||
*/
|
*/
|
||||||
public class DsfTestBreakpointAttributeTranslator2 implements IBreakpointAttributeTranslator2 {
|
public class DsfTestBreakpointAttributeTranslator2 implements IBreakpointAttributeTranslator2 {
|
||||||
|
|
||||||
|
@Override
|
||||||
public void initialize(BreakpointsMediator2 mediator) {
|
public void initialize(BreakpointsMediator2 mediator) {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void dispose() {
|
public void dispose() {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public boolean supportsBreakpoint(IBreakpoint bp) {
|
public boolean supportsBreakpoint(IBreakpoint bp) {
|
||||||
return DsfTestBreakpoint.DSF_TEST_BREAKPOINT_MODEL_ID.equals(bp.getModelIdentifier());
|
return DsfTestBreakpoint.DSF_TEST_BREAKPOINT_MODEL_ID.equals(bp.getModelIdentifier());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void resolveBreakpoint(IBreakpointsTargetDMContext context, IBreakpoint breakpoint,
|
public void resolveBreakpoint(IBreakpointsTargetDMContext context, IBreakpoint breakpoint,
|
||||||
Map<String, Object> bpAttrs, DataRequestMonitor<List<Map<String, Object>>> drm)
|
Map<String, Object> bpAttrs, DataRequestMonitor<List<Map<String, Object>>> drm)
|
||||||
{
|
{
|
||||||
|
@ -56,6 +60,7 @@ public class DsfTestBreakpointAttributeTranslator2 implements IBreakpointAttribu
|
||||||
drm.done();
|
drm.done();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public Map<String, Object> getAllBreakpointAttributes(IBreakpoint platformBP, boolean bpManagerEnabled)
|
public Map<String, Object> getAllBreakpointAttributes(IBreakpoint platformBP, boolean bpManagerEnabled)
|
||||||
throws CoreException
|
throws CoreException
|
||||||
{
|
{
|
||||||
|
@ -67,6 +72,7 @@ public class DsfTestBreakpointAttributeTranslator2 implements IBreakpointAttribu
|
||||||
return convertAttributes(platformBPAttr);
|
return convertAttributes(platformBPAttr);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public Map<String, Object> convertAttributes(Map<String, Object> platformBPAttr) {
|
public Map<String, Object> convertAttributes(Map<String, Object> platformBPAttr) {
|
||||||
Map<String, Object> debugAttrs = new HashMap<String, Object>(platformBPAttr.size());
|
Map<String, Object> debugAttrs = new HashMap<String, Object>(platformBPAttr.size());
|
||||||
for (Map.Entry<String, Object> entry : platformBPAttr.entrySet()) {
|
for (Map.Entry<String, Object> entry : platformBPAttr.entrySet()) {
|
||||||
|
@ -82,6 +88,7 @@ public class DsfTestBreakpointAttributeTranslator2 implements IBreakpointAttribu
|
||||||
return debugAttrs;
|
return debugAttrs;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void updateBreakpointsStatus(
|
public void updateBreakpointsStatus(
|
||||||
Map<IBreakpoint, Map<IBreakpointsTargetDMContext, ITargetBreakpointInfo[]>> bpsInfo,
|
Map<IBreakpoint, Map<IBreakpointsTargetDMContext, ITargetBreakpointInfo[]>> bpsInfo,
|
||||||
BreakpointEventType eventType)
|
BreakpointEventType eventType)
|
||||||
|
@ -89,6 +96,7 @@ public class DsfTestBreakpointAttributeTranslator2 implements IBreakpointAttribu
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public boolean canUpdateAttributes(IBreakpoint bp, IBreakpointsTargetDMContext context,
|
public boolean canUpdateAttributes(IBreakpoint bp, IBreakpointsTargetDMContext context,
|
||||||
Map<String, Object> attributes)
|
Map<String, Object> attributes)
|
||||||
{
|
{
|
||||||
|
|
|
@ -114,15 +114,24 @@ public class DsfTestBreakpoints extends AbstractDsfService implements IBreakpoin
|
||||||
fAttributes = Collections.unmodifiableMap( new HashMap<String, Object>(attributes) );
|
fAttributes = Collections.unmodifiableMap( new HashMap<String, Object>(attributes) );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public IAddress[] getAddresses() { return null; }
|
public IAddress[] getAddresses() { return null; }
|
||||||
|
@Override
|
||||||
public String getBreakpointType() { return null; }
|
public String getBreakpointType() { return null; }
|
||||||
|
@Override
|
||||||
public String getFileName() { return null; }
|
public String getFileName() { return null; }
|
||||||
|
@Override
|
||||||
public int getLineNumber() { return 0; }
|
public int getLineNumber() { return 0; }
|
||||||
|
@Override
|
||||||
public String getFunctionName() { return null; }
|
public String getFunctionName() { return null; }
|
||||||
|
@Override
|
||||||
public String getCondition() { return null; }
|
public String getCondition() { return null; }
|
||||||
|
@Override
|
||||||
public int getIgnoreCount() { return 0; }
|
public int getIgnoreCount() { return 0; }
|
||||||
|
@Override
|
||||||
public String getExpression() { return null; }
|
public String getExpression() { return null; }
|
||||||
|
|
||||||
|
@Override
|
||||||
public boolean isEnabled() { return (Boolean)getAttributes().get(ATTR_ENABLED); }
|
public boolean isEnabled() { return (Boolean)getAttributes().get(ATTR_ENABLED); }
|
||||||
public Map<String, Object> getAttributes() { return fAttributes; }
|
public Map<String, Object> getAttributes() { return fAttributes; }
|
||||||
}
|
}
|
||||||
|
@ -136,10 +145,12 @@ public class DsfTestBreakpoints extends AbstractDsfService implements IBreakpoin
|
||||||
fBreakpointArray = new IBreakpointDMContext[] { bp };
|
fBreakpointArray = new IBreakpointDMContext[] { bp };
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public IBreakpointsTargetDMContext getDMContext() {
|
public IBreakpointsTargetDMContext getDMContext() {
|
||||||
return DMContexts.getAncestorOfType(fBreakpoint, IBreakpointsTargetDMContext.class);
|
return DMContexts.getAncestorOfType(fBreakpoint, IBreakpointsTargetDMContext.class);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public IBreakpointDMContext[] getBreakpoints() {
|
public IBreakpointDMContext[] getBreakpoints() {
|
||||||
return fBreakpointArray;
|
return fBreakpointArray;
|
||||||
}
|
}
|
||||||
|
@ -205,6 +216,7 @@ public class DsfTestBreakpoints extends AbstractDsfService implements IBreakpoin
|
||||||
return DsfTestPlugin.getBundleContext();
|
return DsfTestPlugin.getBundleContext();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void getBreakpoints(final IBreakpointsTargetDMContext context, final DataRequestMonitor<IBreakpointDMContext[]> rm) {
|
public void getBreakpoints(final IBreakpointsTargetDMContext context, final DataRequestMonitor<IBreakpointDMContext[]> rm) {
|
||||||
// Validate the context
|
// Validate the context
|
||||||
// TODO: check the target context
|
// TODO: check the target context
|
||||||
|
@ -217,10 +229,12 @@ public class DsfTestBreakpoints extends AbstractDsfService implements IBreakpoin
|
||||||
rm.done();
|
rm.done();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void getBreakpointDMData(IBreakpointDMContext dmc, DataRequestMonitor<IBreakpointDMData> rm) {
|
public void getBreakpointDMData(IBreakpointDMContext dmc, DataRequestMonitor<IBreakpointDMData> rm) {
|
||||||
DsfTestPlugin.failRequest(rm, NOT_SUPPORTED, "Retrieving breakpoint data is not supported");
|
DsfTestPlugin.failRequest(rm, NOT_SUPPORTED, "Retrieving breakpoint data is not supported");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void insertBreakpoint(IBreakpointsTargetDMContext context, Map<String, Object> attributes,
|
public void insertBreakpoint(IBreakpointsTargetDMContext context, Map<String, Object> attributes,
|
||||||
DataRequestMonitor<IBreakpointDMContext> rm)
|
DataRequestMonitor<IBreakpointDMContext> rm)
|
||||||
{
|
{
|
||||||
|
@ -275,6 +289,7 @@ public class DsfTestBreakpoints extends AbstractDsfService implements IBreakpoin
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@Override
|
||||||
public void removeBreakpoint(IBreakpointDMContext bpCtx, RequestMonitor rm) {
|
public void removeBreakpoint(IBreakpointDMContext bpCtx, RequestMonitor rm) {
|
||||||
if (!fBreakpoints.containsKey(bpCtx)) {
|
if (!fBreakpoints.containsKey(bpCtx)) {
|
||||||
DsfTestPlugin.failRequest(rm, REQUEST_FAILED, "Breakpoint already removed");
|
DsfTestPlugin.failRequest(rm, REQUEST_FAILED, "Breakpoint already removed");
|
||||||
|
@ -294,6 +309,7 @@ public class DsfTestBreakpoints extends AbstractDsfService implements IBreakpoin
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void updateBreakpoint(final IBreakpointDMContext bpCtx, Map<String, Object> attributes, final RequestMonitor rm) {
|
public void updateBreakpoint(final IBreakpointDMContext bpCtx, Map<String, Object> attributes, final RequestMonitor rm) {
|
||||||
if (!fBreakpoints.containsKey(bpCtx)) {
|
if (!fBreakpoints.containsKey(bpCtx)) {
|
||||||
DsfTestPlugin.failRequest(rm, REQUEST_FAILED, "Breakpoint not installed");
|
DsfTestPlugin.failRequest(rm, REQUEST_FAILED, "Breakpoint not installed");
|
||||||
|
|
|
@ -109,7 +109,8 @@ public class CacheTests {
|
||||||
|
|
||||||
@After
|
@After
|
||||||
public void shutdownExecutor() throws ExecutionException, InterruptedException {
|
public void shutdownExecutor() throws ExecutionException, InterruptedException {
|
||||||
fExecutor.submit(new DsfRunnable() { public void run() {
|
fExecutor.submit(new DsfRunnable() { @Override
|
||||||
|
public void run() {
|
||||||
fExecutor.shutdown();
|
fExecutor.shutdown();
|
||||||
}}).get();
|
}}).get();
|
||||||
if (fExecutor.exceptionsCaught()) {
|
if (fExecutor.exceptionsCaught()) {
|
||||||
|
@ -189,7 +190,8 @@ public class CacheTests {
|
||||||
assertFalse(fTestCache.isValid());
|
assertFalse(fTestCache.isValid());
|
||||||
|
|
||||||
// Complete the cache's retrieve data request.
|
// Complete the cache's retrieve data request.
|
||||||
fExecutor.submit(new Callable<Object>() { public Object call() {
|
fExecutor.submit(new Callable<Object>() { @Override
|
||||||
|
public Object call() {
|
||||||
fRetrieveRm.setData(1);
|
fRetrieveRm.setData(1);
|
||||||
fRetrieveRm.done();
|
fRetrieveRm.done();
|
||||||
|
|
||||||
|
@ -318,6 +320,7 @@ public class CacheTests {
|
||||||
public void disableBeforeRequestTest() throws InterruptedException, ExecutionException {
|
public void disableBeforeRequestTest() throws InterruptedException, ExecutionException {
|
||||||
// Disable the cache
|
// Disable the cache
|
||||||
fExecutor.submit(new DsfRunnable() {
|
fExecutor.submit(new DsfRunnable() {
|
||||||
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
fTestCache.set(null, STATUS_TARGET_RUNNING);
|
fTestCache.set(null, STATUS_TARGET_RUNNING);
|
||||||
}
|
}
|
||||||
|
@ -356,6 +359,7 @@ public class CacheTests {
|
||||||
|
|
||||||
// Disable the cache
|
// Disable the cache
|
||||||
fExecutor.submit(new DsfRunnable() {
|
fExecutor.submit(new DsfRunnable() {
|
||||||
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
fTestCache.set(null, STATUS_TARGET_RUNNING);
|
fTestCache.set(null, STATUS_TARGET_RUNNING);
|
||||||
}
|
}
|
||||||
|
@ -367,6 +371,7 @@ public class CacheTests {
|
||||||
// disassociates it from its retrieval RM. Thus regardless of how that
|
// disassociates it from its retrieval RM. Thus regardless of how that
|
||||||
// request completes, it does not affect the cache.
|
// request completes, it does not affect the cache.
|
||||||
fExecutor.submit(new DsfRunnable() {
|
fExecutor.submit(new DsfRunnable() {
|
||||||
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
fRetrieveRm.setData(1);
|
fRetrieveRm.setData(1);
|
||||||
fRetrieveRm.done();
|
fRetrieveRm.done();
|
||||||
|
@ -399,6 +404,7 @@ public class CacheTests {
|
||||||
|
|
||||||
// Disable the cache
|
// Disable the cache
|
||||||
fExecutor.submit(new DsfRunnable() {
|
fExecutor.submit(new DsfRunnable() {
|
||||||
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
fTestCache.set(null, STATUS_TARGET_RUNNING);
|
fTestCache.set(null, STATUS_TARGET_RUNNING);
|
||||||
}
|
}
|
||||||
|
@ -412,6 +418,7 @@ public class CacheTests {
|
||||||
public void setWithValueTest() throws InterruptedException, ExecutionException {
|
public void setWithValueTest() throws InterruptedException, ExecutionException {
|
||||||
// Disable the cache
|
// Disable the cache
|
||||||
fExecutor.submit(new DsfRunnable() {
|
fExecutor.submit(new DsfRunnable() {
|
||||||
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
fTestCache.set(2, Status.OK_STATUS);
|
fTestCache.set(2, Status.OK_STATUS);
|
||||||
}
|
}
|
||||||
|
@ -444,6 +451,7 @@ public class CacheTests {
|
||||||
// request. Perhaps the retrieval logic isn't checking the RM status.
|
// request. Perhaps the retrieval logic isn't checking the RM status.
|
||||||
// Even if it is checking, it may have gotten passed its last checkpoint
|
// Even if it is checking, it may have gotten passed its last checkpoint
|
||||||
fExecutor.submit(new DsfRunnable() {
|
fExecutor.submit(new DsfRunnable() {
|
||||||
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
fRetrieveRm.setData(1);
|
fRetrieveRm.setData(1);
|
||||||
fRetrieveRm.done();
|
fRetrieveRm.done();
|
||||||
|
@ -481,6 +489,7 @@ public class CacheTests {
|
||||||
// completing the RM. Note that it hasn't provided the data to the
|
// completing the RM. Note that it hasn't provided the data to the
|
||||||
// cache.
|
// cache.
|
||||||
fExecutor.submit(new DsfRunnable() {
|
fExecutor.submit(new DsfRunnable() {
|
||||||
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
fRetrieveRm.done();
|
fRetrieveRm.done();
|
||||||
}
|
}
|
||||||
|
@ -512,6 +521,7 @@ public class CacheTests {
|
||||||
// aborts its processing, sets STATUS.CANCEL_STATUS in the RM and
|
// aborts its processing, sets STATUS.CANCEL_STATUS in the RM and
|
||||||
// completes it.
|
// completes it.
|
||||||
fExecutor.submit(new DsfRunnable() {
|
fExecutor.submit(new DsfRunnable() {
|
||||||
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
fRetrieveRm.setStatus(Status.CANCEL_STATUS);
|
fRetrieveRm.setStatus(Status.CANCEL_STATUS);
|
||||||
fRetrieveRm.done();
|
fRetrieveRm.done();
|
||||||
|
@ -568,7 +578,8 @@ public class CacheTests {
|
||||||
// called in a separate dispatch cycle, so we have to wait one cycle of the executor
|
// called in a separate dispatch cycle, so we have to wait one cycle of the executor
|
||||||
// after is canceled is called.
|
// after is canceled is called.
|
||||||
fRetrieveRm.isCanceled();
|
fRetrieveRm.isCanceled();
|
||||||
fExecutor.submit(new Runnable() { public void run() {} }).get();
|
fExecutor.submit(new Runnable() { @Override
|
||||||
|
public void run() {} }).get();
|
||||||
assertTrue(canceledCalled[0]);
|
assertTrue(canceledCalled[0]);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
@ -579,6 +590,7 @@ public class CacheTests {
|
||||||
|
|
||||||
// Completed the retrieve RM
|
// Completed the retrieve RM
|
||||||
fExecutor.submit(new DsfRunnable() {
|
fExecutor.submit(new DsfRunnable() {
|
||||||
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
fRetrieveRm.setData(1);
|
fRetrieveRm.setData(1);
|
||||||
fRetrieveRm.done();
|
fRetrieveRm.done();
|
||||||
|
@ -645,6 +657,7 @@ public class CacheTests {
|
||||||
|
|
||||||
// Reset the cache
|
// Reset the cache
|
||||||
fExecutor.submit(new DsfRunnable() {
|
fExecutor.submit(new DsfRunnable() {
|
||||||
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
fRetrieveRm = null;
|
fRetrieveRm = null;
|
||||||
fTestCache.set(null, Status.OK_STATUS);
|
fTestCache.set(null, Status.OK_STATUS);
|
||||||
|
@ -665,6 +678,7 @@ public class CacheTests {
|
||||||
|
|
||||||
// Completed the retrieve RM
|
// Completed the retrieve RM
|
||||||
fExecutor.submit(new DsfRunnable() {
|
fExecutor.submit(new DsfRunnable() {
|
||||||
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
fRetrieveRm.setData(1);
|
fRetrieveRm.setData(1);
|
||||||
fRetrieveRm.done();
|
fRetrieveRm.done();
|
||||||
|
@ -711,6 +725,7 @@ public class CacheTests {
|
||||||
|
|
||||||
// Completed the retrieve RM
|
// Completed the retrieve RM
|
||||||
fExecutor.submit(new DsfRunnable() {
|
fExecutor.submit(new DsfRunnable() {
|
||||||
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
fRetrieveRm.setData(1);
|
fRetrieveRm.setData(1);
|
||||||
fRetrieveRm.done();
|
fRetrieveRm.done();
|
||||||
|
@ -769,6 +784,7 @@ public class CacheTests {
|
||||||
|
|
||||||
// Completed the retrieve RM
|
// Completed the retrieve RM
|
||||||
fExecutor.submit(new DsfRunnable() {
|
fExecutor.submit(new DsfRunnable() {
|
||||||
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
fRetrieveRm.setData(1);
|
fRetrieveRm.setData(1);
|
||||||
fRetrieveRm.done();
|
fRetrieveRm.done();
|
||||||
|
@ -796,6 +812,7 @@ public class CacheTests {
|
||||||
|
|
||||||
// Disable cache
|
// Disable cache
|
||||||
fExecutor.submit(new DsfRunnable() {
|
fExecutor.submit(new DsfRunnable() {
|
||||||
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
fTestCache.reset();
|
fTestCache.reset();
|
||||||
}
|
}
|
||||||
|
|
|
@ -44,7 +44,8 @@ public class DsfQueryTests {
|
||||||
|
|
||||||
@After
|
@After
|
||||||
public void shutdownServices() throws ExecutionException, InterruptedException {
|
public void shutdownServices() throws ExecutionException, InterruptedException {
|
||||||
fExecutor.submit(new DsfRunnable() { public void run() {
|
fExecutor.submit(new DsfRunnable() { @Override
|
||||||
|
public void run() {
|
||||||
fExecutor.shutdown();
|
fExecutor.shutdown();
|
||||||
}}).get();
|
}}).get();
|
||||||
if (fExecutor.exceptionsCaught()) {
|
if (fExecutor.exceptionsCaught()) {
|
||||||
|
@ -142,6 +143,7 @@ public class DsfQueryTests {
|
||||||
@Override
|
@Override
|
||||||
protected void execute(final DataRequestMonitor<Integer> rm) {
|
protected void execute(final DataRequestMonitor<Integer> rm) {
|
||||||
fExecutor.execute(new DsfRunnable() {
|
fExecutor.execute(new DsfRunnable() {
|
||||||
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
rm.setData(1);
|
rm.setData(1);
|
||||||
rm.done();
|
rm.done();
|
||||||
|
@ -236,6 +238,7 @@ public class DsfQueryTests {
|
||||||
// Add a cancel listener to the query RM
|
// Add a cancel listener to the query RM
|
||||||
rmHolder[0].addCancelListener(new ICanceledListener() {
|
rmHolder[0].addCancelListener(new ICanceledListener() {
|
||||||
|
|
||||||
|
@Override
|
||||||
public void requestCanceled(RequestMonitor rm) {
|
public void requestCanceled(RequestMonitor rm) {
|
||||||
cancelCalled[0] = Boolean.TRUE;
|
cancelCalled[0] = Boolean.TRUE;
|
||||||
}
|
}
|
||||||
|
@ -289,6 +292,7 @@ public class DsfQueryTests {
|
||||||
// Call done with a delay of 1 second, to avoid stalling the tests.
|
// Call done with a delay of 1 second, to avoid stalling the tests.
|
||||||
fExecutor.schedule(
|
fExecutor.schedule(
|
||||||
new DsfRunnable() {
|
new DsfRunnable() {
|
||||||
|
@Override
|
||||||
public void run() { rm.done(); }
|
public void run() { rm.done(); }
|
||||||
},
|
},
|
||||||
60, TimeUnit.SECONDS);
|
60, TimeUnit.SECONDS);
|
||||||
|
|
|
@ -45,7 +45,8 @@ public class DsfSequenceProgressTests {
|
||||||
|
|
||||||
@After
|
@After
|
||||||
public void shutdownExecutor() throws ExecutionException, InterruptedException {
|
public void shutdownExecutor() throws ExecutionException, InterruptedException {
|
||||||
fExecutor.submit(new DsfRunnable() { public void run() {
|
fExecutor.submit(new DsfRunnable() { @Override
|
||||||
|
public void run() {
|
||||||
fExecutor.shutdown();
|
fExecutor.shutdown();
|
||||||
}}).get();
|
}}).get();
|
||||||
if (fExecutor.exceptionsCaught()) {
|
if (fExecutor.exceptionsCaught()) {
|
||||||
|
|
|
@ -46,7 +46,8 @@ public class DsfSequenceTests {
|
||||||
if (!fExecutor.isShutdown()) {
|
if (!fExecutor.isShutdown()) {
|
||||||
// Some tests shut down the executor deliberatly)
|
// Some tests shut down the executor deliberatly)
|
||||||
|
|
||||||
fExecutor.submit(new DsfRunnable() { public void run() {
|
fExecutor.submit(new DsfRunnable() { @Override
|
||||||
|
public void run() {
|
||||||
fExecutor.shutdown();
|
fExecutor.shutdown();
|
||||||
}}).get();
|
}}).get();
|
||||||
}
|
}
|
||||||
|
|
|
@ -97,6 +97,7 @@ public class RangeCacheTests {
|
||||||
fRm = rm;
|
fRm = rm;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public int compareTo(RetrieveInfo o) {
|
public int compareTo(RetrieveInfo o) {
|
||||||
if (fOffset > o.fOffset) {
|
if (fOffset > o.fOffset) {
|
||||||
return 1;
|
return 1;
|
||||||
|
@ -148,7 +149,8 @@ public class RangeCacheTests {
|
||||||
|
|
||||||
@After
|
@After
|
||||||
public void shutdownExecutor() throws ExecutionException, InterruptedException {
|
public void shutdownExecutor() throws ExecutionException, InterruptedException {
|
||||||
fExecutor.submit(new DsfRunnable() { public void run() {
|
fExecutor.submit(new DsfRunnable() { @Override
|
||||||
|
public void run() {
|
||||||
fExecutor.shutdown();
|
fExecutor.shutdown();
|
||||||
}}).get();
|
}}).get();
|
||||||
if (fExecutor.exceptionsCaught()) {
|
if (fExecutor.exceptionsCaught()) {
|
||||||
|
@ -314,6 +316,7 @@ public class RangeCacheTests {
|
||||||
getRange(0, 100, new long[] { 0 }, new int[] { 100 });
|
getRange(0, 100, new long[] { 0 }, new int[] { 100 });
|
||||||
|
|
||||||
fExecutor.submit(new DsfRunnable() {
|
fExecutor.submit(new DsfRunnable() {
|
||||||
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
fTestCache.reset();
|
fTestCache.reset();
|
||||||
};
|
};
|
||||||
|
@ -341,6 +344,7 @@ public class RangeCacheTests {
|
||||||
getRange(2050, 50, new long[] {}, new int[] {});
|
getRange(2050, 50, new long[] {}, new int[] {});
|
||||||
|
|
||||||
fExecutor.submit(new DsfRunnable() {
|
fExecutor.submit(new DsfRunnable() {
|
||||||
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
fTestCache.reset();
|
fTestCache.reset();
|
||||||
};
|
};
|
||||||
|
@ -379,6 +383,7 @@ public class RangeCacheTests {
|
||||||
assertCacheWaiting(fRangeCache);
|
assertCacheWaiting(fRangeCache);
|
||||||
|
|
||||||
fExecutor.submit(new DsfRunnable() {
|
fExecutor.submit(new DsfRunnable() {
|
||||||
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
fTestCache.reset();
|
fTestCache.reset();
|
||||||
};
|
};
|
||||||
|
@ -403,6 +408,7 @@ public class RangeCacheTests {
|
||||||
|
|
||||||
// Force an error status into the range cache.
|
// Force an error status into the range cache.
|
||||||
fExecutor.submit(new DsfRunnable() {
|
fExecutor.submit(new DsfRunnable() {
|
||||||
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
fTestCache.set(0, 100, null, new Status(IStatus.ERROR, DsfTestPlugin.PLUGIN_ID, IDsfStatusConstants.INVALID_STATE, "Cache invalid", null));
|
fTestCache.set(0, 100, null, new Status(IStatus.ERROR, DsfTestPlugin.PLUGIN_ID, IDsfStatusConstants.INVALID_STATE, "Cache invalid", null));
|
||||||
};
|
};
|
||||||
|
@ -411,6 +417,7 @@ public class RangeCacheTests {
|
||||||
// Retrieve a range cache and check that it immediately contains the error status in it.
|
// Retrieve a range cache and check that it immediately contains the error status in it.
|
||||||
fRangeCache = null;
|
fRangeCache = null;
|
||||||
fExecutor.submit(new DsfRunnable() {
|
fExecutor.submit(new DsfRunnable() {
|
||||||
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
fRangeCache = fTestCache.getRange(0, 100);
|
fRangeCache = fTestCache.getRange(0, 100);
|
||||||
}
|
}
|
||||||
|
@ -453,6 +460,7 @@ public class RangeCacheTests {
|
||||||
completeInfo(info, 0, 100);
|
completeInfo(info, 0, 100);
|
||||||
|
|
||||||
fExecutor.submit(new DsfRunnable() {
|
fExecutor.submit(new DsfRunnable() {
|
||||||
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
fRangeCache = fTestCache.getRange(0, 100);
|
fRangeCache = fTestCache.getRange(0, 100);
|
||||||
}
|
}
|
||||||
|
|
|
@ -115,7 +115,8 @@ public class TransactionTests {
|
||||||
|
|
||||||
@After
|
@After
|
||||||
public void shutdownExecutor() throws ExecutionException, InterruptedException {
|
public void shutdownExecutor() throws ExecutionException, InterruptedException {
|
||||||
fExecutor.submit(new DsfRunnable() { public void run() {
|
fExecutor.submit(new DsfRunnable() { @Override
|
||||||
|
public void run() {
|
||||||
fExecutor.shutdown();
|
fExecutor.shutdown();
|
||||||
}}).get();
|
}}).get();
|
||||||
if (fExecutor.exceptionsCaught()) {
|
if (fExecutor.exceptionsCaught()) {
|
||||||
|
|
|
@ -64,8 +64,10 @@ public class VMTest1 extends VMTestBase implements IViewerUpdatesListenerConstan
|
||||||
final boolean[] containerExpandReceived = new boolean[1];
|
final boolean[] containerExpandReceived = new boolean[1];
|
||||||
containerExpandReceived[0] = false;
|
containerExpandReceived[0] = false;
|
||||||
dv.addModelChangedListener(new IModelChangedListener() {
|
dv.addModelChangedListener(new IModelChangedListener() {
|
||||||
|
@Override
|
||||||
public void modelChanged(IModelDelta delta, IModelProxy proxy) {
|
public void modelChanged(IModelDelta delta, IModelProxy proxy) {
|
||||||
delta.accept(new IModelDeltaVisitor() {
|
delta.accept(new IModelDeltaVisitor() {
|
||||||
|
@Override
|
||||||
public boolean visit(IModelDelta delta, int depth) {
|
public boolean visit(IModelDelta delta, int depth) {
|
||||||
if (delta.getElement() instanceof IDMVMContext &&
|
if (delta.getElement() instanceof IDMVMContext &&
|
||||||
((IDMVMContext)delta.getElement()).getDMContext() instanceof IContainerDMContext &&
|
((IDMVMContext)delta.getElement()).getDMContext() instanceof IContainerDMContext &&
|
||||||
|
|
|
@ -83,6 +83,7 @@ public class VMTestBase {
|
||||||
final ServiceEventWaitor<?> eventWaitor[] = new ServiceEventWaitor<?>[1];
|
final ServiceEventWaitor<?> eventWaitor[] = new ServiceEventWaitor<?>[1];
|
||||||
|
|
||||||
SessionStartedListener newSessionListener = new SessionStartedListener() {
|
SessionStartedListener newSessionListener = new SessionStartedListener() {
|
||||||
|
@Override
|
||||||
public void sessionStarted(DsfSession session) {
|
public void sessionStarted(DsfSession session) {
|
||||||
eventWaitor[0] = new ServiceEventWaitor<IStartedDMEvent>(session, IStartedDMEvent.class);
|
eventWaitor[0] = new ServiceEventWaitor<IStartedDMEvent>(session, IStartedDMEvent.class);
|
||||||
}
|
}
|
||||||
|
|
|
@ -33,7 +33,8 @@ public class DMContextsTest {
|
||||||
|
|
||||||
@Before public void startExecutor() throws ExecutionException, InterruptedException {
|
@Before public void startExecutor() throws ExecutionException, InterruptedException {
|
||||||
fExecutor = new TestDsfExecutor();
|
fExecutor = new TestDsfExecutor();
|
||||||
fExecutor.submit(new DsfRunnable() { public void run() {
|
fExecutor.submit(new DsfRunnable() { @Override
|
||||||
|
public void run() {
|
||||||
fSession = DsfSession.startSession(fExecutor, "DMContextsTest"); //$NON-NLS-1$
|
fSession = DsfSession.startSession(fExecutor, "DMContextsTest"); //$NON-NLS-1$
|
||||||
}}).get();
|
}}).get();
|
||||||
|
|
||||||
|
@ -64,7 +65,8 @@ public class DMContextsTest {
|
||||||
DsfSession.endSession(fSession);
|
DsfSession.endSession(fSession);
|
||||||
fSession = null;
|
fSession = null;
|
||||||
|
|
||||||
fExecutor.submit(new DsfRunnable() { public void run() {
|
fExecutor.submit(new DsfRunnable() { @Override
|
||||||
|
public void run() {
|
||||||
fExecutor.shutdown();
|
fExecutor.shutdown();
|
||||||
}}).get();
|
}}).get();
|
||||||
if (fExecutor.exceptionsCaught()) {
|
if (fExecutor.exceptionsCaught()) {
|
||||||
|
|
|
@ -35,7 +35,8 @@ public class EventTest {
|
||||||
@Before public void startServices() throws ExecutionException, InterruptedException {
|
@Before public void startServices() throws ExecutionException, InterruptedException {
|
||||||
fExecutor = new TestDsfExecutor();
|
fExecutor = new TestDsfExecutor();
|
||||||
|
|
||||||
fExecutor.submit(new DsfRunnable() { public void run() {
|
fExecutor.submit(new DsfRunnable() { @Override
|
||||||
|
public void run() {
|
||||||
fSession = DsfSession.startSession(fExecutor, "org.eclipse.cdt.tests.dsf"); //$NON-NLS-1$
|
fSession = DsfSession.startSession(fExecutor, "org.eclipse.cdt.tests.dsf"); //$NON-NLS-1$
|
||||||
}}).get();
|
}}).get();
|
||||||
|
|
||||||
|
@ -43,7 +44,8 @@ public class EventTest {
|
||||||
fExecutor.execute(startupSeq);
|
fExecutor.execute(startupSeq);
|
||||||
startupSeq.get();
|
startupSeq.get();
|
||||||
|
|
||||||
fExecutor.submit(new DsfRunnable() { public void run() {
|
fExecutor.submit(new DsfRunnable() { @Override
|
||||||
|
public void run() {
|
||||||
fTracker = new DsfServicesTracker(DsfTestPlugin.getBundleContext(), fSession.getId());
|
fTracker = new DsfServicesTracker(DsfTestPlugin.getBundleContext(), fSession.getId());
|
||||||
fService1 = fTracker.getService(Service1.class);
|
fService1 = fTracker.getService(Service1.class);
|
||||||
fService2 = fTracker.getService(Service2.class);
|
fService2 = fTracker.getService(Service2.class);
|
||||||
|
@ -61,7 +63,8 @@ public class EventTest {
|
||||||
fExecutor.execute(shutdownSeq);
|
fExecutor.execute(shutdownSeq);
|
||||||
shutdownSeq.get();
|
shutdownSeq.get();
|
||||||
|
|
||||||
fExecutor.submit(new DsfRunnable() { public void run() {
|
fExecutor.submit(new DsfRunnable() { @Override
|
||||||
|
public void run() {
|
||||||
fService1 = null;
|
fService1 = null;
|
||||||
fService2 = null;
|
fService2 = null;
|
||||||
fService3 = null;
|
fService3 = null;
|
||||||
|
@ -121,7 +124,8 @@ public class EventTest {
|
||||||
// specifies a services filter when registering itself as a listener.
|
// specifies a services filter when registering itself as a listener.
|
||||||
// The filter limits the listener to events originating from service 2.
|
// The filter limits the listener to events originating from service 2.
|
||||||
fService1.dispatchEvent1();
|
fService1.dispatchEvent1();
|
||||||
fExecutor.submit(new DsfRunnable() { public void run() {
|
fExecutor.submit(new DsfRunnable() { @Override
|
||||||
|
public void run() {
|
||||||
Assert.assertTrue(1 == fService1.fEvent1RecipientNumber);
|
Assert.assertTrue(1 == fService1.fEvent1RecipientNumber);
|
||||||
Assert.assertTrue(2 == fService2.fEvent1RecipientNumber);
|
Assert.assertTrue(2 == fService2.fEvent1RecipientNumber);
|
||||||
Assert.assertTrue(3 == fService3.fEvent1RecipientNumber);
|
Assert.assertTrue(3 == fService3.fEvent1RecipientNumber);
|
||||||
|
@ -140,7 +144,8 @@ public class EventTest {
|
||||||
fService4.fEvent1RecipientNumber = 0;
|
fService4.fEvent1RecipientNumber = 0;
|
||||||
|
|
||||||
fService2.dispatchEvent1();
|
fService2.dispatchEvent1();
|
||||||
fExecutor.submit(new DsfRunnable() { public void run() {
|
fExecutor.submit(new DsfRunnable() { @Override
|
||||||
|
public void run() {
|
||||||
Assert.assertTrue(1 == fService1.fEvent1RecipientNumber);
|
Assert.assertTrue(1 == fService1.fEvent1RecipientNumber);
|
||||||
Assert.assertTrue(2 == fService2.fEvent1RecipientNumber);
|
Assert.assertTrue(2 == fService2.fEvent1RecipientNumber);
|
||||||
Assert.assertTrue(3 == fService3.fEvent1RecipientNumber);
|
Assert.assertTrue(3 == fService3.fEvent1RecipientNumber);
|
||||||
|
@ -158,7 +163,8 @@ public class EventTest {
|
||||||
fService4.fEvent1RecipientNumber = 0;
|
fService4.fEvent1RecipientNumber = 0;
|
||||||
|
|
||||||
fService3.dispatchEvent1();
|
fService3.dispatchEvent1();
|
||||||
fExecutor.submit(new DsfRunnable() { public void run() {
|
fExecutor.submit(new DsfRunnable() { @Override
|
||||||
|
public void run() {
|
||||||
Assert.assertTrue(1 == fService1.fEvent1RecipientNumber);
|
Assert.assertTrue(1 == fService1.fEvent1RecipientNumber);
|
||||||
Assert.assertTrue(2 == fService2.fEvent1RecipientNumber);
|
Assert.assertTrue(2 == fService2.fEvent1RecipientNumber);
|
||||||
Assert.assertTrue(3 == fService3.fEvent1RecipientNumber);
|
Assert.assertTrue(3 == fService3.fEvent1RecipientNumber);
|
||||||
|
@ -174,7 +180,8 @@ public class EventTest {
|
||||||
fService4.fEvent1RecipientNumber = 0;
|
fService4.fEvent1RecipientNumber = 0;
|
||||||
|
|
||||||
fService4.dispatchEvent1();
|
fService4.dispatchEvent1();
|
||||||
fExecutor.submit(new DsfRunnable() { public void run() {
|
fExecutor.submit(new DsfRunnable() { @Override
|
||||||
|
public void run() {
|
||||||
Assert.assertTrue(1 == fService1.fEvent1RecipientNumber);
|
Assert.assertTrue(1 == fService1.fEvent1RecipientNumber);
|
||||||
Assert.assertTrue(2 == fService2.fEvent1RecipientNumber);
|
Assert.assertTrue(2 == fService2.fEvent1RecipientNumber);
|
||||||
Assert.assertTrue(3 == fService3.fEvent1RecipientNumber);
|
Assert.assertTrue(3 == fService3.fEvent1RecipientNumber);
|
||||||
|
@ -191,7 +198,8 @@ public class EventTest {
|
||||||
*/
|
*/
|
||||||
@Test public void event2Test() throws ExecutionException, InterruptedException {
|
@Test public void event2Test() throws ExecutionException, InterruptedException {
|
||||||
fService1.dispatchEvent2();
|
fService1.dispatchEvent2();
|
||||||
fExecutor.submit(new DsfRunnable() { public void run() {
|
fExecutor.submit(new DsfRunnable() { @Override
|
||||||
|
public void run() {
|
||||||
assertEventNotReceivedByAnyService(1);
|
assertEventNotReceivedByAnyService(1);
|
||||||
Assert.assertTrue(1 == fService1.fEvent2RecipientNumber);
|
Assert.assertTrue(1 == fService1.fEvent2RecipientNumber);
|
||||||
Assert.assertTrue(2 == fService2.fEvent2RecipientNumber);
|
Assert.assertTrue(2 == fService2.fEvent2RecipientNumber);
|
||||||
|
@ -212,7 +220,8 @@ public class EventTest {
|
||||||
*/
|
*/
|
||||||
@Test public void event3Test() throws ExecutionException, InterruptedException {
|
@Test public void event3Test() throws ExecutionException, InterruptedException {
|
||||||
fService1.dispatchEvent3();
|
fService1.dispatchEvent3();
|
||||||
fExecutor.submit(new DsfRunnable() { public void run() {
|
fExecutor.submit(new DsfRunnable() { @Override
|
||||||
|
public void run() {
|
||||||
Assert.assertTrue(1 == fService1.fEvent1RecipientNumber || 2 == fService1.fEvent1RecipientNumber);
|
Assert.assertTrue(1 == fService1.fEvent1RecipientNumber || 2 == fService1.fEvent1RecipientNumber);
|
||||||
Assert.assertTrue(3 == fService2.fEvent1RecipientNumber || 4 == fService2.fEvent1RecipientNumber);
|
Assert.assertTrue(3 == fService2.fEvent1RecipientNumber || 4 == fService2.fEvent1RecipientNumber);
|
||||||
Assert.assertTrue(5 == fService3.fEvent1RecipientNumber || 6 == fService3.fEvent1RecipientNumber);
|
Assert.assertTrue(5 == fService3.fEvent1RecipientNumber || 6 == fService3.fEvent1RecipientNumber);
|
||||||
|
|
|
@ -59,15 +59,19 @@ public class BasicTests extends CommandControlTestsBase {
|
||||||
List<CommandInfo> fRemovedCommands = new LinkedList<CommandInfo>();
|
List<CommandInfo> fRemovedCommands = new LinkedList<CommandInfo>();
|
||||||
List<CommandInfo> fSentCommands = new LinkedList<CommandInfo>();
|
List<CommandInfo> fSentCommands = new LinkedList<CommandInfo>();
|
||||||
|
|
||||||
|
@Override
|
||||||
public void commandDone(ICommandToken token, ICommandResult result) {
|
public void commandDone(ICommandToken token, ICommandResult result) {
|
||||||
fDoneCommands.add(new CommandInfo(token.getCommand(), result));
|
fDoneCommands.add(new CommandInfo(token.getCommand(), result));
|
||||||
}
|
}
|
||||||
|
@Override
|
||||||
public void commandQueued(ICommandToken token) {
|
public void commandQueued(ICommandToken token) {
|
||||||
fQueuedCommands.add(new CommandInfo(token.getCommand(), null));
|
fQueuedCommands.add(new CommandInfo(token.getCommand(), null));
|
||||||
}
|
}
|
||||||
|
@Override
|
||||||
public void commandRemoved(ICommandToken token) {
|
public void commandRemoved(ICommandToken token) {
|
||||||
fRemovedCommands.add(new CommandInfo(token.getCommand(), null));
|
fRemovedCommands.add(new CommandInfo(token.getCommand(), null));
|
||||||
}
|
}
|
||||||
|
@Override
|
||||||
public void commandSent(ICommandToken token) {
|
public void commandSent(ICommandToken token) {
|
||||||
fSentCommands.add(new CommandInfo(token.getCommand(), null));
|
fSentCommands.add(new CommandInfo(token.getCommand(), null));
|
||||||
}
|
}
|
||||||
|
@ -82,6 +86,7 @@ public class BasicTests extends CommandControlTestsBase {
|
||||||
|
|
||||||
final CommandListener listener = new CommandListener();
|
final CommandListener listener = new CommandListener();
|
||||||
fExecutor.execute(new DsfRunnable() {
|
fExecutor.execute(new DsfRunnable() {
|
||||||
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
fCommandControl.addCommandListener(listener);
|
fCommandControl.addCommandListener(listener);
|
||||||
}
|
}
|
||||||
|
|
|
@ -76,6 +76,7 @@ public class CommandControlTestsBase {
|
||||||
fCommandControl = new PDACommandControl(fSession);
|
fCommandControl = new PDACommandControl(fSession);
|
||||||
|
|
||||||
fCommandControl.addEventListener(new IEventListener() {
|
fCommandControl.addEventListener(new IEventListener() {
|
||||||
|
@Override
|
||||||
public void eventReceived(Object output) {
|
public void eventReceived(Object output) {
|
||||||
fEventsQueue.add(output);
|
fEventsQueue.add(output);
|
||||||
}
|
}
|
||||||
|
|
|
@ -35,7 +35,8 @@ public class ServiceTests {
|
||||||
}
|
}
|
||||||
|
|
||||||
@After public void shutdownExecutor() throws ExecutionException, InterruptedException {
|
@After public void shutdownExecutor() throws ExecutionException, InterruptedException {
|
||||||
fExecutor.submit(new DsfRunnable() { public void run() {
|
fExecutor.submit(new DsfRunnable() { @Override
|
||||||
|
public void run() {
|
||||||
fExecutor.shutdown();
|
fExecutor.shutdown();
|
||||||
}}).get();
|
}}).get();
|
||||||
if (fExecutor.exceptionsCaught()) {
|
if (fExecutor.exceptionsCaught()) {
|
||||||
|
|
|
@ -41,15 +41,18 @@ public class DummyFormattedValueService extends AbstractDsfService implements IF
|
||||||
return DsfTestPlugin.getBundleContext();
|
return DsfTestPlugin.getBundleContext();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void getAvailableFormats(IFormattedDataDMContext dmc, DataRequestMonitor<String[]> rm) {
|
public void getAvailableFormats(IFormattedDataDMContext dmc, DataRequestMonitor<String[]> rm) {
|
||||||
rm.setData(AVAILABLE_FORMATS);
|
rm.setData(AVAILABLE_FORMATS);
|
||||||
rm.done();
|
rm.done();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public FormattedValueDMContext getFormattedValueContext(IFormattedDataDMContext dmc, String formatId) {
|
public FormattedValueDMContext getFormattedValueContext(IFormattedDataDMContext dmc, String formatId) {
|
||||||
return new FormattedValueDMContext(this, dmc, formatId);
|
return new FormattedValueDMContext(this, dmc, formatId);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void getFormattedExpressionValue(FormattedValueDMContext dmc, DataRequestMonitor<FormattedValueDMData> rm) {
|
public void getFormattedExpressionValue(FormattedValueDMContext dmc, DataRequestMonitor<FormattedValueDMData> rm) {
|
||||||
rm.setData(new FormattedValueDMData(dmc.getFormatID()));
|
rm.setData(new FormattedValueDMData(dmc.getFormatID()));
|
||||||
rm.done();
|
rm.done();
|
||||||
|
|
|
@ -842,6 +842,7 @@ abstract public class FormattedValueTests extends TestCase implements IViewerUpd
|
||||||
fModel.validateData(
|
fModel.validateData(
|
||||||
fViewer, TreePath.EMPTY,
|
fViewer, TreePath.EMPTY,
|
||||||
new TestElementValidator() {
|
new TestElementValidator() {
|
||||||
|
@Override
|
||||||
public void validate(TestElement modelElement, TestElement viewerElement, TreePath viewerPath) {
|
public void validate(TestElement modelElement, TestElement viewerElement, TreePath viewerPath) {
|
||||||
ViewerLabel label = fViewer.getElementLabel(viewerPath, TestModelCachingVMProvider.COLUMN_ID);
|
ViewerLabel label = fViewer.getElementLabel(viewerPath, TestModelCachingVMProvider.COLUMN_ID);
|
||||||
assertEquals(modelElement.getID(), label.getText());
|
assertEquals(modelElement.getID(), label.getText());
|
||||||
|
|
|
@ -54,6 +54,7 @@ public class FormattedValuesListener implements IFormattedValuesListener, IPrope
|
||||||
fCachedFormats.addAll(Arrays.asList(cachedFormats));
|
fCachedFormats.addAll(Arrays.asList(cachedFormats));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void propertiesUpdatesStarted(IPropertiesUpdate[] updates) {
|
public void propertiesUpdatesStarted(IPropertiesUpdate[] updates) {
|
||||||
fPropertiesUpdates.addAll(Arrays.asList(updates));
|
fPropertiesUpdates.addAll(Arrays.asList(updates));
|
||||||
List<FormattedValueDMContext> pending = new ArrayList<FormattedValueDMContext>(updates.length);
|
List<FormattedValueDMContext> pending = new ArrayList<FormattedValueDMContext>(updates.length);
|
||||||
|
@ -122,14 +123,17 @@ public class FormattedValuesListener implements IFormattedValuesListener, IPrope
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void propertiesUpdateCompleted(IPropertiesUpdate update) {}
|
public void propertiesUpdateCompleted(IPropertiesUpdate update) {}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void formattedValueUpdated(FormattedValueDMContext formattedValueDmc) {
|
public void formattedValueUpdated(FormattedValueDMContext formattedValueDmc) {
|
||||||
Assert.assertFalse("Expected values with formats " + fCachedFormats + " to be cached.",
|
Assert.assertFalse("Expected values with formats " + fCachedFormats + " to be cached.",
|
||||||
fCachedFormats.contains(formattedValueDmc.getFormatID()));
|
fCachedFormats.contains(formattedValueDmc.getFormatID()));
|
||||||
|
|
||||||
if (fProcessUpdatedFormattedValuesRunnable == null) {
|
if (fProcessUpdatedFormattedValuesRunnable == null) {
|
||||||
fProcessUpdatedFormattedValuesRunnable = new DsfRunnable() {
|
fProcessUpdatedFormattedValuesRunnable = new DsfRunnable() {
|
||||||
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
fProcessUpdatedFormattedValuesRunnable = null;
|
fProcessUpdatedFormattedValuesRunnable = null;
|
||||||
processFormattedValuesInProgress();
|
processFormattedValuesInProgress();
|
||||||
|
|
|
@ -36,6 +36,7 @@ class TestElementFormatVMProvider extends TestModelCachingVMProvider implements
|
||||||
super(adapter, context, session);
|
super(adapter, context, session);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void getActiveFormat(IPresentationContext context, IVMNode node,
|
public void getActiveFormat(IPresentationContext context, IVMNode node,
|
||||||
Object viewerInput, TreePath elementPath, DataRequestMonitor<String> rm) {
|
Object viewerInput, TreePath elementPath, DataRequestMonitor<String> rm) {
|
||||||
Object p = context.getProperty(myPersistId);
|
Object p = context.getProperty(myPersistId);
|
||||||
|
@ -70,6 +71,7 @@ class TestElementFormatVMProvider extends TestModelCachingVMProvider implements
|
||||||
rm.done();
|
rm.done();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void setActiveFormat(IPresentationContext context, IVMNode[] node,
|
public void setActiveFormat(IPresentationContext context, IVMNode[] node,
|
||||||
Object viewerInput, TreePath[] elementPath, String format) {
|
Object viewerInput, TreePath[] elementPath, String format) {
|
||||||
Object p = context.getProperty(myPersistId);
|
Object p = context.getProperty(myPersistId);
|
||||||
|
@ -95,6 +97,7 @@ class TestElementFormatVMProvider extends TestModelCachingVMProvider implements
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public boolean supportFormat(IVMContext context) {
|
public boolean supportFormat(IVMContext context) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
|
@ -42,6 +42,7 @@ public class TestElementVMContext extends AbstractVMContext implements IDMVMCont
|
||||||
return fElement;
|
return fElement;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public IDMContext getDMContext() {
|
public IDMContext getDMContext() {
|
||||||
return getElement();
|
return getElement();
|
||||||
}
|
}
|
||||||
|
|
|
@ -177,6 +177,7 @@ public class TestModel extends AbstractDsfService implements IFormattedValues {
|
||||||
}
|
}
|
||||||
|
|
||||||
private static final IFormattedValuesListener NULL_LISTENER = new IFormattedValuesListener() {
|
private static final IFormattedValuesListener NULL_LISTENER = new IFormattedValuesListener() {
|
||||||
|
@Override
|
||||||
public void formattedValueUpdated(FormattedValueDMContext formattedValueDmc) {}
|
public void formattedValueUpdated(FormattedValueDMContext formattedValueDmc) {}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -583,11 +584,13 @@ public class TestModel extends AbstractDsfService implements IFormattedValues {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void getAvailableFormats(IFormattedDataDMContext dmc, DataRequestMonitor<String[]> rm) {
|
public void getAvailableFormats(IFormattedDataDMContext dmc, DataRequestMonitor<String[]> rm) {
|
||||||
rm.setData(new String[] { HEX_FORMAT, DECIMAL_FORMAT, OCTAL_FORMAT, BINARY_FORMAT, NATURAL_FORMAT });
|
rm.setData(new String[] { HEX_FORMAT, DECIMAL_FORMAT, OCTAL_FORMAT, BINARY_FORMAT, NATURAL_FORMAT });
|
||||||
rm.done();
|
rm.done();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void getFormattedExpressionValue(FormattedValueDMContext dmc, DataRequestMonitor<FormattedValueDMData> rm) {
|
public void getFormattedExpressionValue(FormattedValueDMContext dmc, DataRequestMonitor<FormattedValueDMData> rm) {
|
||||||
TestElement te = DMContexts.getAncestorOfType(dmc, TestElement.class);
|
TestElement te = DMContexts.getAncestorOfType(dmc, TestElement.class);
|
||||||
rm.setData(new FormattedValueDMData( getFormattedValueText(te, dmc.getFormatID())));
|
rm.setData(new FormattedValueDMData( getFormattedValueText(te, dmc.getFormatID())));
|
||||||
|
@ -595,6 +598,7 @@ public class TestModel extends AbstractDsfService implements IFormattedValues {
|
||||||
fListener.formattedValueUpdated(dmc);
|
fListener.formattedValueUpdated(dmc);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public FormattedValueDMContext getFormattedValueContext(IFormattedDataDMContext dmc, String formatId) {
|
public FormattedValueDMContext getFormattedValueContext(IFormattedDataDMContext dmc, String formatId) {
|
||||||
// Creates a context that can be used to retrieve a formatted value.
|
// Creates a context that can be used to retrieve a formatted value.
|
||||||
return new FormattedValueDMContext(this, dmc, formatId);
|
return new FormattedValueDMContext(this, dmc, formatId);
|
||||||
|
|
|
@ -36,31 +36,40 @@ public class TestModelCachingVMProvider extends AbstractDMVMProvider {
|
||||||
private static final String[] COLUMNS = new String[] { COLUMN_ID, COLUMN_FORMATTED_VALUE, COLUMN_DUMMY_VALUE };
|
private static final String[] COLUMNS = new String[] { COLUMN_ID, COLUMN_FORMATTED_VALUE, COLUMN_DUMMY_VALUE };
|
||||||
|
|
||||||
private IPropertyChangeListener fPresentationContextListener = new IPropertyChangeListener() {
|
private IPropertyChangeListener fPresentationContextListener = new IPropertyChangeListener() {
|
||||||
|
@Override
|
||||||
public void propertyChange(PropertyChangeEvent event) {
|
public void propertyChange(PropertyChangeEvent event) {
|
||||||
handleEvent(event);
|
handleEvent(event);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
private static IColumnPresentation COLUMN_PRESENTATION = new IColumnPresentation() {
|
private static IColumnPresentation COLUMN_PRESENTATION = new IColumnPresentation() {
|
||||||
|
@Override
|
||||||
public void init(IPresentationContext context) {}
|
public void init(IPresentationContext context) {}
|
||||||
|
@Override
|
||||||
public void dispose() {};
|
public void dispose() {};
|
||||||
|
|
||||||
|
@Override
|
||||||
public String[] getAvailableColumns() {
|
public String[] getAvailableColumns() {
|
||||||
return COLUMNS;
|
return COLUMNS;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@Override
|
||||||
public String getHeader(String id) {
|
public String getHeader(String id) {
|
||||||
return id;
|
return id;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@Override
|
||||||
public String getId() { return "ID"; }
|
public String getId() { return "ID"; }
|
||||||
|
|
||||||
|
@Override
|
||||||
public ImageDescriptor getImageDescriptor(String id) {
|
public ImageDescriptor getImageDescriptor(String id) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
@Override
|
||||||
public String[] getInitialColumns() {
|
public String[] getInitialColumns() {
|
||||||
return COLUMNS;
|
return COLUMNS;
|
||||||
}
|
}
|
||||||
|
@Override
|
||||||
public boolean isOptional() {
|
public boolean isOptional() {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
|
@ -109,6 +109,7 @@ public class TestModelDMVMNode extends AbstractDMVMNode implements IRootVMNode,
|
||||||
return fLabelProvider;
|
return fLabelProvider;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void update(final ILabelUpdate[] updates) {
|
public void update(final ILabelUpdate[] updates) {
|
||||||
fLabelProvider.update(updates);
|
fLabelProvider.update(updates);
|
||||||
}
|
}
|
||||||
|
@ -165,6 +166,7 @@ public class TestModelDMVMNode extends AbstractDMVMNode implements IRootVMNode,
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void update(final IPropertiesUpdate[] updates) {
|
public void update(final IPropertiesUpdate[] updates) {
|
||||||
fViewerUpdateListener.propertiesUpdatesStarted(updates);
|
fViewerUpdateListener.propertiesUpdatesStarted(updates);
|
||||||
if (fFormattedValuesListener != null) fFormattedValuesListener.propertiesUpdatesStarted(updates);
|
if (fFormattedValuesListener != null) fFormattedValuesListener.propertiesUpdatesStarted(updates);
|
||||||
|
@ -209,6 +211,7 @@ public class TestModelDMVMNode extends AbstractDMVMNode implements IRootVMNode,
|
||||||
* (non-Javadoc)
|
* (non-Javadoc)
|
||||||
* @see org.eclipse.cdt.dsf.ui.viewmodel.IVMNode#getDeltaFlags(java.lang.Object)
|
* @see org.eclipse.cdt.dsf.ui.viewmodel.IVMNode#getDeltaFlags(java.lang.Object)
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
public int getDeltaFlags(Object e) {
|
public int getDeltaFlags(Object e) {
|
||||||
if ( e instanceof PropertyChangeEvent &&
|
if ( e instanceof PropertyChangeEvent &&
|
||||||
((PropertyChangeEvent)e).getProperty() == IDebugVMConstants.PROP_FORMATTED_VALUE_FORMAT_PREFERENCE)
|
((PropertyChangeEvent)e).getProperty() == IDebugVMConstants.PROP_FORMATTED_VALUE_FORMAT_PREFERENCE)
|
||||||
|
@ -226,6 +229,7 @@ public class TestModelDMVMNode extends AbstractDMVMNode implements IRootVMNode,
|
||||||
return IModelDelta.NO_CHANGE;
|
return IModelDelta.NO_CHANGE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void buildDelta(Object e, VMDelta parent, int nodeOffset, RequestMonitor rm) {
|
public void buildDelta(Object e, VMDelta parent, int nodeOffset, RequestMonitor rm) {
|
||||||
if ( e instanceof PropertyChangeEvent &&
|
if ( e instanceof PropertyChangeEvent &&
|
||||||
((PropertyChangeEvent)e).getProperty() == IDebugVMConstants.PROP_FORMATTED_VALUE_FORMAT_PREFERENCE)
|
((PropertyChangeEvent)e).getProperty() == IDebugVMConstants.PROP_FORMATTED_VALUE_FORMAT_PREFERENCE)
|
||||||
|
@ -244,10 +248,12 @@ public class TestModelDMVMNode extends AbstractDMVMNode implements IRootVMNode,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@Override
|
||||||
public boolean isDeltaEvent(Object rootObject, Object event) {
|
public boolean isDeltaEvent(Object rootObject, Object event) {
|
||||||
return getDeltaFlags(event) != IModelDelta.NO_CHANGE;
|
return getDeltaFlags(event) != IModelDelta.NO_CHANGE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void createRootDelta(Object rootObject, Object event, DataRequestMonitor<VMDelta> rm) {
|
public void createRootDelta(Object rootObject, Object event, DataRequestMonitor<VMDelta> rm) {
|
||||||
int flags = IModelDelta.NO_CHANGE;
|
int flags = IModelDelta.NO_CHANGE;
|
||||||
if ( event instanceof PropertyChangeEvent &&
|
if ( event instanceof PropertyChangeEvent &&
|
||||||
|
|
|
@ -30,6 +30,7 @@ public class TestModelUpdatesListener extends ViewerUpdatesListener
|
||||||
|
|
||||||
private final static Comparator<String> fStringComparator = new Comparator<String>() {
|
private final static Comparator<String> fStringComparator = new Comparator<String>() {
|
||||||
|
|
||||||
|
@Override
|
||||||
public int compare(String s1, String s2) {
|
public int compare(String s1, String s2) {
|
||||||
int l1 = s1.length();
|
int l1 = s1.length();
|
||||||
int l2 = s2.length();
|
int l2 = s2.length();
|
||||||
|
@ -61,6 +62,7 @@ public class TestModelUpdatesListener extends ViewerUpdatesListener
|
||||||
};
|
};
|
||||||
|
|
||||||
private final static Comparator<TreePath> fTestElementVMCComparator = new Comparator<TreePath>() {
|
private final static Comparator<TreePath> fTestElementVMCComparator = new Comparator<TreePath>() {
|
||||||
|
@Override
|
||||||
public int compare(TreePath p1, TreePath p2) {
|
public int compare(TreePath p1, TreePath p2) {
|
||||||
int l1 = p1.getSegmentCount();
|
int l1 = p1.getSegmentCount();
|
||||||
int l2 = p2.getSegmentCount();
|
int l2 = p2.getSegmentCount();
|
||||||
|
|
|
@ -55,6 +55,7 @@ public class TestModelVMNode extends AbstractVMNode implements IRootVMNode, IEle
|
||||||
}));
|
}));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void update(final ILabelUpdate[] updates) {
|
public void update(final ILabelUpdate[] updates) {
|
||||||
fLabelProvider.update(updates);
|
fLabelProvider.update(updates);
|
||||||
}
|
}
|
||||||
|
@ -68,8 +69,10 @@ public class TestModelVMNode extends AbstractVMNode implements IRootVMNode, IEle
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void update(final IHasChildrenUpdate[] updates) {
|
public void update(final IHasChildrenUpdate[] updates) {
|
||||||
getTestProvider().getDsfExecutor().execute(new Runnable() {
|
getTestProvider().getDsfExecutor().execute(new Runnable() {
|
||||||
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
for (IHasChildrenUpdate update : updates) {
|
for (IHasChildrenUpdate update : updates) {
|
||||||
if (update.getElement() instanceof TestElementVMContext) {
|
if (update.getElement() instanceof TestElementVMContext) {
|
||||||
|
@ -82,8 +85,10 @@ public class TestModelVMNode extends AbstractVMNode implements IRootVMNode, IEle
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void update(final IChildrenCountUpdate[] updates) {
|
public void update(final IChildrenCountUpdate[] updates) {
|
||||||
getTestProvider().getDsfExecutor().execute(new Runnable() {
|
getTestProvider().getDsfExecutor().execute(new Runnable() {
|
||||||
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
for (IChildrenCountUpdate update : updates) {
|
for (IChildrenCountUpdate update : updates) {
|
||||||
if (update.getElement() instanceof TestElementVMContext) {
|
if (update.getElement() instanceof TestElementVMContext) {
|
||||||
|
@ -96,8 +101,10 @@ public class TestModelVMNode extends AbstractVMNode implements IRootVMNode, IEle
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void update(final IChildrenUpdate[] updates) {
|
public void update(final IChildrenUpdate[] updates) {
|
||||||
getTestProvider().getDsfExecutor().execute(new Runnable() {
|
getTestProvider().getDsfExecutor().execute(new Runnable() {
|
||||||
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
for (IChildrenUpdate update : updates) {
|
for (IChildrenUpdate update : updates) {
|
||||||
if (update.getElement() instanceof TestElementVMContext) {
|
if (update.getElement() instanceof TestElementVMContext) {
|
||||||
|
@ -110,8 +117,10 @@ public class TestModelVMNode extends AbstractVMNode implements IRootVMNode, IEle
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void update(final IPropertiesUpdate[] updates) {
|
public void update(final IPropertiesUpdate[] updates) {
|
||||||
getTestProvider().getDsfExecutor().execute(new Runnable() {
|
getTestProvider().getDsfExecutor().execute(new Runnable() {
|
||||||
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
for (IPropertiesUpdate update : updates) {
|
for (IPropertiesUpdate update : updates) {
|
||||||
if (update.getElement() instanceof TestElementVMContext) {
|
if (update.getElement() instanceof TestElementVMContext) {
|
||||||
|
@ -137,19 +146,23 @@ public class TestModelVMNode extends AbstractVMNode implements IRootVMNode, IEle
|
||||||
return new TestElementVMContext(this, element);
|
return new TestElementVMContext(this, element);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public int getDeltaFlags(Object event) {
|
public int getDeltaFlags(Object event) {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void buildDelta(Object event, VMDelta parent, int nodeOffset, RequestMonitor rm) {
|
public void buildDelta(Object event, VMDelta parent, int nodeOffset, RequestMonitor rm) {
|
||||||
rm.done();
|
rm.done();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@Override
|
||||||
public boolean isDeltaEvent(Object rootObject, Object event) {
|
public boolean isDeltaEvent(Object rootObject, Object event) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void createRootDelta(Object rootObject, Object event, DataRequestMonitor<VMDelta> rm) {
|
public void createRootDelta(Object rootObject, Object event, DataRequestMonitor<VMDelta> rm) {
|
||||||
rm.setStatus(new Status(IStatus.ERROR, DsfTestPlugin.PLUGIN_ID, IDsfStatusConstants.NOT_SUPPORTED, "Not implemented", null));
|
rm.setStatus(new Status(IStatus.ERROR, DsfTestPlugin.PLUGIN_ID, IDsfStatusConstants.NOT_SUPPORTED, "Not implemented", null));
|
||||||
rm.done();
|
rm.done();
|
||||||
|
|
|
@ -27,6 +27,7 @@ class TestPersistable implements IPersistableElement, IAdaptable {
|
||||||
|
|
||||||
HashMap<String, String> map = new HashMap<String, String>();
|
HashMap<String, String> map = new HashMap<String, String>();
|
||||||
|
|
||||||
|
@Override
|
||||||
public void saveState(IMemento memento) {
|
public void saveState(IMemento memento) {
|
||||||
HashMap<String, String> clone = null;
|
HashMap<String, String> clone = null;
|
||||||
synchronized (map) {
|
synchronized (map) {
|
||||||
|
@ -70,10 +71,12 @@ class TestPersistable implements IPersistableElement, IAdaptable {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public String getFactoryId() {
|
public String getFactoryId() {
|
||||||
return TestPersistableFactory.factoryId;
|
return TestPersistableFactory.factoryId;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public Object getAdapter(Class adapter) {
|
public Object getAdapter(Class adapter) {
|
||||||
if (adapter.isInstance(this)) {
|
if (adapter.isInstance(this)) {
|
||||||
return this;
|
return this;
|
||||||
|
|
|
@ -21,6 +21,7 @@ public class TestPersistableFactory implements IElementFactory {
|
||||||
|
|
||||||
static String factoryId = "org.eclipse.cdt.tests.dsf.vm.testPersistableFactory";
|
static String factoryId = "org.eclipse.cdt.tests.dsf.vm.testPersistableFactory";
|
||||||
|
|
||||||
|
@Override
|
||||||
public IAdaptable createElement(IMemento memento) {
|
public IAdaptable createElement(IMemento memento) {
|
||||||
TestPersistable x = new TestPersistable();
|
TestPersistable x = new TestPersistable();
|
||||||
x.restore(memento);
|
x.restore(memento);
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<classpath>
|
<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.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.7"/>
|
||||||
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
|
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
|
||||||
<classpathentry kind="src" path="src"/>
|
<classpathentry kind="src" path="src"/>
|
||||||
<classpathentry kind="con" path="org.eclipse.jdt.junit.JUNIT_CONTAINER/4"/>
|
<classpathentry kind="con" path="org.eclipse.jdt.junit.JUNIT_CONTAINER/4"/>
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
#Wed Mar 02 15:23:00 KST 2011
|
#Wed Mar 02 15:23:00 KST 2011
|
||||||
eclipse.preferences.version=1
|
eclipse.preferences.version=1
|
||||||
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
|
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
|
||||||
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
|
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7
|
||||||
org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
|
org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
|
||||||
org.eclipse.jdt.core.compiler.compliance=1.5
|
org.eclipse.jdt.core.compiler.compliance=1.7
|
||||||
org.eclipse.jdt.core.compiler.debug.lineNumber=generate
|
org.eclipse.jdt.core.compiler.debug.lineNumber=generate
|
||||||
org.eclipse.jdt.core.compiler.debug.localVariable=generate
|
org.eclipse.jdt.core.compiler.debug.localVariable=generate
|
||||||
org.eclipse.jdt.core.compiler.debug.sourceFile=generate
|
org.eclipse.jdt.core.compiler.debug.sourceFile=generate
|
||||||
|
@ -78,4 +78,4 @@ org.eclipse.jdt.core.compiler.problem.unusedParameterWhenOverridingConcrete=disa
|
||||||
org.eclipse.jdt.core.compiler.problem.unusedPrivateMember=error
|
org.eclipse.jdt.core.compiler.problem.unusedPrivateMember=error
|
||||||
org.eclipse.jdt.core.compiler.problem.unusedWarningToken=error
|
org.eclipse.jdt.core.compiler.problem.unusedWarningToken=error
|
||||||
org.eclipse.jdt.core.compiler.problem.varargsArgumentNeedCast=error
|
org.eclipse.jdt.core.compiler.problem.varargsArgumentNeedCast=error
|
||||||
org.eclipse.jdt.core.compiler.source=1.5
|
org.eclipse.jdt.core.compiler.source=1.7
|
||||||
|
|
|
@ -7,6 +7,6 @@ Bundle-Activator: org.eclipse.cdt.managedbuilder.llvm.tests.Activator
|
||||||
Bundle-Vendor: %Bundle-Vendor
|
Bundle-Vendor: %Bundle-Vendor
|
||||||
Require-Bundle: org.eclipse.ui,
|
Require-Bundle: org.eclipse.ui,
|
||||||
org.eclipse.core.runtime
|
org.eclipse.core.runtime
|
||||||
Bundle-RequiredExecutionEnvironment: J2SE-1.5
|
Bundle-RequiredExecutionEnvironment: JavaSE-1.7
|
||||||
Bundle-ActivationPolicy: lazy
|
Bundle-ActivationPolicy: lazy
|
||||||
Import-Package: junit.framework
|
Import-Package: junit.framework
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<classpath>
|
<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.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.7"/>
|
||||||
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
|
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
|
||||||
<classpathentry kind="src" path="src"/>
|
<classpathentry kind="src" path="src"/>
|
||||||
<classpathentry kind="output" path="bin"/>
|
<classpathentry kind="output" path="bin"/>
|
||||||
|
|
|
@ -6,9 +6,9 @@ org.eclipse.jdt.core.compiler.annotation.nonnullbydefault=org.eclipse.jdt.annota
|
||||||
org.eclipse.jdt.core.compiler.annotation.nullable=org.eclipse.jdt.annotation.Nullable
|
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.annotation.nullanalysis=disabled
|
||||||
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
|
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
|
||||||
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
|
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7
|
||||||
org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
|
org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
|
||||||
org.eclipse.jdt.core.compiler.compliance=1.5
|
org.eclipse.jdt.core.compiler.compliance=1.7
|
||||||
org.eclipse.jdt.core.compiler.debug.lineNumber=generate
|
org.eclipse.jdt.core.compiler.debug.lineNumber=generate
|
||||||
org.eclipse.jdt.core.compiler.debug.localVariable=generate
|
org.eclipse.jdt.core.compiler.debug.localVariable=generate
|
||||||
org.eclipse.jdt.core.compiler.debug.sourceFile=generate
|
org.eclipse.jdt.core.compiler.debug.sourceFile=generate
|
||||||
|
@ -96,4 +96,4 @@ org.eclipse.jdt.core.compiler.problem.unusedPrivateMember=error
|
||||||
org.eclipse.jdt.core.compiler.problem.unusedTypeParameter=ignore
|
org.eclipse.jdt.core.compiler.problem.unusedTypeParameter=ignore
|
||||||
org.eclipse.jdt.core.compiler.problem.unusedWarningToken=error
|
org.eclipse.jdt.core.compiler.problem.unusedWarningToken=error
|
||||||
org.eclipse.jdt.core.compiler.problem.varargsArgumentNeedCast=error
|
org.eclipse.jdt.core.compiler.problem.varargsArgumentNeedCast=error
|
||||||
org.eclipse.jdt.core.compiler.source=1.5
|
org.eclipse.jdt.core.compiler.source=1.7
|
||||||
|
|
|
@ -12,7 +12,7 @@ Require-Bundle: org.eclipse.ui,
|
||||||
org.eclipse.cdt.managedbuilder.core,
|
org.eclipse.cdt.managedbuilder.core,
|
||||||
org.eclipse.cdt.managedbuilder.gnu.ui,
|
org.eclipse.cdt.managedbuilder.gnu.ui,
|
||||||
org.eclipse.cdt.core
|
org.eclipse.cdt.core
|
||||||
Bundle-RequiredExecutionEnvironment: J2SE-1.5
|
Bundle-RequiredExecutionEnvironment: JavaSE-1.7
|
||||||
Bundle-ActivationPolicy: lazy
|
Bundle-ActivationPolicy: lazy
|
||||||
Export-Package: org.eclipse.cdt.managedbuilder.llvm.makegen;
|
Export-Package: org.eclipse.cdt.managedbuilder.llvm.makegen;
|
||||||
uses:="org.eclipse.core.runtime,
|
uses:="org.eclipse.core.runtime,
|
||||||
|
|
|
@ -47,6 +47,7 @@ public class LlvmBuildEnvironmentVariable implements IBuildEnvironmentVariable {
|
||||||
*
|
*
|
||||||
* @return String delimiter
|
* @return String delimiter
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
public String getDelimiter() {
|
public String getDelimiter() {
|
||||||
return ";"; //$NON-NLS-1$
|
return ";"; //$NON-NLS-1$
|
||||||
}
|
}
|
||||||
|
@ -62,6 +63,7 @@ public class LlvmBuildEnvironmentVariable implements IBuildEnvironmentVariable {
|
||||||
*
|
*
|
||||||
* @return name The name of the llvm environment variable
|
* @return name The name of the llvm environment variable
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
public String getName() {
|
public String getName() {
|
||||||
return this.name;
|
return this.name;
|
||||||
}
|
}
|
||||||
|
@ -76,6 +78,7 @@ public class LlvmBuildEnvironmentVariable implements IBuildEnvironmentVariable {
|
||||||
*
|
*
|
||||||
* @return operation The operation of the llvm environment variable
|
* @return operation The operation of the llvm environment variable
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
public int getOperation() {
|
public int getOperation() {
|
||||||
return this.operation;
|
return this.operation;
|
||||||
}
|
}
|
||||||
|
@ -91,6 +94,7 @@ public class LlvmBuildEnvironmentVariable implements IBuildEnvironmentVariable {
|
||||||
*
|
*
|
||||||
* @return value The value of the llvm environment variable.
|
* @return value The value of the llvm environment variable.
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
public String getValue() {
|
public String getValue() {
|
||||||
return this.value;
|
return this.value;
|
||||||
}
|
}
|
||||||
|
|
|
@ -424,11 +424,13 @@ public class LlvmEnvironmentVariableSupplier implements IConfigurationEnvironmen
|
||||||
return ""; //$NON-NLS-1$
|
return ""; //$NON-NLS-1$
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public IBuildEnvironmentVariable getVariable(String variableName, IConfiguration configuration,
|
public IBuildEnvironmentVariable getVariable(String variableName, IConfiguration configuration,
|
||||||
IEnvironmentVariableProvider provider) {
|
IEnvironmentVariableProvider provider) {
|
||||||
return llvmEnvironmentVariables.get(variableName);
|
return llvmEnvironmentVariables.get(variableName);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public IBuildEnvironmentVariable[] getVariables(IConfiguration configuration,
|
public IBuildEnvironmentVariable[] getVariables(IConfiguration configuration,
|
||||||
IEnvironmentVariableProvider provider) {
|
IEnvironmentVariableProvider provider) {
|
||||||
return llvmEnvironmentVariables.values().toArray(new IBuildEnvironmentVariable[0]);
|
return llvmEnvironmentVariables.values().toArray(new IBuildEnvironmentVariable[0]);
|
||||||
|
|
|
@ -39,6 +39,7 @@ public class LlvmIsToolChainSupported implements IManagedIsToolChainSupported {
|
||||||
/**
|
/**
|
||||||
* Return a boolean value that informs if the LLVM Toolchain is supported.
|
* Return a boolean value that informs if the LLVM Toolchain is supported.
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
public boolean isSupported(IToolChain toolChain,
|
public boolean isSupported(IToolChain toolChain,
|
||||||
/*
|
/*
|
||||||
* Version is supported from CDT 7.1.0.
|
* Version is supported from CDT 7.1.0.
|
||||||
|
|
|
@ -26,6 +26,7 @@ public class LlvmProjectNature implements IProjectNature {
|
||||||
/**
|
/**
|
||||||
* Configure the project which have this project nature.
|
* Configure the project which have this project nature.
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
public void configure() throws CoreException {
|
public void configure() throws CoreException {
|
||||||
// Add nature-specific information
|
// Add nature-specific information
|
||||||
// for the project, such as adding a builder
|
// for the project, such as adding a builder
|
||||||
|
@ -35,6 +36,7 @@ public class LlvmProjectNature implements IProjectNature {
|
||||||
/**
|
/**
|
||||||
* Deconfigure those projects which have this project nature.
|
* Deconfigure those projects which have this project nature.
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
public void deconfigure() throws CoreException {
|
public void deconfigure() throws CoreException {
|
||||||
// Remove the nature-specific information.
|
// Remove the nature-specific information.
|
||||||
}
|
}
|
||||||
|
@ -44,6 +46,7 @@ public class LlvmProjectNature implements IProjectNature {
|
||||||
*
|
*
|
||||||
* @return IProject
|
* @return IProject
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
public IProject getProject() {
|
public IProject getProject() {
|
||||||
return this.project;
|
return this.project;
|
||||||
}
|
}
|
||||||
|
@ -53,6 +56,7 @@ public class LlvmProjectNature implements IProjectNature {
|
||||||
*
|
*
|
||||||
* @param proj IProject
|
* @param proj IProject
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
public void setProject(IProject proj) {
|
public void setProject(IProject proj) {
|
||||||
this.project = proj;
|
this.project = proj;
|
||||||
}
|
}
|
||||||
|
|
|
@ -188,6 +188,7 @@ public abstract class LlvmListEditor extends ListEditor {
|
||||||
this.buttonBox.setLayout(layout);
|
this.buttonBox.setLayout(layout);
|
||||||
createButtons(this.buttonBox);
|
createButtons(this.buttonBox);
|
||||||
this.buttonBox.addDisposeListener(new DisposeListener() {
|
this.buttonBox.addDisposeListener(new DisposeListener() {
|
||||||
|
@Override
|
||||||
public void widgetDisposed(DisposeEvent event) {
|
public void widgetDisposed(DisposeEvent event) {
|
||||||
LlvmListEditor.this.addButton = null;
|
LlvmListEditor.this.addButton = null;
|
||||||
LlvmListEditor.this.removeButton = null;
|
LlvmListEditor.this.removeButton = null;
|
||||||
|
@ -219,6 +220,7 @@ public abstract class LlvmListEditor extends ListEditor {
|
||||||
this.list.setFont(parent.getFont());
|
this.list.setFont(parent.getFont());
|
||||||
this.list.addSelectionListener(getSelectionListener());
|
this.list.addSelectionListener(getSelectionListener());
|
||||||
this.list.addDisposeListener(new DisposeListener() {
|
this.list.addDisposeListener(new DisposeListener() {
|
||||||
|
@Override
|
||||||
public void widgetDisposed(DisposeEvent event) {
|
public void widgetDisposed(DisposeEvent event) {
|
||||||
LlvmListEditor.this.list = null;
|
LlvmListEditor.this.list = null;
|
||||||
}
|
}
|
||||||
|
|
|
@ -47,6 +47,7 @@ public class LlvmPreferencePage
|
||||||
/* (non-Javadoc)
|
/* (non-Javadoc)
|
||||||
* @see org.eclipse.ui.IWorkbenchPreferencePage#init(org.eclipse.ui.IWorkbench)
|
* @see org.eclipse.ui.IWorkbenchPreferencePage#init(org.eclipse.ui.IWorkbench)
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
public void init(IWorkbench workbench) {
|
public void init(IWorkbench workbench) {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -26,6 +26,7 @@ public class LlvmResourceListener implements IResourceChangeListener {
|
||||||
*
|
*
|
||||||
* @param event IResourceChangeEvent
|
* @param event IResourceChangeEvent
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
public void resourceChanged(IResourceChangeEvent event) {
|
public void resourceChanged(IResourceChangeEvent event) {
|
||||||
|
|
||||||
if (event.getType() == IResourceChangeEvent.POST_BUILD) { //refresh every project after build
|
if (event.getType() == IResourceChangeEvent.POST_BUILD) { //refresh every project after build
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<classpath>
|
<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.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.7"/>
|
||||||
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
|
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
|
||||||
<classpathentry kind="src" path="src"/>
|
<classpathentry kind="src" path="src"/>
|
||||||
<classpathentry kind="output" path="bin"/>
|
<classpathentry kind="output" path="bin"/>
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#Fri Apr 25 15:22:29 EDT 2008
|
#Fri Apr 25 15:22:29 EDT 2008
|
||||||
eclipse.preferences.version=1
|
eclipse.preferences.version=1
|
||||||
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
|
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7
|
||||||
org.eclipse.jdt.core.compiler.compliance=1.5
|
org.eclipse.jdt.core.compiler.compliance=1.7
|
||||||
org.eclipse.jdt.core.compiler.problem.annotationSuperInterface=warning
|
org.eclipse.jdt.core.compiler.problem.annotationSuperInterface=warning
|
||||||
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
|
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
|
||||||
org.eclipse.jdt.core.compiler.problem.autoboxing=ignore
|
org.eclipse.jdt.core.compiler.problem.autoboxing=ignore
|
||||||
|
@ -62,4 +62,4 @@ org.eclipse.jdt.core.compiler.problem.unusedParameterWhenOverridingConcrete=enab
|
||||||
org.eclipse.jdt.core.compiler.problem.unusedPrivateMember=warning
|
org.eclipse.jdt.core.compiler.problem.unusedPrivateMember=warning
|
||||||
org.eclipse.jdt.core.compiler.problem.unusedWarningToken=warning
|
org.eclipse.jdt.core.compiler.problem.unusedWarningToken=warning
|
||||||
org.eclipse.jdt.core.compiler.problem.varargsArgumentNeedCast=warning
|
org.eclipse.jdt.core.compiler.problem.varargsArgumentNeedCast=warning
|
||||||
org.eclipse.jdt.core.compiler.source=1.5
|
org.eclipse.jdt.core.compiler.source=1.7
|
||||||
|
|
|
@ -12,4 +12,4 @@ Require-Bundle: org.eclipse.core.runtime,
|
||||||
Export-Package: org.eclipse.cdt.core.lrparser.tests
|
Export-Package: org.eclipse.cdt.core.lrparser.tests
|
||||||
Bundle-Vendor: %Bundle-Vendor.0
|
Bundle-Vendor: %Bundle-Vendor.0
|
||||||
Bundle-Localization: plugin
|
Bundle-Localization: plugin
|
||||||
Bundle-RequiredExecutionEnvironment: J2SE-1.5
|
Bundle-RequiredExecutionEnvironment: JavaSE-1.7
|
||||||
|
|
|
@ -50,6 +50,7 @@ public class LRCompletionParseTest extends TestCase {
|
||||||
|
|
||||||
|
|
||||||
private static final Comparator<IBinding> BINDING_COMPARATOR = new Comparator<IBinding>() {
|
private static final Comparator<IBinding> BINDING_COMPARATOR = new Comparator<IBinding>() {
|
||||||
|
@Override
|
||||||
public int compare(IBinding b1, IBinding b2) {
|
public int compare(IBinding b1, IBinding b2) {
|
||||||
return b1.getName().compareTo(b2.getName());
|
return b1.getName().compareTo(b2.getName());
|
||||||
}
|
}
|
||||||
|
|
|
@ -23,6 +23,6 @@ Export-Package: org.eclipse.cdt.core.dom.lrparser,
|
||||||
org.eclipse.cdt.internal.core.dom.lrparser.gpp
|
org.eclipse.cdt.internal.core.dom.lrparser.gpp
|
||||||
Bundle-Localization: plugin
|
Bundle-Localization: plugin
|
||||||
Bundle-Vendor: %Bundle-Vendor.0
|
Bundle-Vendor: %Bundle-Vendor.0
|
||||||
Bundle-RequiredExecutionEnvironment: J2SE-1.5
|
Bundle-RequiredExecutionEnvironment: JavaSE-1.7
|
||||||
Bundle-ActivationPolicy: lazy
|
Bundle-ActivationPolicy: lazy
|
||||||
Bundle-Activator: org.eclipse.cdt.core.dom.lrparser.LRParserPlugin
|
Bundle-Activator: org.eclipse.cdt.core.dom.lrparser.LRParserPlugin
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<classpath>
|
<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.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.7"/>
|
||||||
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
|
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
|
||||||
<classpathentry kind="src" path="src"/>
|
<classpathentry kind="src" path="src"/>
|
||||||
<classpathentry kind="output" path="bin"/>
|
<classpathentry kind="output" path="bin"/>
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
#Tue Nov 16 13:45:44 CET 2010
|
#Tue Nov 16 13:45:44 CET 2010
|
||||||
eclipse.preferences.version=1
|
eclipse.preferences.version=1
|
||||||
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
|
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
|
||||||
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
|
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7
|
||||||
org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
|
org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
|
||||||
org.eclipse.jdt.core.compiler.compliance=1.5
|
org.eclipse.jdt.core.compiler.compliance=1.7
|
||||||
org.eclipse.jdt.core.compiler.debug.lineNumber=generate
|
org.eclipse.jdt.core.compiler.debug.lineNumber=generate
|
||||||
org.eclipse.jdt.core.compiler.debug.localVariable=generate
|
org.eclipse.jdt.core.compiler.debug.localVariable=generate
|
||||||
org.eclipse.jdt.core.compiler.debug.sourceFile=generate
|
org.eclipse.jdt.core.compiler.debug.sourceFile=generate
|
||||||
|
@ -74,4 +74,4 @@ org.eclipse.jdt.core.compiler.problem.unusedParameterWhenOverridingConcrete=disa
|
||||||
org.eclipse.jdt.core.compiler.problem.unusedPrivateMember=error
|
org.eclipse.jdt.core.compiler.problem.unusedPrivateMember=error
|
||||||
org.eclipse.jdt.core.compiler.problem.unusedWarningToken=error
|
org.eclipse.jdt.core.compiler.problem.unusedWarningToken=error
|
||||||
org.eclipse.jdt.core.compiler.problem.varargsArgumentNeedCast=error
|
org.eclipse.jdt.core.compiler.problem.varargsArgumentNeedCast=error
|
||||||
org.eclipse.jdt.core.compiler.source=1.5
|
org.eclipse.jdt.core.compiler.source=1.7
|
||||||
|
|
|
@ -12,7 +12,7 @@ Require-Bundle: org.eclipse.ui,
|
||||||
org.eclipse.debug.ui;bundle-version="3.5.0",
|
org.eclipse.debug.ui;bundle-version="3.5.0",
|
||||||
org.eclipse.cdt.debug.core;bundle-version="7.0.0",
|
org.eclipse.cdt.debug.core;bundle-version="7.0.0",
|
||||||
org.eclipse.cdt.debug.ui;bundle-version="7.0.0"
|
org.eclipse.cdt.debug.ui;bundle-version="7.0.0"
|
||||||
Bundle-RequiredExecutionEnvironment: J2SE-1.5
|
Bundle-RequiredExecutionEnvironment: JavaSE-1.7
|
||||||
Bundle-ActivationPolicy: lazy
|
Bundle-ActivationPolicy: lazy
|
||||||
Export-Package: org.eclipse.cdt.debug.ui.memory.memorybrowser,
|
Export-Package: org.eclipse.cdt.debug.ui.memory.memorybrowser,
|
||||||
org.eclipse.cdt.debug.ui.memory.memorybrowser.api
|
org.eclipse.cdt.debug.ui.memory.memorybrowser.api
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<classpath>
|
<classpath>
|
||||||
<classpathentry kind="src" path="src"/>
|
<classpathentry kind="src" path="src"/>
|
||||||
<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.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.7"/>
|
||||||
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
|
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
|
||||||
<classpathentry kind="output" path="bin"/>
|
<classpathentry kind="output" path="bin"/>
|
||||||
</classpath>
|
</classpath>
|
||||||
|
|
|
@ -6,9 +6,9 @@ org.eclipse.jdt.core.compiler.annotation.nonnullbydefault=org.eclipse.jdt.annota
|
||||||
org.eclipse.jdt.core.compiler.annotation.nullable=org.eclipse.jdt.annotation.Nullable
|
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.annotation.nullanalysis=disabled
|
||||||
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
|
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
|
||||||
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
|
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7
|
||||||
org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
|
org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
|
||||||
org.eclipse.jdt.core.compiler.compliance=1.5
|
org.eclipse.jdt.core.compiler.compliance=1.7
|
||||||
org.eclipse.jdt.core.compiler.debug.lineNumber=generate
|
org.eclipse.jdt.core.compiler.debug.lineNumber=generate
|
||||||
org.eclipse.jdt.core.compiler.debug.localVariable=generate
|
org.eclipse.jdt.core.compiler.debug.localVariable=generate
|
||||||
org.eclipse.jdt.core.compiler.debug.sourceFile=generate
|
org.eclipse.jdt.core.compiler.debug.sourceFile=generate
|
||||||
|
@ -96,4 +96,4 @@ org.eclipse.jdt.core.compiler.problem.unusedPrivateMember=error
|
||||||
org.eclipse.jdt.core.compiler.problem.unusedTypeParameter=ignore
|
org.eclipse.jdt.core.compiler.problem.unusedTypeParameter=ignore
|
||||||
org.eclipse.jdt.core.compiler.problem.unusedWarningToken=error
|
org.eclipse.jdt.core.compiler.problem.unusedWarningToken=error
|
||||||
org.eclipse.jdt.core.compiler.problem.varargsArgumentNeedCast=error
|
org.eclipse.jdt.core.compiler.problem.varargsArgumentNeedCast=error
|
||||||
org.eclipse.jdt.core.compiler.source=1.5
|
org.eclipse.jdt.core.compiler.source=1.7
|
||||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Reference in a new issue