|
Eclipse Platform Release 3.6 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.jface.text.contentassist.ContextInformation
public final class ContextInformation
A default implementation of the IContextInformation interface.
| Constructor Summary | |
|---|---|
ContextInformation(Image image,
java.lang.String contextDisplayString,
java.lang.String informationDisplayString)
Creates a new context information with an image. |
|
ContextInformation(java.lang.String contextDisplayString,
java.lang.String informationDisplayString)
Creates a new context information without an image. |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object object)
Compares the given object with this receiver. |
java.lang.String |
getContextDisplayString()
Returns the string to be displayed in the list of contexts. |
Image |
getImage()
Returns the image for this context information. |
java.lang.String |
getInformationDisplayString()
Returns the string to be displayed in the tool tip like information popup. |
int |
hashCode()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ContextInformation(java.lang.String contextDisplayString,
java.lang.String informationDisplayString)
contextDisplayString - the string to be used when presenting the contextinformationDisplayString - the string to be displayed when presenting the context information
public ContextInformation(Image image,
java.lang.String contextDisplayString,
java.lang.String informationDisplayString)
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| Method Detail |
|---|
public boolean equals(java.lang.Object object)
IContextInformation
Note: As specified in Object.equals(Object) clients will most likely
also have to implement Object.hashCode().
equals in interface IContextInformationequals in class java.lang.ObjectObject.equals(Object)public int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String getInformationDisplayString()
IContextInformation
getInformationDisplayString in interface IContextInformationpublic Image getImage()
IContextInformation
getImage in interface IContextInformationnull if no image is desiredpublic java.lang.String getContextDisplayString()
IContextInformation
getContextDisplayString in interface IContextInformation
|
Eclipse Platform Release 3.6 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Guidelines for using Eclipse APIs.
Copyright (c) Eclipse contributors and others 2000, 2010. All rights reserved.