| <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><html lang="en"> |
| <HEAD> |
| |
| <meta name="copyright" content="Copyright (c) IBM Corporation and others 2000, 2011. This page is made available under license. For full details see the LEGAL in the documentation book that contains this page." > |
| |
| <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-1"> |
| <META HTTP-EQUIV="Content-Style-Type" CONTENT="text/css"> |
| |
| <LINK REL="STYLESHEET" HREF="../book.css" CHARSET="ISO-8859-1" TYPE="text/css"> |
| <TITLE> |
| Basic workbench extension points |
| </TITLE> |
| |
| <link rel="stylesheet" type="text/css" HREF="../book.css"> |
| </HEAD> |
| <BODY BGCOLOR="#ffffff"> |
| <H2> |
| Basic workbench extension points using commands</H2> |
| <p> |
| Commands and handlers have been provided by the workbench in one form |
| or another since 3.0. In 3.2 the commands, handlers, and keybindings portion |
| of the Command Framework became mature. In 3.3 the menu contributions portion |
| of the Command Framework became available. |
| </p> |
| <p > |
| The workbench defines extension points that allow plug-ins to contribute |
| behaviors to existing views and editors or to provide implementations for |
| new views and editors. We'll use the Info example from the |
| contributions plugin. It provides a view that lists people and an |
| editor for updating their names. </p> |
| <p> |
| We are going to take a look at how commands, handlers, menu contributions, |
| and keybindings can be used to contribute behaviour to the workbench, |
| to views, and to editors. |
| </p> |
| |
| <img src="images/contributions_window.png" alt="Picture of the workbench, showing the contributions"> |
| <p> |
| You can show any view in the workbench by choosing |
| <a class="command-link" href='javascript:executeCommand("org.eclipse.ui.views.showView")'> |
| <img src="PLUGINS_ROOT/org.eclipse.help/command_link.png" alt="command link"> |
| <b>Window > Show View > Other...</b></a> |
| and selecting the view from the <b>Show View</b> list. Use this to select the Info View from |
| the View Contributions category. |
| </p> |
| <p> |
| The Info example is located in the <b>org.eclipse.ui.examples.contributions</b> |
| package. To follow along, you will need to make sure that |
| you have installed the platform examples. (See the <a href="../samples/samples.html">Examples |
| Guide </a> for more information.) |
| </p> |
| |
| </BODY> |
| </HTML> |