001: /*******************************************************************************
002: * Copyright (c) 2000, 2005 IBM Corporation and others.
003: * All rights reserved. This program and the accompanying materials
004: * are made available under the terms of the Eclipse Public License v1.0
005: * which accompanies this distribution, and is available at
006: * http://www.eclipse.org/legal/epl-v10.html
007: *
008: * Contributors:
009: * IBM Corporation - initial API and implementation
010: *******************************************************************************/package org.eclipse.jdt.ui;
011:
012: /**
013: * Search scope constants for Java selection dialogs.
014: * <p>
015: * This interface declares constants only; it is not intended to be implemented.
016: * </p>
017: *
018: * @see JavaUI
019: */
020: public interface IJavaElementSearchConstants {
021:
022: /**
023: * Search scope constant indicating that classes should be considered.
024: * Used when opening certain kinds of selection dialogs.
025: */
026: public static final int CONSIDER_CLASSES = 1 << 1;
027:
028: /**
029: * Search scope constant indicating that interfaces should be considered.
030: * Used when opening certain kinds of selection dialogs.
031: */
032: public static final int CONSIDER_INTERFACES = 1 << 2;
033:
034: /**
035: * Search scope constant indicating that both classes and interfaces
036: * should be considered. Equivalent to
037: * <code>CONSIDER_CLASSES | CONSIDER_INTERFACES</code>.
038: *
039: * @deprecated use CONSIDER_ALL_TYPES or CONSIDER_CLASSES_AND_INTERFACES instead
040: */
041: public static final int CONSIDER_TYPES = CONSIDER_CLASSES
042: | CONSIDER_INTERFACES;
043:
044: /**
045: * Search scope constant (bit mask) indicating that binaries should be considered.
046: * Used when opening certain kinds of selection dialogs.
047: */
048: public static final int CONSIDER_BINARIES = 1 << 3;
049:
050: /**
051: * Search scope constant (bit mask) indicating that external JARs should be considered.
052: * Used when opening certain kinds of selection dialogs.
053: */
054: public static final int CONSIDER_EXTERNAL_JARS = 1 << 4;
055:
056: /**
057: * Search scope constant (bit mask) indicating that required projects should be considered.
058: * Used when opening certain kinds of selection dialogs.
059: *
060: * @since 2.0
061: */
062: public static final int CONSIDER_REQUIRED_PROJECTS = 1 << 5;
063:
064: /**
065: * Search scope constant indicating that annotation types should be considered.
066: * Used when opening certain kinds of selection dialogs.
067: *
068: * @since 3.1
069: */
070: public static final int CONSIDER_ANNOTATION_TYPES = 1 << 6;
071:
072: /**
073: * Search scope constant indicating that enums should be considered.
074: * Used when opening certain kinds of selection dialogs.
075: *
076: * @since 3.1
077: */
078: public static final int CONSIDER_ENUMS = 1 << 7;
079:
080: /**
081: * Search scope constant indicating that classes, interfaces, annotations
082: * and enums should be considered.
083: *
084: * @since 3.1
085: */
086: public static final int CONSIDER_ALL_TYPES = 1 << 8;
087:
088: /**
089: * Search scope constant indicating that only classes and interfaces
090: * should be considered.
091: *
092: * @since 3.1
093: */
094: public static final int CONSIDER_CLASSES_AND_INTERFACES = 1 << 9;
095:
096: /**
097: * Search scope constant indicating that only classes and enumeration types
098: * should be considered.
099: *
100: * @since 3.1
101: */
102: public static final int CONSIDER_CLASSES_AND_ENUMS = 1 << 10;
103: }
|