Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » gef diagram in table cell
gef diagram in table cell [message #210715] Sat, 04 March 2006 15:07 Go to next message
Eclipse UserFriend
Originally posted by: alnospammajor.noboxspamspoon.com

i'm trying to put a simple gef/draw2d diagram (view only, no edit) into
a table cell. i'm guessing there's no way to do this using SWT/JFace
tables (short of creating an image from the diagram). is that right?

if so, what are other strategies that have been used. using an emulated
table like KTable? building a table using GEF/draw2d only (with some
kind of grid layout)?

thx for any suggestions.

regards,

al
Re: gef diagram in table cell [message #210741 is a reply to message #210715] Sun, 05 March 2006 16:58 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: alnospammajor.noboxspamspoon.com

i just found this

http://sourceforge.net/projects/eclipsetoolkit2/

the licensing terms are unknown, so i'm guessing no one is really using
it. it also appears to be an abandoned project.

still, if anyone has opinions on it, i'd like to know.

regards,

al
Re: gef diagram in table cell [message #210747 is a reply to message #210715] Mon, 06 March 2006 00:09 Go to previous messageGo to next message
Jeremy Dowdall is currently offline Jeremy DowdallFriend
Messages: 22
Registered: July 2009
Junior Member
Al,
As for other strategies, it may be worth looking at my code at
sourceforge.net/projects/calypsorcp.
1. In CVS is org.aspencloud.calypso.calendar: obviously, a Calendar,
which is essentially a GEF grid.
2. In the downloads (and in CVS) is org.aspencloud.widgets - my take
at an emulated TableTree which focuses on being a drop in replacement
for SWT, with the added functionality of accepting custom cells that can
contain anything you want to put on an SWT Composite (such as a
GEF/Draw2d diagram). (org.aspencloud.viewers contains a JFace style
viewer for the TableTree).

I suppose it all depends what you want your table to do...

cheers!

Al Major wrote:
> i'm trying to put a simple gef/draw2d diagram (view only, no edit) into
> a table cell. i'm guessing there's no way to do this using SWT/JFace
> tables (short of creating an image from the diagram). is that right?
>
> if so, what are other strategies that have been used. using an emulated
> table like KTable? building a table using GEF/draw2d only (with some
> kind of grid layout)?
>
> thx for any suggestions.
>
> regards,
>
> al
Re: gef diagram in table cell [message #210755 is a reply to message #210747] Mon, 06 March 2006 02:12 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: alnospammajor.noboxspamspoon.com

the screenshots look nice. i'll take a look at the code as well.

what was your rationale for rolling your own (not re-using egs. KTable
or SWTDatePicker etc.)? i'm not criticizing your decision, just want to
know your thinking.

regards,

al

Jeremy Dowdall wrote:
> Al,
> As for other strategies, it may be worth looking at my code at
> sourceforge.net/projects/calypsorcp.
> 1. In CVS is org.aspencloud.calypso.calendar: obviously, a Calendar,
> which is essentially a GEF grid.
> 2. In the downloads (and in CVS) is org.aspencloud.widgets - my take
> at an emulated TableTree which focuses on being a drop in replacement
> for SWT, with the added functionality of accepting custom cells that can
> contain anything you want to put on an SWT Composite (such as a
> GEF/Draw2d diagram). (org.aspencloud.viewers contains a JFace style
> viewer for the TableTree).
>
> I suppose it all depends what you want your table to do...
>
> cheers!
>
> Al Major wrote:
>> i'm trying to put a simple gef/draw2d diagram (view only, no edit)
>> into a table cell. i'm guessing there's no way to do this using
>> SWT/JFace tables (short of creating an image from the diagram). is
>> that right?
>>
>> if so, what are other strategies that have been used. using an
>> emulated table like KTable? building a table using GEF/draw2d only
>> (with some kind of grid layout)?
>>
>> thx for any suggestions.
>>
>> regards,
>>
>> al
Re: gef diagram in table cell [message #210874 is a reply to message #210755] Mon, 06 March 2006 15:49 Go to previous message
Jeremy Dowdall is currently offline Jeremy DowdallFriend
Messages: 22
Registered: July 2009
Junior Member
Al,
Thanks, hopefully in the next week or so I'll get time to put up an
actual website.
Well, the decision to role my own was not an easy one, mainly because
I want to be writing a contact manager and not widgets.

1. Linux GTK is our top priority, and I got fed up testing custom
widgets that only work on Windows (when you look at the code, notice all
the "if(gtk) or if(win32) clauses).

2. Some features / functionality just wasn't found - date / time masks
is one example, not using native components is another.

3. When I started I only needing a simple list of composites; I tried
the one at SWTPlus but got frustrated with its break from SWT
convention; KTable was overkill, and again, didn't follow SWT very well;
finally, seeing as how easier a simple list was to make I just went
ahead with it.
Then, of course, requirements changed... I had already written in SWT
Tables / TabelViewers and was starting to fight their limitations.
Again I looked at KTable but to my knowledge KTable does not support a
Tree, does not use a native header, and does not have a JFace style
viewer. I'm a big fan of JFace, and if you look at the implementation
code in org.aspencloud.widgets.test.CTableTests1.java you'll see that
using CTableTree / CTableTreeViewer is identical to using a SWT Tree
with Columns and TreeViewer
If I understand them correctly, the design goals of KTable, and others
I tried, are geared toward creating a Grid Control, which is not what I
need. I need a List with Columns, which looks as native as possible,
can have a Tree in any one of those columns, and is especially good at
handling expandable cells (not necessarily spanning). Thus, "it all
depends on what you want your table to do".
I think KTable and CTableTree have different enough goals to not
really be competing with each other. And if they are, then hopefully
we've both learned enough on our separate paths to be positive
influences when the Eclipse Foundation finally approves Nebula :)

sorry this has gotten a bit lengthy, and I feel I've taken up enough GEF
bandwidth for a non-GEF topic. I'd appreciate hearing your feedback
(and criticism) but maybe it should be moved to either the SWT newsgroup
or to SourceForge.

cheers!


Al Major wrote:
> the screenshots look nice. i'll take a look at the code as well.
>
> what was your rationale for rolling your own (not re-using egs. KTable
> or SWTDatePicker etc.)? i'm not criticizing your decision, just want to
> know your thinking.
>
> regards,
>
> al
>
> Jeremy Dowdall wrote:
>
>> Al,
>> As for other strategies, it may be worth looking at my code at
>> sourceforge.net/projects/calypsorcp.
>> 1. In CVS is org.aspencloud.calypso.calendar: obviously, a Calendar,
>> which is essentially a GEF grid.
>> 2. In the downloads (and in CVS) is org.aspencloud.widgets - my take
>> at an emulated TableTree which focuses on being a drop in replacement
>> for SWT, with the added functionality of accepting custom cells that can
>> contain anything you want to put on an SWT Composite (such as a
>> GEF/Draw2d diagram). (org.aspencloud.viewers contains a JFace style
>> viewer for the TableTree).
>>
>> I suppose it all depends what you want your table to do...
>>
>> cheers!
>>
>> Al Major wrote:
>>
>>> i'm trying to put a simple gef/draw2d diagram (view only, no edit)
>>> into a table cell. i'm guessing there's no way to do this using
>>> SWT/JFace tables (short of creating an image from the diagram). is
>>> that right?
>>>
>>> if so, what are other strategies that have been used. using an
>>> emulated table like KTable? building a table using GEF/draw2d only
>>> (with some kind of grid layout)?
>>>
>>> thx for any suggestions.
>>>
>>> regards,
>>>
>>> al
Previous Topic:one problem at PolylineConnection.class [GEF]
Next Topic:Realtime scrolling
Goto Forum:
  


Current Time: Wed Jan 22 09:14:28 GMT 2025

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

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

Back to the top