mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Added new case in the 'getEditorInput' method of CDTDebugModelPresentation for FileStorage objects.
This commit is contained in:
parent
a161442efe
commit
b0012feb7d
2 changed files with 8 additions and 4 deletions
|
@ -1,3 +1,7 @@
|
||||||
|
2002-12-10 Mikhail Khodjaiants
|
||||||
|
Added new case in the 'getEditorInput' method of CDTDebugModelPresentation for FileStorage objects.
|
||||||
|
* CDTDebugModelPresentation.java
|
||||||
|
|
||||||
2002-12-08 Mikhail Khodjaiants
|
2002-12-08 Mikhail Khodjaiants
|
||||||
Implementation of the status handler for core errors.
|
Implementation of the status handler for core errors.
|
||||||
* ErrorStatusHandler.java
|
* ErrorStatusHandler.java
|
||||||
|
|
|
@ -9,6 +9,7 @@ package org.eclipse.cdt.debug.internal.ui;
|
||||||
import java.text.MessageFormat;
|
import java.text.MessageFormat;
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
|
|
||||||
|
import org.eclipse.cdt.core.resources.FileStorage;
|
||||||
import org.eclipse.cdt.debug.core.cdi.ICDIBreakpointHit;
|
import org.eclipse.cdt.debug.core.cdi.ICDIBreakpointHit;
|
||||||
import org.eclipse.cdt.debug.core.cdi.ICDIErrorInfo;
|
import org.eclipse.cdt.debug.core.cdi.ICDIErrorInfo;
|
||||||
import org.eclipse.cdt.debug.core.cdi.ICDIExitInfo;
|
import org.eclipse.cdt.debug.core.cdi.ICDIExitInfo;
|
||||||
|
@ -29,6 +30,7 @@ import org.eclipse.cdt.debug.core.model.IState;
|
||||||
import org.eclipse.cdt.debug.core.sourcelookup.IDisassemblyStorage;
|
import org.eclipse.cdt.debug.core.sourcelookup.IDisassemblyStorage;
|
||||||
import org.eclipse.cdt.debug.internal.ui.editors.DisassemblyEditorInput;
|
import org.eclipse.cdt.debug.internal.ui.editors.DisassemblyEditorInput;
|
||||||
import org.eclipse.cdt.debug.ui.CDebugUIPlugin;
|
import org.eclipse.cdt.debug.ui.CDebugUIPlugin;
|
||||||
|
import org.eclipse.cdt.internal.ui.util.ExternalEditorInput;
|
||||||
import org.eclipse.core.resources.IFile;
|
import org.eclipse.core.resources.IFile;
|
||||||
import org.eclipse.core.resources.IMarker;
|
import org.eclipse.core.resources.IMarker;
|
||||||
import org.eclipse.core.resources.IResource;
|
import org.eclipse.core.resources.IResource;
|
||||||
|
@ -137,12 +139,10 @@ public class CDTDebugModelPresentation extends LabelProvider
|
||||||
file = (IFile)((ICLineBreakpoint)element).getMarker().getResource().getAdapter( IFile.class );
|
file = (IFile)((ICLineBreakpoint)element).getMarker().getResource().getAdapter( IFile.class );
|
||||||
if ( file != null )
|
if ( file != null )
|
||||||
return new FileEditorInput( file );
|
return new FileEditorInput( file );
|
||||||
/*
|
if ( element instanceof FileStorage )
|
||||||
if ( element instanceof IFileStorage )
|
|
||||||
{
|
{
|
||||||
return new FileStorageEditorInput( (IFileStorage)element );
|
return new ExternalEditorInput( (IStorage)element );
|
||||||
}
|
}
|
||||||
*/
|
|
||||||
if ( element instanceof IDisassemblyStorage )
|
if ( element instanceof IDisassemblyStorage )
|
||||||
{
|
{
|
||||||
return new DisassemblyEditorInput( (IStorage)element );
|
return new DisassemblyEditorInput( (IStorage)element );
|
||||||
|
|
Loading…
Add table
Reference in a new issue