|
Eclipse JDT Release 3.5 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.jdt.ui.text.java.ClasspathFixProcessor.ClasspathFixProposal
public abstract static class ClasspathFixProcessor.ClasspathFixProposal
A proposal to fix a class path issue.
Constructor Summary | |
---|---|
ClasspathFixProcessor.ClasspathFixProposal()
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ClasspathFixProcessor.ClasspathFixProposal()
Method Detail |
---|
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 location
Change
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 path
Change
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 monitor
CoreException
- 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.
|
Eclipse JDT Release 3.5 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |