1. Open plugin of sample view
2. View MANIFEST.MF
2-1. show Extensions tab > add > Extension Points : org.eclipse.ui.actionSets
2-2. Edit
* org.eclipse.ui.actionSets
- Extension Element Details
-- id : foo.foo.foo.actionSet_id1
-- label : any string
-- visible : true
* org.eclipse.ui.actionSets > Right Click > New > menu
- Extension Element Details
-- id : foo.foo.foo.menu_id1
-- label : {Label of Menu Bar}
-- path : additions @@
-- icon :
** Right Click on actionSet > New > gourpMaker
- Extension Element Details
-- name : content @@
** Right Click on actionSet > New > separator
- Extension Element Details
-- name : additions @@
* org.eclipse.ui.actionSets > Right Click > New > action
-- menubarPath : foo.foo.foo.menu_id1/content
-- toolbarPath : Normal/additions
-- Click class @ then create class.
--- implements IWorkbenchWindowActionDelegate ((equals to interface))
-3. Debugging
-- Project Property > Run As > Eclipse Application
0 件のコメント:
コメントを投稿