1 / 8

Plugging into Eclipse

Plugging into Eclipse. Plugging into Eclipse. Eclipse User Interface Extending Eclipse Extension Points. Extending Eclipse. What are they? The only points where Eclipse may be extended. Extension points are where plug-ins plug-in How to use them?

raheem
Download Presentation

Plugging into Eclipse

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Plugging into Eclipse

  2. Plugging into Eclipse • Eclipse User Interface • Extending Eclipse • Extension Points

  3. Extending Eclipse

  4. What are they? The only points where Eclipse may be extended. Extension points are where plug-ins plug-in How to use them? Implement the correct Java interface for the extension point, and add an extension point entry to plugin.xml Example entry: Extension Points

  5. Q: What do Extensions know about the IDE around them?A: Not much.

  6. The Eclipse API does allow... • All open resources can be accessed with: Static class org.eclipse.core.resources.ResourcesPlugin • The workbench can be accessed with: Static class org.eclipse.ui.PlatformUI Example (Changing the Perspective): IPerspectiveRegistry reg = PlatformUI.getWorkbench().getPerspectiveRegistry(); IPerspectiveDescriptor persp = reg.findPerspectiveWithId(perspID); replaceCurrentPerspective(persp);

  7. References • Eclipse Homepage: http://www.eclipse.org • List of all Extension Points: http://dev.eclipse.org:8080/help/content/help:/org.eclipse.platform.doc.isv/reference/extension-points/index.html • Eclipse IDE source is available from cvs repository at :pserver:anonymous@dev.eclipse.org:/home/eclipseNote: Eclipse user interface source is under the “org.eclipse.ui” moduleEclipse source is also included with the Eclipse distribution in “eclipse\plugins\org.eclipse.platform.source_2.0.1\src” • Eclipse newsgroup registration: http://eclipse.org/newsgroups/ • Eclipse has a thorough help section with excellent searching, Help -> Help Contents

More Related