Login | Register
My pages Projects Community openCollabNet

Discussions > dev > Re: giant

antelope
Discussion topic

Back to topic list

Re: giant

Author Bob Tarling <bob dot tarling at ntlworld dot com>
Full name Bob Tarling <bob dot tarling at ntlworld dot com>
Date 2004-04-16 11:23:57 PDT
Message >It looks like you have a lot more code, though. I suppose that
>is partly because you're constructing a complete application
>Antelope has a sax handler that reads the build
>file and constructs a TreeModel for a JTree
Yes it is probably the XML parsing that is the majority of my code.

>I'm just reading the tree
> model to pick off the targets and dependencies to create the gef graph.
TargetNode is the name of my graph node class representing a target. My
thoughts were to make this implement TreeNode also so it is the same model
representing a tree item as a diagram item.

> What are your thoughts about saving? How is your saved file going to
> relate to the original build file, or how are you thinking to keep them
> in sync?
When the user attempts to load ????.xml giant also looks for a file called
????.giant which contains the positional information from last save. If it
can't find it it attempts to lay out the diagram itself.

At the moment save doesn't save ????.xml because I haven't got as far as
actually editing the ant script (and won't bother now assuming we go ahead
with a merge). The save just saves ????.giant which is a file looking
something like this -

<?xml version="1.0" encoding="UTF-8"?>
<project>
    <target height="40" name="list-property-files" width="70" x="3120"
y="224">
        <depends name="init" points="(3158,224);(​3158,72)"/>
    </target>
    <target height="48" name="init" width="3472" x="24" y="24"/>
    <target height="48" name="ant.optional.init" width="296" x="120"
y="632">
        <depends name="init" points="(192,632);(1​92,72)"/>
    </target>
....
...

I've attached a couple of demo files, place both in the same directory and
use giant to open build.xml. When loaded use the zoom button so you can see
the whole picture. The split screen feature is nice too, note the splitter
bar at the bottom of the diagram panel.

Once I had development at a further stage I was going to announce on the ant
dev list and hopefully start discussions about introducing new attributes
and elements into standard ant for saving diagram in with script. At the
very least using namespaces but this could look messy.

In fact I had considered emailing themselves and yourself and suggesting a
merging of talents from giant, antelope and antidote. Have you ever been in
touch with the ant guys with such an idea, it looks like you're further
ahead than their antidote team.

I leave on holiday in 2 days and have done absolutely no preparation so I'm
not sure what I might have time to look at before then. I'll be back 2 weeks
later.

We must talk more.....

Bob.

BTW - my open source history

First ever project was http://argouml.tigris.org where I am developer.
The http://toolbar.tigris.org project was my first own mini-project to
improve toolbars in ArgoUML.
I took over http://gef.tigris.org as project lead mainly due to lack of
support and we on ArgoUML had many requirements.
I started http://giant.tigris.org and http://xstream.tigris.org in order to
give myself a none ArgoUML perspective of GEF. There are meny features of
GEF that ArgoUML doesn't use and with lead role I wanted to make sure I
became familiar.
The projects http://swidgets.tigris.org, http://mdiworkbench.tigris.org and
http://syntalight.tigris.org are all mini projects for commonly used
controls in all my other apps.
The http://lazer.tigris.org is an old private project which I've resucitated
for the Syntalight project.

Most of my development work is currently on developing xstream and
supporting ArgoUML/GEF.


----- Original Message -----
From: "Dale Anson" <danson@germane-s​oftware.com>
To: <dev at antelope dot tigris dot org>
Sent: Thursday, April 15, 2004 9:44 PM
Subject: Re: giant


> Yes, I did. It seems to be surprisingly similar to what I've done in
> Antelope. It looks like you have a lot more code, though. I suppose that
> is partly because you're constructing a complete application, where I'm
> leveraging existing code in Antelope for the gui support and xml
> parsing. I also don't have a good layout going yet, the targets just get
> placed by default, and I don't have any way to save. I do have support
> for entity included files and file imported from Ant's <import> task,
> again by virtue of leveraging the xml parsing already existing in
> Antelope. Basically, Antelope has a sax handler that reads the build
> file and constructs a TreeModel for a JTree. I'm just reading the tree
> model to pick off the targets and dependencies to create the gef graph.
>
> What are your thoughts about saving? How is your saved file going to
> relate to the original build file, or how are you thinking to keep them
> in sync?
>
> Dale
>
>
> PS -- I checked in the dependency viewer code for Antelope. It's in cvs,
> but not in the distribution files yet. If you grab the cvs files, you
> can build it yourself, which should be fairly painless. You'll need to
> copy gef.jar into the antelope/lib directory, then compile and with the
> build-app.xml file:
>
> ant -f build-app.xml compile runBuilder
>
> Let me know if you get a chance to take a look. The gef-specific files
> are in the ise.antelope.common.dependency package. When are you headed
> out on vacation?
>
>
>
>
> bob dot tarling at ntlworld dot com wrote:
> > Hi Dale
> >
> > Have you had a chance to look at the prerelease yet?
> >
> > Bob.
> >
> > --------------------​--------------------​-
> > Email provided by http://www.ntlhome.com/
> >
> >
> >
> > --------------------​--------------------​--------------------​---------
> > To unsubscribe, e-mail: dev-unsubscribe@ante​lope.tigris.org
> > For additional commands, e-mail: dev-help at antelope dot tigris dot org
> >
>
> --------------------​--------------------​--------------------​---------
> To unsubscribe, e-mail: dev-unsubscribe@ante​lope.tigris.org
> For additional commands, e-mail: dev-help at antelope dot tigris dot org
>
>
Attachments

« Previous message in topic | 3 of 6 | Next message in topic »

Messages

Show all messages in topic

giant bob dot tarling at ntlworld dot com bob dot tarling at ntlworld dot com 2004-04-15 07:57:18 PDT
     Re: giant Dale Anson <danson at germane-software dot com> Dale Anson <danson at germane-software dot com> 2004-04-15 13:44:32 PDT
         Re: giant Bob Tarling <bob dot tarling at ntlworld dot com> Bob Tarling <bob dot tarling at ntlworld dot com> 2004-04-16 11:23:57 PDT
             Re: giant Dale Anson <danson at germane-software dot com> Dale Anson <danson at germane-software dot com> 2004-04-16 12:34:51 PDT
                 Re: giant Bob Tarling <bob dot tarling at ntlworld dot com> Bob Tarling <bob dot tarling at ntlworld dot com> 2004-05-20 09:09:09 PDT
                     Re: giant Dale Anson <danson at germane-software dot com> Dale Anson <danson at germane-software dot com> 2004-05-20 16:19:36 PDT
Messages per page: