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

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.templates
Class ContextTypeRegistry

java.lang.Object
  extended by 
org.eclipse.jface.text.templates.ContextTypeRegistry
Direct Known Subclasses:
ContributionContextTypeRegistry

public class ContextTypeRegistry
extends Object

A registry for context types. Editor implementors will usually instantiate a registry and configure the context types available in their editor.

In order to pick up templates contributed using the org.eclipse.ui.editors.templates extension point, use a ContributionContextTypeRegistry.

Since:
3.0

Constructor Summary
ContextTypeRegistry ()
           
 
Method Summary
 void addContextType ( TemplateContextType contextType)
          Adds a context type to the registry.
  Iterator contextTypes ()
          Returns an iterator over all registered context types.
  TemplateContextType getContextType ( String id)
          Returns the context type if the id is valid, null otherwise.
 
Methods inherited from class java.lang. Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContextTypeRegistry

public ContextTypeRegistry()
Method Detail

addContextType

public void addContextType(
TemplateContextType contextType)
Adds a context type to the registry. If there already is a context type with the same ID registered, it is replaced.

Parameters:
contextType - the context type to add

getContextType

public 
TemplateContextType getContextType(
String id)
Returns the context type if the id is valid, null otherwise.

Parameters:
id - the id of the context type to retrieve
Returns:
the context type if name is valid, null otherwise

contextTypes

public 
Iterator contextTypes()
Returns an iterator over all registered context types.

Returns:
an iterator over all registered context types

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