Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » cut and paste problem with multipageeditors
cut and paste problem with multipageeditors [message #98336] Tue, 23 September 2003 18:32 Go to next message
Eclipse UserFriend
Originally posted by: dhavrda.motive.com

Does anyone know how to register widgets so that a cut or paste event can be
handled? I have a mutlipage editor where each page performs some editing on
the single source. Unlike the example you get when creating a
multipageeditor. That is a very poor example of a multipageeditor for many
reasons. So I have one source view and some gui/composite views. When I
change page to a gui page I want to be able to cut and paste into the
widgets and have that be reflected on my source page. What is happening is
when I switch pages to the gui and paste in a control it is still pasting on
my source page. Any ideas?


thx,
dave
Re: cut and paste problem with multipageeditors [message #98450 is a reply to message #98336] Wed, 24 September 2003 02:12 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: t_tcholakov.prosyst.bg

I suppose you are using (extending) the standard Java editor. Do, you?
"David Havrda" <dhavrda@motive.com> wrote in message
news:bkqhj6$72i$1@eclipse.org...
> Does anyone know how to register widgets so that a cut or paste event can
be
> handled? I have a mutlipage editor where each page performs some editing
on
> the single source. Unlike the example you get when creating a
> multipageeditor. That is a very poor example of a multipageeditor for
many
> reasons. So I have one source view and some gui/composite views. When I
> change page to a gui page I want to be able to cut and paste into the
> widgets and have that be reflected on my source page. What is happening
is
> when I switch pages to the gui and paste in a control it is still pasting
on
> my source page. Any ideas?
>
>
> thx,
> dave
>
>
Re: cut and paste problem with multipageeditors [message #98579 is a reply to message #98450] Wed, 24 September 2003 09:54 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: dhavrda.motive.com

No the source page uses an editor that extends the TextEditor. I have
another page that is a gui page with widgets. When I switch to the gui page
I want cut and paste events to be sent to it. Not to the TextEditor.


"Todor Cholakov" <t_tcholakov@prosyst.bg> wrote in message
news:bkrchp$qqr$1@eclipse.org...
> I suppose you are using (extending) the standard Java editor. Do, you?
> "David Havrda" <dhavrda@motive.com> wrote in message
> news:bkqhj6$72i$1@eclipse.org...
> > Does anyone know how to register widgets so that a cut or paste event
can
> be
> > handled? I have a mutlipage editor where each page performs some
editing
> on
> > the single source. Unlike the example you get when creating a
> > multipageeditor. That is a very poor example of a multipageeditor for
> many
> > reasons. So I have one source view and some gui/composite views. When
I
> > change page to a gui page I want to be able to cut and paste into the
> > widgets and have that be reflected on my source page. What is happening
> is
> > when I switch pages to the gui and paste in a control it is still
pasting
> on
> > my source page. Any ideas?
> >
> >
> > thx,
> > dave
> >
> >
>
>
Re: cut and paste problem with multipageeditors [message #98892 is a reply to message #98579] Thu, 25 September 2003 07:32 Go to previous message
Eclipse UserFriend
Originally posted by: t_tcholakov.prosyst.bg

look now.
the editor you have defined has a method getAdapter(Class c)
when called with "ITextOperationTarget" you should return your own instance
of this interface.
I use to make an instance containing the original action (returned by
super.getAdapter()), so when editing the source I use the original
implementation and when editing the gui I use the customized implementation.
read the help on this interface and you will find out what is to be done.
"David Havrda" <dhavrda@motive.com> wrote in message
news:bks7k2$mbc$1@eclipse.org...
> No the source page uses an editor that extends the TextEditor. I have
> another page that is a gui page with widgets. When I switch to the gui
page
> I want cut and paste events to be sent to it. Not to the TextEditor.
>
>
> "Todor Cholakov" <t_tcholakov@prosyst.bg> wrote in message
> news:bkrchp$qqr$1@eclipse.org...
> > I suppose you are using (extending) the standard Java editor. Do, you?
> > "David Havrda" <dhavrda@motive.com> wrote in message
> > news:bkqhj6$72i$1@eclipse.org...
> > > Does anyone know how to register widgets so that a cut or paste event
> can
> > be
> > > handled? I have a mutlipage editor where each page performs some
> editing
> > on
> > > the single source. Unlike the example you get when creating a
> > > multipageeditor. That is a very poor example of a multipageeditor for
> > many
> > > reasons. So I have one source view and some gui/composite views.
When
> I
> > > change page to a gui page I want to be able to cut and paste into the
> > > widgets and have that be reflected on my source page. What is
happening
> > is
> > > when I switch pages to the gui and paste in a control it is still
> pasting
> > on
> > > my source page. Any ideas?
> > >
> > >
> > > thx,
> > > dave
> > >
> > >
> >
> >
>
>
Previous Topic:Incompatible serial version between ant and eclipse
Next Topic:Search/Replace
Goto Forum:
  


Current Time: Tue Apr 29 03:05:15 EDT 2025

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

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

Back to the top