org.eclipse.emf.cdo.ui.ide
Class Node.ResourcesNode

java.lang.Object
  extended by org.eclipse.core.runtime.PlatformObject
      extended by org.eclipse.emf.cdo.ui.ide.Node
          extended by org.eclipse.emf.cdo.ui.ide.Node.ResourcesNode
All Implemented Interfaces:
IAdaptable
Enclosing class:
Node

public static final class Node.ResourcesNode
extends Node

Author:
Eike Stepper

Nested Class Summary
 
Nested classes/interfaces inherited from class org.eclipse.emf.cdo.ui.ide.Node
Node.BranchNode, Node.PackagesNode, Node.ResourcesNode, Node.SessionsNode, Node.Type
 
Constructor Summary
Node.ResourcesNode(org.eclipse.emf.cdo.team.IRepositoryProject repositoryProject)
           
 
Method Summary
 Object getAdapter(Class adapter)
          Returns an object which is an instance of the given class associated with this object.
 CDOResourceNode[] getChildren()
           
 String getImageKey()
           
 String getText()
           
 Node.Type getType()
           
 
Methods inherited from class org.eclipse.emf.cdo.ui.ide.Node
getParent, getRepositoryProject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Node.ResourcesNode

public Node.ResourcesNode(org.eclipse.emf.cdo.team.IRepositoryProject repositoryProject)
Method Detail

getType

public Node.Type getType()
Specified by:
getType in class Node

getText

public String getText()
Specified by:
getText in class Node

getImageKey

public String getImageKey()
Specified by:
getImageKey in class Node

getAdapter

public Object getAdapter(Class adapter)
Description copied from class: org.eclipse.core.runtime.PlatformObject
Returns an object which is an instance of the given class associated with this object. Returns null if no such object can be found.

This implementation of the method declared by IAdaptable passes the request along to the platform's adapter manager; roughly Platform.getAdapterManager().getAdapter(this, adapter). Subclasses may override this method (however, if they do so, they should invoke the method on their superclass to ensure that the Platform's adapter manager is consulted).

Specified by:
getAdapter in interface IAdaptable
Overrides:
getAdapter in class PlatformObject
Parameters:
adapter - the class to adapt to
Returns:
the adapted object or null
See Also:
IAdaptable.getAdapter(Class)

getChildren

public CDOResourceNode[] getChildren()
Overrides:
getChildren in class Node


Copyright (c) 2004 - 2011 Eike Stepper (Berlin, Germany) and others.