So I am using last nights build (Eric fixed a bug..)
and I dropped attached into the plugins directory.
Steve
Ok - so I still have a problem... when did this interface
become available? I have N20080318 but this doesn't have an IArtifactComponent
interface in it.
So, I'm still a bit lost here.
Thanks,
JohnW
Hi John,
I am ashamed... I forgot about your email. Apologies. (the truth is...
Steve probably knew)... so using the tigerstripe-dev@xxxxxxxxxxx...
could have helped here ;-)
The current mechanism is very rudimentary, but allows to get the value of
the annotation based on two keys that would identify it completely.
So on any IArtifactComponent (artifacts, methods, attributes, etc..), you
can do:
$artifact.getAnnotation( "<schemeID>",
"<annotationSpecId>")
both IDs are the strings defined in your Annotation extension point. This
will return a String containing the value or null if no value.
Eric
On Mar 26, 2008, at 8:12 AM, John Worrell (jworrell) wrote:
Thanks richard...
Hi jim / Eric... any pointers?
Thanks,
JohnW
John,
sorry I had to go out for bit.
Err.. Well no - I have not played with the new stuff as
yet!
Eric, Jim might be able to shed some
light
RC
Any ideas?
Thanks,
JohnW
The new stuff - I have been using the existing ones
happily for a good while now.
Thanks,
JohNW
Are you talking new OS - style annotations, or the
stereotypes we had before?
Hi Richard / Duncan,
Are you able to help?
Thanks,
JohNW
Hi
Eric,
Could you point me
to where I access the annotations when I am in a generation plugin, please?
Been hunting and had no joy so far.
Thanks,
JohnW
|