Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com
Answertopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 


Eclipse Platform
Release 3.5

org.eclipse.jface.text.contentassist
Class ContextInformation


java.lang.Object
  extended by 
org.eclipse.jface.text.contentassist.ContextInformation
All Implemented Interfaces:
IContextInformation

public final class ContextInformation
extends Object
implements IContextInformation

A default implementation of the IContextInformation interface.


Constructor Summary
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.
 
Method Summary
 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 ()
           
 
Methods inherited from class java.lang. Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContextInformation

public ContextInformation(
String contextDisplayString,
                          
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

ContextInformation

public ContextInformation(
Image image,
                          
String contextDisplayString,
                          
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(
Object object)
Description copied from interface: IContextInformation
Compares the given object with this receiver. Two context informations are equal if there information display strings and their context display strings are equal.

Note: As specified in Object.equals(Object) clients will most likely also have to implement Object.hashCode() .

Specified by:
equals in interface IContextInformation
Overrides:
equals in class Object
See Also:
Object.equals(Object)

hashCode

public int hashCode()
Overrides:
hashCode in class Object

getInformationDisplayString

public 
String getInformationDisplayString()
Description copied from interface: IContextInformation
Returns the string to be displayed in the tool tip like information popup.

Specified by:
getInformationDisplayString in interface IContextInformation
Returns:
the string to be displayed

getImage

public 
Image getImage()
Description copied from interface: IContextInformation
Returns the image for this context information. The image will be shown to the left of the display string.

Specified by:
getImage in interface IContextInformation
Returns:
the image to be shown or null if no image is desired

getContextDisplayString

public 
String getContextDisplayString()
Description copied from interface: IContextInformation
Returns the string to be displayed in the list of contexts. This method is used to supply a unique presentation for situations where the context is ambiguous. These strings are used to allow the user to select the specific context.

Specified by:
getContextDisplayString in interface IContextInformation
Returns:
the string to be displayed for the context

Eclipse Platform
Release 3.5

Guidelines for using Eclipse APIs.

Copyright (c) Eclipse contributors and others 2000, 2008. All rights reserved.


 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire