Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMikhail Khodjaiants2005-12-28 00:39:43 +0000
committerMikhail Khodjaiants2005-12-28 00:39:43 +0000
commitf91558ee2f2051569c7b136f77d80d11fe6f0879 (patch)
tree9e57972e66607cbc5c67fe8032f359fb23dac0ab /debug/org.eclipse.cdt.debug.ui
parent5c2821d29b42cdf5cb8394ac789c55ddca0841d6 (diff)
downloadorg.eclipse.cdt-f91558ee2f2051569c7b136f77d80d11fe6f0879.tar.gz
org.eclipse.cdt-f91558ee2f2051569c7b136f77d80d11fe6f0879.tar.xz
org.eclipse.cdt-f91558ee2f2051569c7b136f77d80d11fe6f0879.zip
HTMLTextPresenter implements DefaultInformationControl.IInformationPresenterExtension instead of deprecated DefaultInformationControl.IInformationPresenter.
Diffstat (limited to 'debug/org.eclipse.cdt.debug.ui')
-rw-r--r--debug/org.eclipse.cdt.debug.ui/ChangeLog5
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/HTMLTextPresenter.java22
2 files changed, 19 insertions, 8 deletions
diff --git a/debug/org.eclipse.cdt.debug.ui/ChangeLog b/debug/org.eclipse.cdt.debug.ui/ChangeLog
index 2124d221fc3..c8b4ae761ff 100644
--- a/debug/org.eclipse.cdt.debug.ui/ChangeLog
+++ b/debug/org.eclipse.cdt.debug.ui/ChangeLog
@@ -1,4 +1,9 @@
2005-12-27 Mikhail Khodjaiants
+ HTMLTextPresenter implements DefaultInformationControl.IInformationPresenterExtension
+ instead of deprecated DefaultInformationControl.IInformationPresenter.
+ * HTMLTextPresenter.java
+
+2005-12-27 Mikhail Khodjaiants
Cleanup.
* RetargetAction.java
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/HTMLTextPresenter.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/HTMLTextPresenter.java
index 73acfbf4232..30285a0d78e 100644
--- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/HTMLTextPresenter.java
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/HTMLTextPresenter.java
@@ -13,19 +13,18 @@ package org.eclipse.cdt.debug.internal.ui;
import java.io.IOException;
import java.io.Reader;
import java.io.StringReader;
-
import java.util.Iterator;
-import org.eclipse.swt.custom.StyleRange;
-import org.eclipse.swt.graphics.GC;
-import org.eclipse.swt.widgets.Display;
-
import org.eclipse.cdt.debug.internal.ui.views.disassembly.DisassemblyMessages;
import org.eclipse.debug.core.DebugPlugin;
import org.eclipse.jface.text.DefaultInformationControl;
import org.eclipse.jface.text.Region;
import org.eclipse.jface.text.TextPresentation;
+import org.eclipse.swt.custom.StyleRange;
+import org.eclipse.swt.graphics.Drawable;
+import org.eclipse.swt.graphics.GC;
+import org.eclipse.swt.widgets.Display;
-public class HTMLTextPresenter implements DefaultInformationControl.IInformationPresenter {
+public class HTMLTextPresenter implements DefaultInformationControl.IInformationPresenter, DefaultInformationControl.IInformationPresenterExtension {
private static final String LINE_DELIM= System.getProperty("line.separator", "\n"); //$NON-NLS-1$ //$NON-NLS-2$
@@ -93,12 +92,12 @@ public class HTMLTextPresenter implements DefaultInformationControl.IInformation
/*
* @see IHoverInformationPresenter#updatePresentation(Display display, String, TextPresentation, int, int)
*/
- public String updatePresentation(Display display, String hoverInfo, TextPresentation presentation, int maxWidth, int maxHeight) {
+ public String updatePresentation(Drawable drawable, String hoverInfo, TextPresentation presentation, int maxWidth, int maxHeight) {
if (hoverInfo == null)
return null;
- GC gc= new GC(display);
+ GC gc= new GC(drawable);
try {
StringBuffer buffer= new StringBuffer();
@@ -185,4 +184,11 @@ public class HTMLTextPresenter implements DefaultInformationControl.IInformation
presentation.setResultWindow(new Region(start, buffer.length()));
return buffer.toString();
}
+
+ /* (non-Javadoc)
+ * @see org.eclipse.jface.text.DefaultInformationControl$IInformationPresenter#updatePresentation(org.eclipse.swt.widgets.Display, java.lang.String, org.eclipse.jface.text.TextPresentation, int, int)
+ */
+ public String updatePresentation( Display display, String hoverInfo, TextPresentation presentation, int maxWidth, int maxHeight ) {
+ return updatePresentation( (Drawable)display, hoverInfo, presentation, maxWidth, maxHeight );
+ }
}

Back to the top