Forums

F.A.Q. F.A.Q.    Register Register    Login Login    Home Home
Search Search
SBML Discussions » jsbml-development » Eclipse templates for new JSBML classes
Show: Today's Posts  :: Message Navigator
| Subscribe to topic 
Return to the default flat view Create a new topic Submit Reply
AuthorTopic
Andreas Dräger


Posts: 273
Registered:
June 2006
Re: Eclipse templates for new JSBML classes 25 Apr '12 22:22 Go to previous message

Am 4/24/12 12:14 PM, schrieb Nicolas Rodriguez:
> Not a big deal but sometime, you have classes that do not have id so may
> be we could have two constructor templates ?
>
> Also, in writeXMLAttributes, you don't need to do
>
> // attributes.remove("validationXMLAllchecks");
>
> for each attribute, only for the attribute that are already present in
> the extended core classes.
> So only for id and name in fact. We could do an AbstractExtNamedSBase
> that would implement only the
> writeXMLAttributes for id and name so that we don't need to do that on
> every NamedSBase in the extensions.
>
> It is still on my todo list to update the user guide about these
> read/write XML attributes methods btw, I haven't forgotten :-)
>
>

Hi,

Maybe it won't always be possible to extend AbstractExtNamedSBase in
extension packages because the specifications sometimes may define an
inheritance structure that might require a different inheritance
relationship. But I agree, if possible we should use such a class.

By the way, some time ago I also proposed another change. Here is my
previous text:

I would like to ask why we decided that the interface
SBasePlugin does not extend the interface TreeNodeWithChangeSupport and
why the abstract class AbstractSBasePlugin does not extend
AbstractTreeNode. I understand that extensions to some SBase are not a
separate TreeNode, but since the getChildAt(int) method simply excludes
extension elements anyway (but not their children), we could avoid a
duplication of code by making AbstractSBasePlugin a derivative of
AbstractTreeNode (all other methods seem to be simimilar).

In this way, it would also become possible to maintain userObjects
within instances of SBasePlugin, which is not possible at the moment (it
would again require a duplication of code).


Cheers
Andreas

--
Dr. Andreas Dräger
University of Tuebingen
Center for Bioinformatics Tuebingen (ZBIT)
Sand 1
72076 Tübingen
Germany

Phone: +49-7071-29-78982
Fax: +49-7071-29-5091

____________________________________________________________
To manage your jsbml-development list subscription, visit
https://utils.its.caltech.edu/mailman/listinfo/jsbml-development

For a web interface to the jsbml-development mailing list, visit
http://sbml.org/Forums/

For questions or feedback about the jsbml-development list,
contact sbml-team@caltech.edu

      

SubjectPosterDate
Read Message   Eclipse templates for new JSBML classes finja.buechel16 Apr '12 06:48
Read Message   Re: Eclipse templates for new JSBML classes rodrigue16 Apr '12 08:54
Read Message   Re: Eclipse templates for new JSBML classes rodrigue16 Apr '12 08:57
Read Message   Re: Eclipse templates for new JSBML classes rodrigue16 Apr '12 09:11
Read Message   Re: Eclipse templates for new JSBML classes Mike Hucka23 Apr '12 10:06
Read Message   Re: Eclipse templates for new JSBML classes rodrigue24 Apr '12 02:20
Read Message   Re: Eclipse templates for new JSBML classes Mike Hucka24 Apr '12 07:02
Read Message   Re: Eclipse templates for new JSBML classes finja.buechel24 Apr '12 02:54
Read Message   Re: Eclipse templates for new JSBML classes rodrigue24 Apr '12 03:14
Read Message   Re: Eclipse templates for new JSBML classes  Andreas Dräger25 Apr '12 22:22
Previous Topic:jsbml-svn commit list added
Next Topic:SBML Layout Extension: New convenient abstract class NamedSBaseGlyph
Go to forum:
-=] Back to Top [=-

Powered by FUDforum. (Copyright Advanced Internet Designs Inc.)

Please use our issue tracking system for any questions or suggestions about this website.