public abstract class MavenProblemResolution
extends org.eclipse.ui.views.markers.WorkbenchMarkerResolution
implements org.eclipse.jface.text.contentassist.ICompletionProposal, org.eclipse.jface.text.contentassist.ICompletionProposalExtension5
Modifier and Type | Field and Description |
---|---|
protected org.slf4j.Logger |
LOG |
Modifier | Constructor and Description |
---|---|
protected |
MavenProblemResolution(org.eclipse.core.resources.IMarker marker) |
Modifier and Type | Method and Description |
---|---|
void |
apply(org.eclipse.jface.text.IDocument document) |
abstract boolean |
canFix(org.eclipse.core.resources.IMarker marker) |
org.eclipse.core.resources.IMarker[] |
findOtherMarkers(org.eclipse.core.resources.IMarker[] markers) |
protected abstract void |
fix(org.eclipse.core.resources.IMarker[] markers,
org.eclipse.jface.text.IDocument document,
org.eclipse.core.runtime.IProgressMonitor monitor)
Run this resolution for specified markers
|
String |
getAdditionalProposalInfo() |
Object |
getAdditionalProposalInfo(org.eclipse.core.runtime.IProgressMonitor monitor) |
org.eclipse.jface.text.contentassist.IContextInformation |
getContextInformation() |
String |
getDescription() |
String |
getDisplayString() |
org.eclipse.core.resources.IMarker |
getMarker() |
int |
getOrder() |
static int |
getOrder(org.eclipse.ui.IMarkerResolution res) |
protected Set<org.eclipse.core.resources.IProject> |
getProjects(Stream<org.eclipse.core.resources.IMarker> markers) |
static List<org.eclipse.ui.IMarkerResolution> |
getResolutions(org.eclipse.core.resources.IMarker marker) |
org.eclipse.swt.graphics.Point |
getSelection(org.eclipse.jface.text.IDocument document) |
static boolean |
hasResolutions(org.eclipse.core.resources.IMarker marker) |
boolean |
includeProposal(List<? super org.eclipse.jface.text.contentassist.ICompletionProposal> proposals) |
boolean |
includeResolution(List<? super org.eclipse.ui.IMarkerResolution> resolutions) |
boolean |
isSingleton()
Tells whether this resolution should only be present once in a list of resolutions for any number of supported
markers and will always try to resolve them all
|
void |
run(org.eclipse.core.resources.IMarker marker) |
void |
run(org.eclipse.core.resources.IMarker[] markers,
org.eclipse.core.runtime.IProgressMonitor monitor) |
protected MavenProblemResolution(org.eclipse.core.resources.IMarker marker)
public org.eclipse.core.resources.IMarker getMarker()
public int getOrder()
protected abstract void fix(org.eclipse.core.resources.IMarker[] markers, org.eclipse.jface.text.IDocument document, org.eclipse.core.runtime.IProgressMonitor monitor)
public boolean isSingleton()
public abstract boolean canFix(org.eclipse.core.resources.IMarker marker) throws org.eclipse.core.runtime.CoreException
org.eclipse.core.runtime.CoreException
public org.eclipse.swt.graphics.Point getSelection(org.eclipse.jface.text.IDocument document)
getSelection
in interface org.eclipse.jface.text.contentassist.ICompletionProposal
public final String getDisplayString()
getDisplayString
in interface org.eclipse.jface.text.contentassist.ICompletionProposal
public String getDescription()
getDescription
in interface org.eclipse.ui.IMarkerResolution2
public String getAdditionalProposalInfo()
getAdditionalProposalInfo
in interface org.eclipse.jface.text.contentassist.ICompletionProposal
public Object getAdditionalProposalInfo(org.eclipse.core.runtime.IProgressMonitor monitor)
getAdditionalProposalInfo
in interface org.eclipse.jface.text.contentassist.ICompletionProposalExtension5
public org.eclipse.jface.text.contentassist.IContextInformation getContextInformation()
getContextInformation
in interface org.eclipse.jface.text.contentassist.ICompletionProposal
public final void run(org.eclipse.core.resources.IMarker marker)
run
in interface org.eclipse.ui.IMarkerResolution
public final void apply(org.eclipse.jface.text.IDocument document)
apply
in interface org.eclipse.jface.text.contentassist.ICompletionProposal
public final void run(org.eclipse.core.resources.IMarker[] markers, org.eclipse.core.runtime.IProgressMonitor monitor)
run
in class org.eclipse.ui.views.markers.WorkbenchMarkerResolution
public final org.eclipse.core.resources.IMarker[] findOtherMarkers(org.eclipse.core.resources.IMarker[] markers)
findOtherMarkers
in class org.eclipse.ui.views.markers.WorkbenchMarkerResolution
public boolean includeResolution(List<? super org.eclipse.ui.IMarkerResolution> resolutions)
public boolean includeProposal(List<? super org.eclipse.jface.text.contentassist.ICompletionProposal> proposals)
protected Set<org.eclipse.core.resources.IProject> getProjects(Stream<org.eclipse.core.resources.IMarker> markers)
public static List<org.eclipse.ui.IMarkerResolution> getResolutions(org.eclipse.core.resources.IMarker marker)
public static int getOrder(org.eclipse.ui.IMarkerResolution res)
public static boolean hasResolutions(org.eclipse.core.resources.IMarker marker)
Copyright © 2005–2018 Eclipse Foundation. All rights reserved.