[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform.swt] Re: lightweight Composite?

Sunil Kamath wrote:
"Paul Singleton" <paul@xxxxxxxx> wrote in message news:ddndvk$7is$1@xxxxxxxxxxxxxxxxxxx

I want to represent some structured data with a
hierarchy of Composites, using different colours,
border, fonts etc. to represent different types
of node.

I have this working in another system (SWI-Prolog's
XPCE) and want to port it to SWT, using SWT facilities
for layouts, DnD, selection, context menus etc.

But I'm worried about the feasibility of having
perhaps many thousands of Composites - will users
run out of graphics handles or whatever?

Would it be arduous to emulate a Composite with a Draw2D
Figure?  Ideally I'd like to be able to embed real SWT
controls, but if not, it would still be useful...

Check out the VE framework for drawing SWT widgets using GEF.

OK I've checked it out: VE apparently creates the entire widget hierarchy offscreen, screengrabs and copies their pixels onto its own canvas and then implements its own editing operations.

But I'm not sure how this helps me implement lightweight
controls with SWT event handling...

Paul Singleton