mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-02 05:45:58 +02:00
Moved the memory management functionality to the core.
This commit is contained in:
parent
46a86c5d94
commit
6c770feac4
3 changed files with 5 additions and 27 deletions
|
@ -1,3 +1,7 @@
|
||||||
|
2002-10-15 Mikhail Khodjaiants
|
||||||
|
* CDebugUIPlugin.java: Moved the memory management functionality to the core.
|
||||||
|
* MemoryControlArea.java: Moved the memory management functionality to the core.
|
||||||
|
|
||||||
2002-10-15 Mikhail Khodjaiants
|
2002-10-15 Mikhail Khodjaiants
|
||||||
* CDebugPreferencePage.java: Implementation of the 'Automatically switch to disassembly mode' preference.
|
* CDebugPreferencePage.java: Implementation of the 'Automatically switch to disassembly mode' preference.
|
||||||
|
|
||||||
|
|
|
@ -9,8 +9,6 @@ package org.eclipse.cdt.debug.internal.ui.views.memory;
|
||||||
import org.eclipse.cdt.debug.core.IFormattedMemoryBlock;
|
import org.eclipse.cdt.debug.core.IFormattedMemoryBlock;
|
||||||
import org.eclipse.cdt.debug.core.IFormattedMemoryRetrieval;
|
import org.eclipse.cdt.debug.core.IFormattedMemoryRetrieval;
|
||||||
import org.eclipse.cdt.debug.internal.ui.preferences.ICDebugPreferenceConstants;
|
import org.eclipse.cdt.debug.internal.ui.preferences.ICDebugPreferenceConstants;
|
||||||
import org.eclipse.cdt.debug.ui.CDebugUIPlugin;
|
|
||||||
//import org.eclipse.jface.preference.IPreferenceStore;
|
|
||||||
import org.eclipse.jface.util.PropertyChangeEvent;
|
import org.eclipse.jface.util.PropertyChangeEvent;
|
||||||
import org.eclipse.swt.SWT;
|
import org.eclipse.swt.SWT;
|
||||||
import org.eclipse.swt.events.KeyAdapter;
|
import org.eclipse.swt.events.KeyAdapter;
|
||||||
|
@ -145,7 +143,7 @@ public class MemoryControlArea extends Composite
|
||||||
public void setInput( IFormattedMemoryRetrieval input )
|
public void setInput( IFormattedMemoryRetrieval input )
|
||||||
{
|
{
|
||||||
fInput = input;
|
fInput = input;
|
||||||
fMemoryBlock = CDebugUIPlugin.getDefault().getBlock( fInput, fIndex );
|
// fMemoryBlock = CDebugUIPlugin.getDefault().getBlock( fInput, fIndex );
|
||||||
fPresentation.setMemoryBlock( fMemoryBlock );
|
fPresentation.setMemoryBlock( fMemoryBlock );
|
||||||
refresh();
|
refresh();
|
||||||
}
|
}
|
||||||
|
|
|
@ -6,8 +6,6 @@ import java.util.MissingResourceException;
|
||||||
import java.util.ResourceBundle;
|
import java.util.ResourceBundle;
|
||||||
|
|
||||||
import org.eclipse.cdt.debug.core.IDisassemblyStorage;
|
import org.eclipse.cdt.debug.core.IDisassemblyStorage;
|
||||||
import org.eclipse.cdt.debug.core.IFormattedMemoryBlock;
|
|
||||||
import org.eclipse.cdt.debug.core.IFormattedMemoryRetrieval;
|
|
||||||
import org.eclipse.cdt.debug.core.ISwitchToFrame;
|
import org.eclipse.cdt.debug.core.ISwitchToFrame;
|
||||||
import org.eclipse.cdt.debug.core.ISwitchToThread;
|
import org.eclipse.cdt.debug.core.ISwitchToThread;
|
||||||
import org.eclipse.cdt.debug.internal.ui.CDTDebugModelPresentation;
|
import org.eclipse.cdt.debug.internal.ui.CDTDebugModelPresentation;
|
||||||
|
@ -166,28 +164,6 @@ public class CDebugUIPlugin extends AbstractUIPlugin implements ISelectionListen
|
||||||
{
|
{
|
||||||
return CDTDebugModelPresentation.getDefault();
|
return CDTDebugModelPresentation.getDefault();
|
||||||
}
|
}
|
||||||
|
|
||||||
public void addBlock( IFormattedMemoryRetrieval mbr, IFormattedMemoryBlock memoryBlock )
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
public void removeBlock( IFormattedMemoryRetrieval mbr, IFormattedMemoryBlock memoryBlock )
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
public void removeAllBlocks( IFormattedMemoryRetrieval mbr )
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
public IFormattedMemoryBlock getBlock( IFormattedMemoryRetrieval mbr, int index )
|
|
||||||
{
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
public IFormattedMemoryBlock[] getBlocks( IFormattedMemoryRetrieval mbr )
|
|
||||||
{
|
|
||||||
return new IFormattedMemoryBlock[0];
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Logs the specified status with this plug-in's log.
|
* Logs the specified status with this plug-in's log.
|
||||||
|
|
Loading…
Add table
Reference in a new issue