From f24c4034a960ec7ee69cdb64d6009694b86e9158 Mon Sep 17 00:00:00 2001 From: Anton Leherbauer Date: Thu, 21 Sep 2006 10:24:06 +0000 Subject: [PATCH] Add missing extension point schemas --- core/org.eclipse.cdt.ui/plugin.xml | 7 +- .../schema/foldingStructureProviders.exsd | 142 +++++++++++++++++ .../org.eclipse.cdt.ui/schema/textHovers.exsd | 144 ++++++++++++++++++ .../folding/ICFoldingPreferenceBlock.java | 9 +- .../folding/ICFoldingStructureProvider.java | 2 +- 5 files changed, 294 insertions(+), 10 deletions(-) create mode 100644 core/org.eclipse.cdt.ui/schema/foldingStructureProviders.exsd create mode 100644 core/org.eclipse.cdt.ui/schema/textHovers.exsd diff --git a/core/org.eclipse.cdt.ui/plugin.xml b/core/org.eclipse.cdt.ui/plugin.xml index 029e98938fc..ba3afabb707 100644 --- a/core/org.eclipse.cdt.ui/plugin.xml +++ b/core/org.eclipse.cdt.ui/plugin.xml @@ -2,19 +2,18 @@ - + - - + - + diff --git a/core/org.eclipse.cdt.ui/schema/foldingStructureProviders.exsd b/core/org.eclipse.cdt.ui/schema/foldingStructureProviders.exsd new file mode 100644 index 00000000000..32675c7808b --- /dev/null +++ b/core/org.eclipse.cdt.ui/schema/foldingStructureProviders.exsd @@ -0,0 +1,142 @@ + + + + + + + + + Contributions to this extension point define folding structures for the C/C++ editor. That is, they define the regions of a C/C++ source file that can be folded away. See <code>org.eclipse.jface.text.source.ProjectionViewer</code> for reference. +<p> +Extensions may optionally contribute a preference block which will appear on the C/C++ editor preference page. +</p> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + The unique identifier of this provider. + + + + + + + The name of this provider. If none is given, the id is used instead. + + + + + + + + + + An implementation of org.eclipse.cdt.ui.text.folding.ICFoldingStructureProvider + + + + + + + + + + An implementation of org.eclipse.cdt.ui.text.folding.ICFoldingPreferenceBlock + + + + + + + + + + + + + + + 3.0 + + + + + + + + + See <code>org.eclipse.cdt.ui.text.folding.DefaultCFoldingStructureProvider</code> for an example. + + + + + + + + + + + + + + + + + + <code>org.eclipse.cdt.ui.text.folding.DefaultCFoldingStructureProvider</code> provides the default folding structure for the C/C++ editor. + <code>org.eclipse.cdt.internal.ui.text.folding.DefaultCFoldingPreferenceBlock</code> provides the preference block for the default structure provider. + + + + + + + + + Copyright (c) 2001, 2006 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> + + + + diff --git a/core/org.eclipse.cdt.ui/schema/textHovers.exsd b/core/org.eclipse.cdt.ui/schema/textHovers.exsd new file mode 100644 index 00000000000..211180108bb --- /dev/null +++ b/core/org.eclipse.cdt.ui/schema/textHovers.exsd @@ -0,0 +1,144 @@ + + + + + + + + + This extension point is used to plug-in text hovers in a C/C++ editor. + + + + + + + + + + + + a fully qualified identifier of the target extension point + + + + + + + an optional identifier of the extension instance + + + + + + + an optional name of the extension instance + + + + + + + + + + + + + + + the id, typically the same as the fully qualified class name. + + + + + + + the fully qualified class name implementing the interface <code>org.eclipse.cdt.ui.text.c.hover.ICEditorTextHover</code>. + + + + + + + + + + the translatable label for this hover. + + + + + + + + + + the translatable description for this hover. + + + + + + + + + + if the attribute is set to "true" it will force this plug-in to be loaded on hover activation. + + + + + + + + + + + + The following is an example of a hover definition: + +<p> +<pre> + <extension point="org.eclipse.cdt.ui.textHovers"> + <hover + label="Debug Text Hover" + perspective="org.eclipse.debug.ui.DebugPerspective" + class="org.eclipse.cdt.debug.internal.ui.editors.DebugTextHover" + id="org.eclipse.cdt.debug.internal.ui.editors.DebugTextHover"> + </hover> + </extension> +</pre> +</p> + + + + + + + + + + + + + + + + + + + + + + + + + + + Copyright (c) 2001, 2006 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> + + + + diff --git a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/ui/text/folding/ICFoldingPreferenceBlock.java b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/ui/text/folding/ICFoldingPreferenceBlock.java index 67d064b2ae0..c13e3d88245 100644 --- a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/ui/text/folding/ICFoldingPreferenceBlock.java +++ b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/ui/text/folding/ICFoldingPreferenceBlock.java @@ -15,9 +15,9 @@ import org.eclipse.swt.widgets.Composite; import org.eclipse.swt.widgets.Control; /** - * Contributors to the org.eclipse.jdt.ui.foldingStructureProvider extension point - * can specify an implementation of this interface to be displayed on the C > Editor > Folding - * preference page. + * Contributors to the org.eclipse.cdt.ui.foldingStructureProvider extension point + * can specify an implementation of this interface to be displayed on the C/C++ > Editor > + * Folding preference page. *

* Clients may implement this interface. *

@@ -26,7 +26,7 @@ import org.eclipse.swt.widgets.Control; public interface ICFoldingPreferenceBlock { /** - * Creates the control that will be displayed on the C > Editor > Folding + * Creates the control that will be displayed on the C/C++ > Editor > Folding * preference page. * * @param parent the parent composite to which to add the preferences control @@ -60,5 +60,4 @@ public interface ICFoldingPreferenceBlock { */ void dispose(); - } diff --git a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/ui/text/folding/ICFoldingStructureProvider.java b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/ui/text/folding/ICFoldingStructureProvider.java index 2acdc8556c1..ae94b601f4e 100644 --- a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/ui/text/folding/ICFoldingStructureProvider.java +++ b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/ui/text/folding/ICFoldingStructureProvider.java @@ -16,7 +16,7 @@ import org.eclipse.ui.texteditor.ITextEditor; /** * Contributors to the - * org.eclipse.jdt.ui.foldingStructureProvider extension + * org.eclipse.cdt.ui.foldingStructureProvider extension * point must specify an implementation of this interface which will create and * maintain {@link org.eclipse.jface.text.source.projection.ProjectionAnnotation} objects * that define folded regions in the the {@link org.eclipse.jface.text.source.projection.ProjectionViewer}.