Login | Register
My pages Projects Community openCollabNet

Discussions > dev > notes on persistence

gef
Discussion topic

Back to topic list

notes on persistence

Reply

Author esp
Full name Edwin Park
Date 2000-06-07 22:58:37 PDT
Message These are the files I checked in two weeks ago pertaining to GEF PGML
persistence functionality, along with descriptions of what was done in
each:

gef/dist/src/uci/gef/Fig.java

  This was a hack to the getId() method so it would return a value even
if the layer was null. Otherwise this would throw a null pointer
exception during a PGML save, which calls getId() on all the Figs.

gef/dist/src/uci/gef​/FigEdge.java

  Added a call to set the Layer in the constructor and in setFig().

gef/dist/src/uci/gef​/NetList.java
gef/dist/src/uci/gef​/NetPort.java
gef/dist/src/uci/gef​/NetPrimitive.java
gef/dist/demos/src/u​ci/gef/demo/EdgeData​.java
gef/dist/demos/src/u​ci/gef/demo/EdgePowe​r.java
gef/dist/demos/src/u​ci/gef/demo/NodeCPU.​java
gef/dist/demos/src/u​ci/gef/demo/NodePrin​ter.java
gef/dist/demos/src/u​ci/gef/demo/NodeWall​.java
gef/dist/demos/src/u​ci/gef/demo/SampleEd​ge.java
gef/dist/demos/src/u​ci/gef/demo/SampleEd​ge2.java
gef/dist/demos/src/u​ci/gef/demo/SampleNo​de.java

  Added a getId() method which returns a String ID.


Instead of overriding the abstract String getId() method in NetPrimitive
in all child classes, I think it would be better to have a default
mechanism to generate IDs (in the constructor, or called from the
constructor), and have a default getId() method that will return it.

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

Messages

Show all messages in topic

notes on persistence esp Edwin Park 2000-06-07 22:58:37 PDT
     Re: [gef-dev] notes on persistence jolt Jim Holt 2000-06-08 04:13:50 PDT
         Re: [gef-dev] notes on persistence esp Edwin Park 2000-06-08 06:58:17 PDT
             Re: [gef-dev] notes on persistence jolt Jim Holt 2000-06-08 16:07:00 PDT
                 Re: [gef-dev] notes on persistence jolt Jim Holt 2000-06-08 16:08:45 PDT
     RE: [gef-dev] notes on persistence Austin Bingham <abingham at lips dot utexas dot edu> Austin Bingham <abingham at lips dot utexas dot edu> 2000-06-08 07:21:54 PDT
Messages per page: