org.eclipse.ui.IMarkerResolution2 Java Examples
The following examples show how to use
org.eclipse.ui.IMarkerResolution2.
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: JsonQuickAssistProcessor.java From KaiZen-OpenAPI-Editor with Eclipse Public License 1.0 | 5 votes |
@Override public String getAdditionalProposalInfo() { if (markerResolution instanceof IMarkerResolution2) { return ((IMarkerResolution2) markerResolution).getDescription(); } return null; }
Example #2
Source File: JsonQuickAssistProcessor.java From KaiZen-OpenAPI-Editor with Eclipse Public License 1.0 | 5 votes |
@Override public Image getImage() { if (markerResolution instanceof IMarkerResolution2) { return ((IMarkerResolution2) markerResolution).getImage(); } return null; }
Example #3
Source File: JsonQuickAssistProcessor.java From KaiZen-OpenAPI-Editor with Eclipse Public License 1.0 | 5 votes |
@Override public IContextInformation getContextInformation() { if (markerResolution instanceof IMarkerResolution2) { IMarkerResolution2 mr2 = (IMarkerResolution2) markerResolution; String displayString = mr2.getDescription() == null ? mr2.getLabel() : mr2.getDescription(); return new ContextInformation(mr2.getImage(), mr2.getLabel(), displayString); } return null; }
Example #4
Source File: MarkerResolutionProposal.java From Eclipse-Postfix-Code-Completion with Eclipse Public License 1.0 | 5 votes |
public String getAdditionalProposalInfo() { if (fResolution instanceof IMarkerResolution2) { return ((IMarkerResolution2) fResolution).getDescription(); } if (fResolution instanceof IJavaCompletionProposal) { return ((IJavaCompletionProposal) fResolution).getAdditionalProposalInfo(); } try { String problemDesc= (String) fMarker.getAttribute(IMarker.MESSAGE); return Messages.format(CorrectionMessages.MarkerResolutionProposal_additionaldesc, problemDesc); } catch (CoreException e) { JavaPlugin.log(e); } return null; }
Example #5
Source File: MarkerResolutionProposal.java From Eclipse-Postfix-Code-Completion with Eclipse Public License 1.0 | 5 votes |
public Image getImage() { if (fResolution instanceof IMarkerResolution2) { return ((IMarkerResolution2) fResolution).getImage(); } if (fResolution instanceof IJavaCompletionProposal) { return ((IJavaCompletionProposal) fResolution).getImage(); } return JavaPluginImages.get(JavaPluginImages.IMG_CORRECTION_CHANGE); }