Perspective Extension Perspective Extensions

Source: Internet
Author: User

Some of the elements in eclipse:

Perspective view?

A perspective is a visual container for a series of elements such as views and editors. A Perspective view defines the initialization and Workbench of the Window action Bars (menu and toolbar) in the Page and how they are laid out.

Workbenchwindow is a book, perspective is one of the pages, and only one page is displayed at the same time. A perspective contains elements such as views,editors that are not shared with other perspective .

The relationship between perspective and other elements is as follows:

Extend Eclipse's existing perspective

Eclipse Pack contains multiple types of perspective

An example of an extended perspective code:

1 <extension Point= "Org.eclipse.ui.perspectiveExtensions"> 2         <perspectiveextension3             Targetid= "Org.eclipse.ui.resourcePerspective"> 4             <ActionsetID= "Org.eclipse.jdt.ui.JavaActionSet"/> 5             <ViewshortcutID= "Org.eclipse.jdt.ui.PackageExplorer"/> 6             <NewwizardshortcutID= "Org.eclipse.jdt.ui.wizards.NewProjectCreationWizard"/> 7             <PerspectiveshortcutID= "Org.eclipse.jdt.ui.JavaPerspective"/> 8             <ViewID= "Org.eclipse.jdt.ui.PackageExplorer" 9 relative= "Org.eclipse.ui.views.ResourceNavigator" Ten Relationship= "Stack"/>  One             <ViewID= "Org.eclipse.jdt.ui.TypeHierarchy"  A relative= "Org.eclipse.ui.views.ResourceNavigator"  - Relationship= "Left"  - ratio= "0.50"/>  the         </perspectiveextension>  - </extension> 

In the example above, a action set, view shortcut, new Wizard shortcut, and perspective shortcut are contributed To the initial contents of the Resource perspective. In addition, the package Explorer view was stacked on the Resource Navigator and the Type Hierarchy view is added< c10> beside the Resource Navigator.

Customizing a Perspective

Reference Study: http://www.eclipse.org/articles/using-perspectives/PerspectiveArticle.html

Perspective Extension Perspective Extensions

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.