public abstract static class ClasspathFixProcessor.ClasspathFixProposal extends Object
Constructor and Description |
---|
ClasspathFixProposal() |
Modifier and Type | Method and Description |
---|---|
abstract Change |
createChange(IProgressMonitor monitor)
Returns the change to invoke when the proposal is selected.
|
abstract String |
getAdditionalProposalInfo()
Returns optional additional information about the proposal.
|
abstract String |
getDisplayString()
Returns the string to be displayed in a list of proposals.
|
abstract Image |
getImage()
Returns the image to be displayed in the list of completion proposals.
|
abstract int |
getRelevance()
Returns the relevance of this completion proposal.
|
static Change |
newAddClasspathChange(IJavaProject project,
IClasspathEntry entryToAdd)
A helper method to create a
Change that adds an entry to the class path. |
static Change |
newClasspathChange(IJavaProject project,
IClasspathEntry[] newClasspath,
IPath outputLocation)
A helper method to create a
Change that modifies a class path. |
public static Change newClasspathChange(IJavaProject project, IClasspathEntry[] newClasspath, IPath outputLocation)
Change
that modifies a class path.project
- the project to changenewClasspath
- the new class pathoutputLocation
- the new output locationChange
to change the class path or null
if the class path is
not valid (See JavaConventions.validateClasspath(IJavaProject, IClasspathEntry[], IPath)
).public static Change newAddClasspathChange(IJavaProject project, IClasspathEntry entryToAdd) throws JavaModelException
Change
that adds an entry to the class path.project
- the project to changeentryToAdd
- the entry to add to the class pathChange
to change the class path or null
if the class path is
not valid (See JavaConventions.validateClasspath(IJavaProject, IClasspathEntry[], IPath)
).JavaModelException
- thrown if accessing the project failed.public abstract Change createChange(IProgressMonitor monitor) throws CoreException
monitor
- the progress monitorCoreException
- thrown when the creation of the change failedpublic abstract String getDisplayString()
public abstract String getAdditionalProposalInfo()
null
public abstract Image getImage()
null
if no image is desiredpublic abstract int getRelevance()
The relevance is used to determine if this proposal is more relevant than another proposal.
Copyright (c) 2000, 2015 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.