From c2d26cdad2e8ca184a5fe299dfc2d4938a71e67f Mon Sep 17 00:00:00 2001 From: Jesse Weinstein Date: Thu, 12 Sep 2013 20:04:36 -0400 Subject: [PATCH] [bug 417138] Various extension point schema cleanups Change-Id: I3e20bad5c150f8283c19b69e31407a66d203b3ab Signed-off-by: Jesse Weinstein Reviewed-on: https://git.eclipse.org/r/16401 Reviewed-by: Sergey Prigogin IP-Clean: Sergey Prigogin Tested-by: Sergey Prigogin --- .../schema/BreakpointActionPage.exsd | 41 +- .../schema/BreakpointUIContribution.exsd | 13 +- .../schema/CDebuggerPage.exsd | 57 +- .../schema/disassemblyRulerColumns.exsd | 528 +++++++++--------- 4 files changed, 301 insertions(+), 338 deletions(-) diff --git a/debug/org.eclipse.cdt.debug.ui/schema/BreakpointActionPage.exsd b/debug/org.eclipse.cdt.debug.ui/schema/BreakpointActionPage.exsd index e890bdacce2..9e94b0bcd80 100644 --- a/debug/org.eclipse.cdt.debug.ui/schema/BreakpointActionPage.exsd +++ b/debug/org.eclipse.cdt.debug.ui/schema/BreakpointActionPage.exsd @@ -1,6 +1,6 @@ - + @@ -9,8 +9,12 @@ This extension point provides a mechanism for contributing UI to define and edit a breakpoint action. - + + + + + @@ -24,7 +28,6 @@ - @@ -32,6 +35,9 @@ + + + @@ -39,6 +45,9 @@ + + + @@ -50,25 +59,6 @@ - - - - - - - 1.1 - - - - - - - - - [Enter extension point usage example here.] - - - @@ -77,16 +67,14 @@ Value of the attribute class must be a fully qualified name of a Java class that implements the interface org.eclipse.cdt.debug.ui.ICDebuggerPage. - - + - + 1.1 - @@ -99,5 +87,4 @@ which accompanies this distribution, and is available at http://www.eclipse.org/legal/epl-v10.html - diff --git a/debug/org.eclipse.cdt.debug.ui/schema/BreakpointUIContribution.exsd b/debug/org.eclipse.cdt.debug.ui/schema/BreakpointUIContribution.exsd index 75e7f9ff50a..46f68769af8 100644 --- a/debug/org.eclipse.cdt.debug.ui/schema/BreakpointUIContribution.exsd +++ b/debug/org.eclipse.cdt.debug.ui/schema/BreakpointUIContribution.exsd @@ -11,7 +11,6 @@ The UI controls are added to the "Common" page of the breakpoint prope contribution is shown only when a debugger with corresponding model ID is currently active. - @@ -49,7 +48,6 @@ contribution is shown only when a debugger with corresponding model ID is curren - @@ -82,7 +80,6 @@ contribution is shown only when a debugger with corresponding model ID is curren - @@ -115,7 +112,6 @@ contribution is shown only when a debugger with corresponding model ID is curren - @@ -167,6 +163,8 @@ contribution is shown only when a debugger with corresponding model ID is curren + + @@ -182,7 +180,6 @@ contribution is shown only when a debugger with corresponding model ID is curren - @@ -212,7 +209,6 @@ contribution is shown only when a debugger with corresponding model ID is curren - @@ -221,7 +217,6 @@ contribution is shown only when a debugger with corresponding model ID is curren CDT 5.0 - @@ -257,8 +252,4 @@ contribution is shown only when a debugger with corresponding model ID is curren </pre> - - - - diff --git a/debug/org.eclipse.cdt.debug.ui/schema/CDebuggerPage.exsd b/debug/org.eclipse.cdt.debug.ui/schema/CDebuggerPage.exsd index 6b5e2a7d694..b8ef581fe87 100644 --- a/debug/org.eclipse.cdt.debug.ui/schema/CDebuggerPage.exsd +++ b/debug/org.eclipse.cdt.debug.ui/schema/CDebuggerPage.exsd @@ -1,6 +1,6 @@ - + @@ -9,8 +9,12 @@ This extension point provides a mechanism for contributing UI for org.eclipse.cdt.debug.core.CDebugger extensions. - + + + + + @@ -18,21 +22,21 @@ - a fully qualified identifier of the target extension point + - an optional identifier of the extension instance + - an optional name of the extension instance + @@ -41,27 +45,32 @@ - - specifies a unique identifier for this debugger page. + Specifies a unique identifier for this debugger page. + + + - specifies the identifier of the debugger this page is associated with. + Specifies the identifier of the debugger this page is associated with. + + + - specifies a fully qualified name of a Java class that implements &lt;code&gt;ICDebuggerPage&lt;/code&gt; + Specifies a fully qualified name of a Java class that implements <code>ICDebuggerPage</code> @@ -70,7 +79,14 @@ - + + + + + + Value of the attribute class must be a fully qualified name of a Java class that implements the interface org.eclipse.cdt.debug.ui.ICDebuggerPage. + + @@ -79,7 +95,6 @@ 1.1 - @@ -95,25 +110,6 @@ In the above example, the contributed UI component (org.eclipse.cdt.debug.mi.internal.ui.GDBDebuggerPage) will be used for the debuggers with the "org.eclipse.cdt.debug.mi.core.CDebugger" debugger id. - - - - - - - Value of the attribute class must be a fully qualified name of a Java class that implements the interface org.eclipse.cdt.debug.ui.ICDebuggerPage. - - - - - - - - - - - - @@ -126,5 +122,4 @@ which accompanies this distribution, and is available at http://www.eclipse.org/legal/epl-v10.html - diff --git a/debug/org.eclipse.cdt.debug.ui/schema/disassemblyRulerColumns.exsd b/debug/org.eclipse.cdt.debug.ui/schema/disassemblyRulerColumns.exsd index 5a8315aaaa8..c43d20d281e 100644 --- a/debug/org.eclipse.cdt.debug.ui/schema/disassemblyRulerColumns.exsd +++ b/debug/org.eclipse.cdt.debug.ui/schema/disassemblyRulerColumns.exsd @@ -1,269 +1,259 @@ - - - - - - - - - Ruler column contributions are line based information areas that are normally shown in the vertical ruler area of the disassembly. - - - - - - - - - - - - - - - - - a fully qualified identifier of the target extension point - - - - - - - an optional identifier of the extension instance - - - - - - - an optional name of the extension instance - - - - - - - - - - - - - - - - The specification of a ruler column contribution. - - - - - - - - - - - - - - the unique id of this column - - - - - - - an optional name of the column, may be used in the user interface (e.g. in preference pages) - - - - - - - - - - an optional icon for the column. May be used in the user interface, for example on preference pages. - - - - - - - - - - the class implementing the column; must implement <code>org.eclipse.cdt.debug.ui.disassembly.rulers.IContributedRulerColumn</code> - - - - - - - - - - the default enablement state of this column - - - - - - - controls whether toggling the visibility of this column operates on all targeted disassembly parts, or only the active disassembly part. If true, the ruler is added to all applicable parts when the user enables the column; if false, the ruler is only added to the active disassembly part. - - - - - - - whether to include a "Show/Hide" menu entry for this column in the ruler context menu - - - - - - - - - - Describes a disassembly part that the column is contributed to. - - - - - - - the part id of the target disassembly part - - - - - - - - - - - - - Describes a disassembly part class that the column is contributed to. Subclasses of the specified class are also targeted by this colum contribution. - - - - - - - the fully qualified name of a class implementing IWorkbenchPart. The class does not need to be instantiatable. - - - - - - - - - - - - - Describes the placement of this ruler column relative to other contributed columns. A column may request to be placed <em>before</em> or <em>after</em> other known columns (identified by their <tt>id</tt>). Columns that would end up at the same position are ordered by <em>gravity</em> (see below). If the ordering is contradicting or no ordering can be found that fulfills all placement requests, some placement requirements are dropped until the placement can be achieved. If a column does not fully specify its placement it will be placed at an arbitrary but consistent location. - - - - - - - - - - - - - a float number between 0.0 and 1.0 that tells how close the column wants to be to the editor, where 0.0 means as far away as possible and 1.0 means as close as possible. After all <i>before</i> and <i>after</i> constraints are evaluated, columns that would end up at the same position are ordered by their <i>gravity</i> value. - - - - - - - - - - Requests placement before another column. The meaning of <i>before</i> is similar to the SWT.LEAD flag: In left-to-right environments, <i>before</i> means <i>to the left of</i>, in right-to-left environments, it means <i>to the right of</i>. - - - - - - - the id of another <tt>rulerColumns</tt> contribution - - - - - - - - - - - - - Requests placement after another column. The meaning of <i>after</i> is similar to the SWT.TRAIL flag: In left-to-right environments, <i>after</i> means <i>to the right of</i>, in right-to-left environments, it means <i>to the left of</i>. - - - - - - - the id of another <tt>rulerColumns</tt> contribution - - - - - - - - - - - - - - - 7.2 - - - - - - - - - The extension point is supported by the <tt>org.eclipse.cdt.debug.ui.disassembly.rulers</tt> package. <code>RulerColumnRegistry</code> gives access to all contributions, which in turn are described by <code>RulerColumnDescriptor</code> instances. - - - - - - - - - - All ruler column contributions must implement <code>org.eclipse.cdt.debug.ui.disassembly.rulers.IContributedRulerColumn</code>. Many contributors will find the supplied <code>org.eclipse.cdt.debug.ui.disassembly.rulers.AbstractContributedRulerColumn</code> useful which serves as super class for contributed ruler columns. Others might start off <code>org.eclipse.jface.text.source.AbstractRulerColumn</code> which takes over most painting and scrolling aspects of a line based column and can be extended at various granularity levels. Those subclassing the latter class will have to implement <code>org.eclipse.cdt.debug.ui.disassembly.rulers.IContributedRulerColumn</code> on their own by using <code>org.eclipse.cdt.debug.ui.disassembly.rulers.AbstractContributedRulerColumn</code> as template. - - - - - - - - - Copyright (c) 2006, 20011 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> - - - - + + + + + + + + + Ruler column contributions are line based information areas that are normally shown in the vertical ruler area of the disassembly. + + + + + + + + + + + + + + + + a fully qualified identifier of the target extension point + + + + + + + an optional identifier of the extension instance + + + + + + + an optional name of the extension instance + + + + + + + + + + + + + + + The specification of a ruler column contribution. + + + + + + + + + + + + + + The unique id of this column + + + + + + + + + + An optional name of the column, may be used in the user interface (e.g. in preference pages) + + + + + + + + + + An optional icon for the column. May be used in the user interface, for example on preference pages. + + + + + + + + + + The class implementing the column; must implement <code>org.eclipse.cdt.debug.ui.disassembly.rulers.IContributedRulerColumn</code> + + + + + + + + + + The default enablement state of this column. + + + + + + + Controls whether toggling the visibility of this column operates on all targeted disassembly parts, or only the active disassembly part. If <i>true</i>, the ruler is added to all applicable parts when the user enables the column. Otherwise, the ruler is only added to the active disassembly part. + + + + + + + Whether to include a "Show/Hide" menu entry for this column in the ruler context menu. + + + + + + + + + Describes a disassembly part that the column is contributed to. + + + + + + + The part id of the target disassembly part + + + + + + + + + + + + Describes a disassembly part class that the column is contributed to. Subclasses of the specified class are also targeted by this colum contribution. + + + + + + + The fully qualified name of a class implementing IWorkbenchPart. The class does not need to be instantiatable. + + + + + + + + + + + + Describes the placement of this ruler column relative to other contributed columns. A column may request to be placed <em>before</em> or <em>after</em> other known columns (identified by their <tt>id</tt>). Columns that would end up at the same position are ordered by <em>gravity</em> (see below). If the ordering is contradicting or no ordering can be found that fulfills all placement requests, some placement requirements are dropped until the placement can be achieved. If a column does not fully specify its placement it will be placed at an arbitrary but consistent location. + + + + + + + + + + + + + A floating point number between 0.0 and 1.0 that tells how close the column wants to be to the editor, where 0.0 means as far away as possible and 1.0 means as close as possible. After all <i>before</i> and <i>after</i> constraints are evaluated, columns that would end up at the same position are ordered by their <i>gravity</i> value. + + + + + + + + + Requests placement before another column. The meaning of <i>before</i> is similar to the SWT.LEAD flag: In left-to-right environments, <i>before</i> means <i>to the left of</i>, in right-to-left environments, it means <i>to the right of</i>. + + + + + + + The id of another <tt>rulerColumns</tt> contribution. + + + + + + + + + + + + Requests placement after another column. The meaning of <i>after</i> is similar to the SWT.TRAIL flag: In left-to-right environments, <i>after</i> means <i>to the right of</i>, in right-to-left environments, it means <i>to the left of</i>. + + + + + + + The id of another <tt>rulerColumns</tt> contribution. + + + + + + + + + + + + + + All ruler column contributions must implement <code>org.eclipse.cdt.debug.ui.disassembly.rulers.IContributedRulerColumn</code>. Many contributors will find the supplied <code>org.eclipse.cdt.debug.ui.disassembly.rulers.AbstractContributedRulerColumn</code> useful which serves as super class for contributed ruler columns. Others might start off <code>org.eclipse.jface.text.source.AbstractRulerColumn</code> which takes over most painting and scrolling aspects of a line based column and can be extended at various granularity levels. Those subclassing the latter class will have to implement <code>org.eclipse.cdt.debug.ui.disassembly.rulers.IContributedRulerColumn</code> on their own by using <code>org.eclipse.cdt.debug.ui.disassembly.rulers.AbstractContributedRulerColumn</code> as template. + + + + + + + + Copyright (c) 2006, 20011 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> + + + + + + + + The extension point is supported by the <tt>org.eclipse.cdt.debug.ui.disassembly.rulers</tt> package. <code>RulerColumnRegistry</code> gives access to all contributions, which in turn are described by <code>RulerColumnDescriptor</code> instances. + + + + + + + + 7.2 + + +