* Contributors:
* Christopher Lenz - initial implementation
*
- * $Id: WebUI.java,v 1.8 2007-07-12 03:58:05 dizmo Exp $
+ * $Id: WebUI.java,v 1.9 2007-08-20 02:33:07 toshihiro Exp $
*/
package net.sourceforge.phpeclipse.ui;
* The web development tools UI plugin.
*/
public class WebUI extends AbstractUIPlugin implements IPreferenceConstants {
+
+ private static final String PLUGIN_ID = "net.sourceforge.phpeclipse.ui";
+
private static final String CUSTOM_TEMPLATES_KEY = "net.sourceforge.phpeclipse.ui.templates"; //$NON-NLS-1$
// Constants ---------------------------------------------------------------
reg.put(ICON_OVERLAY_ERROR, getImageDescriptor(ICON_OVERLAY_ERROR));
reg.put(ICON_OVERLAY_WARNING, getImageDescriptor(ICON_OVERLAY_WARNING));
}
+
// private IWorkbenchPage internalGetActivePage() {
// IWorkbenchWindow window = getWorkbench().getActiveWorkbenchWindow();
// if (window != null)
// return window.getActivePage();
// return null;
// }
+
+ public static void log(IStatus status) {
+ getDefault().getLog().log(status);
+ }
+
+ public static void log(Throwable e) {
+ log(new Status(IStatus.ERROR, PLUGIN_ID, IStatus.ERROR, e
+ .getLocalizedMessage(), e));
+ }
}
\ No newline at end of file