|Re: Dockable Views [message #446610]
||Mon, 29 November 2004 12:40
| No real name
Registered: July 2009
I came across a port of the docking implementation for SharpWT (.NET's
version of SWT). The docking classes had been isolated so I ported it back
to java and made a few changes to remove dependencies on runtime.jar and
osgi.jar (and most of jface.jar).
The drag and drop is a buggy on occasion and there are no floatable windows.
I dont expect anyone will continue development of this version since (apart
from the odd bug fix) it uses the Eclipse 2.1 code, so I didnt check it in
to CVS. I put a small webpage online for those who are interested.
"Stefan Xenos" <sxenos@__DELETEME__ca.ibm.com> wrote in message
> There is no API for this yet, although there have been some discussions
> about refactoring this code into a form that could become API in the
> Forget about IPageLayout -- it's just used for initialization.
> The object that manages the dockable portion of the workbench is called
> PartSashContainer. The parts that get arranged in the layout are
> instances of LayoutPart, although most its immediate children are
> Most of the logic for the layout algorithm is in LayoutTree and
> subclasses (it's essentially a KD tree). If you only care about the
> layouts bits (resizable sashes without drag/drop, stacking, and
> persistence) then this is all you'll need.
> The main entry point for all drag/drop layout operations is in
> org.eclipse.ui.internal.dnd.DragUtil#performDrag. This package is
> largely self-contained.
> If you manage to refactor this into a reusable module, please consider
> contributing it back to the Eclipse code base so that everyone can
> Good luck.
> - Stefan
> Jayshan wrote:
> > Hi,
> > I'm interested in knowing if anyone has done this aswell (before I take
> > crack at it myself). I understand that RCP gives this functionality,
> > think 4.8M is too high a price for a docking interface. I've also looked
> > RCPLite, but sadly this doesnt include the IPageLayout/IFolderLayout
> > (which i assume are the ones providing this functionality).
> > Has anyone out there managed to separate out the dockable views portion
> > code from eclipse or does anyone know of any open-source MDI support for
> > applications?
> > If not, can someone point me in the right direction on getting started?
> > Thanks,
> > Jayshan.
> > "John Lewis" <firstname.lastname@example.org> wrote in message
> > news:email@example.com...
> >>Thanks, I found the RCP tutorials and newsgroup...
> >>John Lewis wrote:
> >>>I'm trying to obtain information on implementing dockable views as
> >>>in eclipse with a standalone swt application. I haven't found any
> >>>example applications, nor snippets that demonstrate this behavior for a
> >>>stand-alone app.
> >>>Is there an example application anyone can suggest and/or snippet that
> >>>can be provided that basically shows one (or two) view(s) in a
> >>>that is dockable?
Powered by FUDForum
. Page generated in 0.01317 seconds