org.eclipse.cdt.make.internal.ui.scannerconfig
Class DiscoveredElement

java.lang.Object
  extended by org.eclipse.cdt.make.internal.ui.scannerconfig.DiscoveredElement

public class DiscoveredElement
extends java.lang.Object

Similar to CPElement. Describes discovered paths and symbols available through DiscoveredPathInfo instead of CPathEntry.

Author:
vhirsl

Field Summary
static int CONTAINER
           
static int INCLUDE_FILE
           
static int INCLUDE_FILE_GROUP
           
static int INCLUDE_PATH
           
static int MACROS_FILE
           
static int MACROS_FILE_GROUP
           
static int PATHS_GROUP
           
static int SYMBOL_DEFINITION
           
static int SYMBOLS_GROUP
           
 
Constructor Summary
DiscoveredElement(org.eclipse.core.resources.IProject project, java.lang.String entry, int kind, boolean removed, boolean system)
           
 
Method Summary
static DiscoveredElement createNew(DiscoveredElement parent, org.eclipse.core.resources.IProject project, java.lang.String entry, int kind, boolean removed, boolean system)
           
 boolean delete()
           
 java.lang.Object[] getChildren()
          Returns children of the discovered element
 java.lang.String getEntry()
           
 int getEntryKind()
           
 DiscoveredElement getParent()
           
 org.eclipse.core.resources.IProject getProject()
           
 boolean hasChildren()
           
 boolean isRemoved()
           
 void setChildren(java.lang.Object[] children)
           
 void setEntry(java.lang.String entry)
           
 void setEntryKind(int entryKind)
           
 void setRemoved(boolean removed)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CONTAINER

public static final int CONTAINER
See Also:
Constant Field Values

INCLUDE_PATH

public static final int INCLUDE_PATH
See Also:
Constant Field Values

SYMBOL_DEFINITION

public static final int SYMBOL_DEFINITION
See Also:
Constant Field Values

INCLUDE_FILE

public static final int INCLUDE_FILE
See Also:
Constant Field Values

MACROS_FILE

public static final int MACROS_FILE
See Also:
Constant Field Values

PATHS_GROUP

public static final int PATHS_GROUP
See Also:
Constant Field Values

SYMBOLS_GROUP

public static final int SYMBOLS_GROUP
See Also:
Constant Field Values

INCLUDE_FILE_GROUP

public static final int INCLUDE_FILE_GROUP
See Also:
Constant Field Values

MACROS_FILE_GROUP

public static final int MACROS_FILE_GROUP
See Also:
Constant Field Values
Constructor Detail

DiscoveredElement

public DiscoveredElement(org.eclipse.core.resources.IProject project,
                         java.lang.String entry,
                         int kind,
                         boolean removed,
                         boolean system)
Method Detail

createNew

public static DiscoveredElement createNew(DiscoveredElement parent,
                                          org.eclipse.core.resources.IProject project,
                                          java.lang.String entry,
                                          int kind,
                                          boolean removed,
                                          boolean system)

getProject

public org.eclipse.core.resources.IProject getProject()
Returns:
Returns the fProject.

getEntry

public java.lang.String getEntry()
Returns:
Returns the fEntry.

setEntry

public void setEntry(java.lang.String entry)
Parameters:
string -

getEntryKind

public int getEntryKind()
Returns:
Returns the fEntryKind.

setEntryKind

public void setEntryKind(int entryKind)
Parameters:
entryKind - The fEntryKind to set.

isRemoved

public boolean isRemoved()
Returns:
Returns the fRemoved.

setRemoved

public void setRemoved(boolean removed)
Parameters:
removed - The fRemoved to set.

getParent

public DiscoveredElement getParent()
Returns:
Returns the fParent.

getChildren

public java.lang.Object[] getChildren()
Returns children of the discovered element

Returns:

hasChildren

public boolean hasChildren()

setChildren

public void setChildren(java.lang.Object[] children)

delete

public boolean delete()