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.ui.navigator
Class NavigatorContentServiceFactory

java.lang.Object
  extended by 
org.eclipse.ui.navigator.NavigatorContentServiceFactory

public final class NavigatorContentServiceFactory
extends Object

Provides a factory pattern for creating INavigatorContentServices for given viewer ids.

Clients may supply the viewer in createContentService(String, StructuredViewer) or wait until the content provider is created by the service and set on the viewer. When the content provider is set, the viewer will call inputChanged(), and the content service will update its managed viewer accordingly. Therefore, each content service should be attached to at most one viewer.

Since:
3.2

Field Summary
static  NavigatorContentServiceFactory INSTANCE
          The singleton instance for creating NavigatorContentServices.
 
Constructor Summary
NavigatorContentServiceFactory ()
           
 
Method Summary
  INavigatorContentService createContentService ( String aViewerId)
          Returns an instance of INavigatorContentService configured for the given id.
  INavigatorContentService createContentService ( String aViewerId, StructuredViewer aViewer)
          Returns an instance of INavigatorContentService configured for the given id.
 
Methods inherited from class java.lang. Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INSTANCE

public static final 
NavigatorContentServiceFactory INSTANCE
The singleton instance for creating NavigatorContentServices.

Constructor Detail

NavigatorContentServiceFactory

public NavigatorContentServiceFactory()
Method Detail

createContentService

public 
INavigatorContentService createContentService(
String aViewerId)
Returns an instance of INavigatorContentService configured for the given id. Instances are not shared for the same viewerId.

Parameters:
aViewerId - The viewer id of interest
Returns:
An instance of INavigatorContentService configured for the given id.

createContentService

public 
INavigatorContentService createContentService(
String aViewerId,
                                                     
StructuredViewer aViewer)
Returns an instance of INavigatorContentService configured for the given id. Instances are not shared for the same viewerId.

Parameters:
aViewerId - The viewer id of interest
aViewer - The content service can use the given viewer to initialize content providers
Returns:
An instance of INavigatorContentService configured for the given id.
See Also:
IContentProvider.inputChanged(org.eclipse.jface.viewers.Viewer, Object, Object)

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