Difference between revisions of "Table of WTP IDs"

From Eclipsepedia

Jump to: navigation, search
(Menus)
(Menus)
Line 6: Line 6:
 
==Menus==
 
==Menus==
 
The org.eclipse.ui.menus extension point allows for the definition of menus that other plugins can contribute too.  See [[Menu_Contributions]] and [http://help.eclipse.org/help33/index.jsp?topic=/org.eclipse.platform.doc.isv/guide/workbench_cmd.htm Basic Workbench Extensions using Commands] for more information specifically for working with org.eclipse.ui.menus, org.eclipse.ui.commands, and org.eclipse.ui.handlers.
 
The org.eclipse.ui.menus extension point allows for the definition of menus that other plugins can contribute too.  See [[Menu_Contributions]] and [http://help.eclipse.org/help33/index.jsp?topic=/org.eclipse.platform.doc.isv/guide/workbench_cmd.htm Basic Workbench Extensions using Commands] for more information specifically for working with org.eclipse.ui.menus, org.eclipse.ui.commands, and org.eclipse.ui.handlers.
 +
 +
In addition, controling when a menu or command is available can be implemented with [[Command_Core_Expressions]].
 +
 +
<table border="1">
 +
<tr>
 +
  <td><b>Id</b></td>
 +
  <td><b>Name</b></td>
 +
  <td><b>Location</b></td>
 +
  <td><b>Type</b></td>
 +
  <td><b>Description</b></td>
 +
</tr>
 +
<tr>
 +
  <td>sourceMenuId</td>
 +
  <td>Source</td>
 +
  <td>SSE.ui/plugin.xml</td>
 +
  <td>Main Menu</td>
 +
  <td>A general source main menu that can be contributed to from other plugins.</td>
 +
</tr>
 +
</table>
  
 
==Commands==
 
==Commands==

Revision as of 22:13, 15 December 2007

Introduction

There are a vast number of ids that are used within the WTP. Every command, content-type, action, menu, etc has an id that is associated with it. This page will try to keep up to date with the various ids, where they can be found, and what they correspond too.

It is important to document the usage of the ids, especially when they relate to menus, toolbars, commands, and popus as the org.eclipse.ui.menus extension point allows for other plugins to contribute to menus based off the ids that are published. Commands are also referenced by id, and are implemented based on handlers.

Menus

The org.eclipse.ui.menus extension point allows for the definition of menus that other plugins can contribute too. See Menu_Contributions and Basic Workbench Extensions using Commands for more information specifically for working with org.eclipse.ui.menus, org.eclipse.ui.commands, and org.eclipse.ui.handlers.

In addition, controling when a menu or command is available can be implemented with Command_Core_Expressions.

Id Name Location Type Description
sourceMenuId Source SSE.ui/plugin.xml Main Menu A general source main menu that can be contributed to from other plugins.

Commands

Commands are implemented and tied to menus using handlers. They can also be tied to actionSets and have action Delgates. If implemented using handlers, a command may have zero to many handlers, but only zero to one may be active at any given point in time. Handlers can be specified using either the org.eclipse.ui.handlers extension point or programtically.

Id Category Id Menu/Toolbar Location Description
org.eclipse.wst.sse.ui.structure.select.enclosing org.eclipse.ui.category.edit Edit plugin.xml Select Enclosing
org.eclipse.wst.sse.ui.structure.select.next org.eclipse.ui.category.edit Edit plugin.xml Select Next
org.eclipse.wst.sse.ui.structure.select.previous org.eclipse.ui.category.edit Edit plugin.xml Select Previous
org.eclipse.wst.sse.ui.structure.select.last org.eclipse.ui.category.edit Edit SSE.ui/plugin.xml Select Last
org.eclipse.wst.sse.ui.toggle.comment org.eclipse.ui.category.edit Source SSE.ui/plugin.xml Toggle Comment
org.eclipse.wst.sse.ui.add.block.comment org.eclipse.ui.category.edit Source SSE.ui/plugin.xml Add Block Comment
org.eclipse.wst.sse.ui.remove.block.comment org.eclipse.ui.category.edit Source SSE.ui/plugin.xml Remove Block Comment
org.eclipse.wst.sse.ui.cleanup.document org.eclipse.ui.category.edit Source SSE.ui/plugin.xml Cleanup Document
org.eclipse.wst.sse.ui.format.document org.eclipse.ui.category.edit Source SSE.ui/plugin.xml Format Document
org.eclipse.wst.sse.ui.format.active.elements org.eclipse.ui.category.edit Source SSE.ui/plugin.xml Format Active Elements
org.eclipse.wst.sse.ui.open.file.from.source org.eclipse.ui.category.edit Navigate SSE.ui/plugin.xml Open File From Source
org.eclipse.wst.sse.ui.search.find.occurrences org.eclipse.ui.category.edit Source SSE.ui/plugin.xml Find Occurrences