Refactory: replaced deprecated constructor DefaultInformationControl(Shell, int,...
authorincastrix <incastrix>
Wed, 7 Oct 2009 16:41:15 +0000 (16:41 +0000)
committerincastrix <incastrix>
Wed, 7 Oct 2009 16:41:15 +0000 (16:41 +0000)
net.sourceforge.phpeclipse.debug.ui/src/net/sourceforge/phpdt/internal/debug/ui/PHPDebugHover.java
net.sourceforge.phpeclipse.ui/src/net/sourceforge/phpdt/internal/ui/text/java/hover/AbstractJavaEditorTextHover.java
net.sourceforge.phpeclipse.ui/src/net/sourceforge/phpdt/ui/text/PHPSourceViewerConfiguration.java

index d9053a9..efd1b93 100644 (file)
@@ -252,9 +252,12 @@ public class PHPDebugHover implements IJavaEditorTextHover,
                // { //$NON-NLS-1$
                return new IInformationControlCreator() {
                        public IInformationControl createInformationControl(Shell parent) {
-                               return new DefaultInformationControl(parent, SWT.NONE,
-                                               new HTMLTextPresenter(true), PHPDebugUiMessages
-                                                               .getString("JavaDebugHover.16")); //$NON-NLS-1$
+//incastrix
+                               //                              return new DefaultInformationControl(parent, SWT.NONE,
+//                                             new HTMLTextPresenter(true), PHPDebugUiMessages
+//                                                             .getString("JavaDebugHover.16")); //$NON-NLS-1$
+                               return new DefaultInformationControl(parent, PHPDebugUiMessages.getString("JavaDebugHover.16"),
+                                               new HTMLTextPresenter(true));
                        }
                };
                // }
@@ -271,9 +274,12 @@ public class PHPDebugHover implements IJavaEditorTextHover,
                                PreferenceConstants.EDITOR_SHOW_TEXT_HOVER_AFFORDANCE)) { //$NON-NLS-1$
                        return new IInformationControlCreator() {
                                public IInformationControl createInformationControl(Shell parent) {
-                                       return new DefaultInformationControl(parent, SWT.NONE,
-                                                       new HTMLTextPresenter(true), PHPDebugUiMessages
-                                                                       .getString("PHPDebugHover.16")); //$NON-NLS-1$
+//incastrix
+                                       //                                      return new DefaultInformationControl(parent, SWT.NONE,
+//                                                     new HTMLTextPresenter(true), PHPDebugUiMessages
+//                                                                     .getString("PHPDebugHover.16")); //$NON-NLS-1$
+                                       return new DefaultInformationControl(parent, PHPDebugUiMessages.getString("JavaDebugHover.16"),
+                                                       new HTMLTextPresenter(true));
                                }
                        };
                }
index de83858..d0576c1 100644 (file)
@@ -137,9 +137,12 @@ public abstract class AbstractJavaEditorTextHover implements
        public IInformationControlCreator getHoverControlCreator() {
                return new IInformationControlCreator() {
                        public IInformationControl createInformationControl(Shell parent) {
-                               return new DefaultInformationControl(parent, SWT.NONE,
-                                               new HTMLTextPresenter(true),
-                                               getTooltipAffordanceString());
+                               //incastrix
+                               //                              return new DefaultInformationControl(parent, SWT.NONE,
+//                                             new HTMLTextPresenter(true),
+//                                             getTooltipAffordanceString());
+                               return new DefaultInformationControl(parent, getTooltipAffordanceString(),
+                                               new HTMLTextPresenter(true));
                        }
                };
        }
index 3cba77d..62ccb11 100644 (file)
@@ -14,6 +14,7 @@ package net.sourceforge.phpdt.ui.text;
 import java.util.Vector;
 
 import net.sourceforge.phpdt.core.JavaCore;
+//import net.sourceforge.phpdt.internal.debug.ui.PHPDebugUiMessages;
 import net.sourceforge.phpdt.internal.ui.text.AbstractJavaScanner;
 import net.sourceforge.phpdt.internal.ui.text.ContentAssistPreference;
 import net.sourceforge.phpdt.internal.ui.text.HTMLTextPresenter;
@@ -1018,7 +1019,10 @@ public class PHPSourceViewerConfiguration extends SourceViewerConfiguration {
                        ISourceViewer sourceViewer) {
                return new IInformationControlCreator() {
                        public IInformationControl createInformationControl(Shell parent) {
-                               return new DefaultInformationControl(parent, SWT.NONE,
+//incastrix
+                               //                              return new DefaultInformationControl(parent, SWT.NONE,
+//                                             new HTMLTextPresenter(true));
+                               return new DefaultInformationControl(parent,
                                                new HTMLTextPresenter(true));
                                // return new HoverBrowserControl(parent);
                        }