package net.sourceforge.phpeclipse.xdebug.core;
-
import net.sourceforge.phpeclipse.xdebug.php.launching.IXDebugConstants;
-import org.eclipse.ui.plugin.*;
import org.eclipse.core.resources.IWorkspace;
import org.eclipse.core.resources.ResourcesPlugin;
import org.eclipse.core.runtime.IStatus;
import org.eclipse.debug.core.IBreakpointManager;
import org.eclipse.debug.core.model.IBreakpoint;
import org.eclipse.jface.resource.ImageDescriptor;
+import org.eclipse.ui.plugin.AbstractUIPlugin;
import org.osgi.framework.BundleContext;
/**
*/
public class XDebugCorePlugin extends AbstractUIPlugin {
- //The shared instance.
+ // The shared instance.
private static XDebugCorePlugin plugin;
+
public static final String PLUGIN_ID = "net.sourceforge.phpeclipse.xdebug.core"; //$NON-NLS-1$
-
/**
* The constructor.
*/
public static XDebugCorePlugin getDefault() {
return plugin;
}
-
+
public static IBreakpoint[] getBreakpoints() {
- return getBreakpointManager().getBreakpoints(IXDebugConstants.ID_PHP_DEBUG_MODEL);
+ return getBreakpointManager().getBreakpoints(
+ IXDebugConstants.ID_PHP_DEBUG_MODEL);
}
-
+
public static IBreakpointManager getBreakpointManager() {
return DebugPlugin.getDefault().getBreakpointManager();
}
/**
- * Returns an image descriptor for the image file at the given
- * plug-in relative path.
- *
- * @param path the path
+ * Returns an image descriptor for the image file at the given plug-in
+ * relative path.
+ *
+ * @param path
+ * the path
* @return the image descriptor
*/
public static ImageDescriptor getImageDescriptor(String path) {
- return AbstractUIPlugin.imageDescriptorFromPlugin("net.sourceforge.phpeclipse.xdebug.core", path);
+ return AbstractUIPlugin.imageDescriptorFromPlugin(
+ "net.sourceforge.phpeclipse.xdebug.core", path);
}
-
+
public static void log(int severity, String message) {
- Status status = new Status(severity, PLUGIN_ID, IStatus.OK, message, null) ;
- XDebugCorePlugin.log(status) ;
+ Status status = new Status(severity, PLUGIN_ID, IStatus.OK, message,
+ null);
+ XDebugCorePlugin.log(status);
}
public static void log(IStatus status) {
}
public static void log(Throwable e) {
- log(new Status(IStatus.ERROR, PLUGIN_ID, IStatus.ERROR, "PHPLaunchingPlugin.internalErrorOccurred", e)); //$NON-NLS-1$
+ log(new Status(IStatus.ERROR, PLUGIN_ID, IStatus.ERROR,
+ "PHPLaunchingPlugin.internalErrorOccurred", e)); //$NON-NLS-1$
}
-
- /**
- * Returns the workspace instance.
- */
- public static IWorkspace getWorkspace() {
- return ResourcesPlugin.getWorkspace();
- }
-
-
+
+ /**
+ * Returns the workspace instance.
+ */
+ public static IWorkspace getWorkspace() {
+ return ResourcesPlugin.getWorkspace();
+ }
+
}