Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 07:54 Go to next message
Alin Gherman is currently offline Alin Gherman
Messages: 1
Registered: March 2011
Junior Member
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 14:54 Go to previous message
Paul Webster is currently offline Paul Webster
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

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: Sat Sep 20 10:02:32 GMT 2014

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

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