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.debug.core.sourcelookup.containers
Class ProjectSourceContainer

java.lang.Object
  extended by 

org.eclipse.core.runtime.PlatformObject
      extended by 

org.eclipse.debug.core.sourcelookup.containers.AbstractSourceContainer
          extended by 

org.eclipse.debug.core.sourcelookup.containers.CompositeSourceContainer
              extended by 

org.eclipse.debug.core.sourcelookup.containers.ContainerSourceContainer
                  extended by 
org.eclipse.debug.core.sourcelookup.containers.ProjectSourceContainer
All Implemented Interfaces:
IAdaptable, ISourceContainer

public class ProjectSourceContainer
extends ContainerSourceContainer

A project in the workspace. Source is searched for in the root project folder and all folders within the project recursively. Optionally, referenced projects may be searched as well.

Clients may instantiate this class.

Since:
3.0
Restriction:
This class is not intended to be subclassed by clients.

Field Summary
static  String TYPE_ID
          Unique identifier for the project source container type (value org.eclipse.debug.core.containerType.project).
 
Fields inherited from class org.eclipse.debug.core.sourcelookup.containers. AbstractSourceContainer
EMPTY
 
Constructor Summary
ProjectSourceContainer ( IProject project, boolean referenced)
          Constructs a project source container.
 
Method Summary
protected   ISourceContainer[] createSourceContainers ()
          Creates the source containers in this composite container.
  IProject getProject ()
          Returns the project this source container references.
  ISourceContainerType getType ()
          Returns this container's type.
 boolean isComposite ()
          Returns whether this container is a composite container.
 boolean isSearchReferencedProjects ()
          Returns whether referenced projects are considered.
 
Methods inherited from class org.eclipse.debug.core.sourcelookup.containers. ContainerSourceContainer
equals, findSourceElements, getContainer, getName, hashCode
 
Methods inherited from class org.eclipse.debug.core.sourcelookup.containers. CompositeSourceContainer
dispose, findSourceElements, getSourceContainers
 
Methods inherited from class org.eclipse.debug.core.sourcelookup.containers. AbstractSourceContainer
abort, getDirector, getSourceContainerType, init, isFindDuplicates, warn
 
Methods inherited from class org.eclipse.core.runtime. PlatformObject
getAdapter
 
Methods inherited from class java.lang. Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.eclipse.core.runtime. IAdaptable
getAdapter
 

Field Detail

TYPE_ID

public static final 
String TYPE_ID
Unique identifier for the project source container type (value org.eclipse.debug.core.containerType.project).

Constructor Detail

ProjectSourceContainer

public ProjectSourceContainer(
IProject project,
                              boolean referenced)
Constructs a project source container.

Parameters:
project - the project to search for source in
referenced - whether referenced projects should be considered
Method Detail

isSearchReferencedProjects

public boolean isSearchReferencedProjects()
Returns whether referenced projects are considered.

Returns:
whether referenced projects are considered

getProject

public 
IProject getProject()
Returns the project this source container references.

Returns:
the project this source container references

getType

public 
ISourceContainerType getType()
Description copied from interface: ISourceContainer
Returns this container's type.

Returns:
this container's type

isComposite

public boolean isComposite()
Description copied from interface: ISourceContainer
Returns whether this container is a composite container. A composite container is composed of other source containers. For example, a workspace source container may be composed of project source containers.

Specified by:
isComposite in interface ISourceContainer
Overrides:
isComposite in class ContainerSourceContainer
Returns:
whether this container is a composite container

createSourceContainers

protected 
ISourceContainer[] createSourceContainers()
                                             throws 
CoreException
Description copied from class: CompositeSourceContainer
Creates the source containers in this composite container. Subclasses should override this methods.

Overrides:
createSourceContainers in class ContainerSourceContainer
Throws:
CoreException - if unable to create the containers

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