Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Double click -> open file
Double click -> open file [message #78840] Thu, 19 June 2003 18:59 Go to next message
Eclipse UserFriend
Originally posted by: bob.donovan.sdrc.com

Has anyone figured out how to use a double click in a view to open a File
and have an offset & length selected?

Bob
Re: Double click -> open file [message #79437 is a reply to message #78840] Fri, 20 June 2003 14:58 Go to previous message
Eclipse UserFriend
Originally posted by: John_Arthorne.oti.com_

One way to do this is to create a text marker in the file with the
appropriate offset and length, and then use

IWorkbenchPage.openEditor(IMarker) or
IEditorPart.gotoMarker(IMarker)

You can delete the marker after opening using IMarker.delete.
There is a utility class for creating text markers called
MarkerUtilities in org.eclipse.ui.texteditor.
--


Bob Donovan wrote:
> Has anyone figured out how to use a double click in a view to open a File
> and have an offset & length selected?
>
> Bob
>
Previous Topic:plugin NoClassDefFoundException during client/server communication
Next Topic:Workspace Restorer plug-in now available
Goto Forum:
  


Current Time: Thu May 08 01:09:23 EDT 2025

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

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

Back to the top