Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » The CTRL+Z/CTRL+Y problem in GEF TreeViewer
The CTRL+Z/CTRL+Y problem in GEF TreeViewer [message #189951] Mon, 01 August 2005 12:07 Go to next message
zhang wei is currently offline zhang weiFriend
Messages: 84
Registered: July 2009
Member
Hi all,

My editor is multi-page editor, one is use GEF TreeViewer,
another is TextEditor.

When my editor is opened, the first page(GEF TreeViewer) is shown,
and it implements DND and Undo/Redo(include CTRL+Z/CTRL+Y).

Then I click the second page(TextEditor), the TextEditor is active,
then click the first page, the TreeViewer is reactive.

Now, when I press CTRL+Z/CTRL+Y, there is nothing happend.
But click "Edit"->"Undo"/"Redo" the action is OK.

Why CTRL+Z/CTRL+Y is OK by editor open, but it broken when the
active page change and change(TreeViewer->TextEditor->TreeViewer)?

THX
Re: The CTRL+Z/CTRL+Y problem in GEF TreeViewer [message #189997 is a reply to message #189951] Mon, 01 August 2005 16:18 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: none.unknown.com

Search for discussions about MultiPageEditorPart on this newsgroup.

"wei zhang" <zhang-wei@sinocom.cn> wrote in message
news:fba0c31d52520443eb648e30e18a6528$1@www.eclipse.org...
> Hi all,
>
> My editor is multi-page editor, one is use GEF TreeViewer,
> another is TextEditor.
>
> When my editor is opened, the first page(GEF TreeViewer) is shown,
> and it implements DND and Undo/Redo(include CTRL+Z/CTRL+Y).
>
> Then I click the second page(TextEditor), the TextEditor is active,
> then click the first page, the TreeViewer is reactive.
>
> Now, when I press CTRL+Z/CTRL+Y, there is nothing happend.
> But click "Edit"->"Undo"/"Redo" the action is OK.
>
> Why CTRL+Z/CTRL+Y is OK by editor open, but it broken when the
> active page change and change(TreeViewer->TextEditor->TreeViewer)?
>
> THX
>
>
AbstractGraphicalEditPart, EditPartFactory, EditPart, Command restricted api?? [message #190013 is a reply to message #189997] Mon, 01 August 2005 16:41 Go to previous messageGo to next message
Alberto Ricart is currently offline Alberto RicartFriend
Messages: 33
Registered: July 2009
Member
Hello,

After upgrading to 3.1, it seems my environment has gone haywire. For
some reason standard gef things mentioned in examples, etc, like
AbstractGraphicalEditPart, EditPartFactory, EditPart, Command are shown
in the IDE as restricted api.

Are these things indeed restricted, or is there some defect in the
packaging of GEF 3.1.0. I am running on eclipse 3.1 build 20050707158.


Thanks,

/a
Re: AbstractGraphicalEditPart, EditPartFactory, EditPart, Command restricted api?? [message #190038 is a reply to message #190013] Mon, 01 August 2005 18:51 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: none.unknown.com

"Alberto Ricart" <aricart@tibco.com> wrote in message
news:dcljav$7rt$1@news.eclipse.org...
> Hello,
>
> After upgrading to 3.1, it seems my environment has gone haywire. For
> some reason standard gef things mentioned in examples, etc, like
> AbstractGraphicalEditPart, EditPartFactory, EditPart, Command are shown
> in the IDE as restricted api.
>
> Are these things indeed restricted, or is there some defect in the
> packaging of GEF 3.1.0. I am running on eclipse 3.1 build 20050707158.

Neither. There is no such 20050707 build that I know of. Did you download
GEF from update manager? Restart Eclipse with -clean option to see if that
helps.

>
>
> Thanks,
>
> /a
Re: AbstractGraphicalEditPart, EditPartFactory, EditPart, Command restricted api?? [message #190066 is a reply to message #190038] Mon, 01 August 2005 20:15 Go to previous messageGo to next message
Alberto Ricart is currently offline Alberto RicartFriend
Messages: 33
Registered: July 2009
Member
Thanks Pratik - the -clean option didn't do anything for me. On further
checking, I don't seem to be the only one with this issue. The two other
folks working on eclipse in my group, also have the same problem.

Our environments are the same in that we use, EMF 2.1.0, GEF 3.1.0, and
the subeclipse plugin. I wouldn't think that the team provider would
affect anything with regards to API accessibilty.

Sorry, I don't know where I read the previous eclipse version numbers
from, the correct eclipse build is 20050627-1435

org.eclipse.gef (3.1.0) "Graphical Editing Framework"
org.eclipse.gef.examples (3.1.0) "GEF Examples"
org.eclipse.gef.sdk (3.1.0) "Graphical Editing Framework Developer
Resources"
org.eclipse.gef.source (3.1.0) "Graphical Editing Framework Developer
Resources"
org.eclipse.jdt (3.1.0) "Eclipse Java Development Tools"

I we don't change the access restrictions, we are unable to build our
project. This is only affecting GEF code.

/a



Pratik Shah wrote:
> "Alberto Ricart" <aricart@tibco.com> wrote in message
> news:dcljav$7rt$1@news.eclipse.org...
>
>>Hello,
>>
>>After upgrading to 3.1, it seems my environment has gone haywire. For
>>some reason standard gef things mentioned in examples, etc, like
>>AbstractGraphicalEditPart, EditPartFactory, EditPart, Command are shown
>>in the IDE as restricted api.
>>
>>Are these things indeed restricted, or is there some defect in the
>>packaging of GEF 3.1.0. I am running on eclipse 3.1 build 20050707158.
>
>
> Neither. There is no such 20050707 build that I know of. Did you download
> GEF from update manager? Restart Eclipse with -clean option to see if that
> helps.
>
>
>>
>>Thanks,
>>
>>/a
>
>
>
Re: AbstractGraphicalEditPart, EditPartFactory, EditPart, Command restricted api?? [message #190266 is a reply to message #190066] Tue, 02 August 2005 22:41 Go to previous message
Eclipse UserFriend
Originally posted by: none.unknown.com

Let's not hijack Wei Zhang's thread here. Start a new thread if this
problem persists. Answer the following in there:

What's the "team provider"? Seeing as how your team is the only one
experiencing this problem, that could very well be the cause.
What exactly do the warnings/errors say? Discouraged access? Perhaps it's
because of a setting in your workspace or plugin somewhere?

"Alberto Ricart" <aricart@tibco.com> wrote in message
news:42EE82F1.6060205@tibco.com...
> Thanks Pratik - the -clean option didn't do anything for me. On further
> checking, I don't seem to be the only one with this issue. The two other
> folks working on eclipse in my group, also have the same problem.
>
> Our environments are the same in that we use, EMF 2.1.0, GEF 3.1.0, and
> the subeclipse plugin. I wouldn't think that the team provider would
> affect anything with regards to API accessibilty.
>
> Sorry, I don't know where I read the previous eclipse version numbers
> from, the correct eclipse build is 20050627-1435
>
> org.eclipse.gef (3.1.0) "Graphical Editing Framework"
> org.eclipse.gef.examples (3.1.0) "GEF Examples"
> org.eclipse.gef.sdk (3.1.0) "Graphical Editing Framework Developer
> Resources"
> org.eclipse.gef.source (3.1.0) "Graphical Editing Framework Developer
> Resources"
> org.eclipse.jdt (3.1.0) "Eclipse Java Development Tools"
>
> I we don't change the access restrictions, we are unable to build our
> project. This is only affecting GEF code.
>
> /a
>
>
>
> Pratik Shah wrote:
> > "Alberto Ricart" <aricart@tibco.com> wrote in message
> > news:dcljav$7rt$1@news.eclipse.org...
> >
> >>Hello,
> >>
> >>After upgrading to 3.1, it seems my environment has gone haywire. For
> >>some reason standard gef things mentioned in examples, etc, like
> >>AbstractGraphicalEditPart, EditPartFactory, EditPart, Command are shown
> >>in the IDE as restricted api.
> >>
> >>Are these things indeed restricted, or is there some defect in the
> >>packaging of GEF 3.1.0. I am running on eclipse 3.1 build 20050707158.
> >
> >
> > Neither. There is no such 20050707 build that I know of. Did you
download
> > GEF from update manager? Restart Eclipse with -clean option to see if
that
> > helps.
> >
> >
> >>
> >>Thanks,
> >>
> >>/a
> >
> >
> >
Previous Topic:Hide Selection of EditPart Figures
Next Topic:Bringing figures to top
Goto Forum:
  


Current Time: Thu Apr 25 18:58:15 GMT 2024

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

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

Back to the top