Skip to main content



      Home
Home » Eclipse Projects » Rich Client Platform (RCP) » how to implement option similar as "New editor" in my application and then synchronize scr
how to implement option similar as "New editor" in my application and then synchronize scr [message #460374] Wed, 20 December 2006 20:12 Go to next message
Eclipse UserFriend
Originally posted by: gunislj.yahoo.com

I want to open two editors of a same file, something like "New window"
option in eclipse IDE. How can i do this in my own rcp application -
programaticaly?
One editor should be left, and other should be right. Besides that i want
to "synchronize" scrolling of theese two editors.
Anyone can help, thanks, Lazar.
Re: how to implement option similar as "New editor" in my application and then synchronize [message #460489 is a reply to message #460374] Thu, 21 December 2006 10:19 Go to previous messageGo to next message
Eclipse UserFriend
You can use the ActionFactory.NEW_EDITOR to get the action.

To get them side by side, the user has to drag them. There is no
current way to synchronize scrolling unless you write it yourself.

If this is for a compare-type scenario, why not use the CompareEditor
(and CompareEditorInput)?

Later,
PW
Re: how to implement option similar as "New editor" in my application and then synchronize [message #460609 is a reply to message #460489] Fri, 22 December 2006 13:47 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: gunislj.yahoo.com

1. Do you have an example how to use Compare editor? I have no idea how it
looks.
2. How to write synchronizing myself?

"Paul Webster" <pwebster@ca.ibm.com> wrote in message
news:eme8ns$9oq$4@utils.eclipse.org...
> You can use the ActionFactory.NEW_EDITOR to get the action.
>
> To get them side by side, the user has to drag them. There is no current
> way to synchronize scrolling unless you write it yourself.
>
> If this is for a compare-type scenario, why not use the CompareEditor (and
> CompareEditorInput)?
>
> Later,
> PW
Re: how to implement option similar as "New editor" in my application and then synchronize [message #460624 is a reply to message #460609] Fri, 22 December 2006 14:30 Go to previous messageGo to next message
Eclipse UserFriend
There is a section in the Help>Help Contents>Platform Plug-in Developer
Guide

http://help.eclipse.org/help32/index.jsp?topic=/org.eclipse. platform.doc.isv/guide/compare.htm

Later,
PW
Re: how to implement option similar as "New editor" in my application and then synchronize [message #460630 is a reply to message #460624] Sat, 23 December 2006 16:34 Go to previous message
Eclipse UserFriend
Originally posted by: gunislj.yahoo.com

In fact i am not doing a comparing - i want to show kind of (source -
destination) text side by side. Scrolling should be "synchronized". Any
starting points and ideas - except CompareEditor? Two problems bother me:
1. how to show view that shows source, side by side with already existing
and specially designed editor.
2. how to make scrolling of editor and newly created view synchronized.
Any ideas?
THANKS, Lazar.

"Paul Webster" <pwebster@ca.ibm.com> wrote in message
news:emhbrf$9i3$1@utils.eclipse.org...
> There is a section in the Help>Help Contents>Platform Plug-in Developer
> Guide
>
> http://help.eclipse.org/help32/index.jsp?topic=/org.eclipse. platform.doc.isv/guide/compare.htm
>
> Later,
> PW
Previous Topic:Basics about RCP
Next Topic:Open form view with data
Goto Forum:
  


Current Time: Wed Mar 26 18:37:37 EDT 2025

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

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

Back to the top