KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > pde > internal > core > search > PluginSearchInput


1 /*******************************************************************************
2  * Copyright (c) 2000, 2006 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.pde.internal.core.search;
12
13 public class PluginSearchInput {
14     public static final int ELEMENT_PLUGIN = 1;
15     public static final int ELEMENT_FRAGMENT = 2;
16     public static final int ELEMENT_EXTENSION_POINT = 3;
17     
18     public static final int LIMIT_DECLARATIONS = 1;
19     public static final int LIMIT_REFERENCES = 2;
20     public static final int LIMIT_ALL = 3;
21         
22     private String JavaDoc searchString = null;
23     private boolean caseSensitive = true;
24     private int searchElement = 0;
25     private int searchLimit = 0;
26     private PluginSearchScope searchScope;
27     
28     public String JavaDoc getSearchString() {
29         return searchString;
30     }
31     
32     public boolean isCaseSensitive() {
33         return caseSensitive;
34     }
35     
36     public void setCaseSensitive(boolean value) {
37         caseSensitive = value;
38     }
39     
40     public void setSearchString(String JavaDoc name) {
41         searchString = name;
42     }
43     
44     public int getSearchElement() {
45         return searchElement;
46     }
47     
48     public void setSearchElement(int element) {
49         searchElement = element;
50     }
51     
52     public int getSearchLimit() {
53         return searchLimit;
54     }
55     
56     public void setSearchLimit(int limit) {
57         searchLimit = limit;
58     }
59     
60     public PluginSearchScope getSearchScope() {
61         return searchScope;
62     }
63     
64     public void setSearchScope(PluginSearchScope scope) {
65         searchScope = scope;
66     }
67     
68 }
69
Popular Tags