Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Request for help: gettting ruler on programmatically opened editor
Request for help: gettting ruler on programmatically opened editor [message #100547] Sat, 26 July 2003 13:35 Go to next message
Eclipse UserFriend
Hello,

I'm programmatically opening the default text editor using a fragment I
garnered from this group:
IEditorPart iep =
PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActi vePage().openEditor(sbEditorInput,
"org.eclipse.ui.DefaultTextEditor");

It shows up just fine, but it does not have the left ruler, which I
require. What can I do to get that ruler?

Thanks,

Dave Hinman
dhinman@rcn.com
Re: Request for help: gettting ruler on programmatically opened editor [message #101365 is a reply to message #100547] Mon, 28 July 2003 05:26 Go to previous message
Eclipse UserFriend
Originally posted by: daniel.megert.gmx.net

Dave Hinman wrote:

> Hello,
>
> I'm programmatically opening the default text editor using a fragment
> I garnered from this group:
> IEditorPart iep =
> PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActi vePage().openEditor(sbEditorInput,
>
> "org.eclipse.ui.DefaultTextEditor");
>
> It shows up just fine, but it does not have the left ruler, which I
> require. What can I do to get that ruler?

Which left ruler? The one which shows the markers or the line number
ruler? The line number ruler can be enabled in the preferences. However,
there should be no difference between opening the default text editor
using above code and via UI.

HTH
Dani
Previous Topic:BufferedDocumentScanner should not be in JDT
Next Topic:[ANN] [Short] <oXygen/> XML Editor for Eclipse 2.0.3 beta
Goto Forum:
  


Current Time: Mon Jul 21 21:33:37 EDT 2025

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

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

Back to the top