|
Re: [argouml-dev] Problem with the persistence/load of diagrams.: msg#00031db.axion.devel
I'm no expert on class loaders so I'm not be able to offer any advice there. However this is obviously a problem for you so I could look at a workaround for this. It seems that you can call the constructors of your own Figs but creating by reflection has problems. So what I can do is provide an API in GEF where an application can register a factory object to create diagrams. If this factory fails to create a diagram then GEF will revert to its current method of creating by reflection. So standard ArgoUML will not be effected by this change, it is only your module that would create this factory and register it. Your factory would be something like - public class MACMASDiagramFactory extends DiagramFactory { public Diagram createDiagram(HashMap properties) { if ("org.argouml.uml.diagram.traceability.ui.MACMASTraceabilityDiagram".equals( properties.get("type")) { return new MACMASTraceabilityDiagram(); } else { return null; // If null is returned to GEF it will use reflection to create the diagram } } } I'll create some API in GEF where you can add such a factory instance into a list of factories for GEF to try before attempting reflection. I assume there'll be a similar problem with Figs and can do the same for that. How does this sound? Anyone got any better suggestions? Bob. On 13/11/06, Tom Morris <tfmorris@xxxxxxxxx> wrote: > That class is part of our module, and obviously it exists. |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | [argouml-dev] Tigris: Mailing list archives broken, or policy changed?: 00031, Thomas N. |
|---|---|
| Next by Date: | RE: [argouml-dev] Tigris: Mailing list archives broken, or policy changed?: 00031, Tom Morris |
| Previous by Thread: | RE: [argouml-dev] Problem with the persistence/load of diagrams.i: 00031, Tom Morris |
| Next by Thread: | RE: [argouml-dev] Problem with the persistence/load of diagrams.: 00031, Tom Morris |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |