Refactory: remove unused classes, imports, fields and methods.
authorincastrix <incastrix>
Wed, 23 Dec 2009 17:33:36 +0000 (17:33 +0000)
committerincastrix <incastrix>
Wed, 23 Dec 2009 17:33:36 +0000 (17:33 +0000)
net.sourceforge.phpeclipse.debug.ui/src/net/sourceforge/phpdt/internal/debug/ui/PHPDebugHover.java
net.sourceforge.phpeclipse.debug.ui/src/net/sourceforge/phpdt/internal/debug/ui/PHPDebugModelPresentation.java
net.sourceforge.phpeclipse.debug.ui/src/net/sourceforge/phpdt/internal/debug/ui/PHPDebugUiMessages.java
net.sourceforge.phpeclipse.debug.ui/src/net/sourceforge/phpdt/internal/debug/ui/PHPDebugUiPlugin.java

index 31224b3..4c566d6 100644 (file)
@@ -246,23 +246,23 @@ public class PHPDebugHover implements IJavaEditorTextHover,
         * 
         * @see org.eclipse.jface.text.ITextHoverExtension#getInformationControlCreator()
         */
-       public IInformationControlCreator getInformationControlCreator() {
-               // if
-               // (Platform.getPlugin("org.eclipse.jdt.ui").getPluginPreferences().getBoolean(PreferenceConstants.EDITOR_SHOW_TEXT_HOVER_AFFORDANCE))
-               // { //$NON-NLS-1$
-               return new IInformationControlCreator() {
-                       public IInformationControl createInformationControl(Shell parent) {
-//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));
-                       }
-               };
-               // }
-               // return null;
-       }
+//     public IInformationControlCreator getInformationControlCreator() {
+//             // if
+//             // (Platform.getPlugin("org.eclipse.jdt.ui").getPluginPreferences().getBoolean(PreferenceConstants.EDITOR_SHOW_TEXT_HOVER_AFFORDANCE))
+//             // { //$NON-NLS-1$
+//             return new IInformationControlCreator() {
+//                     public IInformationControl createInformationControl(Shell parent) {
+////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));
+//                     }
+//             };
+//             // }
+//             // return null;
+//     }
 
        /*
         * (non-Javadoc)
index 6bed7bf..7a86414 100644 (file)
@@ -23,7 +23,7 @@ import net.sourceforge.phpdt.internal.debug.core.model.PHPVariable;
 import org.eclipse.core.resources.IFile;
 import org.eclipse.core.resources.IMarker;
 import org.eclipse.core.runtime.CoreException;
-import org.eclipse.debug.core.DebugPlugin;
+//import org.eclipse.debug.core.DebugPlugin;
 import org.eclipse.debug.core.model.IBreakpoint;
 import org.eclipse.debug.core.model.IValue;
 import org.eclipse.debug.ui.DebugUITools;
@@ -156,10 +156,10 @@ public class PHPDebugModelPresentation extends LabelProvider implements
                return;
        }
 
-       protected IBreakpoint getBreakpoint(IMarker marker) {
-               return DebugPlugin.getDefault().getBreakpointManager().getBreakpoint(
-                               marker);
-       }
+//     protected IBreakpoint getBreakpoint(IMarker marker) {
+//             return DebugPlugin.getDefault().getBreakpointManager().getBreakpoint(
+//                             marker);
+//     }
 
        protected String getBreakpointText(IBreakpoint breakpoint)
                        throws CoreException {
index e6e28cd..28f1861 100644 (file)
@@ -1,6 +1,6 @@
 package net.sourceforge.phpdt.internal.debug.ui;
 
-import java.text.MessageFormat;
+//import java.text.MessageFormat;
 import java.util.MissingResourceException;
 import java.util.ResourceBundle;
 
@@ -23,11 +23,11 @@ public class PHPDebugUiMessages {
                }
        }
 
-       public static String getFormattedString(String key, Object arg) {
-               return MessageFormat.format(getString(key), new Object[] { arg });
-       }
+//     public static String getFormattedString(String key, Object arg) {
+//             return MessageFormat.format(getString(key), new Object[] { arg });
+//     }
 
-       public static String getFormattedString(String key, Object[] args) {
-               return MessageFormat.format(getString(key), args);
-       }
+//     public static String getFormattedString(String key, Object[] args) {
+//             return MessageFormat.format(getString(key), args);
+//     }
 }
\ No newline at end of file
index f914e46..8bdb623 100644 (file)
@@ -5,7 +5,7 @@ import net.sourceforge.phpeclipse.PHPeclipsePlugin;
 import org.eclipse.core.resources.IWorkspace;
 import org.eclipse.core.runtime.IStatus;
 import org.eclipse.core.runtime.Status;
-import org.eclipse.jface.dialogs.ErrorDialog;
+//import org.eclipse.jface.dialogs.ErrorDialog;
 import org.eclipse.swt.widgets.Display;
 import org.eclipse.swt.widgets.Shell;
 import org.eclipse.ui.IWorkbenchPage;
@@ -79,23 +79,23 @@ public class PHPDebugUiPlugin extends AbstractUIPlugin {
                return null;
        }
 
-       public static void errorDialog(String message, IStatus status) {
-               log(status);
-               Shell shell = getActiveWorkbenchShell();
-               if (shell != null) {
-                       ErrorDialog.openError(shell, "Error", message, status);
-               }
-       }
-
-       public static void errorDialog(String message, Throwable t) {
-               log(t);
-               Shell shell = getActiveWorkbenchShell();
-               if (shell != null) {
-                       IStatus status = new Status(IStatus.ERROR, PLUGIN_ID, /* ICDebugUIConstants.INTERNAL_ERROR */
-                                       150, t.getMessage(), null); //$NON-NLS-1$       
-                       ErrorDialog.openError(shell, "Error", message, status);
-               }
-       }
+//     public static void errorDialog(String message, IStatus status) {
+//             log(status);
+//             Shell shell = getActiveWorkbenchShell();
+//             if (shell != null) {
+//                     ErrorDialog.openError(shell, "Error", message, status);
+//             }
+//     }
+
+//     public static void errorDialog(String message, Throwable t) {
+//             log(t);
+//             Shell shell = getActiveWorkbenchShell();
+//             if (shell != null) {
+//                     IStatus status = new Status(IStatus.ERROR, PLUGIN_ID, /* ICDebugUIConstants.INTERNAL_ERROR */
+//                                     150, t.getMessage(), null); //$NON-NLS-1$       
+//                     ErrorDialog.openError(shell, "Error", message, status);
+//             }
+//     }
 
        public static void log(IStatus status) {
                getDefault().getLog().log(status);