import net.sourceforge.phpdt.core.IJavaElement;
import net.sourceforge.phpdt.core.IJavaModelStatus;
import net.sourceforge.phpdt.core.IJavaModelStatusConstants;
-import net.sourceforge.phpeclipse.PHPCore;
+import net.sourceforge.phpdt.core.JavaCore;
+import net.sourceforge.phpdt.internal.core.util.Util;
import org.eclipse.core.resources.IResourceStatus;
import org.eclipse.core.runtime.CoreException;
*/
public JavaModelStatus() {
// no code for an multi-status
- super(ERROR, PHPCore.PLUGIN_ID, 0, "JavaModelStatus", null); //$NON-NLS-1$
+ super(ERROR, JavaCore.PLUGIN_ID, 0, "JavaModelStatus", null); //$NON-NLS-1$
}
/**
* Constructs an Java model status with no corresponding elements.
*/
public JavaModelStatus(int code) {
- super(ERROR, PHPCore.PLUGIN_ID, code, "JavaModelStatus", null); //$NON-NLS-1$
+ super(ERROR, JavaCore.PLUGIN_ID, code, "JavaModelStatus", null); //$NON-NLS-1$
// fElements= JavaElementInfo.fgEmptyChildren;
fElements = fgObjectEmptyChildren;
}
* elements.
*/
public JavaModelStatus(int code, IJavaElement[] elements) {
- super(ERROR, PHPCore.PLUGIN_ID, code, "JavaModelStatus", null); //$NON-NLS-1$
+ super(ERROR, JavaCore.PLUGIN_ID, code, "JavaModelStatus", null); //$NON-NLS-1$
fElements = elements;
fPath = null;
}
* Constructs an Java model status with no corresponding elements.
*/
public JavaModelStatus(int severity, int code, String string) {
- super(severity, PHPCore.PLUGIN_ID, code, "JavaModelStatus", null); //$NON-NLS-1$
+ super(severity, JavaCore.PLUGIN_ID, code, "JavaModelStatus", null); //$NON-NLS-1$
// fElements= JavaElementInfo.fgEmptyChildren;
fElements = fgObjectEmptyChildren;
fPath = null;
* Constructs an Java model status with no corresponding elements.
*/
public JavaModelStatus(int code, Throwable throwable) {
- super(ERROR, PHPCore.PLUGIN_ID, code, "JavaModelStatus", throwable); //$NON-NLS-1$
+ super(ERROR, JavaCore.PLUGIN_ID, code, "JavaModelStatus", throwable); //$NON-NLS-1$
// fElements= JavaElementInfo.fgEmptyChildren;
fElements = fgObjectEmptyChildren;
}
* Constructs an Java model status with no corresponding elements.
*/
public JavaModelStatus(int code, IPath path) {
- super(ERROR, PHPCore.PLUGIN_ID, code, "JavaModelStatus", null); //$NON-NLS-1$
+ super(ERROR, JavaCore.PLUGIN_ID, code, "JavaModelStatus", null); //$NON-NLS-1$
// fElements= JavaElementInfo.fgEmptyChildren;
fElements = fgObjectEmptyChildren;
fPath = path;
* Constructs an Java model status with the given corresponding
* element.
*/
- // public JavaModelStatus(int code, IJavaElement element) {
- // this(code, new IJavaElement[]{element});
- // }
+ public JavaModelStatus(int code, IJavaElement element) {
+ this(code, new IJavaElement[]{element});
+ }
/**
* Constructs an Java model status with the given corresponding
* element and string
*/
- // public JavaModelStatus(int code, IJavaElement element, String string) {
- // this(code, new IJavaElement[]{element});
- // fString = string;
- // }
- //
- // /**
- // * Constructs an Java model status with the given corresponding
- // * element and path
- // */
- // public JavaModelStatus(int code, IJavaElement element, IPath path) {
- // this(code, new IJavaElement[]{element});
- // fPath = path;
- // }
+ public JavaModelStatus(int code, IJavaElement element, String string) {
+ this(code, new IJavaElement[]{element});
+ fString = string;
+ }
+
+ /**
+ * Constructs an Java model status with the given corresponding
+ * element and path
+ */
+ public JavaModelStatus(int code, IJavaElement element, IPath path) {
+ this(code, new IJavaElement[]{element});
+ fPath = path;
+ }
/**
* Constructs an Java model status with no corresponding elements.
*/
public JavaModelStatus(CoreException coreException) {
- super(ERROR, PHPCore.PLUGIN_ID, CORE_EXCEPTION, "JavaModelStatus", coreException); //$NON-NLS-1$
+ super(ERROR, JavaCore.PLUGIN_ID, CORE_EXCEPTION, "JavaModelStatus", coreException); //$NON-NLS-1$
// fElements= JavaElementInfo.fgEmptyChildren;
fElements = fgObjectEmptyChildren;
}