1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

2004-05-31 Alain Magloire

The Extension point "org.eclipse.cdt.ui.textHover"
	Changed adjust the Debugger.
	* DebugTextHover.java
This commit is contained in:
Alain Magloire 2004-06-01 05:14:50 +00:00
parent 6124157bef
commit 5b69f55809
3 changed files with 18 additions and 4 deletions

View file

@ -1,3 +1,8 @@
2004-05-31 Alain Magloire
The Extension point "org.eclipse.cdt.ui.textHover"
Changed adjust the Debugger.
* DebugTextHover.java
2004-05-31 Mikhail Khodjaiants
Bug 39650: the Memory window has alignment problems.
Map the Memory view font to the platform text font which is monospace by default.

View file

@ -973,12 +973,12 @@
</extension>
<extension
point="org.eclipse.cdt.ui.textHovers">
<textHover
<hover
name="%DebugTextHover"
perspective="org.eclipse.debug.ui.DebugPerspective"
class="org.eclipse.cdt.debug.internal.ui.editors.DebugTextHover"
id="org.eclipse.cdt.debug.internal.ui.editors.DebugTextHover">
</textHover>
</hover>
</extension>
<extension
point="org.eclipse.debug.core.statusHandlers">

View file

@ -13,6 +13,7 @@ import java.util.List;
import org.eclipse.cdt.debug.core.model.ICExpressionEvaluator;
import org.eclipse.cdt.debug.internal.ui.CDebugUIUtils;
import org.eclipse.cdt.debug.ui.CDebugUIPlugin;
import org.eclipse.cdt.ui.text.c.hover.ICEditorTextHover;
import org.eclipse.debug.core.DebugException;
import org.eclipse.debug.core.DebugPlugin;
import org.eclipse.debug.core.ILaunchManager;
@ -20,8 +21,8 @@ import org.eclipse.debug.core.model.IDebugTarget;
import org.eclipse.jface.text.BadLocationException;
import org.eclipse.jface.text.IDocument;
import org.eclipse.jface.text.IRegion;
import org.eclipse.jface.text.ITextHover;
import org.eclipse.jface.text.ITextViewer;
import org.eclipse.ui.IEditorPart;
/**
*
@ -29,9 +30,10 @@ import org.eclipse.jface.text.ITextViewer;
*
* @since: Sep 12, 2002
*/
public class DebugTextHover implements ITextHover
public class DebugTextHover implements ICEditorTextHover
{
static final private int MAX_HOVER_INFO_SIZE = 100;
private IEditorPart fEditor;
/**
* Constructor for DebugTextHover.
@ -203,4 +205,11 @@ public class DebugTextHover implements ITextHover
}
return buffer.toString();
}
/* (non-Javadoc)
* @see org.eclipse.cdt.ui.text.c.hover.ICEditorTextHover#setEditor(org.eclipse.ui.IEditorPart)
*/
public void setEditor(IEditorPart editor) {
fEditor = editor;
}
}