KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > jdt > ui > IJavaElementSearchConstants


1 /*******************************************************************************
2  * Copyright (c) 2000, 2005 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Eclipse Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/epl-v10.html
7  *
8  * Contributors:
9  * IBM Corporation - initial API and implementation
10  *******************************************************************************/

11 package org.eclipse.jdt.ui;
12
13 /**
14  * Search scope constants for Java selection dialogs.
15  * <p>
16  * This interface declares constants only; it is not intended to be implemented.
17  * </p>
18  *
19  * @see JavaUI
20  */

21 public interface IJavaElementSearchConstants {
22
23     /**
24      * Search scope constant indicating that classes should be considered.
25      * Used when opening certain kinds of selection dialogs.
26      */

27     public static final int CONSIDER_CLASSES= 1 << 1;
28
29     /**
30      * Search scope constant indicating that interfaces should be considered.
31      * Used when opening certain kinds of selection dialogs.
32      */

33     public static final int CONSIDER_INTERFACES= 1 << 2;
34
35     /**
36      * Search scope constant indicating that both classes and interfaces
37      * should be considered. Equivalent to
38      * <code>CONSIDER_CLASSES | CONSIDER_INTERFACES</code>.
39      *
40      * @deprecated use CONSIDER_ALL_TYPES or CONSIDER_CLASSES_AND_INTERFACES instead
41      */

42     public static final int CONSIDER_TYPES= CONSIDER_CLASSES | CONSIDER_INTERFACES;
43
44     /**
45      * Search scope constant (bit mask) indicating that binaries should be considered.
46      * Used when opening certain kinds of selection dialogs.
47      */

48     public static final int CONSIDER_BINARIES= 1 << 3;
49
50     /**
51      * Search scope constant (bit mask) indicating that external JARs should be considered.
52      * Used when opening certain kinds of selection dialogs.
53      */

54     public static final int CONSIDER_EXTERNAL_JARS= 1 << 4;
55
56     /**
57      * Search scope constant (bit mask) indicating that required projects should be considered.
58      * Used when opening certain kinds of selection dialogs.
59      *
60      * @since 2.0
61      */

62     public static final int CONSIDER_REQUIRED_PROJECTS= 1 << 5;
63     
64     /**
65      * Search scope constant indicating that annotation types should be considered.
66      * Used when opening certain kinds of selection dialogs.
67      *
68      * @since 3.1
69      */

70     public static final int CONSIDER_ANNOTATION_TYPES= 1 << 6;
71
72     /**
73      * Search scope constant indicating that enums should be considered.
74      * Used when opening certain kinds of selection dialogs.
75      *
76      * @since 3.1
77      */

78     public static final int CONSIDER_ENUMS= 1 << 7;
79
80     /**
81      * Search scope constant indicating that classes, interfaces, annotations
82      * and enums should be considered.
83      *
84      * @since 3.1
85      */

86     public static final int CONSIDER_ALL_TYPES= 1 << 8;
87
88     /**
89      * Search scope constant indicating that only classes and interfaces
90      * should be considered.
91      *
92      * @since 3.1
93      */

94     public static final int CONSIDER_CLASSES_AND_INTERFACES= 1 << 9;
95
96     /**
97      * Search scope constant indicating that only classes and enumeration types
98      * should be considered.
99      *
100      * @since 3.1
101      */

102     public static final int CONSIDER_CLASSES_AND_ENUMS= 1 << 10;
103 }
104
Popular Tags