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.ui.contexts
Interface IContext

All Superinterfaces:
Comparable

Deprecated. Please use the "org.eclipse.core.commands" plug-in instead.

public interface IContext
extends Comparable

An instance of this interface is an context as defined by the extension point org.eclipse.ui.contexts.

An instance of this interface can be obtained from an instance of IContextManager for any identifier, whether or not an context with that identifier is defined in the extension registry.

The handle-based nature of this API allows it to work well with runtime plugin activation and deactivation. If a context is defined, that means that its corresponding plug-in is active. If the plug-in is then deactivated, the context will still exist but it will be undefined. An attempts to use an undefined context will result in a NotDefinedException being thrown.

This interface is not intended to be extended or implemented by clients.

Since:
3.0
See Also:
IContextManager, Context
Restriction:
This interface is not intended to be implemented by clients.

Method Summary
 void addContextListener ( IContextListener contextListener)
          Deprecated. Registers an instance of IContextListener to listen for changes to properties of this instance.
  String getId ()
          Deprecated. Returns the identifier of this instance.
  String getName ()
          Deprecated. Returns the name of this instance suitable for display to the user.
  String getParentId ()
          Deprecated. Returns the identifier of the parent of this instance.
 boolean isDefined ()
          Deprecated. Returns whether or not this instance is defined.
 boolean isEnabled ()
          Deprecated. Returns whether or not this instance is enabled.
 void removeContextListener ( IContextListener contextListener)
          Deprecated. Unregisters an instance of IContextListener listening for changes to properties of this instance.
 
Methods inherited from interface java.lang. Comparable
compareTo
 

Method Detail

addContextListener

void addContextListener(
IContextListener contextListener)
Deprecated. 
Registers an instance of IContextListener to listen for changes to properties of this instance.

Parameters:
contextListener - the instance to register. Must not be null. If an attempt is made to register an instance which is already registered with this instance, no operation is performed.

getId


String getId()
Deprecated. 
Returns the identifier of this instance.

Returns:
the identifier of this instance. Guaranteed not to be null.

getName


String getName()
               throws 
NotDefinedException
Deprecated. 
Returns the name of this instance suitable for display to the user.

Notification is sent to all registered listeners if this property changes.

Returns:
the name of this instance. Guaranteed not to be null.
Throws:
NotDefinedException - if this instance is not defined.

getParentId


String getParentId()
                   throws 
NotDefinedException
Deprecated. 
Returns the identifier of the parent of this instance.

Notification is sent to all registered listeners if this property changes.

Returns:
the identifier of the parent of this instance. May be null.
Throws:
NotDefinedException - if this instance is not defined.

isDefined

boolean isDefined()
Deprecated. 
Returns whether or not this instance is defined.

Notification is sent to all registered listeners if this property changes.

Returns:
true, iff this instance is defined.

isEnabled

boolean isEnabled()
Deprecated. 
Returns whether or not this instance is enabled.

Notification is sent to all registered listeners if this property changes.

Returns:
true, iff this instance is enabled.

removeContextListener

void removeContextListener(
IContextListener contextListener)
Deprecated. 
Unregisters an instance of IContextListener listening for changes to properties of this instance.

Parameters:
contextListener - the instance to unregister. Must not be null. If an attempt is made to unregister an instance which is not already registered with this instance, no operation is performed.

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