Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 14908100f181e11dc33ca692d68fc337d82ae2ec (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
<!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 &gt; Show View &gt; 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>

Back to the top