|
From: <caw...@us...> - 2007-09-12 19:28:26
|
Revision: 3157
http://rubyeclipse.svn.sourceforge.net/rubyeclipse/?rev=3157&view=rev
Author: cawilliams
Date: 2007-09-12 12:28:20 -0700 (Wed, 12 Sep 2007)
Log Message:
-----------
add rubyElementFilters extension point
Modified Paths:
--------------
trunk/org.rubypeople.rdt.ui/plugin.xml
Added Paths:
-----------
trunk/org.rubypeople.rdt.ui/schema/rubyElementFilters.exsd
Modified: trunk/org.rubypeople.rdt.ui/plugin.xml
===================================================================
--- trunk/org.rubypeople.rdt.ui/plugin.xml 2007-09-12 18:03:24 UTC (rev 3156)
+++ trunk/org.rubypeople.rdt.ui/plugin.xml 2007-09-12 19:28:20 UTC (rev 3157)
@@ -2,6 +2,7 @@
<?eclipse version="3.0"?>
<plugin>
+ <extension-point id="rubyElementFilters" name="%elementFiltersName" schema="schema/rubyElementFilters.exsd"/>
<extension-point id="textHoverProvider" name="%textHoverProvider" schema="schema/textHoverProvider.exsd"/>
<extension-point id="hyperlinkProvider" name="%hyperlinkProvider" schema="schema/hyperlinkProvider.exsd"/>
<extension-point id="foldingStructureProviders" name="%foldingStructureProviders" schema="schema/foldingStructureProviders.exsd"/>
Added: trunk/org.rubypeople.rdt.ui/schema/rubyElementFilters.exsd
===================================================================
--- trunk/org.rubypeople.rdt.ui/schema/rubyElementFilters.exsd (rev 0)
+++ trunk/org.rubypeople.rdt.ui/schema/rubyElementFilters.exsd 2007-09-12 19:28:20 UTC (rev 3157)
@@ -0,0 +1,168 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<!-- Schema file written by PDE -->
+<schema targetNamespace="org.rubypeople.rdt.ui">
+<annotation>
+ <appInfo>
+ <meta.schema plugin="org.rubypeople.rdt.ui" id="rubyElementFilters" name="Ruby Element Filter Extensions"/>
+ </appInfo>
+ <documentation>
+ This extension point is used to extend Ruby UI views with filters.
+ </documentation>
+ </annotation>
+
+ <element name="extension">
+ <complexType>
+ <sequence>
+ <element ref="filter" minOccurs="1" maxOccurs="unbounded"/>
+ </sequence>
+ <attribute name="point" type="string" use="required">
+ <annotation>
+ <documentation>
+ a fully qualified identifier of the target extension point
+ </documentation>
+ </annotation>
+ </attribute>
+ <attribute name="id" type="string">
+ <annotation>
+ <documentation>
+ an optional identifier of the extension instance
+ </documentation>
+ </annotation>
+ </attribute>
+ <attribute name="name" type="string">
+ <annotation>
+ <documentation>
+ an optional name of the extension instance
+ </documentation>
+ <appInfo>
+ <meta.attribute translatable="true"/>
+ </appInfo>
+ </annotation>
+ </attribute>
+ </complexType>
+ </element>
+
+ <element name="filter">
+ <annotation>
+ <appInfo>
+ <meta.element labelAttribute="name"/>
+ </appInfo>
+ </annotation>
+ <complexType>
+ <attribute name="id" type="string">
+ <annotation>
+ <documentation>
+ a unique id that will be used to identify this filter
+ </documentation>
+ </annotation>
+ </attribute>
+ <attribute name="name" type="string">
+ <annotation>
+ <documentation>
+ a unique name that allows to identify this filter in the UI. This attribute should be a translated string. Though this attribute is not required for pattern filters (i.e. those using the <samp>pattern</samp> attribute) we suggest to provide a name anyway, otherwise the pattern string itself would be used to represent the filter in the UI.
+ </documentation>
+ <appInfo>
+ <meta.attribute translatable="true"/>
+ </appInfo>
+ </annotation>
+ </attribute>
+ <attribute name="description" type="string">
+ <annotation>
+ <documentation>
+ a short description for this filter
+ </documentation>
+ <appInfo>
+ <meta.attribute translatable="true"/>
+ </appInfo>
+ </annotation>
+ </attribute>
+ <attribute name="targetId" type="string">
+ <annotation>
+ <documentation>
+ the id of the target where this filter is contributed. If this attribute is missing, then the filter will
+be contributed to all views which use the <code>org.rubypeople.rdt.ui.actions.customFiltersActionGroup</code>. This
+replaces the deprecated attributed "viewId".
+ </documentation>
+ </annotation>
+ </attribute>
+ <attribute name="enabled" type="boolean">
+ <annotation>
+ <documentation>
+ the filter will be enabled if this attribute is "true" or if this attribute is not present. Most likely the user will be able to override this setting in the UI.
+ </documentation>
+ </annotation>
+ </attribute>
+ <attribute name="pattern" type="string">
+ <annotation>
+ <documentation>
+ elements whose name matches this pattern will be hidden. This attribute is here for backward compatibility and should no longer be used. All views that allow to plug-in a filter also allow to add pattern filters directly via UI.
+ </documentation>
+ </annotation>
+ </attribute>
+ <attribute name="class" type="string">
+ <annotation>
+ <documentation>
+ the name of the class used to filter the view. The class must extend <code>org.eclipse.jface.viewers.ViewerFilter</code>. If this attribute is here
+then the pattern attribute must not provided.
+ </documentation>
+ <appInfo>
+ <meta.attribute kind="java" basedOn="org.eclipse.jface.viewers.ViewerFilter"/>
+ </appInfo>
+ </annotation>
+ </attribute>
+ </complexType>
+ </element>
+
+ <annotation>
+ <appInfo>
+ <meta.section type="examples"/>
+ </appInfo>
+ <documentation>
+ The following is an example of Ruby element filter definition. It filters out inner types and is initially selected.
+
+<p>
+<pre>
+ <extension point="org.rubypeople.rdt.ui.rubyElementFilters">
+ <filter
+ id="org.rubypeople.rdt.ui.PackageExplorer.LibraryFilter"
+ name="%HideReferencedLibraries.label"
+ description="%HideReferencedLibraries.description"
+ targetId="org.rubypeople.rdt.ui.RubyExplorer"
+ class="org.rubypeople.rdt.internal.ui.filters.LibraryFilter"
+ enabled="false">
+ </filter>
+ </extension>
+</pre>
+</p>
+ </documentation>
+ </annotation>
+
+ <annotation>
+ <appInfo>
+ <meta.section type="apiInfo"/>
+ </appInfo>
+ <documentation>
+
+ </documentation>
+ </annotation>
+
+ <annotation>
+ <appInfo>
+ <meta.section type="implementation"/>
+ </appInfo>
+ <documentation>
+
+ </documentation>
+ </annotation>
+
+ <annotation>
+ <appInfo>
+ <meta.section type="copyright"/>
+ </appInfo>
+ <documentation>
+ Copyright (c) 2001, 2004 IBM Corporation and others.<br>
+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 <a href="http://www.eclipse.org/legal/epl-v10.html">http://www.eclipse.org/legal/epl-v10.html</a>
+ </documentation>
+ </annotation>
+
+</schema>
Property changes on: trunk/org.rubypeople.rdt.ui/schema/rubyElementFilters.exsd
___________________________________________________________________
Name: svn:mime-type
+ text/plain
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|