org.eclipse.cdt.internal.ui.text.contentassist
Class CProposalContextInformation
java.lang.Object
org.eclipse.cdt.internal.ui.text.contentassist.CProposalContextInformation
- All Implemented Interfaces:
- org.eclipse.jface.text.contentassist.IContextInformation, org.eclipse.jface.text.contentassist.IContextInformationExtension
public class CProposalContextInformation
- extends java.lang.Object
- implements org.eclipse.jface.text.contentassist.IContextInformation, org.eclipse.jface.text.contentassist.IContextInformationExtension
- Author:
- aniefer
Constructor Summary |
CProposalContextInformation(org.eclipse.swt.graphics.Image image,
java.lang.String contextDisplayString,
java.lang.String informationDisplayString)
Creates a new context information with an image. |
CProposalContextInformation(java.lang.String contextDisplayString,
java.lang.String informationDisplayString)
Creates a new context information without an image. |
Methods inherited from class java.lang.Object |
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CProposalContextInformation
public CProposalContextInformation(java.lang.String contextDisplayString,
java.lang.String informationDisplayString)
- Creates a new context information without an image.
- Parameters:
contextDisplayString
- the string to be used when presenting the contextinformationDisplayString
- the string to be displayed when presenting the context information
CProposalContextInformation
public CProposalContextInformation(org.eclipse.swt.graphics.Image image,
java.lang.String contextDisplayString,
java.lang.String informationDisplayString)
- Creates a new context information with an image.
- Parameters:
image
- the image to display when presenting the context informationcontextDisplayString
- the string to be used when presenting the contextinformationDisplayString
- the string to be displayed when presenting the context information,
may not be null
equals
public boolean equals(java.lang.Object object)
- Specified by:
equals
in interface org.eclipse.jface.text.contentassist.IContextInformation
- Overrides:
equals
in class java.lang.Object
getInformationDisplayString
public java.lang.String getInformationDisplayString()
- Specified by:
getInformationDisplayString
in interface org.eclipse.jface.text.contentassist.IContextInformation
getImage
public org.eclipse.swt.graphics.Image getImage()
- Specified by:
getImage
in interface org.eclipse.jface.text.contentassist.IContextInformation
getContextDisplayString
public java.lang.String getContextDisplayString()
- Specified by:
getContextDisplayString
in interface org.eclipse.jface.text.contentassist.IContextInformation
getContextInformationPosition
public int getContextInformationPosition()
- Specified by:
getContextInformationPosition
in interface org.eclipse.jface.text.contentassist.IContextInformationExtension
setContextInformationPosition
public void setContextInformationPosition(int pos)