Chapter 8Editors
Editors are the primary mechanism for users to create and modify resources (e.g., files). Eclipse provides some basic editors such as text and Java source editors, along with some more complex multipage editors such as the plug-in manifest editor. Products that need to present their own editors can use the same extension points used by the built-in Eclipse editors. This chapter discusses creating a new Properties editor, hooking up commands to it, and linking the editor to the Outline view.
Editors must implement the org.eclipse.ui.IEditorPart
interface. Typically, editors are subclasses of org.eclipse.ui.part.EditorPart
and thus indirectly subclasses of org.eclipse.ui.part.WorkbenchPart
, inheriting much of the behavior ...
Get Eclipse Plug-ins, Third Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.