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 null
public boolean equals(Object object)
IContextInformation
Note: As specified in Object.equals(Object)
clients will most likely
also have to implement Object.hashCode()
.
equals
in interface IContextInformation
equals
in class Object
Object.equals(Object)
public String getInformationDisplayString()
IContextInformation
getInformationDisplayString
in interface IContextInformation
public Image getImage()
IContextInformation
getImage
in interface IContextInformation
null
if no image is desiredpublic String getContextDisplayString()
IContextInformation
getContextDisplayString
in interface IContextInformation
Copyright (c) 2000, 2014 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.