1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-08 10:16:03 +02:00

Found two remaining cases of "jumpTo" terminology (variables names). Changes to "resumeAt"

This commit is contained in:
John Cortell 2008-07-07 18:57:32 +00:00
parent 8b0b647c7b
commit e173a7fb80

View file

@ -135,8 +135,8 @@ public class ResumeAtLineAdapter implements IResumeAtLineTarget {
public boolean canResumeAtLine( IWorkbenchPart part, ISelection selection, ISuspendResume target ) { public boolean canResumeAtLine( IWorkbenchPart part, ISelection selection, ISuspendResume target ) {
if ( target instanceof IAdaptable ) { if ( target instanceof IAdaptable ) {
if ( part instanceof IEditorPart ) { if ( part instanceof IEditorPart ) {
IResumeAtLine jumpToLine = (IResumeAtLine)((IAdaptable)target).getAdapter( IResumeAtLine.class ); IResumeAtLine resumeAtLine = (IResumeAtLine)((IAdaptable)target).getAdapter( IResumeAtLine.class );
if ( jumpToLine == null) if ( resumeAtLine == null)
return false; return false;
IEditorPart editorPart = (IEditorPart)part; IEditorPart editorPart = (IEditorPart)part;
IEditorInput input = editorPart.getEditorInput(); IEditorInput input = editorPart.getEditorInput();
@ -170,11 +170,11 @@ public class ResumeAtLineAdapter implements IResumeAtLineTarget {
final IPath path = convertPath( fileName, debugTarget ); final IPath path = convertPath( fileName, debugTarget );
ITextSelection textSelection = (ITextSelection)selection; ITextSelection textSelection = (ITextSelection)selection;
int lineNumber = textSelection.getStartLine() + 1; int lineNumber = textSelection.getStartLine() + 1;
return jumpToLine.canResumeAtLine( path.toPortableString(), lineNumber ); return resumeAtLine.canResumeAtLine( path.toPortableString(), lineNumber );
} }
if ( part instanceof DisassemblyView ) { if ( part instanceof DisassemblyView ) {
IResumeAtAddress jumpToAddress = (IResumeAtAddress)((IAdaptable)target).getAdapter( IResumeAtAddress.class ); IResumeAtAddress resumeAtAddress = (IResumeAtAddress)((IAdaptable)target).getAdapter( IResumeAtAddress.class );
if ( jumpToAddress == null ) if ( resumeAtAddress == null )
return false; return false;
IEditorInput input = ((DisassemblyView)part).getInput(); IEditorInput input = ((DisassemblyView)part).getInput();
if ( !(input instanceof DisassemblyEditorInput) ) { if ( !(input instanceof DisassemblyEditorInput) ) {
@ -183,7 +183,7 @@ public class ResumeAtLineAdapter implements IResumeAtLineTarget {
ITextSelection textSelection = (ITextSelection)selection; ITextSelection textSelection = (ITextSelection)selection;
int lineNumber = textSelection.getStartLine() + 1; int lineNumber = textSelection.getStartLine() + 1;
IAddress address = ((DisassemblyEditorInput)input).getAddress( lineNumber ); IAddress address = ((DisassemblyEditorInput)input).getAddress( lineNumber );
return jumpToAddress.canResumeAtAddress( address ); return resumeAtAddress.canResumeAtAddress( address );
} }
} }
return false; return false;