org.eclipse.cdt.internal.ui.text.contentassist
Class CProposalContextInformation

java.lang.Object
  extended by 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.
 
Method Summary
 boolean equals(java.lang.Object object)
           
 java.lang.String getContextDisplayString()
           
 int getContextInformationPosition()
           
 org.eclipse.swt.graphics.Image getImage()
           
 java.lang.String getInformationDisplayString()
           
 void setContextInformationPosition(int pos)
           
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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 context
informationDisplayString - 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 information
contextDisplayString - the string to be used when presenting the context
informationDisplayString - the string to be displayed when presenting the context information, may not be null
Method Detail

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)