Plugging into Eclipse - PowerPoint PPT Presentation

plugging into eclipse n.
Download
Skip this Video
Loading SlideShow in 5 Seconds..
Plugging into Eclipse PowerPoint Presentation
Download Presentation
Plugging into Eclipse

play fullscreen
1 / 8
Plugging into Eclipse
191 Views
Download Presentation
raheem
Download Presentation

Plugging into Eclipse

- - - - - - - - - - - - - - - - - - - - - - - - - - - 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