Eclipse Plugin Develop

Source: Internet
Author: User

Demo

Http://www.cnblogs.com/liuzhuo/archive/2010/08/15/eclipse_plugin_1_1_1.html

The API for Workbench and resource access is the most basic of the APIs provided by Eclipse, and uses a higher frequency API for plug-in development. No detailed instructions are given here, and some of these APIs will appear in future examples. Using Platformui as the entry point for the Workbench and the entry point to use Resourcesplugin as a workspace access is to be remembered anyway.

using Platformui to access the work desk

Get the work table Iworkbench Workbench = Platformui.getworkbench (); Get the workbench window Iworkbenchwindow windows = Workbench.getactiveworkbenchwindow (); Iworkbenchpage page = Window.getactivepage (); Gets the editor window that is currently active ieditorpart part = Page.getactiveeditor ();


using Resourcesplugin to access workspaces


Gets the root iworkspaceroot wsroot = Resourcesplugin.getworkspace () of the workspace. Getroot (); Get Project iproject[] projects = Wsroot.getprojects ();

Related Article

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.