org.eclipse.jface.text.contentassist.ICompletionProposalExtension5 Java Examples
The following examples show how to use
org.eclipse.jface.text.contentassist.ICompletionProposalExtension5.
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: AdditionalInfoController.java From APICloud-Studio with GNU General Public License v3.0 | 6 votes |
public void run() { final ICompletionProposalExtension5 proposal = getCurrentProposalEx(); Job job = new Job(JFaceTextMessages.getString("AdditionalInfoController.job_name")) //$NON-NLS-1$ { protected IStatus run(IProgressMonitor monitor) { Object info; try { info = proposal.getAdditionalProposalInfo(monitor); } catch (RuntimeException x) { /* * XXX: This is the safest fix at this point so close to end of 3.2. Will be revisited when * fixing https://bugs.eclipse.org/bugs/show_bug.cgi?id=101033 */ return new Status(IStatus.WARNING, "com.aptana.ui.epl", IStatus.OK, "", x); //$NON-NLS-1$ //$NON-NLS-2$ } setInfo((ICompletionProposal) proposal, info); return new Status(IStatus.OK, "com.aptana.ui.epl", IStatus.OK, "", null); //$NON-NLS-1$ //$NON-NLS-2$ } }; job.schedule(); }
Example #2
Source File: AdditionalInfoController.java From APICloud-Studio with GNU General Public License v3.0 | 4 votes |
private boolean isExt5(ICompletionProposal p) { return p instanceof ICompletionProposalExtension5; }
Example #3
Source File: AdditionalInfoController.java From APICloud-Studio with GNU General Public License v3.0 | 4 votes |
ICompletionProposalExtension5 getCurrentProposalEx() { Assert.isTrue(fCurrentProposal instanceof ICompletionProposalExtension5); return (ICompletionProposalExtension5) fCurrentProposal; }