Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Create an editor in the views area?
Create an editor in the views area? [message #289601] Mon, 08 August 2005 13:17 Go to next message
Eclipse UserFriend
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 #289604 is a reply to message #289601] Mon, 08 August 2005 13:36 Go to previous messageGo to next message
Eclipse UserFriend
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
Re: Create an editor in the views area? [message #289605 is a reply to message #289604] Mon, 08 August 2005 14:00 Go to previous message
Eclipse UserFriend
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
Previous Topic:MacOS X bundle export jar file name
Next Topic:TableViewer in Editor: only one column of date via TableLabelProvider?
Goto Forum:
  


Current Time: Sun May 11 04:15:30 EDT 2025

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

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

Back to the top