org.apache.cactus.eclipse.quickfix
Class AddCactusClassesCompletionProposal

java.lang.Object
  extended by org.apache.cactus.eclipse.quickfix.AddCactusClassesCompletionProposal
All Implemented Interfaces:
org.eclipse.jdt.ui.text.java.IJavaCompletionProposal, org.eclipse.jface.text.contentassist.ICompletionProposal

public class AddCactusClassesCompletionProposal
extends java.lang.Object
implements org.eclipse.jdt.ui.text.java.IJavaCompletionProposal

CompletionProposal for adding the Cactus classes to the Project's classpath.

Version:
$Id: CactusQuickFixProcessor.java 238816 2008-03-18 16:36:46Z ptahchiev $

Constructor Summary
AddCactusClassesCompletionProposal(java.lang.String name, int relevance, org.eclipse.jdt.core.IJavaProject theWorkingProject)
          Constructor.
 
Method Summary
 void apply(org.eclipse.jface.text.IDocument document)
          Apply the proposal.
 org.eclipse.jdt.ui.text.java.IJavaCompletionProposal createTypeProposal()
          Create a type-proposal.
 java.lang.String getAdditionalProposalInfo()
          Get the proposal info.
 org.eclipse.jface.text.contentassist.IContextInformation getContextInformation()
          Get the context information.
 java.lang.String getDisplayString()
          Get the display string.
 org.eclipse.swt.graphics.Image getImage()
          Get the icon image for the proposal.
 int getRelevance()
          Get the relevance of the proposal.
 org.eclipse.swt.graphics.Point getSelection(org.eclipse.jface.text.IDocument document)
          Get the selection.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AddCactusClassesCompletionProposal

public AddCactusClassesCompletionProposal(java.lang.String name,
                                          int relevance,
                                          org.eclipse.jdt.core.IJavaProject theWorkingProject)
Constructor.

Method Detail

getRelevance

public int getRelevance()
Get the relevance of the proposal.

Specified by:
getRelevance in interface org.eclipse.jdt.ui.text.java.IJavaCompletionProposal

apply

public void apply(org.eclipse.jface.text.IDocument document)
Apply the proposal. Actually we only call the CactifyActionDelegate and he does the whole 'magic'.

Specified by:
apply in interface org.eclipse.jface.text.contentassist.ICompletionProposal

getSelection

public org.eclipse.swt.graphics.Point getSelection(org.eclipse.jface.text.IDocument document)
Get the selection.

Specified by:
getSelection in interface org.eclipse.jface.text.contentassist.ICompletionProposal

getAdditionalProposalInfo

public java.lang.String getAdditionalProposalInfo()
Get the proposal info.

Specified by:
getAdditionalProposalInfo in interface org.eclipse.jface.text.contentassist.ICompletionProposal

getDisplayString

public java.lang.String getDisplayString()
Get the display string.

Specified by:
getDisplayString in interface org.eclipse.jface.text.contentassist.ICompletionProposal

getImage

public org.eclipse.swt.graphics.Image getImage()
Get the icon image for the proposal.

Specified by:
getImage in interface org.eclipse.jface.text.contentassist.ICompletionProposal

getContextInformation

public org.eclipse.jface.text.contentassist.IContextInformation getContextInformation()
Get the context information.

Specified by:
getContextInformation in interface org.eclipse.jface.text.contentassist.ICompletionProposal

createTypeProposal

public org.eclipse.jdt.ui.text.java.IJavaCompletionProposal createTypeProposal()
Create a type-proposal.



Copyright © 2001-2009 The Apache Software Foundation. All Rights Reserved.