*
* @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)
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;
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 {
package net.sourceforge.phpdt.internal.debug.ui;
-import java.text.MessageFormat;
+//import java.text.MessageFormat;
import java.util.MissingResourceException;
import java.util.ResourceBundle;
}
}
- 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
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;
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);