载入中
自定义HTML载入中... loading
Eclipse Basic workbench extension points using actions [转贴 2008-03-18 21:29:14]  删除... 
字体变小 字体变大

Basic workbench extension points using actions

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. Using commands is covered in the Basic workbench extension points using commands section. Here we are going to take a look at the contributions to these extension points from one of the workbench sample applications, the readme tool.

The readme tool is a plug-in that provides custom editing and navigation for a specific resource , a .readme file. The example shows many typical (but simplified) ways that extensions can be used to provide specialized tools.

The readme tool contributes to the menus of the navigator view, adds editor related actions to the workbench menus and tool bar, defines a custom view and content outliner, and defines markers and marker resolutions. The figure below shows some of the customized features added to the workbench by the readme tool.

Workbench with readme tool contributing action sets, view and editor actions, custom editors and views, and outliner

The readme tool also contributes preference and properties pages to the workbench. Later we'll also look at some wizard contributions in Dialogs and wizards.

The readme tool is located in the org.eclipse.ui.examples.readmetool package. The readmetool.jar and plugin.xml can be found in the org.eclipse.ui.examples.readmetool directory underneath the plugins directory. To follow along, you will need to make sure that you have installed the platform examples.  (See the Examples Guide for more information.) 

The readme tool implements many different workbench extensions.  We will start with one of the simplest workbench extension points, a view.  We'll continue by looking at additional readme tool extensions.

分类: Eclipse
票数:
什么是“我顶”?
点击数:    评论数:
本文章引用通告地址(TrackBack Ping URL)为:
本文章尚未被引用。
发表评论
大 名:
(不填写则显示为匿名者)
网 址:
(您的网址,可以不填)
标 题:
内 容:
请根据下图中的字符输入验证码:
(您的评论将有可能审核后才能发表)
和讯个人门户 v1.0 | 和讯部落 | 客服中心