1
0
Fork 0
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:
Mikhail Khodjaiants 2002-12-10 17:57:54 +00:00
parent a161442efe
commit b0012feb7d
2 changed files with 8 additions and 4 deletions

View file

@ -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
Implementation of the status handler for core errors.
* ErrorStatusHandler.java

View file

@ -9,6 +9,7 @@ package org.eclipse.cdt.debug.internal.ui;
import java.text.MessageFormat;
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.ICDIErrorInfo;
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.internal.ui.editors.DisassemblyEditorInput;
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.IMarker;
import org.eclipse.core.resources.IResource;
@ -137,12 +139,10 @@ public class CDTDebugModelPresentation extends LabelProvider
file = (IFile)((ICLineBreakpoint)element).getMarker().getResource().getAdapter( IFile.class );
if ( file != null )
return new FileEditorInput( file );
/*
if ( element instanceof IFileStorage )
if ( element instanceof FileStorage )
{
return new FileStorageEditorInput( (IFileStorage)element );
return new ExternalEditorInput( (IStorage)element );
}
*/
if ( element instanceof IDisassemblyStorage )
{
return new DisassemblyEditorInput( (IStorage)element );