Skip to main content



      Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » Create a plugin for extending editors(I am trying to create a plugin that extends the editors in eclipse...)
Create a plugin for extending editors [message #658361] Tue, 08 March 2011 02:54 Go to next message
Eclipse UserFriend
Hello,

I have been trying there last days to extend the default editor (java, xml, all of them) functionality,

what I want to do is add a big ruler with text on the side of every editor.

example: a default editor page looks like this:


|-----------|
|source     |
|code       |
|           |
|-----------|


but i want it to be like this

|------|----|
|source|    |
|code  |line|
|      |text|
|------|----|


also i can't use a view because the text in my ruler corresponds to a certain line and has to scroll along with the source code.

I have tried to do this by implementing IEditorActionDelegate since I don't want a new editor, but to add functionality, but I could not find any solutions.
Re: Create a plugin for extending editors [message #658450 is a reply to message #658361] Tue, 08 March 2011 09:54 Go to previous message
Eclipse UserFriend
Eclipses text editors are based on AbstractTextEditor and
org.eclipse.ui.texteditor.AbstractDecoratedTextEditor (which adds the
ruler on the left side and the annotation bar on the right side).

Since each editor has its own createPartControl(*) called and then
creates whatever controls it wants to, I don't see how you can add a new
control to the right of already existing editors (although you can
certainly subclass and change your own). Well, you could in theory hack
another child into the part parent composite, but only by digging
through internals and I doubt it would work the way you want.

PW



--
Paul Webster
http://wiki.eclipse.org/Platform_Command_Framework
http://wiki.eclipse.org/Command_Core_Expressions
http://wiki.eclipse.org/Platform_Expression_Framework
http://wiki.eclipse.org/Menu_Contributions
http://wiki.eclipse.org/Menus_Extension_Mapping
http://help.eclipse.org/galileo/index.jsp?topic=/org.eclipse .platform.doc.isv/guide/workbench.htm
Previous Topic:Including Root Files in a Product Build
Next Topic:eclipse PHP plug-in to copy fail and classes
Goto Forum:
  


Current Time: Wed Jul 23 06:14:46 EDT 2025

Powered by FUDForum. Page generated in 0.07043 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top