From e5abf5878e75721f3216d1202f431abf29f1995e Mon Sep 17 00:00:00 2001 From: incastrix Date: Wed, 23 Dec 2009 17:33:36 +0000 Subject: [PATCH] Refactory: remove unused classes, imports, fields and methods. --- .../phpdt/internal/debug/ui/PHPDebugHover.java | 34 +++++++++--------- .../debug/ui/PHPDebugModelPresentation.java | 10 +++--- .../internal/debug/ui/PHPDebugUiMessages.java | 14 ++++---- .../phpdt/internal/debug/ui/PHPDebugUiPlugin.java | 36 ++++++++++---------- 4 files changed, 47 insertions(+), 47 deletions(-) diff --git a/net.sourceforge.phpeclipse.debug.ui/src/net/sourceforge/phpdt/internal/debug/ui/PHPDebugHover.java b/net.sourceforge.phpeclipse.debug.ui/src/net/sourceforge/phpdt/internal/debug/ui/PHPDebugHover.java index 31224b3..4c566d6 100644 --- a/net.sourceforge.phpeclipse.debug.ui/src/net/sourceforge/phpdt/internal/debug/ui/PHPDebugHover.java +++ b/net.sourceforge.phpeclipse.debug.ui/src/net/sourceforge/phpdt/internal/debug/ui/PHPDebugHover.java @@ -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) diff --git a/net.sourceforge.phpeclipse.debug.ui/src/net/sourceforge/phpdt/internal/debug/ui/PHPDebugModelPresentation.java b/net.sourceforge.phpeclipse.debug.ui/src/net/sourceforge/phpdt/internal/debug/ui/PHPDebugModelPresentation.java index 6bed7bf..7a86414 100644 --- a/net.sourceforge.phpeclipse.debug.ui/src/net/sourceforge/phpdt/internal/debug/ui/PHPDebugModelPresentation.java +++ b/net.sourceforge.phpeclipse.debug.ui/src/net/sourceforge/phpdt/internal/debug/ui/PHPDebugModelPresentation.java @@ -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 { diff --git a/net.sourceforge.phpeclipse.debug.ui/src/net/sourceforge/phpdt/internal/debug/ui/PHPDebugUiMessages.java b/net.sourceforge.phpeclipse.debug.ui/src/net/sourceforge/phpdt/internal/debug/ui/PHPDebugUiMessages.java index e6e28cd..28f1861 100644 --- a/net.sourceforge.phpeclipse.debug.ui/src/net/sourceforge/phpdt/internal/debug/ui/PHPDebugUiMessages.java +++ b/net.sourceforge.phpeclipse.debug.ui/src/net/sourceforge/phpdt/internal/debug/ui/PHPDebugUiMessages.java @@ -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 diff --git a/net.sourceforge.phpeclipse.debug.ui/src/net/sourceforge/phpdt/internal/debug/ui/PHPDebugUiPlugin.java b/net.sourceforge.phpeclipse.debug.ui/src/net/sourceforge/phpdt/internal/debug/ui/PHPDebugUiPlugin.java index f914e46..8bdb623 100644 --- a/net.sourceforge.phpeclipse.debug.ui/src/net/sourceforge/phpdt/internal/debug/ui/PHPDebugUiPlugin.java +++ b/net.sourceforge.phpeclipse.debug.ui/src/net/sourceforge/phpdt/internal/debug/ui/PHPDebugUiPlugin.java @@ -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); -- 1.7.1