Java Code Examples for org.eclipse.jdt.core.JavaCore#PLUGIN_ID

The following examples show how to use org.eclipse.jdt.core.JavaCore#PLUGIN_ID . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: XtendPreferenceStoreAccess.java    From xtext-xtend with Eclipse Public License 2.0 6 votes vote down vote up
@SuppressWarnings("all")
@Override
public IPreferenceStore getContextPreferenceStore(Object context) {
	IProject project = getProject(context);
	if (project == null) return getPreferenceStore();
	IPreferenceStore store = super.getContextPreferenceStore(context);
	ProjectScope projectScope = new ProjectScope(project);
	FixedScopedPreferenceStore jdtStore = new FixedScopedPreferenceStore(projectScope, JavaCore.PLUGIN_ID);
	jdtStore.setSearchContexts(new IScopeContext[] {
			projectScope,
			new InstanceScope(),
			new ConfigurationScope()
	});
	return new ChainedPreferenceStore(new IPreferenceStore[] {
		store,
		jdtStore,
		PreferenceConstants.getPreferenceStore()
	});
}
 
Example 2
Source File: XtendPreferenceStoreAccess.java    From xtext-xtend with Eclipse Public License 2.0 5 votes vote down vote up
@SuppressWarnings("all")
@Override
public IPreferenceStore getPreferenceStore() {
	IPreferenceStore store = super.getPreferenceStore();
	FixedScopedPreferenceStore jdtStore = new FixedScopedPreferenceStore(new InstanceScope(), JavaCore.PLUGIN_ID);
	jdtStore.setSearchContexts(new IScopeContext[] {
			new InstanceScope(),
			new ConfigurationScope()
	});
	return new ChainedPreferenceStore(new IPreferenceStore[] {
		store,
		jdtStore,
		PreferenceConstants.getPreferenceStore()
	});
}
 
Example 3
Source File: JavaModelStatus.java    From Eclipse-Postfix-Code-Completion with Eclipse Public License 1.0 5 votes vote down vote up
/**
 * Constructs an Java model status with no corresponding elements.
 */
public JavaModelStatus(int severity, int code, String string) {
	super(severity, JavaCore.PLUGIN_ID, code, "JavaModelStatus", null); //$NON-NLS-1$
	this.elements= JavaElement.NO_ELEMENTS;
	this.path= null;
	this.string = string;
}
 
Example 4
Source File: JavaModelStatus.java    From Eclipse-Postfix-Code-Completion with Eclipse Public License 1.0 5 votes vote down vote up
/**
 * Constructs an Java model status with the given corresponding
 * element and path
 */
public JavaModelStatus(int severity, int code, IJavaElement element, IPath path, String msg) {
	super(severity, JavaCore.PLUGIN_ID, code, "JavaModelStatus", null); //$NON-NLS-1$
	this.elements= new IJavaElement[]{element};
	this.path = path;
	this.string = msg;
}
 
Example 5
Source File: JavaModelStatus.java    From Eclipse-Postfix-Code-Completion with Eclipse Public License 1.0 4 votes vote down vote up
/**
 * Constructs an Java model status with no corresponding elements.
 */
public JavaModelStatus() {
	// no code for an multi-status
	super(ERROR, JavaCore.PLUGIN_ID, 0, "JavaModelStatus", null); //$NON-NLS-1$
}
 
Example 6
Source File: JavaModelStatus.java    From Eclipse-Postfix-Code-Completion with Eclipse Public License 1.0 4 votes vote down vote up
/**
 * Constructs an Java model status with no corresponding elements.
 */
public JavaModelStatus(int code) {
	super(ERROR, JavaCore.PLUGIN_ID, code, "JavaModelStatus", null); //$NON-NLS-1$
	this.elements= JavaElement.NO_ELEMENTS;
}
 
Example 7
Source File: JavaModelStatus.java    From Eclipse-Postfix-Code-Completion with Eclipse Public License 1.0 4 votes vote down vote up
/**
 * Constructs an Java model status with the given corresponding
 * elements.
 */
public JavaModelStatus(int code, IJavaElement[] elements) {
	super(ERROR, JavaCore.PLUGIN_ID, code, "JavaModelStatus", null); //$NON-NLS-1$
	this.elements= elements;
	this.path= null;
}
 
Example 8
Source File: JavaModelStatus.java    From Eclipse-Postfix-Code-Completion with Eclipse Public License 1.0 4 votes vote down vote up
/**
 * Constructs an Java model status with no corresponding elements.
 */
public JavaModelStatus(int code, Throwable throwable) {
	super(ERROR, JavaCore.PLUGIN_ID, code, "JavaModelStatus", throwable); //$NON-NLS-1$
	this.elements= JavaElement.NO_ELEMENTS;
}
 
Example 9
Source File: JavaModelStatus.java    From Eclipse-Postfix-Code-Completion with Eclipse Public License 1.0 4 votes vote down vote up
/**
 * Constructs an Java model status with no corresponding elements.
 */
public JavaModelStatus(int code, IPath path) {
	super(ERROR, JavaCore.PLUGIN_ID, code, "JavaModelStatus", null); //$NON-NLS-1$
	this.elements= JavaElement.NO_ELEMENTS;
	this.path= path;
}
 
Example 10
Source File: JavaModelStatus.java    From Eclipse-Postfix-Code-Completion with Eclipse Public License 1.0 4 votes vote down vote up
/**
 * Constructs an Java model status with no corresponding elements.
 */
public JavaModelStatus(CoreException coreException) {
	super(ERROR, JavaCore.PLUGIN_ID, CORE_EXCEPTION, "JavaModelStatus", coreException); //$NON-NLS-1$
	this.elements= JavaElement.NO_ELEMENTS;
}
 
Example 11
Source File: TokenScanner.java    From Eclipse-Postfix-Code-Completion with Eclipse Public License 1.0 4 votes vote down vote up
public static IStatus createError(int code, String message, Throwable throwable) {
	return new Status(IStatus.ERROR, JavaCore.PLUGIN_ID, code, message, throwable);
}