Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'ui/org.eclipse.pde.ui/src/org/eclipse/pde/internal/ui/search/AttributesMatch.java')
-rw-r--r--ui/org.eclipse.pde.ui/src/org/eclipse/pde/internal/ui/search/AttributesMatch.java45
1 files changed, 45 insertions, 0 deletions
diff --git a/ui/org.eclipse.pde.ui/src/org/eclipse/pde/internal/ui/search/AttributesMatch.java b/ui/org.eclipse.pde.ui/src/org/eclipse/pde/internal/ui/search/AttributesMatch.java
new file mode 100644
index 0000000000..62f6df3e8e
--- /dev/null
+++ b/ui/org.eclipse.pde.ui/src/org/eclipse/pde/internal/ui/search/AttributesMatch.java
@@ -0,0 +1,45 @@
+/*******************************************************************************
+ * Copyright (c) 2011, 2012 IBM Corporation and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Sascha Becher <s.becher@qualitype.de> - bug 360894
+ *******************************************************************************/
+package org.eclipse.pde.internal.ui.search;
+
+import org.eclipse.pde.internal.ui.editor.plugin.ManifestEditor;
+import org.eclipse.search.ui.text.Match;
+
+/**
+ * An extension to {@link Match} in order to present matching plugins which resulted
+ * in a search queried from the extensions page of the {@link ManifestEditor}
+ *
+ * @author Sascha Becher
+ */
+public class AttributesMatch extends Match {
+
+ /**
+ * A constant expressing that the {@link Match} resulted in a search queried from
+ * the extensions page of the {@link ManifestEditor}
+ */
+ public static final int UNIT_ATTRIBUTE_SEARCH_PATTERN = 3;
+
+ protected String searchPattern;
+
+ public AttributesMatch(Object element, String searchPattern) {
+ super(element, UNIT_LINE, 0, 0);
+ this.searchPattern = searchPattern;
+ }
+
+ public String getSearchPattern() {
+ return searchPattern;
+ }
+
+ public int getBaseUnit() {
+ return UNIT_ATTRIBUTE_SEARCH_PATTERN;
+ }
+
+} \ No newline at end of file

Back to the top