80 likes | 280 Views
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?
E N D
Plugging into Eclipse • Eclipse User Interface • Extending Eclipse • Extension Points
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
Q: What do Extensions know about the IDE around them?A: Not much.
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);
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