public final class ContextInformation extends Object implements IContextInformation
IContextInformation interface.| Constructor and Description |
|---|
ContextInformation(Image image,
String contextDisplayString,
String informationDisplayString)
Creates a new context information with an image.
|
ContextInformation(String contextDisplayString,
String informationDisplayString)
Creates a new context information without an image.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object object)
Compares the given object with this receiver.
|
String |
getContextDisplayString()
Returns the string to be displayed in the list of contexts.
|
Image |
getImage()
Returns the image for this context information.
|
String |
getInformationDisplayString()
Returns the string to be displayed in the tool tip like information popup.
|
int |
hashCode() |
public ContextInformation(String contextDisplayString, String informationDisplayString)
contextDisplayString - the string to be used when presenting the contextinformationDisplayString - the string to be displayed when presenting the context informationpublic ContextInformation(Image image, String contextDisplayString, 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 nullpublic boolean equals(Object object)
IContextInformationequals in interface IContextInformationequals in class ObjectObject.equals(Object)public String getInformationDisplayString()
IContextInformationgetInformationDisplayString in interface IContextInformationpublic Image getImage()
IContextInformationgetImage in interface IContextInformationnull if no image is desiredpublic String getContextDisplayString()
IContextInformationgetContextDisplayString in interface IContextInformationGuidelines for using Eclipse APIs. Copyright (c) IBM Corp. and others 2000, 2006. All rights reserved.