Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Re: Dockable Views
Re: Dockable Views [message #446610] Mon, 29 November 2004 12:40
No real name is currently offline No real nameFriend
Messages: 12
Registered: July 2009
Junior Member
Hi all,
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.

http://www.doc.ic.ac.uk/~jr200/wiki/doku.php?id=swtdock:main

Jayshan.


"Stefan Xenos" <sxenos@__DELETEME__ca.ibm.com> wrote in message
news:co8712$p55$1@www.eclipse.org...
> 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
future.
>
> 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
> PartStacks.
>
> 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
benefit.
>
> Good luck.
>
> - Stefan
>
> Jayshan wrote:
> > Hi,
> > I'm interested in knowing if anyone has done this aswell (before I take
a
> > crack at it myself). I understand that RCP gives this functionality,
but I
> > think 4.8M is too high a price for a docking interface. I've also looked
at
> > RCPLite, but sadly this doesnt include the IPageLayout/IFolderLayout
classes
> > (which i assume are the ones providing this functionality).
> >
> > Has anyone out there managed to separate out the dockable views portion
of
> > code from eclipse or does anyone know of any open-source MDI support for
SWT
> > applications?
> >
> > If not, can someone point me in the right direction on getting started?
> >
> > Thanks,
> > Jayshan.
> >
> >
> > "John Lewis" <test@yahoo.com> wrote in message
> > news:cjimq5$p4b$1@eclipse.org...
> >
> >>Thanks, I found the RCP tutorials and newsgroup...
> >>John Lewis wrote:
> >>
> >>>I'm trying to obtain information on implementing dockable views as
found
> >>>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
workbench
> >>>that is dockable?
> >
> >
> >
Previous Topic:How to get WinXP lightblue Menu style
Next Topic:Forcing a table to scroll horizontally
Goto Forum:
  


Current Time: Sun Oct 25 14:52:54 GMT 2020

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

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

Back to the top