Create an editor in the views area? [message #289601] |
Mon, 08 August 2005 13:17  |
Eclipse User |
|
|
|
This possibly sounds like an odd request, but is there a way to create an
editor in the view area?
Here's the longer version of the question:
We have a requirement for a command-line view for our Eclipse-based IDE.
That's easy, but what I would really like is a command-line with
content-assist, chromo-coding, bracket matching, etc just like our editor.
So I thought that maybe the way to go would be to create a single-line
"editor" because the command line view is really a specialization of our
language-specific editor. The problem is that this commandline must live at
the bottom-most area of the workbench below the editor area and below some
other views.
Has anyone done something like this?
Scott Kellicker
put an editorI know it sounds like an odd request
|
|
|
|
Re: Create an editor in the views area? [message #289605 is a reply to message #289604] |
Mon, 08 August 2005 14:00  |
Eclipse User |
|
|
|
That's correct, the editor I want to re-use is a sub-class of
org.eclipse.ui.texteditor.AbstractDecoratedTextEditor, which is an
IEditorPart.
Thanks Paul. I'll check things out at the JFace level. I still hold out
hope that I may find some way to be able to do the work closer to the
AbstractDecoratedTextEditor class.
Scott Kellicker
"Paul Webster" <pwebster@ca.ibm.com> wrote in message
news:dd8573$7q5$1@news.eclipse.org...
> Scott Kellicker wrote:
>> This possibly sounds like an odd request, but is there a way to create an
>> editor in the view area?
>
> So you can't place a workbench editor where the views live (something that
> implements IWorkbenchPart).
>
> But check out org.eclipse.jface.text ... the TextViewer or SourceViewer. I
> think SourceViewer has hooks in it already to implement ContentAssist, and
> you would probably be able to embed one of them in a workbench view.
>
> Later,
> PW
|
|
|
Powered by
FUDForum. Page generated in 0.02892 seconds