Home » Eclipse Projects » GEF » Palette alignment
Palette alignment [message #71565] |
Wed, 19 March 2003 20:04  |
Eclipse User |
|
|
|
Originally posted by: jayuen.alumni.uwaterloo.ca
Hi:
I'm using the GEF drop from Feb. 13, 2003. I was wondering if it is
possible to place the palette back on the left side of the editor rather
than the right side.
Thanks,
Jason
|
|
| | |
Re: Palette alignment [message #71856 is a reply to message #71837] |
Thu, 20 March 2003 15:13   |
Eclipse User |
|
|
|
Originally posted by: jayuen.alumni.uwaterloo.ca
It seems like I can move the palette back to the left by simply switching
the order with which the GraphicalViewer and PaletteViewer are added to the
Splitter in the GraphicalEditorWithPalette:createPartControl.
thanks anyway,
Jason
"Jason Yuen" <jayuen@alumni.uwaterloo.ca> wrote in message
news:b5d1t7$vg6$1@rogue.oti.com...
> Thanks for the heads up Randy.
>
> I'm actually just experimenting with the GraphicalEditor so I wanted to
play
> around with the layouts. I'm wondering if you could point me to the class
> or method in the GEF source that sets up the palette to appear on the
right
> hand side. I figure that this shouldn't involve a major code change since
> it used to be on the left in the older GEF drops. Or maybe not?
>
> Thanks in advance,
> Jason
>
>
>
> "Randy Hudson" <none@us.ibm.com> wrote in message
> news:b5bfia$njj$1@rogue.oti.com...
> > This is not possible for 2.1. We don't expect commercial quality Editors
> to
> > subclass GraphicalEditor. It exists to give you a quick starting point.
> But
> > based on history, at least 8 editors in IBM's Websphere tools use GEF,
and
> > none of them inherits from GraphicalEditor.
> >
> > We have made a conscious effort to have very little requirements on the
> > EditorPart. This allows applications to use GEF almost anywhere,
including
> > multi-page editors and/or composite editors. I realize it would be nice
to
> > be able to drag the Palette from the right to left side, but this is not
> > really GEF-specific function. For 2.2 we will work with the workbench
> team
> > to make the palette a View, or to make the Editor capable of hosting
> > view-like panels.
> >
> > "Jason Yuen" <jayuen@alumni.uwaterloo.ca> wrote in message
> > news:b5b430$hj8$1@rogue.oti.com...
> > > Hi:
> > >
> > > I'm using the GEF drop from Feb. 13, 2003. I was wondering if it is
> > > possible to place the palette back on the left side of the editor
rather
> > > than the right side.
> > >
> > > Thanks,
> > >
> > > Jason
> > >
> > >
> >
> >
>
>
|
|
|
Re: Palette alignment [message #84499 is a reply to message #71608] |
Thu, 19 June 2003 18:07   |
Eclipse User |
|
|
|
Originally posted by: peterarmstrong.shaw.ca
Randy Hudson wrote:
> This is not possible for 2.1. We don't expect commercial quality Editors to
> subclass GraphicalEditor. It exists to give you a quick starting point. But
> based on history, at least 8 editors in IBM's Websphere tools use GEF, and
> none of them inherits from GraphicalEditor.
Should I assume then that the intended starting point for a commercial
quality editor which uses GEF is to simply subclass EditorPart?
And is it possible to concisely state (for a GEF newbie) why it is
better to start out by subclassing EditorPart as opposed to
GraphicalEditor (i.e. does something in GraphicalEditor not scale, etc)?
(Or is it perhaps merely historical accident and not some limitation of
GraphicalEditor that none of those Websphere tools you mentioned inherit
from GraphicalEditor--maybe they were started before GraphicalEditor
existed, perhaps?)
> We have made a conscious effort to have very little requirements on the
> EditorPart. This allows applications to use GEF almost anywhere, including
> multi-page editors and/or composite editors. I realize it would be nice to
> be able to drag the Palette from the right to left side, but this is not
> really GEF-specific function. For 2.2 we will work with the workbench team
> to make the palette a View, or to make the Editor capable of hosting
> view-like panels.
Since this was written a couple months ago, has there been any decision
on whether the palette is indeed going to become a view for 2.2? And if
so, is there any estimate on which of the 2.2 release milestones this
would be slated for?
Also (another newbie question--I apologize) is there any way to wrap the
2.1 palette in a view? (I would like the palette to go in a tab where
the Navigator is, for example, so I was hoping to make a view and
somehow put the palette in it. But I haven't read enough of the code
yet to know if this is possible, or how I would access the palette to
add it...)
Thanks in advance,
Peter Armstrong
|
|
|
Re: Palette alignment [message #84510 is a reply to message #84499] |
Thu, 19 June 2003 20:36  |
Eclipse User |
|
|
|
Originally posted by: none.us.ibm.com
"Peter Armstrong" <peterarmstrong@shaw.ca> wrote in message
news:bctcbb$lnt$1@rogue.oti.com...
> Randy Hudson wrote:
> > This is not possible for 2.1. We don't expect commercial quality Editors
to
> > subclass GraphicalEditor. It exists to give you a quick starting point.
But
> > based on history, at least 8 editors in IBM's Websphere tools use GEF,
and
> > none of them inherits from GraphicalEditor.
>
> Should I assume then that the intended starting point for a commercial
> quality editor which uses GEF is to simply subclass EditorPart?
>
> And is it possible to concisely state (for a GEF newbie) why it is
> better to start out by subclassing EditorPart as opposed to
> GraphicalEditor (i.e. does something in GraphicalEditor not scale, etc)?
These is lot's of crap that you have to do to be a well behaved editor. We
don't do any of it for you. You must respond to your input being renamed,
deleted, or moved. You must respond to different versions being loaded and
replacing the current contents. You must support validate-edit, for
pessimistic team environments.
Also, there is lots of stuff we do that maybe you don't want to do. For
example, Action management, or synchronizing the selection between the
outline and editor.
Also, you might want to inherit from MultiPageEditor, or write your own
multipage implementation, or maybe you want a split pane editor. Therefore,
we try to make sure that the interesting stuff in GEF is not burried in our
editor implementation.
If there is interesting code in our editor, maybe it can be factored out?
> (Or is it perhaps merely historical accident and not some limitation of
> GraphicalEditor that none of those Websphere tools you mentioned inherit
> from GraphicalEditor--maybe they were started before GraphicalEditor
> existed, perhaps?)
>
> > We have made a conscious effort to have very little requirements on the
> > EditorPart. This allows applications to use GEF almost anywhere,
including
> > multi-page editors and/or composite editors. I realize it would be nice
to
> > be able to drag the Palette from the right to left side, but this is not
> > really GEF-specific function. For 2.2 we will work with the workbench
team
> > to make the palette a View, or to make the Editor capable of hosting
> > view-like panels.
>
> Since this was written a couple months ago, has there been any decision
> on whether the palette is indeed going to become a view for 2.2? And if
> so, is there any estimate on which of the 2.2 release milestones this
> would be slated for?
>
> Also (another newbie question--I apologize) is there any way to wrap the
> 2.1 palette in a view? (I would like the palette to go in a tab where
> the Navigator is, for example, so I was hoping to make a view and
> somehow put the palette in it. But I haven't read enough of the code
> yet to know if this is possible, or how I would access the palette to
> add it...)
>
> Thanks in advance,
> Peter Armstrong
>
|
|
|
Goto Forum:
Current Time: Tue Jul 22 03:27:52 EDT 2025
Powered by FUDForum. Page generated in 0.07600 seconds
|