Extension SDK 9.0.5

oracle.jdeveloper.model
Class JProjectFilter

java.lang.Object
  extended byoracle.ide.model.DefaultFilter
      extended byoracle.ide.model.FilelistFilter
          extended byoracle.jdeveloper.model.CategoryFilter
              extended byoracle.jdeveloper.model.JProjectFilter
All Implemented Interfaces:
ChildFilter, Displayable

public class JProjectFilter
extends CategoryFilter

The JProjectFilter class organizes the children of a project into a predefined structure. Children of the project that implement the Category interface are grouped based on the registered categories.


Nested Class Summary
 
Nested classes inherited from class oracle.jdeveloper.model.CategoryFilter
CategoryFilter.CategoryRegistry, CategoryFilter.CatInfo, CategoryFilter.JProjectComparator
 
Nested classes inherited from class oracle.ide.model.DefaultFilter
DefaultFilter.SortedComparator, DefaultFilter.SortedFolderFirstComparator
 
Field Summary
static int COMPONENT
           
static int DB_OBJECT
           
static int DB_RESOURCE
           
static int DEPLOYMENT
           
static int EJB
           
static int JAVA_SOURCE
           
static int UML_DIAGRAM
           
static int WEB_SERVICE
           
static int WWW_SOURCE
           
 
Fields inherited from class oracle.jdeveloper.model.CategoryFilter
LAST_CATEGORY_SHIFT, OPTION_VIEW_AS_LIST, PROJECT_REBUILT
 
Fields inherited from class oracle.ide.model.DefaultFilter
folderFirstComparator, folderFirstComparator2, sortedComparator
 
Fields inherited from interface oracle.ide.explorer.ChildFilter
NO_OPTIONS
 
Constructor Summary
JProjectFilter()
           
JProjectFilter(JProject project)
          Constructor.
 
Method Summary
static ChildFilter findFilter(TNode tnode, int filterType)
          Deprecated. Replace with JProjectStructureController.findFilter(TNode,int).
protected  CategoryFilter.CategoryRegistry getCategoryRegistry()
          Subclass must override this method and return a registry containing valid categories.
static boolean isFilteredBy(TNode tnode, int filterType)
          Deprecated. Replace with JProjectStructureController.isFilteredBy(TNode,int).
static boolean isFilterSupported(int category, int filter)
          Returns whether the category with the specified ID supports the specified filter.
static boolean isFilterSupported(TNode tnode, int filter)
          Deprecated. Replace with JProjectStructureController.isFilterSupported(TNode,int).
static boolean isInProject(TNode tnode)
          Deprecated. Replace with JProjectStructureController.isInProject(TNode).
static void registerCategory(int category, java.lang.Class cls)
          Deprecated. Replace with registerCategory(int,Class,String,Icon,int).
static void registerCategory(int category, java.lang.Class cls, int filtersSupported)
          Deprecated. Replace with registerCategory(int,Class,String,Icon,int).
static void registerCategory(int category, java.lang.Class cls, java.lang.String label)
          Deprecated. Replace with registerCategory(int,Class,String,Icon,int).
static void registerCategory(int category, java.lang.Class cls, java.lang.String label, javax.swing.Icon icon, int filtersSupported)
          Registers a new project category with the specified attributes.
static void registerCategory(int category, java.lang.Class cls, java.lang.String label, int filtersSupported)
          Deprecated. Replace with registerCategory(int,Class,String,Icon,int).
 
Methods inherited from class oracle.jdeveloper.model.CategoryFilter
cache, canRefresh, canSupportFilter, canUpdate, childrenAdded, childrenRemoved, closeChildren, findCategoryFolder, getCategoryNode, getChildren, getComparator, getOptions, getProjectChildren, getType, handleAdd, handleRemove, isListView, newCategory, refresh, registerCategories, setListView, setOptions, setOwner, uncache, update
 
Methods inherited from class oracle.ide.model.FilelistFilter
getProject, setProject
 
Methods inherited from class oracle.ide.model.DefaultFilter
checkElementAttributes, getIcon, getLongLabel, getOwner, getShortLabel, getToolTipText, getURLFilter, refreshExplorerNode, setURLFilter, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

JAVA_SOURCE

public static final int JAVA_SOURCE

WWW_SOURCE

public static final int WWW_SOURCE

DB_OBJECT

public static final int DB_OBJECT

DB_RESOURCE

public static final int DB_RESOURCE

EJB

public static final int EJB

COMPONENT

public static final int COMPONENT

UML_DIAGRAM

public static final int UML_DIAGRAM

DEPLOYMENT

public static final int DEPLOYMENT

WEB_SERVICE

public static final int WEB_SERVICE
Constructor Detail

JProjectFilter

public JProjectFilter()

JProjectFilter

public JProjectFilter(JProject project)
Constructor.

Parameters:
project - the project whose children are to be filtered.
Method Detail

registerCategory

public static void registerCategory(int category,
                                    java.lang.Class cls,
                                    java.lang.String label,
                                    javax.swing.Icon icon,
                                    int filtersSupported)
Registers a new project category with the specified attributes.

Parameters:
category - The ID for this category. See CategoryFilter.newCategory().
cls - The CategoryFolder subclass that represents this category; use null to specify a default CategoryFolder.
label - The display name used to represent this category.
icon - The display icon used to represent this category; use null to specify the default folder icon.
filtersSupported - The bit mask of FilterTypes supported by this category; specify FilterTypes.NONE if no filters are supported.

isFilterSupported

public static boolean isFilterSupported(int category,
                                        int filter)
Returns whether the category with the specified ID supports the specified filter.

Parameters:
category - the ID of the category.
filter - the ID of the filter to be supported, as specified by one of the constants in FilterTypes.

registerCategory

public static void registerCategory(int category,
                                    java.lang.Class cls,
                                    java.lang.String label,
                                    int filtersSupported)
Deprecated. Replace with registerCategory(int,Class,String,Icon,int).


registerCategory

public static void registerCategory(int category,
                                    java.lang.Class cls,
                                    java.lang.String label)
Deprecated. Replace with registerCategory(int,Class,String,Icon,int).


registerCategory

public static void registerCategory(int category,
                                    java.lang.Class cls,
                                    int filtersSupported)
Deprecated. Replace with registerCategory(int,Class,String,Icon,int).


registerCategory

public static void registerCategory(int category,
                                    java.lang.Class cls)
Deprecated. Replace with registerCategory(int,Class,String,Icon,int).


isFilterSupported

public static boolean isFilterSupported(TNode tnode,
                                        int filter)
Deprecated. Replace with JProjectStructureController.isFilterSupported(TNode,int).


findFilter

public static ChildFilter findFilter(TNode tnode,
                                     int filterType)
Deprecated. Replace with JProjectStructureController.findFilter(TNode,int).


isFilteredBy

public static boolean isFilteredBy(TNode tnode,
                                   int filterType)
Deprecated. Replace with JProjectStructureController.isFilteredBy(TNode,int).


isInProject

public static boolean isInProject(TNode tnode)
Deprecated. Replace with JProjectStructureController.isInProject(TNode).


getCategoryRegistry

protected CategoryFilter.CategoryRegistry getCategoryRegistry()
Description copied from class: CategoryFilter
Subclass must override this method and return a registry containing valid categories.

Overrides:
getCategoryRegistry in class CategoryFilter

Extension SDK

 

Copyright © 1997, 2004, Oracle. All rights reserved.