<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>

<channel>
	<title>abstratt: news from the front</title>
	<atom:link href="http://abstratt.com/blog/feed/" rel="self" type="application/rss+xml" />
	<link>http://abstratt.com/blog</link>
	<description>A company obsessed with one single goal: stopping people from writing so much code</description>
	<pubDate>Mon, 08 Feb 2010 08:06:08 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5.1</generator>
	<language>en</language>
			<item>
		<title>UML may suck, but is there anything better?</title>
		<link>http://abstratt.com/blog/2010/02/08/uml-may-suck-but-is-there-anything-better/</link>
		<comments>http://abstratt.com/blog/2010/02/08/uml-may-suck-but-is-there-anything-better/#comments</comments>
		<pubDate>Mon, 08 Feb 2010 08:06:08 +0000</pubDate>
		<dc:creator>rafael.chaves</dc:creator>
		
		<category><![CDATA[Eclipse]]></category>

		<category><![CDATA[UML]]></category>

		<category><![CDATA[editorial]]></category>

		<guid isPermaLink="false">http://abstratt.com/blog/?p=117</guid>
		<description><![CDATA[UML has been getting a lot of criticism from all sides, even from the modeling community. Sure, it has its warts:

it is a huge language, that wants to be all things to all kinds of people (business analysts, designers, developers, users)
it has a specification that is lengthy, hard to navigate and often vague, incomplete or [...]]]></description>
			<content:encoded><![CDATA[<p>UML has been getting a lot of criticism from all sides, even from the modeling community. Sure, it has its warts:</p>
<ul>
<li>it is a huge language, that wants to be all things to all kinds of people (business analysts, designers, developers, users)</li>
<li>it has a specification that is lengthy, hard to navigate and often vague, incomplete or inconsistent</li>
<li>it is modular, but its composition mechanism (package merging) is esoteric and not well understood by most</li>
<li>it is extensible, but language extensions (profiles and stereotypes) are 2nd-class citizens</li>
<li>it lacks a reference implementation</li>
<li>its model interchange specification is so vague that often two valid implementations won&#8217;t work with each other</li>
<li>its committees work behind closed doors, there is no opportunity for non-members to provide feedback on specifications while they are in progress (membership is paid)</li>
<li><em>&lt;add your own grudges here&gt;</em></li>
</ul>
<p>However, even though I see a lot of room for improvement, <em>I still don&#8217;t think there is anything better out there</em>. The more I become familiar with the UML specification, the more impressed I am about its completeness, and how issues I had never thought about before were dealt with by its designers. And it seems that the OMG recognizes some of the issues I raised above as shortcomings and is working towards addressing them. Unfortunately, some fundamental problems are likely to remain.</p>
<p>In my opinion (hey, this is my blog!), for a modeling language to beat UML:</p>
<ul>
<li>it must be general purpose, not tailored to a specific architecture or style of software</li>
<li>it must not be tailored to an implementation language</li>
<li>it must be based on or compatible with the object paradigm</li>
<li>it must not be limited to one of the dominant aspects of software (state, structure, behavior)</li>
<li>it must be focused on executability/code generation (and thus suitable for MDD) as opposed to documentation/communication</li>
<li>it must be modular, and user extensions should be 1st class citizens</li>
<li>its specification should follow an open process</li>
<li>it must not be owned/controlled by a single company</li>
<li>it must not require royalties for adoption/implementation</li>
</ul>
<p>My suspicion is that the next modeling language that will beat the UML as we know today is <em>the future major release of UML</em>. Honestly, I would rather see a new modeling language built from scratch, focused on building systems, that didn&#8217;t carry all that requirement/communication/documentation-oriented crap^H^H^H^Hbaggage that UML has (yes, I am talking about you, use case, sequence, instance and collaboration diagrams!), and developed in a more open and agile process than the OMG can possibly do. But I am not hopeful. The current divide between general purpose and domain specific modeling communities is not helping either.</p>
<p>So, what is your opinion? Do you think there are any better alternatives that address the shortcomings of UML without imposing any significant caveats of their own? Have your say.</p>
]]></content:encoded>
			<wfw:commentRss>http://abstratt.com/blog/2010/02/08/uml-may-suck-but-is-there-anything-better/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Myths that give model-driven development a bad name</title>
		<link>http://abstratt.com/blog/2010/02/06/myths-that-give-model-driven-development-a-bad-name/</link>
		<comments>http://abstratt.com/blog/2010/02/06/myths-that-give-model-driven-development-a-bad-name/#comments</comments>
		<pubDate>Sat, 06 Feb 2010 07:58:38 +0000</pubDate>
		<dc:creator>rafael.chaves</dc:creator>
		
		<category><![CDATA[Eclipse]]></category>

		<category><![CDATA[editorial]]></category>

		<guid isPermaLink="false">http://abstratt.com/blog/?p=168</guid>
		<description><![CDATA[It seems that people that resist the idea of model-driven development (MDD) do so because they believe no tool can have the level of insight a programmer can. They are totally right about that last part. But that is far from being the point of MDD anyways. However, I think that unfortunate misconception is one [...]]]></description>
			<content:encoded><![CDATA[<p>It seems that people that resist the idea of model-driven development (MDD) do so because they believe <strong>no tool can have the level of insight a programmer can</strong>. They are totally right about that last part. But that is far from being the point of MDD anyways. However, I think that unfortunate misconception is one of the main reasons MDD hasn&#8217;t caught on yet. Because of that, I thought it would be productive to explore this and other myths that give MDD a bad name.</p>
<p><strong>Model-driven development myths</strong></p>
<p>Model-driven development <strong>makes programmers redundant</strong>. MDD helps with the boring, repetitive work, leaving more time for programmers to focus on the intellectually challenging aspects. Programmers are still needed to model a solution, albeit using a more appropriate level of abstraction. And programmers are still needed to encode implementation strategies in the form of reusable code generation templates or model-driven runtime engines.</p>
<p>Model-driven development <strong>enables business analysts to develop software</strong> (a variation of the previous myth). The realm of business analysts is the problem space. They usually don&#8217;t have the skills required to devise a solution in software. Tools cannot bridge that gap. Unless the mapping between the problem space and solution space is really trivial (but then you wouldn&#8217;t want to do that kind of trivial job anyways, right?).</p>
<p>Model-driven development <strong>generates an initial version of the code</strong> that can be manually maintained from there on. That is not model-driven, it is model-started at most. Most of the benefits of MDD are missed unless models truly drive development.</p>
<p>Model-driven development <strong>involves round-trip engineering</strong>. In MDD, models are king, 3GL source code is object code, models are the source. The nice abstractions from the model-level map to several different implementation artifacts that capture some specific aspect of the original abstraction, combined with implementation-related aspects. That mapping is not without loss of information, so it is usually not reversible in a practical way, even less so if the codebase is manually maintained (and thus inherently inconsistent/ill-formed). More on this in <a href="http://abstratt.com/blog/2009/05/03/on-code-being-model/">this older post</a>, pay attention to the comments as well.</p>
<p>Model-driven development <strong>is an all or nothing proposition</strong>. You use MDD where it is beneficial, combining with manually developed artifacts and components where appropriate. But avoid mixing manual written code with automatically generated code in the same artifact.</p>
<p>What is your opinion? Do you agree these are myths? Any other myths about MDD that give it a bad name that you have seen being thrown around?</p>
<p>Rafael</p>
]]></content:encoded>
			<wfw:commentRss>http://abstratt.com/blog/2010/02/06/myths-that-give-model-driven-development-a-bad-name/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Interview at Modeling-Languages.com</title>
		<link>http://abstratt.com/blog/2010/01/25/interview-at-modeling-languagescom/</link>
		<comments>http://abstratt.com/blog/2010/01/25/interview-at-modeling-languagescom/#comments</comments>
		<pubDate>Tue, 26 Jan 2010 04:13:18 +0000</pubDate>
		<dc:creator>rafael.chaves</dc:creator>
		
		<category><![CDATA[Eclipse]]></category>

		<category><![CDATA[TextUML Toolkit]]></category>

		<category><![CDATA[editorial]]></category>

		<guid isPermaLink="false">http://abstratt.com/blog/?p=166</guid>
		<description><![CDATA[Last December I had the pleasure of being interviewed by Jordi Cabot, the maintainer of Modeling-Languages.com, a web site on all things moden-driven. We talked mostly about the TextUML Toolkit project, but Jordi also asked about my opinions on more general subjects, such as modeling notations, textual modeling frameworks, DSLs, UML and trends in modeling.
Jordi [...]]]></description>
			<content:encoded><![CDATA[<p>Last December I had the pleasure of being <a href="http://modeling-languages.com/blog/content/coffee-rafael-chaves-textuml-toolkit">interviewed</a> by Jordi Cabot, the maintainer of <a href="http://modeling-languages.com/blog/content/coffee-rafael-chaves-textuml-toolkit">Modeling-Languages.com</a>, a web site on all things moden-driven. We talked mostly about the <a href="http://abstratt.com/textuml/">TextUML Toolkit</a> project, but Jordi also asked about my opinions on more general subjects, such as modeling notations, textual modeling frameworks, DSLs, UML and trends in modeling.</p>
<p>Jordi has recently made a transcription of the interview available on his <a href="http://modeling-languages.com/blog/content/coffee-rafael-chaves-textuml-toolkit">web site</a>. Take a read, feel free to leave a comment, I am very keen on discussing on any of the topics covered.</p>
]]></content:encoded>
			<wfw:commentRss>http://abstratt.com/blog/2010/01/25/interview-at-modeling-languagescom/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Doing away with custom UML metaclasses in TextUML</title>
		<link>http://abstratt.com/blog/2010/01/17/doing-away-with-custom-uml-metaclasses-in-textuml/</link>
		<comments>http://abstratt.com/blog/2010/01/17/doing-away-with-custom-uml-metaclasses-in-textuml/#comments</comments>
		<pubDate>Sun, 17 Jan 2010 09:45:17 +0000</pubDate>
		<dc:creator>rafael.chaves</dc:creator>
		
		<category><![CDATA[Eclipse]]></category>

		<category><![CDATA[UML]]></category>

		<category><![CDATA[action language]]></category>

		<category><![CDATA[v1.6]]></category>

		<guid isPermaLink="false">http://abstratt.com/blog/?p=165</guid>
		<description><![CDATA[The TextUML Toolkit has since release 1.2 had a metamodel extension package (inaptly named &#8216;meta&#8217;). This metamodel extension package defined new metaclasses not available in UML such as:

closure - an activity that has another activity as context
conversion action - an action that flows an input directly as output just changing the type
literal double - a [...]]]></description>
			<content:encoded><![CDATA[<p>The <a href="http://abstratt.com/textuml/">TextUML Toolkit</a> has since release 1.2 had a metamodel extension package (inaptly named &#8216;meta&#8217;). This metamodel extension package defined new metaclasses not available in UML such as:</p>
<ul>
<li>closure - an activity that has another activity as context</li>
<li>conversion action - an action that flows an input directly as output just changing the type</li>
<li>literal double - a literal value for double precision numeric values</li>
<li>signature - a classifier that contained parameters, the type of a closure</li>
<li>meta value specification - a value specification for meta references</li>
<li>collection literals - a value specification that aggregates other value specifications</li>
</ul>
<p>Turns out extending the UML metamodel by definining new packages and metaclasses is a bad idea. Some reasons (yes, I am feeling &#8216;bullety&#8217;):</p>
<ul>
<li>it is non-standard</li>
<li>other UML tools cannot read instances of your metaclasses, some won&#8217;t read your models at all if they have *any* unknown metaclasses</li>
<li>there is little documentation on how to maintain these kinds of metamodel extensions</li>
<li>since it is not the mainstream approach, we are bound to encounter more issues</li>
</ul>
<p>Because of that, release 1.6 will rely exclusively on profiles and stereotypes for extending the UML metamodel.</p>
<p><strong>What to expect</strong></p>
<p>For conventional users of the Toolkit, this change might possibly go unnoticed, barring any potential bugs introduced in the process.</p>
<p>People using the built-in base package and the base_profile will be directly affected. The elements in these models are still provided, by they are now in the new mdd_extensions profile, or one of the new mdd_types, mdd_collections and mdd_console packages.</p>
<p>We apologize for any inconvenience these changes might bring, but we strongly believe they are required to make the TextUML Toolkit a better product. If you have any trouble moving to 1.6 (to be released later this month), make sure to hit the user <a href="http://abstratt.com/forums/">forums</a> or report <a href="http://abstratt.com/issues/">issues</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://abstratt.com/blog/2010/01/17/doing-away-with-custom-uml-metaclasses-in-textuml/feed/</wfw:commentRss>
		</item>
		<item>
		<title>TextUML Toolkit 1.5 is out!</title>
		<link>http://abstratt.com/blog/2009/12/02/textuml-toolkit-15-is-out/</link>
		<comments>http://abstratt.com/blog/2009/12/02/textuml-toolkit-15-is-out/#comments</comments>
		<pubDate>Thu, 03 Dec 2009 06:58:17 +0000</pubDate>
		<dc:creator>rafael.chaves</dc:creator>
		
		<category><![CDATA[Eclipse]]></category>

		<category><![CDATA[TextUML Toolkit]]></category>

		<guid isPermaLink="false">http://abstratt.com/blog/?p=164</guid>
		<description><![CDATA[Release 1.5 of the TextUML Toolkit is now available from the update sites, for both Eclipse 3.5+ and 3.4. Update or install. We got a few new features in this release.

Content assist 
There is now early support for content assist (contributed by Attila Bak),  with initial support for stereotype applications.


Element aliasing
You can now enable [...]]]></description>
			<content:encoded><![CDATA[<p>Release 1.5 of the <a href="http://sourceforge.net/apps/mediawiki/textuml/index.php?title=TextUML_Toolkit_Feature">TextUML Toolkit</a> is now available from the update sites, for both Eclipse 3.5+ and 3.4. Update or <a href="http://sourceforge.net/apps/mediawiki/textuml/index.php?title=Install_Instructions">install</a>. We got a few new features in this release.<br />
<br />
<strong>Content assist </strong><br />
There is now early support for content assist (contributed by Attila Bak),  with initial support for stereotype applications.<br />
<img src='http://sourceforge.net/apps/mediawiki/textuml/nfs/project/t/te/textuml/5/5b/Content-assist.png' alt='Content assist in action' class='aligncenter' /><br />
<br />
<strong>Element aliasing</strong><br />
You can now enable <a href="http://sourceforge.net/tracker/?func=detail&amp;aid=2899590&amp;group_id=236545&amp;atid=1099987">aliasing</a> by creating <a title="Repository Properties" href="http://sourceforge.net/apps/mediawiki/textuml/index.php?title=Repository_Properties">repository properties</a> in the form:</p>
<pre><code>mdd.aliases.&lt;source-qualified-name&gt;=&lt;target-qualified-name&gt;</code</pre>
<p>For instance:</p>
<pre><code>mdd.aliases.base\:\:Real=mypackage\:\:MyReal</code></pre>
<p>
<strong>New textual notation features</strong><br />
There is now textual notation support for <a href="http://sourceforge.net/tracker/?func=detail&amp;aid=2820250&amp;group_id=236545&amp;atid=1099987">decimal literals</a>.</p>
<p>You might have noticed 1.4 was announced here <a href="http://abstratt.com/blog/2009/11/06/textuml-toolkit-141-is-out/">less than a month ago</a>. We decided to start pushing releases as often as we can, so you can expect a bunch of 1.x releases throughout 2010. If you want to see some feature in the TextUML Toolkit, ask away!</p>
]]></content:encoded>
			<wfw:commentRss>http://abstratt.com/blog/2009/12/02/textuml-toolkit-15-is-out/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Can TextUML be implemented the generative way (with Xtext or EMFText)?</title>
		<link>http://abstratt.com/blog/2009/11/29/can-textuml-be-implemented-the-generative-way-with-xtext-or-emftext/</link>
		<comments>http://abstratt.com/blog/2009/11/29/can-textuml-be-implemented-the-generative-way-with-xtext-or-emftext/#comments</comments>
		<pubDate>Mon, 30 Nov 2009 01:49:00 +0000</pubDate>
		<dc:creator>rafael.chaves</dc:creator>
		
		<category><![CDATA[Eclipse]]></category>

		<category><![CDATA[TextUML Toolkit]]></category>

		<category><![CDATA[UML]]></category>

		<category><![CDATA[action language]]></category>

		<guid isPermaLink="false">http://abstratt.com/blog/?p=163</guid>
		<description><![CDATA[I have been trying to figure out whether the TextUML notation for action semantics can be dealt with properly by tools such as Xtext and EMFText (class models and state machines should be fine). For example, given this structural model fragment:

class Advertisement
    attribute summary : String;
    attribute description : [...]]]></description>
			<content:encoded><![CDATA[<p>I have been trying to figure out whether the TextUML notation for action semantics can be dealt with properly by tools such as Xtext and EMFText (class models and state machines should be fine). For example, given this structural model fragment:</p>
<pre>
class Advertisement
    attribute summary : String;
    attribute description : String;
    attribute keywords : Keyword[*];
    attribute category : Category;
    operation addKeyword(keywordName : String);
    static operation findByCategoryName(catName : String) : Advertisement[*];
end;

association AdvertisementKeyword
    role Advertisement.keywords;
    role advertisement : Advertisement;
end;

class Keyword specializes Object
    attribute name : String;
end;

class Category specializes Object
    attribute name : String;
    attribute description : String;
end;

association AdvertisementCategory
    role Advertisement.category;
    role ad : Advertisement[*];
end;
</pre>
<p>Notice the Advertisement class declares two operations. Their behaviour in TextUML could be written as:</p>
<pre>
    operation Advertisement.addKeyword;
    begin
        var newKeyword : Keyword;
        newKeyword := new Keyword;
        newKeyword.name := keywordName;
        link AdvertisementKeyword(keywords := newKeyword, advertisement := self);
    end;

    operation Advertisement.findByCategoryName;
    begin
        return Advertisement extent.select(
            (a : Advertisement) : Boolean {
                return a->AdvertisementCategory->category.name = catName;
            }
        );
    end;
</pre>
<p>Note that TextUML allows the behavior to be specified inline when declaring an operation in a class, or in separate, as above (that explains the lack of parameters, modifiers etc). </p>
<p>In the resulting UML model, the behaviour of Advertisement.addKeyword would roughly map to this (using a textual pseudo-notation for UML activities that is hopefully more readable than raw XMI):</p>
<pre>
activity(name: "addKeyword") {
    structuredActivityNode {
        variable(name: "newKeyword", type: #String)
        writeVariable(variable: #newKeyword, value: createObject(class: #Keyword))
        writeAttribute(
            attribute: #Keyword.name,
            target: readVariable(variable: #newKeyword),
            value: readVariable(variable: #keywordName)
        )
        createLink(
            association: #AdvertisementKeyword,
            end1: #AdvertisementKeyword.keyword,
            end1Value: readVariable(variable: #newKeyword),
            end2: #AdvertisementKeyword.advertisement,
            end2Value: readSelf()
        )
    }
}
</pre>
<p>and the behaviour Advertisement.findByCategoryName would map to this:</p>
<pre>
activity(name: "findByCategoryName") {
    structuredActivityNode {
        // implicit variable for return value
        variable(name: "@result", type: #Advertisement, upperBound: *)
        // implicit variable for parameter value
        variable(name: "catName", type: #String)
        writeVariable(
            variable: #@result,
            value: callOperation(
                operation: #Advertisement.select,
                target: readExtent(class: #Advertisement),
                filter: metaValue(#@findByCategoryName_closure1)
            )
        )
    }
}

// a closure is an activity that has a reference to a context activity
closure(name: "@findByCategoryName_closure1") {
        // implicit variable for return value
        variable(name: "@result", type: #Boolean)
        // implicit variable for parameter value
        variable(name: "a", type: #Advertisement)
        writeVariable(
            variable: #@result,
            value: callOperation(
                operation: #Object.equals,
                // variables from the context activity are available here
                target: readVariable(variable: #catName)
                args: readAttribute(attribute: #Category.name, target: readLink(
                    association: #AdvertisementCategory,
                    fedEnd: #Advertisement.ad,
                    fedEndValue: readVariable(variable: #a),
                    readEnd: #Advertisement.category
                ))
            )
        )
}
</pre>
<p>Note that UML does not have closures, this is an extension to the UML metamodel which I wrote about here <a href="http://abstratt.com/blog/2009/01/18/closures-in-uml-extending-metamodel-with-textuml-toolkit/">before</a>.</p>
<p>Some background on the metaclasses involved: ReadVariableAction, CreateObjectAction, CreateLinkAction, ReadExtentAction etc are all action metaclasses. Actions are the building blocks for modeling activity behaviour in UML.</p>
<p>The million dollar question is: can Xtext and EMFText handle more complex textual notations like this? Is this out of the happy path? Has anyone done something similar? I am under the impression I could use Xtext or EMFText better if I used them based on a intermediate  metamodel for behavior that would be closer to the concrete syntax (to get all the IDE bells and whistles for free) and then transformed that to UML in a separate step.</p>
<p>If you have the answers for any of these questions (or even if you have comments and questions of your own), please chime in.</p>
]]></content:encoded>
			<wfw:commentRss>http://abstratt.com/blog/2009/11/29/can-textuml-be-implemented-the-generative-way-with-xtext-or-emftext/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Eclipse Modeling Day in Toronto</title>
		<link>http://abstratt.com/blog/2009/11/20/eclipse-modeling-day-in-toronto/</link>
		<comments>http://abstratt.com/blog/2009/11/20/eclipse-modeling-day-in-toronto/#comments</comments>
		<pubDate>Sat, 21 Nov 2009 03:32:07 +0000</pubDate>
		<dc:creator>rafael.chaves</dc:creator>
		
		<category><![CDATA[Eclipse]]></category>

		<category><![CDATA[TextUML Toolkit]]></category>

		<guid isPermaLink="false">http://abstratt.com/blog/?p=162</guid>
		<description><![CDATA[Last Wednesday I attended the Eclipse Modeling Day in Toronto. Coming all the way from Victoria, I must have been the participant that came from farthest. Except, of course, those folks from SAP AG and Itemis that were presenting. But I was really glad to be there. I finally had the chance to chat and [...]]]></description>
			<content:encoded><![CDATA[<p>Last Wednesday I attended the <a href="http://wiki.eclipse.org/Eclipse_Modeling_Day#Toronto">Eclipse Modeling Day in Toronto</a>. Coming all the way from Victoria, I must have been the participant that came from farthest. Except, of course, those folks from SAP AG and Itemis that were presenting. But I was really glad to be there. I finally had the chance to chat and discuss about Eclipse and Modeling face to face with people like Simon Kaegi (server-side OSGi), Kenn Hussey (MDT UML2), Eike Stepper (CDO), Ed Merks and (fellow Brazilian) Marcelo Paternostro (EMF), Lynn Gayowski and Ian Skerret (Eclipse Foundation). It&#8217;s weird: I have been part of the Eclipse Modeling community since 2006 (and the larger Eclipse community since 2002), but had never actually met any of those folks before. Also amusing was that even though I worked for IBM Ottawa for quite a few years, my first time at the Toronto Lab was many years later as an ex-IBMer living on the West Coast.</p>
<p>The presentations I attended were in general very good. I had seen Ed Merks&#8217; opening presentation on the web before, but this time I could ask questions. I got a better understanding of Xtext (great presentation!), CDO, and the Query, Validation and Transaction frameworks, some technologies I am considering adopting in the near future. I had a first time contact with the Papyrus 2.0 vision, which might provide an opportunity for increasing adoption of the TextUML notation by integrating the <a href="http://abstratt.com/textuml/">TextUML Toolkit</a> into a larger modeling environment. And I liked the idea of a discussion panel at the end.</p>
<p>I had to catch a flight back home that same night, so I could not attend the Eclipse RT Day on the following day nor could I see any of the demos at the <a href="http://wiki.eclipse.org/Eclipse_DemoCamps_November_2009/Toronto">DemoCamp</a>. Speaking of which, I did manage to stay long enough to have a beer on the Foundation (thanks!), and chat with Christopher Nagy from <a href="http://www.dexterra.com/">Dexterra</a>/Antenna Software, who made a quick ad hoc demo to Ian and myself of their Eclipse/GEF-based tool for authoring multiplatform mobile applications. Very impressive!</p>
<p>As constructive criticism, I do agree with <a href="http://eclipse-projects.blogspot.com/2009/11/how-to-improve-eclipse-x-day.html">Bjorn</a> that the format could use some tweaking. I sure had to miss some very promising presentations. Maybe with two presentation formats, a longer (for instance, 40-50 mins) and a shorter one (20-25 mins), we wouldn&#8217;t need two tracks. I am not sure presenters who came from Europe would have come had they had a shorter slot though. That being said, I was very satisfied with the event overall and am sincerely thankful to IBM Toronto for hosting the event, the Eclipse Foundation for organizing it, all the folks <a href="http://wiki.eclipse.org/Eclipse_Modeling_Day/Session_Abstracts_Toronto">presenting</a> and the companies sponsoring them. Thank you very much! As Lawrence <a href="http://eclipsetacy.blogspot.com/2009/11/eclipse-rt-day-toronto.html">wrote</a>, hope we will see more events like this in the future!</p>
]]></content:encoded>
			<wfw:commentRss>http://abstratt.com/blog/2009/11/20/eclipse-modeling-day-in-toronto/feed/</wfw:commentRss>
		</item>
		<item>
		<title>TextUML Toolkit 1.4 is out!</title>
		<link>http://abstratt.com/blog/2009/11/06/textuml-toolkit-141-is-out/</link>
		<comments>http://abstratt.com/blog/2009/11/06/textuml-toolkit-141-is-out/#comments</comments>
		<pubDate>Fri, 06 Nov 2009 07:51:00 +0000</pubDate>
		<dc:creator>rafael.chaves</dc:creator>
		
		<category><![CDATA[Eclipse]]></category>

		<category><![CDATA[TextUML Toolkit]]></category>

		<guid isPermaLink="false">http://abstratt.com/blog/?p=161</guid>
		<description><![CDATA[Release 1.4 of the TextUML Toolkit is now available from the update sites, for both Eclipse 3.5+ and 3.4 (by the way, it is possible this will be the last major release targetting Eclipse 3.4, unless someone volunteers to generate and test builds for 3.4).
This is mostly a bug fix release. However, there were some [...]]]></description>
			<content:encoded><![CDATA[<p>Release 1.4 of the TextUML Toolkit is now available from the <a href="http://abstratt.com/update/">update sites</a>, for both Eclipse 3.5+ and 3.4 (<em>by the way, it is possible this will be the last major release targetting Eclipse 3.4, unless someone volunteers to generate and test builds for 3.4</em>).</p>
<p>This is mostly a bug fix release. However, there were some minor notation changes to support stereotypes on dependencies, generalizations and interface realizations, hence the version change from 1.3.x to 1.4.x.</p>
<p>Thanks to Vladimir Sosnin, Attila Bak and fredlaviale for contributing with code and/or bug reports/feature requests. Keep them coming!</p>
<p>As usual, you can find a summary of the changes in the <a href="http://sourceforge.net/apps/mediawiki/textuml/index.php?title=TextUML_Toolkit_Features">TextUML Toolkit Features</a> page. If you are using the Toolkit, make sure you upgrade soon. If not, what are you waiting for? <a href="http://sourceforge.net/apps/mediawiki/textuml/index.php?title=Install_Instructions">Install it already</a>!</p>
]]></content:encoded>
			<wfw:commentRss>http://abstratt.com/blog/2009/11/06/textuml-toolkit-141-is-out/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Model-driven prototyping presentation @ VIJUG</title>
		<link>http://abstratt.com/blog/2009/10/02/model-driven-prototyping-presentation-vijug/</link>
		<comments>http://abstratt.com/blog/2009/10/02/model-driven-prototyping-presentation-vijug/#comments</comments>
		<pubDate>Sat, 03 Oct 2009 03:59:54 +0000</pubDate>
		<dc:creator>rafael.chaves</dc:creator>
		
		<category><![CDATA[Eclipse]]></category>

		<category><![CDATA[alphasimple.com]]></category>

		<category><![CDATA[editorial]]></category>

		<guid isPermaLink="false">http://abstratt.com/blog/?p=159</guid>
		<description><![CDATA[Last week I did a short presentation on &#8220;Model-driven prototyping&#8221; for the Vancouver Island Java User Group (VIJUG). It was lots of fun, with good participation from the group. I also showed a quick demo of AlphaSimple, our upcoming service for model-driven prototyping, which seemed to be well received.
For the benefit of those not there, [...]]]></description>
			<content:encoded><![CDATA[<p>Last week I did a short presentation on &#8220;Model-driven prototyping&#8221; for the Vancouver Island Java User Group (<a href="http://www.mosabuam.com/vijug/blog/">VIJUG</a>). It was lots of fun, with good participation from the group. I also showed a quick demo of <a href="http://alphasimple.com">AlphaSimple</a>, our upcoming service for model-driven prototyping, which seemed to be well received.</p>
<p>For the benefit of those not there, here is a web-version of that presentation, with notes showing on the slides (click <a href="http://docs.google.com/present/view?id=dgcqxr7c_65c77d6ddk&#038;interval=30">here</a> for a full screen view).</p>
<p><iframe src="http://docs.google.com/present/embed?id=dgcqxr7c_65c77d6ddk" frameborder="0" width="410" height="342"></iframe></p>
<p>Comments are very welcome. I would be very happy to discuss the approach with anyone interested.</p>
]]></content:encoded>
			<wfw:commentRss>http://abstratt.com/blog/2009/10/02/model-driven-prototyping-presentation-vijug/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Model-driven prototyping with AlphaSimple</title>
		<link>http://abstratt.com/blog/2009/09/28/model-driven-prototyping-with-alphasimple/</link>
		<comments>http://abstratt.com/blog/2009/09/28/model-driven-prototyping-with-alphasimple/#comments</comments>
		<pubDate>Tue, 29 Sep 2009 06:49:22 +0000</pubDate>
		<dc:creator>rafael.chaves</dc:creator>
		
		<category><![CDATA[alphasimple.com]]></category>

		<category><![CDATA[editorial]]></category>

		<guid isPermaLink="false">http://abstratt.com/blog/?p=158</guid>
		<description><![CDATA[It&#8217;s been a while since the last post, but I have a good excuse. I have been working on a new MDD product named AlphaSimple.
AlphaSimple is our upcoming web-based service that renders functional prototypes straight from rich domain models. The goal is to bridge the gap between design and requirement analysis, creating a fast feedback [...]]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s been a while since the last post, but I have a good excuse. I have been working on a new MDD product named AlphaSimple.</p>
<p><a href="http://alphasimple.com">AlphaSimple</a> is our upcoming web-based service that renders functional prototypes straight from rich domain models. The goal is to bridge the gap between design and requirement analysis, creating a fast feedback loop between those two activities. The result is much more precise and complete requirements early in the project lifecycle, and a sound design model that not only will be a breeze to implement, but that even your customers will understand.</p>
<p><img src="http://abstratt.com/alphasimple.png" alt="" width="600" height="298" align="center" /></p>
<p>We are craving feedback. If you want to take an alpha version for a spin, sign up at <a href="http://alphasimple.com">alphasimple.com</a>.</p>
<p>Cheers,</p>
<p>Rafael</p>
]]></content:encoded>
			<wfw:commentRss>http://abstratt.com/blog/2009/09/28/model-driven-prototyping-with-alphasimple/feed/</wfw:commentRss>
		</item>
		<item>
		<title>TextUML Toolkit 1.3 is out!</title>
		<link>http://abstratt.com/blog/2009/06/23/textuml-toolkit-13-is-out/</link>
		<comments>http://abstratt.com/blog/2009/06/23/textuml-toolkit-13-is-out/#comments</comments>
		<pubDate>Wed, 24 Jun 2009 03:20:27 +0000</pubDate>
		<dc:creator>rafael.chaves</dc:creator>
		
		<category><![CDATA[Eclipse]]></category>

		<category><![CDATA[TextUML Toolkit]]></category>

		<category><![CDATA[v1.3]]></category>

		<guid isPermaLink="false">http://abstratt.com/blog/?p=157</guid>
		<description><![CDATA[The TextUML Toolkit 1.3 is now available, 4.5 months after 1.2. If you already got RC1 (1.3.0.20090614&#8230;), it is the same build, no need to upgrade again. Otherwise, just point the Eclipse update mechanism to:
http://abstratt.com/update/ - if you are using Eclipse Galileo, or
http://abstratt.com/update/3.4/ - if you are using Eclipse Ganymede.
Please see the feature page for [...]]]></description>
			<content:encoded><![CDATA[<p>The TextUML Toolkit 1.3 is now available, 4.5 months after 1.2. If you already got <a href="http://abstratt.com/blog/2009/06/15/textuml-toolkit-13rc1-is-now-available/">RC1</a> (1.3.0.20090614&#8230;), it is the same build, no need to upgrade again. Otherwise, just point the Eclipse update mechanism to:</p>
<p>http://abstratt.com/update/ - if you are using Eclipse Galileo, or</p>
<p>http://abstratt.com/update/3.4/ - if you are using Eclipse Ganymede.</p>
<p>Please see the <a href="http://abstratt.com/docs/index.php?title=TextUML_Toolkit_Features">feature page</a> for a summary of the evolution of the TextUML Toolkit in terms of features across releases. Some highlights for this release are better integration with other UML tools and support for both Eclipse 3.4 and 3.5.</p>
<p>As usual, <a href="http://abstratt.com/issues/">bug reports and feature requests</a> are much appreciated. And if you need help, make sure to ask on the <a href="http://abstratt.com/forums/">user forum</a>.</p>
<p>The TextUML Toolkit Team</p>
]]></content:encoded>
			<wfw:commentRss>http://abstratt.com/blog/2009/06/23/textuml-toolkit-13-is-out/feed/</wfw:commentRss>
		</item>
		<item>
		<title>TextUML Toolkit 1.3RC1 is now available</title>
		<link>http://abstratt.com/blog/2009/06/15/textuml-toolkit-13rc1-is-now-available/</link>
		<comments>http://abstratt.com/blog/2009/06/15/textuml-toolkit-13rc1-is-now-available/#comments</comments>
		<pubDate>Mon, 15 Jun 2009 08:33:10 +0000</pubDate>
		<dc:creator>rafael.chaves</dc:creator>
		
		<category><![CDATA[Eclipse]]></category>

		<category><![CDATA[TextUML Toolkit]]></category>

		<category><![CDATA[v1.3]]></category>

		<guid isPermaLink="false">http://abstratt.com/blog/?p=156</guid>
		<description><![CDATA[The first release candidate towards version 1.3 of the TextUML Toolkit is now available. The feature overview page has been updated to reflect the changes in the 1.3 cycle.
Please give it a try and report any issues you might find. If no serious problems are found with this build, it will be promoted to 1.3 [...]]]></description>
			<content:encoded><![CDATA[<p>The first release candidate towards version 1.3 of the TextUML Toolkit is now available. The <a href="http://sourceforge.net/apps/mediawiki/textuml/index.php?title=TextUML_Toolkit_Features#Since_1.3">feature overview page</a> has been updated to reflect the changes in the 1.3 cycle.</p>
<p>Please give it a try and <a href="http://abstratt.com/issues/">report</a> any issues you might find. If no serious problems are found with this build, it will be promoted to 1.3 final later this week.</p>
<p>Note that the main update site supports <a href="http://abstratt.com/update/">Eclipse 3.5</a>, but there is also an update site <a href="http://abstratt.com/update/3.4/">for Eclipse 3.4</a>.  The features are the same, the only differences between the two sites are the dependencies (UML2 3.0 and EMF 2.5 on Eclipse 3.5, UML2 2.2 and EMF 2.4 on Eclipse 3.4).</p>
<p>The TextUML Toolkit team welcomes your feedback.</p>
]]></content:encoded>
			<wfw:commentRss>http://abstratt.com/blog/2009/06/15/textuml-toolkit-13rc1-is-now-available/feed/</wfw:commentRss>
		</item>
		<item>
		<title>A month&#8217;s worth of news</title>
		<link>http://abstratt.com/blog/2009/06/11/a-months-worth-of-news/</link>
		<comments>http://abstratt.com/blog/2009/06/11/a-months-worth-of-news/#comments</comments>
		<pubDate>Thu, 11 Jun 2009 07:44:29 +0000</pubDate>
		<dc:creator>rafael.chaves</dc:creator>
		
		<category><![CDATA[Eclipse]]></category>

		<category><![CDATA[TextUML Toolkit]]></category>

		<category><![CDATA[v1.3]]></category>

		<guid isPermaLink="false">http://abstratt.com/blog/?p=155</guid>
		<description><![CDATA[Wow, it is been more than a month since my last post, but I have been busier than ever working on an upcoming MDD-related product (cannot say much now other than that you will hear more about it here first). However, In TextUML Toolkit-land things are looking pretty exciting.
More hands on deck
Vladimir Sosnin has joined [...]]]></description>
			<content:encoded><![CDATA[<p>Wow, it is been more than a month since my last post, but I have been busier than ever working on an upcoming MDD-related product (cannot say much now other than that you will hear more about it here first). However, In <a href="http://abstratt.com/textuml/">TextUML Toolkit</a>-land things are looking pretty exciting.</p>
<p><strong>More hands on deck</strong></p>
<p><a href="https://sourceforge.net/users/antiso/">Vladimir Sosnin</a> has joined the project and has been on a roll contributing many patches, not only bug fixes but design improvements and features too. It is amazing how quickly he has become very comfortable with the TextUML Toolkit code base (Vladimir is certainly a solid developer, but I&#8217;d like to think the quality of the code base helped him too). And if that was not good enough, Vladimir is also using the TextUML Toolkit in his daily work around model-driven development, so that should help ensuring the Toolkit has the features its target audience actually needs.</p>
<p><strong>New release in the making</strong></p>
<p>1.3RC1 should be made available during the weekend. It has some shiny new language features, a bunch of bug fixes, better integration with other UML2 tools and support for both Galileo and Ganymede. By the way, shipping code that can handle different incompatible versions of Eclipse has become a little more challenging with P2, as you cannot ship a feature that has bundles that resolve in a mutually exclusive way - it seems you really need two different features for that.</p>
<p><strong>Documentation moved to SourceForge</strong></p>
<p>SourceForge now has support for MediaWiki, which is used to author and serve the documentation for the TextUML Toolkit. In the spirit of strengthening the message that the project should really be considered a community-based effort, I decided to migrate the documentation from the Abstratt web site over to <a href="http://apps.sourceforge.net/mediawiki/textuml/">SourceForge</a>.</p>
<p>I guess that does it, at least for now.  Stay tuned.</p>
]]></content:encoded>
			<wfw:commentRss>http://abstratt.com/blog/2009/06/11/a-months-worth-of-news/feed/</wfw:commentRss>
		</item>
		<item>
		<title>On code being model - maybe not what you think</title>
		<link>http://abstratt.com/blog/2009/05/03/on-code-being-model/</link>
		<comments>http://abstratt.com/blog/2009/05/03/on-code-being-model/#comments</comments>
		<pubDate>Mon, 04 May 2009 02:04:18 +0000</pubDate>
		<dc:creator>rafael.chaves</dc:creator>
		
		<category><![CDATA[Eclipse]]></category>

		<category><![CDATA[TextUML Toolkit]]></category>

		<category><![CDATA[editorial]]></category>

		<guid isPermaLink="false">http://abstratt.com/blog/?p=153</guid>
		<description><![CDATA[I have heard the mantra &#8216;code is model&#8217; several times. Even though I always thought I got the idea of what it meant, only now I decided to do some research to find out where it came from. Turns out that it originated from a blog post that MS&#8217; Harry Pierson wrote back in 2005. [...]]]></description>
			<content:encoded><![CDATA[<p>I have heard the mantra &#8216;code is model&#8217; several times. Even though I always thought I got the idea of what it meant, only now I decided to do some research to find out where it came from. Turns out that it originated from <a href="http://devhawk.net/2005/10/05/Code+Is+Model.aspx">a blog post</a> that MS&#8217; Harry Pierson wrote back in 2005. It is a very good read, insightful, and to the point.</p>
<p>The idea that gave title to Harry&#8217;s post is that whenever we use a simpler representation to build something that is more complex and detailed than we want to care about, we are creating models. 3GL source code is a model for object code. Byte code is a model for actual CPU-specific executable code. Hence code is model.</p>
<p>He then goes to ask that if we have been successfully reaping the benefits of increased levels of abstraction by using 3GLs for decades now, what prevents us from taking the next step and using even higher level (modeling) languages? He makes several good points that are at the very foundations of true model-driven development:</p>
<ul>
<li>&#8220;<strong><em>models must be precise</em></strong>&#8220;- models must be amenable to automatic transformation. Models that cannot be transformed into running code are &#8220;<em>useless as development artifacts</em>&#8220;. If you like them for conceiving or communicating ideas, that is fine, but those belong to a totally different category, one that plays a very marginal role in software development, and have nothing to do with model-driven development. Models created using the <a href="http://abstratt.com/textuml/">TextUML Toolkit</a> are forcefully precise, and can include behavior in addition to structure.</li>
<li>&#8220;<strong><em>models must be intrinsic to the development process</em></strong>&#8221; - models need to be &#8220;<em>first class citizens of the development process</em>&#8221; or they will become irrelevant. That means: everything that makes sense to be modeled is modeled, and running code is generated from models without further manual elaboration, i.e., no manually changing generated code and taking it from there. As a rule, you should refrain from reading generated code or limit yourself to reading the API of the code, unless you are investigating a code generation bug. There is nothing really interesting to see there - that is the very reason why you wanted to generate it in the first place. <strong>Build, read, and evolve your models! </strong>Generated code<strong> </strong>is object code.</li>
<li>&#8220;<strong><em>models aren&#8217;t always graphical</em></strong>&#8221; - of course not. I have written <a href="http://abstratt.com/blog/2008/05/05/on-code-and-diagrams/">about that</a> before here. The <a href="http://abstratt.com/textuml/">TextUML Toolkit</a> is only one of many initiatives that promote textual notations for modeling (and I mean <em>modeling</em>, not <em>diagramming</em> - see next point).</li>
<li>&#8220;<strong><em>explicitly call out models vs. views</em></strong>&#8221; - in other words, always keep in mind that <a href="http://abstratt.com/blog/2008/09/10/diagrams-models/">diagrams != models</a>. Models are the real thing, diagrams are just views into them. Models can admit an infinite number of notations, be them graphical, textual, tabular etc. Models don&#8217;t need notations. We (and tools) do. Unfortunately, most people don&#8217;t really get this.</li>
</ul>
<p>The funny thing is that, most of the times I read someone citing Harry&#8217;s mantra, it is misused.</p>
<p>One misinterpretation of the &#8220;code is model&#8221; mantra is that we don&#8217;t need higher-level modeling languages, as current 3GLs are enough to &#8220;model&#8221; an application. The fact is: 3GLs do not provide an appropriate level of abstraction for most kinds of applications. For example, for enterprise applications, 4GLs are usually more appropriate than 3GLs. Java (EE) or C# are horrible choices, vide the profusion of frameworks to make them workable as languages for enterprise software - they are much better appropriated for writing system software.</p>
<p>Another unfortunate conclusion people often extrapolate from the mantra is that if code is model, model is code, and thus it should always be possible to translate between them in both directions (<a href="http://en.wikipedia.org/wiki/Round-trip_engineering">round-trip engineering</a>). Round-trip engineering goes against the very essence of model-driven development, as source code often loses important information that can only exist in higher level models. The only reason people need RTE is because they use models to start a design and generate code, but then they switch to evolving and maintaining the application by directly manipulating the generated code. That is a big no-no in true model-driven development - it implies models are not precise or complete enough for full code generation.</p>
<p>So, what is your view? How do <em>you</em> interpret the &#8220;code is model&#8221; mantra?</p>
]]></content:encoded>
			<wfw:commentRss>http://abstratt.com/blog/2009/05/03/on-code-being-model/feed/</wfw:commentRss>
		</item>
		<item>
		<title>New in 1.3 M1: better integration with diagramming tools</title>
		<link>http://abstratt.com/blog/2009/04/13/new-in-13-m1-better-integration-with-diagramming-tools/</link>
		<comments>http://abstratt.com/blog/2009/04/13/new-in-13-m1-better-integration-with-diagramming-tools/#comments</comments>
		<pubDate>Mon, 13 Apr 2009 08:00:12 +0000</pubDate>
		<dc:creator>rafael.chaves</dc:creator>
		
		<category><![CDATA[Eclipse]]></category>

		<category><![CDATA[TextUML Toolkit]]></category>

		<category><![CDATA[UML]]></category>

		<category><![CDATA[v1.3]]></category>

		<guid isPermaLink="false">http://abstratt.com/blog/?p=150</guid>
		<description><![CDATA[Even though it has always been possible to open models generated by the TextUML Toolkit in UML2-based diagramming tools, until 1.2 the Toolkit assigned new ids to each element every time a model was regenerated. That meant that any diagrams based on the model being regenerated would become invalid as any cross-references from the diagram [...]]]></description>
			<content:encoded><![CDATA[<p>Even though it has <a href="http://abstratt.com/blog/2008/12/23/integrating-textuml-toolkit-with-other-modeling-tools/">always been possible</a> to open models generated by the <a href="http://abstratt.com/textuml/">TextUML Toolkit</a> in UML2-based diagramming tools, until 1.2 the Toolkit assigned new ids to each element every time a model was regenerated. That meant that any diagrams based on the model being regenerated would become invalid as any cross-references from the diagram to the model would be broken.</p>
<p>Starting with 1.3 M1 (test build available from the milestones <a href="http://abstratt.com/update/milestones/">update site</a>), the TextUML Toolkit is now better compatible with diagramming tools based on UML2. You can edit the source in TextUML and save it to cause model generation to occur, and any existing diagrams should still remain valid.</p>
<p>Here you can see the TextUML Toolkit being used side-by-side with the <a href="http://wiki.eclipse.org/MDT-UML2Tools">UML2 Tools</a> graphical editor:</p>
<p style="text-align: center;"><a href="http://abstratt.com/blog/wp-content/uploads/2009/04/textuml-uml2tools.png"><img class="aligncenter size-full wp-image-152" title="textuml-uml2tools" src="http://abstratt.com/blog/wp-content/uploads/2009/04/textuml-uml2tools-small.png" alt="" /></a></p>
<p>Actually, I found out that UML2 Tools can be a great companion for the TextUML Toolkit because it seems to just do the right thing when it notices the underlying model has been changed externally: new elements show up, removed elements disappear, preserved elements preserve their layout. I tried doing the same with <a href="http://wiki.eclipse.org/MDT/Papyrus">Papyrus</a> 1.11 and unfortunately it does not seem to handle external updates properly. I haven&#8217;t tried with other UML2-based diagram editors, so at this point I am not sure which one represents the trend here.</p>
]]></content:encoded>
			<wfw:commentRss>http://abstratt.com/blog/2009/04/13/new-in-13-m1-better-integration-with-diagramming-tools/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Developing for Eclipse without OSGi</title>
		<link>http://abstratt.com/blog/2009/04/05/eclipse-without-osgi-textuml-compiler-as-a-stand-alone-java-application/</link>
		<comments>http://abstratt.com/blog/2009/04/05/eclipse-without-osgi-textuml-compiler-as-a-stand-alone-java-application/#comments</comments>
		<pubDate>Mon, 06 Apr 2009 06:21:42 +0000</pubDate>
		<dc:creator>rafael.chaves</dc:creator>
		
		<category><![CDATA[Eclipse]]></category>

		<category><![CDATA[TextUML Toolkit]]></category>

		<guid isPermaLink="false">http://abstratt.com/blog/?p=149</guid>
		<description><![CDATA[I have been doing some exploratory work around running the TextUML Toolkit&#8217;s compiler as a standalone Java application. In other words, without OSGi. You Eclipse/OSGi heads out there might ask: why would anyone want to do that? The answer is: enhanced applicability. Severing ties with the Eclipse runtime/OSGi means the compiler would become usable in [...]]]></description>
			<content:encoded><![CDATA[<p>I have been doing some exploratory work around running the <a href="http://abstratt.com/textuml/">TextUML Toolkit</a>&#8217;s compiler as a standalone Java application. In other words, without OSGi. You Eclipse/OSGi heads out there might ask: why would anyone want to do that? The answer is: enhanced applicability. Severing ties with the Eclipse runtime/OSGi means the compiler would become usable in other contexts, and by more people. Think Ant or Maven-driven builds, or  (the horror!) other IDEs.</p>
<p><strong>The TextUML compiler&#8217;s dependencies<br />
</strong></p>
<p>The TextUML compiler is not very different from any ordinary 3GL compiler. It reads a bunch of source files and spits another bunch of object files. For reading and writing files, the TextUML compiler uses <a href="http://wiki.eclipse.org/index.php/EFS">EFS</a>, the Eclipse File System. For generating the object files, which are UML models, the compiler uses <a href="http://www.eclipse.org/modeling/mdt/?project=uml2">UML2</a> and <a href="http://www.eclipse.org/modeling/emf/">EMF</a>.</p>
<p>Luckily, all these components are expected to work on a standalone application, although some restrictions in functionality might apply. At a first glance, one would expect that running the TextUML compiler without OSGi should be quite feasible. But, as I should have learned by now, it is never that simple&#8230;</p>
<p><strong>Extension registry without OSGi</strong></p>
<p>The TextUML compiler, and some of its dependencies use the extension registry to receive contributions to their extension points or make contributions to other components&#8217; extension points. Since Eclipse 3.2, the extension registry API provides support for creating registries without OSGi. Basically, you can add any extension and extension points you want, all you need to do is to provide the XML markup for them.</p>
<p><em>Problem</em>: in a standalone Java application, it is the application&#8217;s responsibility to somehow find the plugin manifests and populate the extension registry.</p>
<p><em>Solution</em>: I started with the example Paul Webster <a href="http://dev.eclipse.org/newslists/news.eclipse.platform/msg67801.html">posted</a> on the platform newsgroup almost two years ago. It basically starts from a file system location which it assumes to hold plugins, both on JAR&#8217;d and directory form. It will find plugin manifests (plugin.xml), recognize translation resources (plugin.properties), and even discover the bundle name by parsing the bundle manifest (MANIFEST.MF), and use that to populate the extension registry. Pretty cool, thanks PW. I just cleaned-up the code a bit and enhanced it to also <strong>find plugin manifests using the application&#8217;s classloader</strong>. I also had to add support for setting the <strong>default extension registry</strong>, which is the one other components will get when invoking Platform.getExtensionRegistry() or RegistryFactory.getRegistry(). Finally, I had to implement basic support for <strong>creating executable extensions</strong>, which was not too hard given that I could assume the entire application is using the same (application) classloader.</p>
<p><strong>EFS without OSGi</strong></p>
<p>Also since 3.2, the Eclipse File System does not require OSGi to operate, however it does require a functional registry as it uses an extension point to allow file system implementations to be plugged in. So, provided one manages to populate the default extension registry, EFS works fine on a standard Java app. No action required here (yay!).</p>
<p><strong>EMF and UML2 without OSGi</strong></p>
<p>EMF has long been advertised as being mostly functional when running in non-managed mode. However, when running in an standalone app, EMF does not process extensions to its extension points (such as resource factories, metamodel packages and URI mappings), so a standard Java application needs to <a href="http://wiki.eclipse.org/index.php/EMF-FAQ#How_do_I_use_EMF_in_standalone_applications_.28such_as_an_ordinary_main.29.3F">explicitly initialize EMF</a>, which is clearly suboptimal.  That is because EMF only processes contributions to its extension points right during bundle activation. There is no alternative way to trigger processing of the registry (<a href="https://bugs.eclipse.org/bugs/show_bug.cgi?id=271253">see bug #271253</a>), which sucks, given that the registry is there just waiting to be used. With no OSGi, there is no such thing as bundle activation, and thus EMF goes into autistic mode. This is also true for UML2 (not surprisingly, as they share many implementation traits), the main difference being that UML2&#8217;s extension points are much less used than EMF&#8217;s.</p>
<p><em>Problem</em>: Ecore won&#8217;t process the extension registry when running in a standalone Java application.</p>
<p><em>Solution</em>: Change Ecore so it allows clients to explicitly trigger processing of the contributions to Ecore&#8217;s extension points. My local hacky solution was to make Ecore&#8217;s extension registry parsers to be publicly visible so any client could invoke them.</p>
<p><strong>&#8216;platform:&#8217; URLs without Equinox</strong></p>
<p>Extensions to Ecore&#8217;s URI mapping extension often translate to &#8216;platform:&#8217; URLs, which are another common Eclipse-ism, and thus not supported in plain Java applications.</p>
<p><em>Problem:</em> No support for &#8216;platform:&#8217; URL schemes  in standalone mode.</p>
<p><em>Solution:</em> I implemented a simple <a href="http://java.sun.com/developer/onlineTraining/protocolhandlers/">URL stream handler</a> for the &#8216;platform&#8217; protocol. The current implementation complete ignores the path component that determines what bundle the resource is in. That is clearly something that needs to be improved, but should not be too hard.</p>
<p><strong>Conclusion</strong></p>
<p>Well, it wasn&#8217;t really a walk in the park, but other than the issue that requires a change in EMF (<a href="https://bugs.eclipse.org/bugs/show_bug.cgi?id=271253">bug #271253</a>, which I am hoping could be addressed for <span style="text-decoration: line-through;">Ganymede</span> Galileo),  I am pretty happy with the results of this exploration.</p>
<p>I made all the code I wrote (including my version of Paul Webster&#8217;s registry loader) available on the TextUML Toolkit&#8217;s <a href="http://textuml.svn.sourceforge.net/viewvc/textuml/trunk/plugins/com.abstratt.standalone/">SVN repository</a> on SourceForge. Feel free to use it and submit improvements. I wonder if this sort of stuff could find a home in Eclipse.org, as I think many people currently developing for non-OSGi targets would like to take advantage of some great OSGi-agnostic Eclipse APIs.</p>
]]></content:encoded>
			<wfw:commentRss>http://abstratt.com/blog/2009/04/05/eclipse-without-osgi-textuml-compiler-as-a-stand-alone-java-application/feed/</wfw:commentRss>
		</item>
		<item>
		<title>(not) Installing the TextUML Toolkit 1.2 on Eclipse 3.5 M6</title>
		<link>http://abstratt.com/blog/2009/03/27/not-installing-the-textuml-toolkit-12-on-eclipse-35-m6/</link>
		<comments>http://abstratt.com/blog/2009/03/27/not-installing-the-textuml-toolkit-12-on-eclipse-35-m6/#comments</comments>
		<pubDate>Fri, 27 Mar 2009 07:37:08 +0000</pubDate>
		<dc:creator>rafael.chaves</dc:creator>
		
		<category><![CDATA[Eclipse]]></category>

		<category><![CDATA[TextUML Toolkit]]></category>

		<category><![CDATA[v1.2]]></category>

		<guid isPermaLink="false">http://abstratt.com/blog/?p=147</guid>
		<description><![CDATA[I decided it was time to start using Eclipse 3.5 before it went RC or else if I find any blockers there won&#8217;t be time left for them to get fixed before the next release this Summer. I have been on the other side of the fence and know how frustrating it is when people [...]]]></description>
			<content:encoded><![CDATA[<p>I decided it was time to start using Eclipse 3.5 before it went RC or else if I find any blockers there won&#8217;t be time left for them to get fixed before the next release this Summer. I have been on the other side of the fence and know how frustrating it is when people only really start reporting bugs at the very end of the release cycle.</p>
<p>After I installed the 3.5 M6 SDK, I decided to install the <a href="http://abstratt.com/blog/2009/02/04/textuml-toolkit-12-is-out/">TextUML Toolkit 1.2</a>&#8230;</p>
<p><strong>Nothing to install?</strong></p>
<p>First surprise: <strong>no features</strong> would show on the update site! WTH? Well, turns out I had the Update UI to show available features grouped by category, but the TextUML Toolkit <a href="http://abstratt.com/update/">update site</a> does not use categories. Unchecking the option to group by categories shows the four features in the TextUML Toolkit update site as it was usual in 3.4. Phew&#8230; I was just about to enter a bug report against the Eclipse update component (a.k.a. p2), when I found out that that unintuitive UI behavior has been <a href="https://bugs.eclipse.org/258105">recently addressed</a> and the next milestone won&#8217;t show this problem any longer.</p>
<p><strong>A roadblock</strong></p>
<p>I managed to install the TextUML Toolkit, and that brought along EMF and UML2, which are required features. Since, at this time, the TextUML Toolkit does not specify version range for its dependencies, the latest versions of EMF and UML2 were automatically installed by Eclipse. That should be fine, I thought, as one of the Eclipse development key mandates has always been backward compatibility. But this time around that was not the case: the TextUML builder was failing to compile a TextUML source file that was making use of template parameters. Turns out the UML2 API around templates has changed in its version 3.0. Before (in UML2 2.2), a template parameter substitution could have multiple formal and actual parameters. Now it can have only one of each, and thus the TextUML Toolkit is (partially) broken in 3.5.</p>
<p>So much for core values, you might be thinking? Well, to be fair, this is a bit of a fringe case. The UML2 API is an Eclipse component, and as such should strive for backward compatibility too. However, it is also a high-fidelity rendition of the UML specification published by the OMG. In this case, the OMG fixed a bug (<a href="http://www.omg.org/issues/issue9398.txt">#9838</a>) in the spec, and as often is the case with UML, that resulted in a change that was not backward compatible. If the OMG promotes changes that are not backward compatible, the UML2 team does not have much of a choice: in order to continue to closely implement the spec, it has to break the Eclipse guidelines.</p>
<p>And neither do I. For the TextUML Toolkit 1.2, I will have to issue a maintenance release (1.2.1) that will explicitly depend on UML2 2.2, thus avoiding the new version, and probably becoming incompatible with other UML modeling packages that only run on Galileo and UML2 3.0. For the next release of the TextUML Toolkit (1.3), I will have to adopt the new API and explicitly depend on UML 2 3.0.</p>
<p>That is how life goes&#8230; for some reason, I kind of feel like a <a href="http://www.google.ca/search?q=flea+elephant+bridge">flea crawling on the back of an elephant</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://abstratt.com/blog/2009/03/27/not-installing-the-textuml-toolkit-12-on-eclipse-35-m6/feed/</wfw:commentRss>
		</item>
		<item>
		<title>SQL queries in UML</title>
		<link>http://abstratt.com/blog/2009/03/18/sql-queries-in-uml/</link>
		<comments>http://abstratt.com/blog/2009/03/18/sql-queries-in-uml/#comments</comments>
		<pubDate>Wed, 18 Mar 2009 19:09:23 +0000</pubDate>
		<dc:creator>rafael.chaves</dc:creator>
		
		<category><![CDATA[Eclipse]]></category>

		<category><![CDATA[TextUML Toolkit]]></category>

		<category><![CDATA[UML]]></category>

		<category><![CDATA[action language]]></category>

		<category><![CDATA[v1.2]]></category>

		<guid isPermaLink="false">http://abstratt.com/blog/?p=146</guid>
		<description><![CDATA[I strongly believe queries are an essential part of a domain model. As such, in our quest to have (UML) models that can fully (yet abstractly) describe object models for the common enterprise applications, we cannot leave out first class support for queries.
But how do you do queries in UML? The obvious answer seems to [...]]]></description>
			<content:encoded><![CDATA[<p>I strongly believe queries are an essential part of a domain model. As such, in our quest to have (UML) models that can fully (yet abstractly) describe object models for the common enterprise applications, we cannot leave out first class support for queries.</p>
<p>But how do you do queries in UML? The obvious answer seems to be OCL, but that is <em>not</em> the approach I am taking as OCL and UML have serious interoperability/duplication issues. Instead, I took the  middleweight extension approach.</p>
<p>First, we model a protocol for manipulating collections of objects (showing only a subset here):</p>
<pre>class Collection specializes Basic
  operation includes(object : T) : Boolean;
  operation isEmpty() : Boolean;
  operation size() : Integer;
  operation exists(predicate : {(:T) : Boolean}) : Boolean;
  operation \any(predicate : {(:T) : Boolean}) : T;
  operation select(filter : {(:T) : Boolean}) : T[*];
  operation collect(mapping : {(:T) : any}) : any[*];
  operation forEach(predicate : {(:T)});
  operation union(another : T[*]) : T[*];
  (&#8230;)
end;</pre>
<p>That protocol is available against any collection of objects, which in UML can be obtained by navigating an association, reading an attribute, invoking an operation, obtaining the extent of a class (remember Smalltalk&#8217;s <code>allInstances</code>), anything where the resulting value has multiplicity greater than one.</p>
<p>Note most of the operations in the <code>Collection</code> protocol take <a href="http://abstratt.com/blog/2009/01/18/closures-in-uml-extending-metamodel-with-textuml-toolkit/">blocks/closures</a> as arguments. Closures are used in this context to define the filtering criterion for a select, or the mapping function for a collect.</p>
<p>For instance, for obtaining all accounts that currently do not have sufficient funds, this method would do it:</p>
<pre>static operation findNSFAccounts() : Account[*];
begin
    return Account extent.select(
        (a : Account) : Boolean {return a.balance &lt; 0}
    );
end;</pre>
<p>Note the starting collection is the extent of the Account class. That is very similar to what is done in the context of query languages for object-oriented databases, such as OQL or JDOQL. We then filter the class extent by selecting only those accounts that have a negative balance, by passing a block to the <code>select</code> operation.</p>
<p>When mapping that behavior to SQL, we could end up with a query like this:</p>
<pre>select _account_.* from Account _account_ where _account_.balance &lt; 0</pre>
<p>Another example: we want to obtain  all customers with a balance above a given amount, let&#8217;s say, to send them a letter to thank them for their business. The following method specifies that logic:</p>
<pre>static operation findBestCustomers(minBalance : Real) : Customer[*];
begin
    return (Account extent.select(
          (a : Account) : Boolean { return a.balance &gt;= minBalance }
    ).collect(
          (a : Account) : Customer { return a-&gt;AccountOwner-&gt;owner }
    ) as Customer);
end;</pre>
<p>Note that we start off with the extent of Account class, filter it down to the accounts with good balance using <code>select</code>, and then map from that collection to a collection with the respective account owners by traversing an association using <code>collect</code>.</p>
<p>If that was going to be mapped to SQL, one possible mapping would be:</p>
<pre>select _customer_.* from Account _account_
    inner join Customer _customer_
        on  _account_._accountID_ = _customer_._customerID_
    where _account_.balance &gt;= ?</pre>
<p>Much of this can be already modeled if you try it out with the <a href="http://abstratt.com/textuml/">TextUML Toolkit 1.2</a>. But, you might ask, once you model that, what can you do with UML models containing queries like the ones shown here?</p>
<p>Since the models are complete (include structure and behavior), you can:</p>
<ol>
<li><strong>Execute them</strong>. Imagine writing automated tests against your models, or letting your customer play with them before you actually start working on the implementation.</li>
<li><strong>Generate complete code</strong>. The generated code will include even your custom queries, not only those basic ones (<code>findAll</code>, <code>findByPK</code>) code generators can usually produce for you.</li>
</ol>
<p>If you would like to see tools that support that vision, keep watching this blog.</p>
<p><strong>So, what is your opinion? </strong><br />
Do you see value in being able to specify queries in your models? Is this the right direction? What would you do differently?</p>
]]></content:encoded>
			<wfw:commentRss>http://abstratt.com/blog/2009/03/18/sql-queries-in-uml/feed/</wfw:commentRss>
		</item>
		<item>
		<title>TextUML Toolkit 1.2 is out!</title>
		<link>http://abstratt.com/blog/2009/02/04/textuml-toolkit-12-is-out/</link>
		<comments>http://abstratt.com/blog/2009/02/04/textuml-toolkit-12-is-out/#comments</comments>
		<pubDate>Thu, 05 Feb 2009 02:17:01 +0000</pubDate>
		<dc:creator>rafael.chaves</dc:creator>
		
		<category><![CDATA[Eclipse]]></category>

		<category><![CDATA[TextUML Toolkit]]></category>

		<category><![CDATA[v1.2]]></category>

		<guid isPermaLink="false">http://abstratt.com/blog/?p=145</guid>
		<description><![CDATA[The TextUML Toolkit 1.2 is now available, 5 months after 1.1, when it first became an open source project. If you already got RC2 (1.2.0.200902011417), it is the same build, no need to upgrade again. Otherwise, just point the Eclipse update mechanism to:
http://abstratt.com/update/
Please see the feature page for a summary of the evolution of the [...]]]></description>
			<content:encoded><![CDATA[<p>The <a href="http://abstratt.com/textuml/">TextUML Toolkit</a> 1.2 is now available, 5 months after <a href="http://abstratt.com/blog/2008/09/02/textuml-toolkit-11-is-out/">1.1</a>, when it first became an open source project. If you already got <a href="http://abstratt.com/blog/2009/02/01/textuml-toolkit-12-rc2-fixes-stereotype-extension-rendering-bug/">RC2</a> (1.2.0.200902011417), it is the same build, no need to upgrade again. Otherwise, just point the Eclipse update mechanism to:</p>
<p style="padding-left: 30px;">http://abstratt.com/update/</p>
<p>Please see the <a href="http://abstratt.com/docs/index.php?title=TextUML_Toolkit_Features">feature page</a> for a summary of the evolution of the TextUML Toolkit in terms of features across releases.</p>
<p>As usual, <a href="http://abstratt.com/issues/">bug reports and feature requests</a> are dearly appreciated. And if you need help, make sure to ask on the <a href="http://abstratt.com/forums/">forum</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://abstratt.com/blog/2009/02/04/textuml-toolkit-12-is-out/feed/</wfw:commentRss>
		</item>
		<item>
		<title>TextUML Toolkit + Acceleo: generate code from UML models</title>
		<link>http://abstratt.com/blog/2009/02/04/textuml-toolkit-acceleo-generate-code-from-uml-models/</link>
		<comments>http://abstratt.com/blog/2009/02/04/textuml-toolkit-acceleo-generate-code-from-uml-models/#comments</comments>
		<pubDate>Wed, 04 Feb 2009 10:06:05 +0000</pubDate>
		<dc:creator>rafael.chaves</dc:creator>
		
		<category><![CDATA[Eclipse]]></category>

		<category><![CDATA[TextUML Toolkit]]></category>

		<guid isPermaLink="false">http://abstratt.com/blog/?p=144</guid>
		<description><![CDATA[Acceleo is a cool open-source code generation tool that has great integration with the Eclipse IDE and EMF-based metamodels. The tool has a strong emphasis on simplicity and ease of use, which, for an open source development tool, is really a breeze of fresh air.
The Acceleo website includes a repository of code generation modules, which [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://acceleo.org">Acceleo</a> is a cool open-source code generation tool that has great integration with the Eclipse IDE and EMF-based metamodels. The tool has a strong emphasis on simplicity and ease of use, which, for an open source development tool, is really a breeze of fresh air.</p>
<p>The Acceleo website includes a repository of <a href="http://acceleo.org/pages/modules-repository/en">code generation modules</a>, which are extensions to the tool that target generation for specific platform/languages, such as .Net (C#/NHibernate), Java (Hibernate/Struts/Spring), Python, PHP, C, Zope etc. Of course, you can also develop your own modules, using Acceleo template editors with metamodel-driven content assist, and live sample generation.</p>
<p>Most of the modules in the Acceleo repository take UML2 compatible models. That means you can use the <a href="http://abstratt.com/textuml/">TextUML Toolkit</a> for quickly creating your UML models using the TextUML textual notation, and then use Acceleo to generate code from them.</p>
<p>One of the most mature code generation modules in the Acceleo repository is the <a href="http://acceleo.org/pages/uml2-to-jee-java-struts-hibernate-generator/en">UML2 to Java EE module</a>, which can generate code for Spring, Struts and Hibernate-based Java applications from UML2 models. A step-by-step guide would be too much for this post, but if you want to explore generating Java EE code from UML models you create using the TextUML Toolkit, here are some pointers:</p>
<p><strong>Get the tools.</strong> First of all, using Eclipse 3.4, install all features from the following update sites:</p>
<ul>
<li>TextUML Toolkit - http://abstratt.com/update/</li>
<li>Acceleo code generator - http://acceleo.org/update/</li>
<li>Acceleo code generation modules - http://acceleo.org/modules/update</li>
</ul>
<p>Once the install is complete, allow Eclipse to restart for the new plug-ins to become available.</p>
<p><strong>Create your UML models and profiles. </strong>Create a project for your UML models using the TextUML Toolkit. For an example of how to do that, see the <a href="http://abstratt.com/docs/index.php?title=TextUML_Tutorial">TextUML Tutorial</a>. You will need to define in your model project a profile where you declare the stereotypes that you will use to annotate your modeled classes, to drive code generation (see how <a href="http://abstratt.com/docs/index.php?title=TextUML_Guide#Profiles">here</a>)</p>
<p><strong>Create your Acceleo generator project. </strong>The Acceleo website has plenty of documentation on how to create Acceleo code generation projects. Some pointers:</p>
<ul>
<li>main documentation <a href="http://acceleo.org/pages/introduction/en">page</a> (instalation and tutorials)<a href="http://acceleo.org/pages/introduction/en"><br />
</a></li>
<li>UML to JEE module <a href="http://www.acceleo.org/wiki/index.php/UML2_to_JEE_:_Struts/Spring/Hibernate">documentation<br />
</a></li>
</ul>
<p>Note that this module has a <a href="http://forge.objectweb.org/tracker/index.php?func=detail&amp;aid=311144&amp;group_id=273&amp;atid=350409">bug</a> in which it is based on a profile with an invalid UML name which won&#8217;t work with the TextUML Toolkit out of the box. Instead of using the profile shipped with that module, you can then override the default profile and stereotypes using a properties file at the root of your generator project as shown <a href="http://www.acceleo.org/wiki/index.php/UML_to_JEE_:_Configuration">here</a> so to direct it to your own profile and stereotypes. You can also find a more structured guide for using Acceleo and the TextUML Toolkit together <a href="http://abstratt.com/docs/index.php?title=Pet_Store_Example">here</a>. Even though that tutorial uses a customized version of the JEE module, it can still be helpful.</p>
<p><strong>As usual.</strong> If you need help generating code from UML models using the TextUML Toolkit and Acceleo, feel free to ask for help here, or in the <a href="http://abstratt.com/forums/">user forum</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://abstratt.com/blog/2009/02/04/textuml-toolkit-acceleo-generate-code-from-uml-models/feed/</wfw:commentRss>
		</item>
		<item>
		<title>TextUML Toolkit 1.2 RC2 fixes stereotype extension rendering bug</title>
		<link>http://abstratt.com/blog/2009/02/01/textuml-toolkit-12-rc2-fixes-stereotype-extension-rendering-bug/</link>
		<comments>http://abstratt.com/blog/2009/02/01/textuml-toolkit-12-rc2-fixes-stereotype-extension-rendering-bug/#comments</comments>
		<pubDate>Sun, 01 Feb 2009 23:01:14 +0000</pubDate>
		<dc:creator>rafael.chaves</dc:creator>
		
		<category><![CDATA[Eclipse]]></category>

		<category><![CDATA[TextUML Toolkit]]></category>

		<category><![CDATA[v1.2]]></category>

		<guid isPermaLink="false">http://abstratt.com/blog/?p=143</guid>
		<description><![CDATA[A new RC build of the TextUML Toolkit is now available. It has one bug fix since RC1. Basically, when rendering stereotypes, the metaclasses extended by the stereotype were not being shown. Not really critical, but isolated and safe enough to be fixed now. Pending any last minute bug reports by the community, it is [...]]]></description>
			<content:encoded><![CDATA[<p>A new RC build of the <a href="http://abstratt.com/textuml/">TextUML Toolkit</a> is now available. It has one <a href="https://sourceforge.net/support/tracker.php?aid=2555970">bug fix</a> since <a href="http://abstratt.com/blog/2009/01/28/textuml-toolkit-12-rc1-fixes-java-5-compatibility-issue/">RC1</a>. Basically, when rendering stereotypes, the metaclasses extended by the stereotype were not being shown. Not really critical, but isolated and safe enough to be fixed now. Pending any last minute bug reports by the community, it is likely this build will be promoted to 1.2 release early this week.</p>
<p>Also, while testing, I noticed that the <a href="http://abstratt.com/docs/index.php?title=Pet_Store_Example">Pet Store example</a> was triggering a <a href="https://sourceforge.net/tracker2/index.php?func=detail&amp;aid=2093333&amp;group_id=236545&amp;atid=1099987">known Graphviz issue</a> with associations navigable both ends, so I updated the petstore_models project so the relationship between Title and Payment was navigable only in one direction (Title -&gt; Payment). I recaptured the class diagram images showing on that page using the Image Viewer &#8220;Save to File&#8221; function instead of screenshot sections.</p>
<p>Just trigger a software update for the TextUML Toolkit to get RC2.</p>
]]></content:encoded>
			<wfw:commentRss>http://abstratt.com/blog/2009/02/01/textuml-toolkit-12-rc2-fixes-stereotype-extension-rendering-bug/feed/</wfw:commentRss>
		</item>
		<item>
		<title>TextUML Toolkit 1.2 RC1 fixes Java 5 compatibility issue</title>
		<link>http://abstratt.com/blog/2009/01/28/textuml-toolkit-12-rc1-fixes-java-5-compatibility-issue/</link>
		<comments>http://abstratt.com/blog/2009/01/28/textuml-toolkit-12-rc1-fixes-java-5-compatibility-issue/#comments</comments>
		<pubDate>Thu, 29 Jan 2009 06:59:26 +0000</pubDate>
		<dc:creator>rafael.chaves</dc:creator>
		
		<category><![CDATA[Eclipse]]></category>

		<category><![CDATA[TextUML Toolkit]]></category>

		<category><![CDATA[v1.2]]></category>

		<guid isPermaLink="false">http://abstratt.com/blog/?p=142</guid>
		<description><![CDATA[Yikes, it happened again. A user reported that the TextUML Toolkit 1.2 RC0 build announced earlier this week wouldn&#8217;t run on Java 5 VMs (Mac users would be the most affected). This has just been fixed (one bundle was being compiled against Java 6) and a new release candidate is now available from the update [...]]]></description>
			<content:encoded><![CDATA[<p>Yikes, <a href="http://abstratt.com/blog/2007/09/08/63/">it happened again</a>. A user <a href="https://sourceforge.net/forum/forum.php?thread_id=2937365&amp;forum_id=855420">reported</a> that the TextUML Toolkit 1.2 RC0 build announced <a href="http://abstratt.com/blog/2009/01/25/textuml-toolkit-12-rc0-m3-is-now-available/">earlier this week</a> wouldn&#8217;t run on Java 5 VMs (Mac users would be the most affected). This has just <a href="http://textuml.svn.sourceforge.net/viewvc/textuml/trunk/plugins/com.abstratt.mdd.frontend.textuml.core.behavior/META-INF/MANIFEST.MF?view=patch&amp;r1=223&amp;r2=222&amp;pathrev=223">been fixed</a> (one bundle was being compiled against Java 6) and a new release candidate is now available from the <a href="http://abstratt.com/update/">update site</a>. If you too were seeing &#8220;java.lang.UnsupportedClassVersionErrors&#8221; running RC0, just go ahead and update to RC1.</p>
]]></content:encoded>
			<wfw:commentRss>http://abstratt.com/blog/2009/01/28/textuml-toolkit-12-rc1-fixes-java-5-compatibility-issue/feed/</wfw:commentRss>
		</item>
		<item>
		<title>TextUML Toolkit 1.2 RC0 / M3 is now available</title>
		<link>http://abstratt.com/blog/2009/01/25/textuml-toolkit-12-rc0-m3-is-now-available/</link>
		<comments>http://abstratt.com/blog/2009/01/25/textuml-toolkit-12-rc0-m3-is-now-available/#comments</comments>
		<pubDate>Mon, 26 Jan 2009 03:27:55 +0000</pubDate>
		<dc:creator>rafael.chaves</dc:creator>
		
		<category><![CDATA[Eclipse]]></category>

		<category><![CDATA[TextUML Toolkit]]></category>

		<category><![CDATA[v1.2]]></category>

		<guid isPermaLink="false">http://abstratt.com/blog/?p=141</guid>
		<description><![CDATA[The third milestone build and first release candidate of the TextUML Toolkit, the IDE for textual UML  modeling, is now available from the update site.
The feature page shows all the new features in this new release, but here they are:

 primitive types
 data types (a.k.a. structs)
 required extensions for prototypes
 behaviour modeling (a.k.a. action semantics)
 [...]]]></description>
			<content:encoded><![CDATA[<p>The third milestone build and first release candidate of the TextUML Toolkit, the IDE for textual UML  modeling, is now available from the <a href="http://abstratt.com/update/">update site</a>.</p>
<p>The <a href="http://abstratt.com/docs/index.php?title=TextUML_Toolkit_Features#Since_1.2">feature page</a> shows all the new features in this new release, but here they are:</p>
<ul>
<li> <a class="external text" title="http://abstratt.com/blog/2008/12/02/feature-primitive-types" rel="nofollow" href="../2008/12/02/feature-primitive-types">primitive types</a></li>
<li> <a class="external text" title="http://abstratt.com/blog/2008/11/28/feature-data-types/" rel="nofollow" href="../2008/11/28/feature-data-types/">data types (a.k.a. structs)</a></li>
<li> <a class="external text" title="http://abstratt.com/blog/2008/11/11/feature-required-extensions-for-stereotypes/" rel="nofollow" href="../2008/11/11/feature-required-extensions-for-stereotypes/">required extensions for prototypes</a></li>
<li> <a class="external text" title="http://abstratt.com/blog/2008/11/07/executable-models-with-textuml-toolkit-12-m1/" rel="nofollow" href="../2008/11/07/executable-models-with-textuml-toolkit-12-m1/">behaviour modeling (a.k.a. action semantics)</a></li>
<li> <a class="external text" title="http://abstratt.com/blog/2008/09/16/feature-shorthand-notation-for-aggregation-and-composition/" rel="nofollow" href="../2008/09/16/feature-shorthand-notation-for-aggregation-and-composition/">shorthand notation for aggregation and composition</a></li>
<li>abstract stereotypes</li>
<li>cross-project references</li>
</ul>
<p>As you can tell, most of the work in the 1.2 release cycle was towards extending the TextUML notation with support for UML.</p>
<p>There were also several bug fixes, <a href="https://sourceforge.net/tracker2/?func=detail&amp;aid=2127735&amp;group_id=236545&amp;atid=1099987">one of them</a> being the first to be addressed by an external contributor (thanks, Massimiliano!).</p>
<p>If no serious issues are found with this milestone build, it will be promoted to 1.2 final by the next weekend. So, if you are using a 1.1.* build, make sure you upgrade it to a 1.2 release candidate build and start smoke testing with your usual workflows, and report any bugs you find.</p>
]]></content:encoded>
			<wfw:commentRss>http://abstratt.com/blog/2009/01/25/textuml-toolkit-12-rc0-m3-is-now-available/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Closures in UML? Extending the metamodel with the TextUML Toolkit</title>
		<link>http://abstratt.com/blog/2009/01/18/closures-in-uml-extending-metamodel-with-textuml-toolkit/</link>
		<comments>http://abstratt.com/blog/2009/01/18/closures-in-uml-extending-metamodel-with-textuml-toolkit/#comments</comments>
		<pubDate>Sun, 18 Jan 2009 07:02:24 +0000</pubDate>
		<dc:creator>rafael.chaves</dc:creator>
		
		<category><![CDATA[Eclipse]]></category>

		<category><![CDATA[Graphviz]]></category>

		<category><![CDATA[TextUML Toolkit]]></category>

		<category><![CDATA[UML]]></category>

		<category><![CDATA[action language]]></category>

		<category><![CDATA[v1.2]]></category>

		<guid isPermaLink="false">http://abstratt.com/blog/?p=136</guid>
		<description><![CDATA[UML is known to be a huge language, and that has two problems: it is too complex, having way more features than most applications will ever need, and can still be insufficient, as no single language will ever cover everybody&#8217;s needs.
In the article &#8220;Customizing UML: Which Technique is Right for You?&#8221;, James Bruck and Kenn [...]]]></description>
			<content:encoded><![CDATA[<p>UML is known to be a huge language, and that has two problems: it is too complex, having way more features than most applications will ever need, and can still be insufficient, as no single language will ever cover everybody&#8217;s needs.</p>
<p>In the article <a href="http://www.eclipse.org/modeling/mdt/uml2/docs/articles/Customizing_UML2_Which_Technique_is_Right_For_You/article.html" target="_blank"><em>&#8220;Customizing UML: Which Technique is Right for You?&#8221;</em></a>, James Bruck and <a href="http://kenn-hussey.blogspot.com/" target="_blank">Kenn Hussey</a> (both from the <a href="http://eclipse.org/uml2">UML2 team</a>) do a great job at covering the several options for extending (or restricting) UML (James also made a <a href="http://www.eclipsecon.org/2008/?page=sub/&amp;id=172" target="_blank">related presentation</a> at last year&#8217;s EclipseCon, together with <a href="http://give-a-damus.blogspot.com/" target="_blank">Christian Damus</a>, of <a href="http://wiki.eclipse.org/index.php/MDT-OCL">Eclipse OCL</a> fame). Cutting to the chase, these are the options they identify:</p>
<ul>
<li> using keywords (featherweight extensions)</li>
<li>using profiles, stereotypes and properties/tagged values (lightweight extensions)</li>
<li>extending the metamodel by specializing the existing metaclasses (middleweight extensions)</li>
<li>using package merges to select the parts of UML you need (heavyweight extensions)</li>
</ul>
<p>Each option has its own strengths and weaknesses, as you can see in the referred article/presentation. At this time, the TextUML notation supports two of those approaches: <a href="http://abstratt.com/docs/index.php?title=TextUML_Guide#Profiles">profiles</a> and <a href="http://abstratt.com/docs/index.php?title=TextUML_Guide#Metamodel_extensions">metamodel extensions</a>.</p>
<p><strong>Adding closures to UML</strong></p>
<p>Even though profiles are the most popular (and recommended) mechanism for extending UML, it is not enough in some cases/applications. That has been the case in the <a href="http://abstratt.com/textuml/">TextUML Toolkit</a>, for instance, when implementing <a href="http://en.wikipedia.org/wiki/Closure_(computer_science)">closures</a> in the TextUML <a href="http://abstratt.com/blog/2008/11/07/executable-models-with-textuml-toolkit-12-m1/">action language</a> (yes, the Toolkit eats its own dog food).</p>
<p>According to the wikipedia entry, &#8220;<em>a <strong>closure</strong> is a <span class="mw-redirect">function</span> that is evaluated in an environment containing one or more <span class="mw-redirect">bound variables</span>. When called, the function can access these variables.</em> &#8221;</p>
<p>It really makes sense to (meta) model a closure as some kind of UML <em>activity</em>, which is basically a piece of behavior that can be fully specified in UML. Methods, for instance, are better modeled in UML as activities. Activities are composed of <em>activity nodes</em> and <em>actions</em>, which are similar to blocks of code and instructions, respectively.</p>
<p>The only thing that is missing in the standard Activity metaclass is the ability for a closure to have an activity node from another activity as context, so it can access context&#8217;s local variables. So here is a possible (meta) modeling of closures in UML using the TextUML syntax:</p>
<pre>[Standard::Metamodel]
model meta;

apply Standard;

(*
  A closure is a special kind of activity that has another
  activity&#8217;s activity node as context. A closure might
  reference variables declared in the context activity node.
*)
[Standard::Metaclass]
class Closure specializes uml::Activity
  (* The activity node that provides context to this closure. *)
  reference contextNode : uml::StructuredActivityNode;
end;

end.</pre>
<p>Or, for those of you who prefer a class diagram (courtesy of the <a href="http://eclipsegraphviz.wiki.sourceforge.net/">EclipseGraphviz</a> integration):<br />
<a href="http://abstratt.com/blog/wp-content/uploads/2009/01/closure.png"><img title="closure" src="http://abstratt.com/blog/wp-content/uploads/2009/01/closure.png" alt="Closure as a UML metamodel extension" width="471" height="235" /></a></p>
<p>Note a model contributing language extensions must be applied the Standard::Metamodel stereotype, and each metaclass must be assigned the stereotype Standard::Metaclass.</p>
<p>Of course, there is no point in being able to metamodel closures, if there is no way to refer to them. We need a kind of type that we can use to declare variables and parameters that can hold references to closures. That also means we need to be able to invoke/dereference a closure reference, and there is no support for referring to metamodel elements in the UML action language. That means we need <em>more</em> language extensions. But I will leave that to another post. My goal here was to show how simple it is to create a simple UML metamodel extension with the TextUML Toolkit.</p>
<p>What about you, have you ever needed to extend UML using a metamodel extension? What for?</p>
]]></content:encoded>
			<wfw:commentRss>http://abstratt.com/blog/2009/01/18/closures-in-uml-extending-metamodel-with-textuml-toolkit/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Integrating the TextUML Toolkit with other modeling tools</title>
		<link>http://abstratt.com/blog/2008/12/23/integrating-textuml-toolkit-with-other-modeling-tools/</link>
		<comments>http://abstratt.com/blog/2008/12/23/integrating-textuml-toolkit-with-other-modeling-tools/#comments</comments>
		<pubDate>Wed, 24 Dec 2008 03:22:24 +0000</pubDate>
		<dc:creator>rafael.chaves</dc:creator>
		
		<category><![CDATA[Eclipse]]></category>

		<category><![CDATA[TextUML Toolkit]]></category>

		<category><![CDATA[UML]]></category>

		<guid isPermaLink="false">http://abstratt.com/blog/?p=137</guid>
		<description><![CDATA[No tool is an island. That is even more important when we are talking about highly focused single-purpose tools such as the TextUML Toolkit. As you probably know, the TextUML Toolkit is a tool for UML modeling using a textual notation, but that is about it. The TextUML Toolkit itself won&#8217;t help if you need [...]]]></description>
			<content:encoded><![CDATA[<p>No tool is an island. That is even more important when we are talking about highly focused single-purpose tools such as the TextUML Toolkit. As you probably know, the <a href="http://abstratt.com/textuml/">TextUML Toolkit</a> is a tool for UML modeling using a textual notation, but that is about it. The TextUML Toolkit itself won&#8217;t help if you need features such as code generation, reverse engineering or graphical modeling/visualization. That might look as a negative thing to some, but that is by design. I am a strong believer of separation of concerns, component-based software and using the best tool for the job, and that is reflected in the design of the Toolkit.</p>
<p>This post will describe how to use models created by other <a href="http://wiki.eclipse.org/MDT-UML2-Tool-Compatibility">UML2-compatible</a> modeling tools from models you create using the TextUML Toolkit. I plan to cover other areas of integration in future posts.</p>
<p><strong>Reading </strong><strong>models created by other UML tools using the TextUML notation</strong></p>
<p>If you have the TextUML Toolkit installed, one of the editors available for UML files is the <strong>TextUML Viewer</strong>. As the name implies, it is not really an editor, i.e., you cannot edit models with it, just visualize them using the TextUML notation. But it is an useful tool for reading UML models you don&#8217;t have the source for, i.e. models created by other UML2 modeling tools.</p>
<p><strong>Using models created by other tools&#8230;</strong></p>
<p>There are a few different ways of using models created by other UML modeling tools from your models created in TextUML.</p>
<p><strong>&#8230;by co-location</strong></p>
<p>In this method, you just drop the UML model you want to use to at the root of your TextUML (i.e. MDD) project. All models at the root of the same MDD project are considered to be in the same repository and thus you can make cross-model references by either using qualified names or importing the package and using simple names.</p>
<p>This method is dirty simple, but it forces you to keep the foreign model at a specific location, potentially forcing you to keep multiple copies of the model.</p>
<p><strong>&#8230;with </strong><strong>project references</strong></p>
<p>In this method (available starting in version 1.2), the UML model you want to use is in a different project than the one you want to refer it from. You just open the properties dialog for your TextUML (MDD) project and add the project providing the UML model you want to use to the list of referenced projects. Now models at the root of that project will also be visible from your TextUML (MDD) project, in other words, they are also seen as part of the same repository.</p>
<p>This method is more powerful than the previous one, as now models can be shared by reference instead of by copying. There is a limitation still: the models you use ought to be part of some project in the workspace, so you cannot refer to models stored at arbitrary locations in the file system or models that are contributed by Eclipse bundles.</p>
<p><strong>&#8230;by </strong><strong>explicitly loading them<br />
</strong></p>
<p>For this method, you use the <code>load</code> directive to <a href="http://abstratt.com/docs/index.php?title=TextUML_Guide#Referencing_external_models">load an external model located by a URI</a>.</p>
<p>This method allows you to load any model, provided its location can be represented as a resolvable URI. That is the case of any file system path, or Eclipse <a href="http://help.eclipse.org/stable/index.jsp?topic=/org.eclipse.platform.doc.isv/reference/misc/index.html">platform URLs</a>. The caveat is that some URIs such as file system URIs are not portable, so they are are bound to be invalid on other machines.</p>
<p><strong>The entire truth&#8230;<br />
</strong></p>
<p>&#8230;is that even if you are using only the TextUML Toolkit for building UML models, these are the same mechanisms for creating models that make cross-package references (see also the <a href="http://abstratt.com/docs/index.php?title=TextUML_Guide#Cross-package_references">TextUML Guide</a>). For the TextUML Toolkit, all UML2-compatible models are equal, no matter how they were created.</p>
]]></content:encoded>
			<wfw:commentRss>http://abstratt.com/blog/2008/12/23/integrating-textuml-toolkit-with-other-modeling-tools/feed/</wfw:commentRss>
		</item>
		<item>
		<title>TextUML Toolkit 1.2 M2 is now available</title>
		<link>http://abstratt.com/blog/2008/12/15/textuml-toolkit-12-m2-is-now-available/</link>
		<comments>http://abstratt.com/blog/2008/12/15/textuml-toolkit-12-m2-is-now-available/#comments</comments>
		<pubDate>Mon, 15 Dec 2008 10:30:53 +0000</pubDate>
		<dc:creator>rafael.chaves</dc:creator>
		
		<category><![CDATA[Eclipse]]></category>

		<category><![CDATA[TextUML Toolkit]]></category>

		<guid isPermaLink="false">http://abstratt.com/blog/?p=139</guid>
		<description><![CDATA[The second milestone build towards TextUML Toolkit release 1.2 is now available from the milestone update site. Get it while it is hot.
This milestone adds support for some UML language features:

required extensions for stereotypes
data types
primitive types

But what is really exciting is that this milestone is also the first build that includes a contribution from a [...]]]></description>
			<content:encoded><![CDATA[<p>The second milestone build towards <a href="http://abstratt.com/textuml/">TextUML Toolkit</a> release 1.2 is now available from the <a href="http://abstratt.com/update/milestones/">milestone update site</a>. Get it while it is hot.</p>
<p>This milestone adds support for some UML language features:</p>
<ul>
<li><a href="http://abstratt.com/blog/2008/11/11/feature-required-extensions-for-stereotypes/">required extensions for stereotypes</a></li>
<li><a href="http://abstratt.com/blog/2008/11/28/feature-data-types/">data types</a></li>
<li><a href="http://abstratt.com/blog/2008/12/02/feature-primitive-types/">primitive types</a></li>
</ul>
<p>But what is really exciting is that this milestone is also the first build that includes a contribution from a new member of the TextUML Toolkit team: Massimiliano Federici provided a  patch that squished bug <a href="https://sourceforge.net/tracker2/?func=detail&amp;aid=2127735&amp;group_id=236545&amp;atid=1099987">2127735</a> (revision <a href="http://textuml.svn.sourceforge.net/viewvc/textuml?view=rev&amp;revision=194">194</a>). Kudos to Massimiliano, his contribution was greatly appreciated, and it seems it might just be the first of many!</p>
]]></content:encoded>
			<wfw:commentRss>http://abstratt.com/blog/2008/12/15/textuml-toolkit-12-m2-is-now-available/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Feature: primitive types</title>
		<link>http://abstratt.com/blog/2008/12/02/feature-primitive-types/</link>
		<comments>http://abstratt.com/blog/2008/12/02/feature-primitive-types/#comments</comments>
		<pubDate>Wed, 03 Dec 2008 03:13:52 +0000</pubDate>
		<dc:creator>rafael.chaves</dc:creator>
		
		<category><![CDATA[Eclipse]]></category>

		<category><![CDATA[TextUML Toolkit]]></category>

		<category><![CDATA[UML]]></category>

		<category><![CDATA[v1.2]]></category>

		<guid isPermaLink="false">http://abstratt.com/blog/?p=135</guid>
		<description><![CDATA[Yesterday I checked in support for UML primitive types in the TextUML Toolkit. As an example of the syntax, here is the UMLPrimitiveTypes model, shipped in Eclipse UML2, rendered by the TextUML Source viewer:
[Standard::ModelLibrary]
model UMLPrimitiveTypes;

apply Standard;

primitive Boolean;

primitive Integer;

primitive String;

primitive UnlimitedNatural;

end.
As you can see, primitive types are declared using the keyword &#8216;primitive&#8217;, and cannot specialize other [...]]]></description>
			<content:encoded><![CDATA[<p>Yesterday I checked in support for UML primitive types in the <a href="http://abstratt.com/">TextUML Toolkit</a>. As an example of the syntax, here is the UMLPrimitiveTypes model, shipped in Eclipse UML2, rendered by the TextUML Source viewer:</p>
<pre>[Standard::ModelLibrary]
model UMLPrimitiveTypes;

apply Standard;

primitive Boolean;

primitive Integer;

primitive String;

primitive UnlimitedNatural;

end.</pre>
<p>As you can see, primitive types are declared using the keyword &#8216;primitive&#8217;, and cannot specialize other types or have structural features (thus there is no &#8216;end&#8217; terminating the type declaration). To be honest, I am not sure this is the intended semantics, as the UML specification does not seem to explicitly disallow that.</p>
<p>Here is the breakdown of the change sets (r188-191):</p>
<ul>
<li>automated tests (<a href="http://textuml.svn.sourceforge.net/viewvc/textuml?view=rev&amp;revision=190">r190</a>)</li>
<li>parser and model generation (<a href="http://textuml.svn.sourceforge.net/viewvc/textuml?view=rev&amp;revision=191">r191</a>)</li>
<li>textual renderer (<a href="http://textuml.svn.sourceforge.net/viewvc/textuml?view=rev&amp;revision=189">r189</a>)</li>
<li>editor (<a href="http://textuml.svn.sourceforge.net/viewvc/textuml?view=rev&amp;revision=188">r188</a>)</li>
</ul>
<p>To be frank, the only test case added was quite trivial:</p>
<pre>public void testPrimitiveType() throws CoreException {
  String source = "";
  source += "model someModel;\n";
  source += "primitive Primitive1;\n";
  source += "end.";
  parseAndCheck(source);
  PrimitiveType found = (PrimitiveType) getRepository().findNamedElement(
    "someModel::Primitive1", IRepository.PACKAGE.getPrimitiveType(), null
  );
  assertNotNull(found);
}</pre>
<p>But it is a good start. It ensures parsing works, and the model generated has the intended element created under the right parent package.</p>
<p>Any suggestions of what UML feature to cover next? And what is your take? Can UML primitive types have structural features or specialize other types/implement interfaces?</p>
<blockquote><p><em>(By the way, if you want to understand how the TextUML Toolkit is implemented, feature posts like this are a good starting point)</em></p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://abstratt.com/blog/2008/12/02/feature-primitive-types/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Feature: data types</title>
		<link>http://abstratt.com/blog/2008/11/28/feature-data-types/</link>
		<comments>http://abstratt.com/blog/2008/11/28/feature-data-types/#comments</comments>
		<pubDate>Fri, 28 Nov 2008 08:09:56 +0000</pubDate>
		<dc:creator>rafael.chaves</dc:creator>
		
		<category><![CDATA[Eclipse]]></category>

		<category><![CDATA[TextUML Toolkit]]></category>

		<category><![CDATA[UML]]></category>

		<category><![CDATA[v1.2]]></category>

		<guid isPermaLink="false">http://abstratt.com/blog/?p=134</guid>
		<description><![CDATA[Just checked in a new feature in the TextUML Toolkit: support for data types (a.k.a. structs). This is an example of a data type declaration:
datatype UserName
  attribute firstName : String;
  attribute lastName : String;
end;
You can declare operations and specialize other classifiers as usual.
Change set
Here are the individual changes per plug-in (r177-r186):

automated tests (180 [...]]]></description>
			<content:encoded><![CDATA[<p>Just checked in a new feature in the <a href="http://abstratt.com/textuml/">TextUML Toolkit</a>: support for data types (a.k.a. structs). This is an example of a data type declaration:</p>
<pre>datatype UserName
  attribute firstName : String;
  attribute lastName : String;
end;</pre>
<p>You can declare operations and specialize other classifiers as usual.</p>
<p><strong>Change set</strong></p>
<p>Here are the individual changes per plug-in (r177-r186):</p>
<ul>
<li>automated tests (<a href="http://textuml.svn.sourceforge.net/viewvc/textuml?view=rev&amp;revision=180">180</a> and <a href="http://textuml.svn.sourceforge.net/viewvc/textuml?view=rev&amp;revision=185">185</a>)</li>
<li>parser and model generation (<a href="http://textuml.svn.sourceforge.net/viewvc/textuml?view=rev&amp;revision=181">181</a>, <a href="http://textuml.svn.sourceforge.net/viewvc/textuml?view=rev&amp;revision=184">184</a> and <a href="http://textuml.svn.sourceforge.net/viewvc/textuml?view=rev&amp;revision=186">186</a>)</li>
<li><a href="http://textuml.svn.sourceforge.net/viewvc/textuml?view=rev&amp;revision=179">textual renderer</a></li>
<li><a href="http://textuml.svn.sourceforge.net/viewvc/textuml?view=rev&amp;revision=178">editor</a></li>
</ul>
<p>There, nice and easy. Well, actually, I ended up doing a second commit because I forgot to ensure a data type specializes only other data types. But now that has been taken care of.</p>
<p>As usual, suggestions of UML features to support in the TextUML Toolkit are most welcome.</p>
]]></content:encoded>
			<wfw:commentRss>http://abstratt.com/blog/2008/11/28/feature-data-types/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Slashdot: Is Open Source Software a Race To Zero?</title>
		<link>http://abstratt.com/blog/2008/11/23/open-source-software-a-race-to-zero/</link>
		<comments>http://abstratt.com/blog/2008/11/23/open-source-software-a-race-to-zero/#comments</comments>
		<pubDate>Mon, 24 Nov 2008 01:43:04 +0000</pubDate>
		<dc:creator>rafael.chaves</dc:creator>
		
		<category><![CDATA[Eclipse]]></category>

		<category><![CDATA[TextUML Toolkit]]></category>

		<category><![CDATA[editorial]]></category>

		<guid isPermaLink="false">http://abstratt.com/blog/?p=133</guid>
		<description><![CDATA[Great discussion over @ Slashdot: Is Open Source Software a Race To Zero?

I really think the open source approach has lots of benefits, for the software itself and all parties involved. However, I would say it will probably take a decade before sound business models based on open source are really understood and start to [...]]]></description>
			<content:encoded><![CDATA[<p>Great discussion over @ Slashdot: <a href="http://ask.slashdot.org/askslashdot/08/11/23/1447251.shtml">Is Open Source Software a Race To Zero?<br />
</a></p>
<p>I really think the open source approach has lots of benefits, for the software itself and all parties involved. However, I would say it will probably take a decade before sound business models based on open source are really understood and start to become mainstream.</p>
<p>At this point in time, (as most people) I still think it is considerably harder/trickier to make money developing software as open source than it is with closed source. At least for small companies. A few reasons:</p>
<ul>
<li>reduced <a href="http://en.wikipedia.org/wiki/Barriers_to_entry" target="_blank">barrier to entry</a> for new competitors as they can easily leverage the fruits of your hard work. Even more so if you choose a more liberal license such as a BSD, EPL or Apache (JBoss and MySQL use GPL, for instance).</li>
<li>lower profit margins, if you decide to adopt a services-based business model instead of one based on selling product licenses, which is a common approach.</li>
<li>the overhead of maintaining the open source software while developing the closed source extensions or providing the related services, the very activities that will actually make money, could be unbearable.</li>
</ul>
<p>The TextUML Toolkit is open source (EPL) <a href="http://abstratt.com/blog/2008/08/27/the-textuml-toolkit-needs-you/">since release 1.1</a>. The decision of making the TextUML Toolkit open source was based on the fact that I (a.k.a. Abstratt Technologies) never intended to make any money directly off of it, wanted to attract external contributions and maybe get some visibility to other future offerings. But I wouldn&#8217;t have done it if I had any plans of selling the TextUML Toolkit as a product on its own.</p>
<p>Well, I am interested in your thoughts. Do you know of cases of small companies making good money from developing and selling open source software (using liberal licenses such as the EPL)?</p>
]]></content:encoded>
			<wfw:commentRss>http://abstratt.com/blog/2008/11/23/open-source-software-a-race-to-zero/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Call for contributors</title>
		<link>http://abstratt.com/blog/2008/11/13/call-for-contributors/</link>
		<comments>http://abstratt.com/blog/2008/11/13/call-for-contributors/#comments</comments>
		<pubDate>Thu, 13 Nov 2008 07:41:25 +0000</pubDate>
		<dc:creator>rafael.chaves</dc:creator>
		
		<category><![CDATA[Eclipse]]></category>

		<category><![CDATA[TextUML Toolkit]]></category>

		<guid isPermaLink="false">http://abstratt.com/blog/?p=131</guid>
		<description><![CDATA[I would like to see the TextUML Toolkit as an Eclipse MDT subproject. Not long ago, I talked to Kenn Hussey and Ed Merks (they lead the UML2 and EMF projects, respectively) about the idea of proposing the Toolkit to the EMO and they both liked it (Ed actually suggested the idea in the first [...]]]></description>
			<content:encoded><![CDATA[<p>I would like to see the <a href="http://abstratt.com/textuml/">TextUML Toolkit</a> as an Eclipse <a href="http://www.eclipse.org/modeling/mdt/">MDT</a> subproject. Not long ago, I talked to Kenn Hussey and Ed Merks (they lead the <a href="http://eclipse.org/uml2" target="_blank">UML2</a> and <a href="http://eclipse.org/emf">EMF</a> projects, respectively) about the idea of proposing the Toolkit to the EMO and they both liked it (Ed actually suggested the idea in the first place). However, I was concerned that just one guy (yours truly) working on the project on and off in his spare time with no user community didn&#8217;t look very promising, and Kenn promptly agreed, so it was decided that it was important to get other people on board first.</p>
<p>With the intent of starting to gather some sort of community and hopefully contributors, I decided to release <a href="http://abstratt.com/blog/2008/08/27/the-textuml-toolkit-needs-you/">version 1.1 as EPL</a>. In the first couple of weeks after that, I noticed a significant spike in interest (page hits, issues opened, forum activity). But then everything went back to how it was before: today, there is no evidence anybody is using the tool, and I am still the only committer in the project.</p>
<p>So, this is a call (<em>or a cry</em>) for contributors: if you like the textual approach to UML modeling proposed by the TextUML Toolkit, would like to help putting together a <a href="http://wiki.eclipse.org/Development_Resources/HOWTO/Pre-Proposal_Phase">proposal</a>, and have some amount of time/resources to commit to the project in the long(ish) run, I am really eager to hear from you.</p>
<p>Things that are in scope for the project:</p>
<ul>
<li>broader notation coverage of UML features</li>
<li>richer IDE support: content assist, search/hyperlinking, refactoring</li>
<li>better integration with graphical UML tools</li>
</ul>
<p>If you are interested, feel free to contact me via this blog, the Toolkit <a href="http://abstratt.com/forum/">forum</a> or e-mail (rafael at abstratt.com).</p>
]]></content:encoded>
			<wfw:commentRss>http://abstratt.com/blog/2008/11/13/call-for-contributors/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Feature: required extensions for stereotypes</title>
		<link>http://abstratt.com/blog/2008/11/11/feature-required-extensions-for-stereotypes/</link>
		<comments>http://abstratt.com/blog/2008/11/11/feature-required-extensions-for-stereotypes/#comments</comments>
		<pubDate>Wed, 12 Nov 2008 03:02:08 +0000</pubDate>
		<dc:creator>rafael.chaves</dc:creator>
		
		<category><![CDATA[Eclipse]]></category>

		<category><![CDATA[TextUML Toolkit]]></category>

		<category><![CDATA[UML]]></category>

		<category><![CDATA[v1.2]]></category>

		<guid isPermaLink="false">http://abstratt.com/blog/?p=130</guid>
		<description><![CDATA[Just checked in a new feature in the TextUML Toolkit: required extensions for stereotypes (honestly, I didn&#8217;t know about that feature in UML until I read this post on the Eclipse UML2 newsgroup).
The following is a stereotype extending two metaclasses (uml::Class and uml::Operation):
profile my_profile;

import uml;

stereotype foo extends Class, Operation required
end;

end.

In the example above, the extension [...]]]></description>
			<content:encoded><![CDATA[<p>Just checked in a new feature in the <a href="http://abstratt.com/textuml/">TextUML Toolkit</a>: required extensions for stereotypes (honestly, I didn&#8217;t know about that feature in UML until I read <a href="http://www.eclipse.org/newsportal/article.php?id=2928&amp;group=eclipse.modeling.mdt.uml2#2928">this post</a> on the Eclipse UML2 newsgroup).</p>
<p>The following is a stereotype extending two metaclasses (uml::Class and uml::Operation):</p>
<pre>profile my_profile;

import uml;

stereotype foo extends Class, Operation required
end;

end.
</pre>
<p>In the example above, the extension of Operation is required, the extension of Class is not.</p>
<p><strong>Change set</strong></p>
<p>The change set to implement required extensions in the TextUML Toolkit (issue <a href="https://sourceforge.net/tracker/index.php?func=detail&amp;aid=2266268&amp;group_id=236545&amp;atid=1099987">#2266268</a>) was quite small (btw, kudos to the <a href="http://www.eclipse.org/modeling/mdt/?project=uml2">UML2</a> project for providing the best API for UML out there). </p>
<p>Here are the individual changes per plug-in (r153-r156):</p>
<ul>
<li><a href="http://textuml.svn.sourceforge.net/viewvc/textuml?view=rev&amp;revision=155">automated tests</a></li>
<li><a href="http://textuml.svn.sourceforge.net/viewvc/textuml?view=rev&amp;revision=156">parser and model generation</a></li>
<li><a href="http://textuml.svn.sourceforge.net/viewvc/textuml?view=rev&amp;revision=154">textual renderer</a></li>
<li><a href="http://textuml.svn.sourceforge.net/viewvc/textuml?view=rev&amp;revision=153">editor</a></li>
</ul>
<p>Any other UML feature you would like to see exposed in the TextUML notation? Suggestions are welcome.</p>
]]></content:encoded>
			<wfw:commentRss>http://abstratt.com/blog/2008/11/11/feature-required-extensions-for-stereotypes/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Executable models with TextUML Toolkit 1.2 M1</title>
		<link>http://abstratt.com/blog/2008/11/07/executable-models-with-textuml-toolkit-12-m1/</link>
		<comments>http://abstratt.com/blog/2008/11/07/executable-models-with-textuml-toolkit-12-m1/#comments</comments>
		<pubDate>Fri, 07 Nov 2008 10:42:49 +0000</pubDate>
		<dc:creator>rafael.chaves</dc:creator>
		
		<category><![CDATA[Eclipse]]></category>

		<category><![CDATA[TextUML Toolkit]]></category>

		<category><![CDATA[UML]]></category>

		<category><![CDATA[action language]]></category>

		<category><![CDATA[v1.2]]></category>

		<guid isPermaLink="false">http://abstratt.com/blog/?p=125</guid>
		<description><![CDATA[The first milestone build of the next TextUML Toolkit release is now available from the milestone update site. This preview build is the first to include support for modeling behavior using action semantics. I hinted at this capability here before, and I plan to cover action semantics in the TextUML notation in following posts. But [...]]]></description>
			<content:encoded><![CDATA[<p>The first milestone build of the next TextUML Toolkit release is now available from the milestone update site. This preview build is the first to include support for modeling behavior using action semantics. I hinted at this capability <a href="http://abstratt.com/blog/2008/11/02/what-can-uml-do-for-you/">here</a> before, and I plan to cover action semantics in the TextUML notation in following posts. But most people will get the gist of the notation from the examples below:</p>
<p>Here is an example of a UML model of an Account class represented in TextUML:</p>
<pre>model bank;

import base;

class Account
    attribute accountNumber : String;
    attribute balance : Integer;

    operation withdraw(amount : Integer);
    begin
        self.balance := self.balance - amount;
    end;    

    operation deposit(amount : Integer);
    begin
        self.balance := self.balance + amount;
    end;

    static operation newAccount(number : String,owner : Client): Account;
    begin
        var newAccount : Account;
        newAccount := new Account;
        newAccount.accountNumber := number;
        newAccount.balance := 0;
        link ClientAccount(owner := owner, accounts := newAccount);
        return newAccount;
    end;
end;

class Client specializes Object
    attribute name : String;
    static operation newClient(name : String): Client;
    begin
        var newClient : Client;
        newClient := new Client;
        newClient.name := name;
        return newClient;
    end;
end;

association ClientAccount
    navigable role owner : Client[1];
    navigable role accounts : Account[0, *];
end;

end.</pre>
<p>And here an example of a test driver &#8216;program&#8217; (note the use of a closure for looping through a collection of objects):</p>
<pre>package test;

apply base_profile;

import bank;
import base;

class TestDriver
  [entryPoint]
  static operation run();
  begin
      var john : Client, mary : Client,
             account1 : Account, account2 : Account, account3 : Account;
      john := Client#newClient(&#8221;John Doe&#8221;);
      mary := Client#newClient(&#8221;Mary Doe&#8221;);

      Console#writeln(&#8221;Created: &#8220;.concat(john.name));

      account1 := Account#newAccount(&#8221;1234-1&#8243;, john);
      account2 := Account#newAccount(&#8221;1238-2&#8243;, mary);
      account3 := Account#newAccount(&#8221;2231-7&#8243;, john);

      Console#writeln(&#8221;account owner: &#8220;.concat(account1-&gt;ClientAccount-&gt;owner.name));
      Console#writeln(&#8221;account number: &#8220;.concat(account1.accountNumber));
      Console#writeln(&#8221;initial balance is: &#8220;.concat(account1.balance.toString()));

      account1.deposit(2000);
      Console#writeln(&#8221;after deposit, balance is: &#8220;.concat(account1.balance.toString()));

      account1.withdraw(500);
      Console#writeln(&#8221;after withdrawal, balance is: &#8220;.concat(account1.balance.toString()));

       /* Now show information for all accounts. */
  	Account extent.forEach(
          (a : Account) {
              Console#writeln(&#8221;*******&#8221;);
              Console#writeln(&#8221;Owner: &#8220;.concat(a-&gt;ClientAccount-&gt;owner.name));
              Console#writeln(&#8221;Number: &#8220;.concat(a.accountNumber));
              Console#writeln(&#8221;Balance: &#8220;.concat(a.balance.toString()));
          }
      );
  end;
end;

end.</pre>
<p>And here is the output of the test driver program, produced by running it on the <em>Libra</em> UML runtime (<em>not part of the TextUML Toolkit</em>):</p>
<pre>Created: John Doe
account owner: John Doe
account number: 1234-1
initial balance is: 0
after deposit, balance is: 2000
after withdrawal, balance is: 1500
*******
Owner: Mary Doe
Number: 1238-2
Balance: 0
*******
Owner: John Doe
Number: 1234-1
Balance: 1500
*******
Owner: John Doe
Number: 2231-7
Balance: 0</pre>
<p>Alternatively, one could have generated 100% of the code for a target platform of choice, given that all the information necessary for that is in the model. Note that code generation is not part of the TextUML Toolkit.</p>
<p>Do you want to give it a try? Install M1 from the <a href="http://abstratt.com/update/milestones/">milestone update site</a>. You can also fetch the example projects from <a href="http://abstratt.com/blog/wp-content/uploads/2008/11/example_12m1.zip">here</a>.</p>
<p>It is certainly a rough stone. I am counting on the community feedback to figure out what areas need to be smoothed first. Please provide your feedback or ask questions on the <a href="http://abstratt.com/forum/">TextUML Toolkit forums</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://abstratt.com/blog/2008/11/07/executable-models-with-textuml-toolkit-12-m1/feed/</wfw:commentRss>
		</item>
		<item>
		<title>What can UML do for you?</title>
		<link>http://abstratt.com/blog/2008/11/02/what-can-uml-do-for-you/</link>
		<comments>http://abstratt.com/blog/2008/11/02/what-can-uml-do-for-you/#comments</comments>
		<pubDate>Mon, 03 Nov 2008 04:50:48 +0000</pubDate>
		<dc:creator>rafael.chaves</dc:creator>
		
		<category><![CDATA[Eclipse]]></category>

		<category><![CDATA[TextUML Toolkit]]></category>

		<category><![CDATA[UML]]></category>

		<category><![CDATA[action language]]></category>

		<category><![CDATA[editorial]]></category>

		<category><![CDATA[v1.2]]></category>

		<guid isPermaLink="false">http://abstratt.com/blog/?p=123</guid>
		<description><![CDATA[Do you know what UML can do for you? I mean, did you know that UML models can actually do things?
One of the least known features of UML is that you can model detailed imperative behavior. The UML &#8220;instruction set&#8221; can do things like:

 create and destroy objects
create and destroy links (associations) between objects
read and [...]]]></description>
			<content:encoded><![CDATA[<p>Do you know what UML can do for you? I mean, did you know that UML models can actually <em>do</em> things?</p>
<p>One of the least known features of UML is that you can model detailed imperative behavior. The UML &#8220;instruction set&#8221; can do things like:</p>
<ul>
<li> create and destroy objects</li>
<li>create and destroy links (associations) between objects</li>
<li>read and write attributes and local variables</li>
<li>invoke operations and functions</li>
<li>throw and catch exceptions</li>
<li>conditional statements</li>
<li>loops</li>
</ul>
<p>That is quite amazing, isn&#8217;t? And all that while still preserving a high level of abstraction. Such capability is generally referred to as &#8216;action semantics&#8217;. Action semantics provides the basic framework for executability in UML and has been there for quite a while now. It was originally added to the spec, first as patch, in UML 1.5 (2003), and then more seamlessly integrated into UML 2.0 and following spec releases.</p>
<p><strong>Action Semantics and TextUML</strong></p>
<p>An even more well-kept secret is that the <a href="http://abstratt.com/docs/index.php?title=TextUML_Guide">TextUML notation</a> supports UML action semantics and thus the creation of fully executable UML models. This support is not yet shipped as part of the <a href="http://abstratt.com/textuml/">TextUML Toolkit</a>, but will be in the next release. Meanwhile, if you want to give it a try or take a closer look, you will have to grab the source from the <a href="https://sourceforge.net/svn/?group_id=236545">SVN repository</a>.</p>
<p>I plan to go into more details in the near future, but just to wet your appetite, here is one example of an executable UML model described in the TextUML notation:</p>
<pre>package hello;

apply base_profile;
import base;

class HelloWorld
    [entryPoint]
    static operation hello();
    begin
        Console#writeln(&#8221;Hello, World&#8221;);
    end;
end;

end.</pre>
<p>Cool, isn&#8217;t? If you had a UML runtime, this model could be executed even before you made a decision about what platform to target. Also, if your code generator were action semantics aware, you could trigger code generation for the target platform(s) of choice, with the key difference that you could achieve (or get very close) to full code generation, as the model now also describes behavior. No more of that monkey business of having to edit the generated code and manually fill in all those /* IMPLEMENT ME! */ methods.</p>
<p>Do you think this has value? Would you want to work with a tool that supported that? I am really keen on knowing your opinion.</p>
]]></content:encoded>
			<wfw:commentRss>http://abstratt.com/blog/2008/11/02/what-can-uml-do-for-you/feed/</wfw:commentRss>
		</item>
		<item>
		<title>OMG issues RFP: concrete syntax for UML action semantics</title>
		<link>http://abstratt.com/blog/2008/10/15/omg-issues-rfp-concrete-syntax-for-action-semantics/</link>
		<comments>http://abstratt.com/blog/2008/10/15/omg-issues-rfp-concrete-syntax-for-action-semantics/#comments</comments>
		<pubDate>Thu, 16 Oct 2008 03:53:07 +0000</pubDate>
		<dc:creator>rafael.chaves</dc:creator>
		
		<category><![CDATA[Eclipse]]></category>

		<category><![CDATA[UML]]></category>

		<category><![CDATA[action language]]></category>

		<category><![CDATA[editorial]]></category>

		<guid isPermaLink="false">http://abstratt.com/blog/?p=122</guid>
		<description><![CDATA[This is actually old news for many people, but recently I learned (by pure chance) that the OMG issued a RFP for a &#8220;Concrete Syntax for a UML Action Language&#8221;. Letters of intent are due on December 8th. Submissions, one year after. OMG members only need apply (Aww&#8230;). I wonder if anyone in the Eclipse [...]]]></description>
			<content:encoded><![CDATA[<p>This is actually old news for many people, but recently I learned (by pure chance) that the OMG <a href="http://www.omg.org/cgi-bin/doc?ad/2008-9-9" target="_blank">issued</a> a RFP for a &#8220;Concrete Syntax for a UML Action Language&#8221;. Letters of intent are due on December 8th. Submissions, one year after. OMG members only need apply (Aww&#8230;). I wonder if anyone in the <a href="http://www.eclipse.org/modeling/" target="_blank">Eclipse Modeling</a> project is involved in submitting a proposal. Anyone?</p>
<p>Soapbox: <em>since version 1.5, UML has had support for algorithmic behavior specification, commonly called </em><em>action semantics. It is still hardly used, and most people that consider they know a lot of UML have never noticed it. Some people believe that the lack of an official concrete syntax for action semantics is a barrier to adoption. You see, the OMG defined the semantics and an abstract syntax, but left concrete syntax as an exercise for tool vendors.<br />
</em></p>
<p>As I <a href="http://abstratt.com/blog/2008/08/06/not-yet-another-language/">wrote</a> here before, I don&#8217;t really see the value in the OMG godfathering one concrete syntax over all others. Of course, we are talking here about a syntax for human beings, not for tools. Tools certainly don&#8217;t need a human-readable concrete syntax, a standard binary or XML format will do. The problem is: we all have our own preferences for what makes a good syntax, and there is no single syntax that will make everybody happy, so we are bound to have multiple concrete syntaxes anyway. We all like interoperability between tools, but when it comes to sugar, we like choice.</p>
<p>But maybe I am wrong. Maybe an OMG-blessed C-like concrete syntax for UML is all that is missing for Executable UML to become mainstream in the software development community. Go figure, we are an amusing bunch. Personally, I don&#8217;t care that much. I have been a Java developer for around 12 years now, so I can certainly stand another C-like syntax. We are not talking about a language anyway, it is <a href="http://abstratt.com/blog/2008/08/06/not-yet-another-language/">just a syntax</a> for an existing language, and syntax, a bit like UI, is inherently disposable, if you take it away, the real stuff is still there.</p>
<p>One clear positive outcome of the RFP is that submitters must provide, along with the proposal for a concrete syntax, any changes to fUML* that would be required to support such action language. That will probably help closing some gaps in the UML specification that make it hard to execute if you are stuck with the standard.</p>
<p>There are many other interesting bits in the proposal, but I will leave a more detailed analysis to a future post.</p>
<p>* the <a href="http://www.omg.org/docs/ad/06-06-16.pdf" target="_blank">Executable UML Foundation Submission</a> says:<em>&#8220;Foundational UML Subset (fUML) is that subset of UML required to write &#8216;programs&#8217; in UML&#8221;</em></p>
]]></content:encoded>
			<wfw:commentRss>http://abstratt.com/blog/2008/10/15/omg-issues-rfp-concrete-syntax-for-action-semantics/feed/</wfw:commentRss>
		</item>
		<item>
		<title>UML metamodel as text</title>
		<link>http://abstratt.com/blog/2008/10/14/uml-metamodel-as-text/</link>
		<comments>http://abstratt.com/blog/2008/10/14/uml-metamodel-as-text/#comments</comments>
		<pubDate>Wed, 15 Oct 2008 06:50:34 +0000</pubDate>
		<dc:creator>rafael.chaves</dc:creator>
		
		<category><![CDATA[Eclipse]]></category>

		<category><![CDATA[TextUML Toolkit]]></category>

		<category><![CDATA[UML]]></category>

		<guid isPermaLink="false">http://abstratt.com/blog/?p=121</guid>
		<description><![CDATA[I posted this earlier this week on the UML2 newsgroup, thought I would share it here too&#8230;
I published a TextUML rendition of the UML 2.1 metamodel that is shipped by Eclipse UML2 here (warning: 5.9k lines, 370Kb of text). It starts like this:
(...)
model uml;

apply Ecore;
apply Standard;

import ecore;

(* A comment is a textual annotation that can [...]]]></description>
			<content:encoded><![CDATA[<p>I posted this earlier this week on the UML2 newsgroup, thought I would share it here too&#8230;</p>
<p>I published a TextUML rendition of the UML 2.1 metamodel that is shipped by Eclipse UML2 <a href="http://abstratt.com/docs/index.php?title=UML_Metamodel_In_TextUML">here</a> (<em>warning: 5.9k lines, 370Kb of text</em>). It starts like this:</p>
<pre>(...)
model uml;

apply Ecore;
apply Standard;

import ecore;

(* A comment is a textual annotation that can be attached to a set of elements. *)
[Standard::Metaclass]
class Comment specializes Element
    (* Specifies a string that is the comment. *)
    [Ecore::EAttribute(isID=false,isTransient=false,isVolatile=false,isUnsettable=true,annotations=[])]
    public attribute body : String;
    (* References the Element(s) being commented. *)
    public attribute annotatedElement : Element[0, *];
end;
(&#8230;)</pre>
<p>Thought it could be useful to anyone wanting to have a quick look at the UML metamodel. The TextUML renderer does not support all UML element types, so some elements might be missing/incomplete.</p>
<p>I think that is a nice demo of the textual browsing capabilities in the TextUML Toolkit. Of course, much more could be done in that area. If you feel like lending a hand, any help (bug reports included) will be much appreciated.</p>
]]></content:encoded>
			<wfw:commentRss>http://abstratt.com/blog/2008/10/14/uml-metamodel-as-text/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Feature: shorthand notation for aggregation and composition</title>
		<link>http://abstratt.com/blog/2008/09/16/feature-shorthand-notation-for-aggregation-and-composition/</link>
		<comments>http://abstratt.com/blog/2008/09/16/feature-shorthand-notation-for-aggregation-and-composition/#comments</comments>
		<pubDate>Tue, 16 Sep 2008 07:38:13 +0000</pubDate>
		<dc:creator>rafael.chaves</dc:creator>
		
		<category><![CDATA[Eclipse]]></category>

		<category><![CDATA[TextUML Toolkit]]></category>

		<category><![CDATA[UML]]></category>

		<category><![CDATA[v1.2]]></category>

		<guid isPermaLink="false">http://abstratt.com/blog/?p=115</guid>
		<description><![CDATA[Shorthand notation for both composite and aggregate associations has just been checked in (r99-r100). It follows the same spirit as the existing shorthand for plain associations (a.k.a. references).
composition &#60;end-name&#62; : &#60;referenced-type-name&#62;;
or
aggregation &#60;end-name&#62; : &#60;referenced-type-name&#62;;
That will result in a new unnamed association with two member ends, one named, owned by the declaring classifier, with composite or shared aggregation [...]]]></description>
			<content:encoded><![CDATA[<p>Shorthand notation for both composite and aggregate associations has just been checked in (r99-r100). It follows the same spirit as the existing shorthand for plain associations (a.k.a. <a href="http://abstratt.com/docs/index.php?title=TextUML_Guide#References">references</a>).</p>
<pre>composition &lt;end-name&gt; : &lt;referenced-type-name&gt;;</pre>
<p>or</p>
<pre>aggregation &lt;end-name&gt; : &lt;referenced-type-name&gt;;</pre>
<p>That will result in a new unnamed association with two member ends, one named, owned by the declaring classifier, with <em>composite</em> or <em>shared</em> aggregation type, and another unnamed, owned by the association itself.</p>
<p><strong>Change set explained</strong></p>
<p>When adding a new feature to the notation, the typical change set contains:</p>
<ul>
<li>updates to the affected grammar production rules</li>
<li>implementation of the corresponding model generation handling code</li>
<li>a few test cases.</li>
</ul>
<p>In the case of the features presented in this post, the grammar change was quite simple (<a href="http://textuml.svn.sourceforge.net/viewvc/textuml/trunk/plugins/com.abstratt.mdd.frontend.textuml.core/textuml.scc?r1=100&amp;r2=99&amp;pathrev=100">nicer view</a>):</p>
<pre>--- trunk/plugins/com.abstratt.mdd.frontend.textuml.core/textuml.scc	2008/09/16 05:47:13	99
+++ trunk/plugins/com.abstratt.mdd.frontend.textuml.core/textuml.scc	2008/09/16 05:47:20	100
@@ -341,7 +341,9 @@

   attribute_decl = attribute identifier colon type_identifier optional_subsetting semicolon ;

-  reference_decl = reference identifier colon type_identifier optional_subsetting  semicolon ;
+  reference_decl = reference_type identifier colon type_identifier optional_subsetting  semicolon ;
+
+  reference_type = {association} reference | {composition} composition | {aggregation} aggregation ; 

   optional_subsetting = subsets qualified_identifier | {empty} ;</pre>
<p>In other words, where one could declare a reference, one can now declare also a composition or an aggregation (gotta love the readability of <a href="http://sablecc.org" target="_blank">SableCC</a> grammars&#8230;).</p>
<p>The corresponding <a href="http://textuml.svn.sourceforge.net/viewvc/textuml/trunk/plugins/com.abstratt.mdd.frontend.textuml.core/src/com/abstratt/mdd/internal/frontend/textuml/StructureGenerator.java?r1=100&amp;r2=99&amp;pathrev=100">model generator</a> (a.k.a. compiler) changes were quite trivial as well, even more so if you consider I inadvertently checked in a fix to an unrelated bug around comments (just ignore the changes in lines not in the 300&#8217;s).</p>
<p>In terms of lines of code, the bulk of the changes were in the <a href="http://textuml.svn.sourceforge.net/viewvc/textuml/trunk/plugins/com.abstratt.mdd.core.tests/src/com/abstratt/mdd/core/tests/frontend/textuml/AssociationTests.java?r1=99&amp;r2=98&amp;pathrev=99">test class for associations</a>, where I added three test cases. I had postponed writing tests for the reference shorthand notation, so I took this opportunity to write a test for it too.</p>
<p>As most test cases in the TextUML Toolkit <a href="http://textuml.svn.sourceforge.net/viewvc/textuml/trunk/plugins/com.abstratt.mdd.core.tests/src/com/abstratt/mdd/core/tests/frontend/textuml/">test suite</a>, the new test cases in AssociationTests have the following layout:</p>
<ul>
<li>one or more compilation units with TextUML source code are declared</li>
<li>source code is compiled and the resulting errors verified (most test cases won&#8217;t expect errors)</li>
<li>the resulting model is checked - were the expected elements created? Do they have the expected features?</li>
</ul>
<p><strong>Talking about tests</strong></p>
<p>The TextUML Toolkit has a modestly sized test suite (~130 test cases) at this time. It could use dozens, probably hundreds more, but most features are covered to so some extent.</p>
<p>However, as important as coverage, is how much one can learn about the piece of software being tested by reading its test suite. And here is where I believe the TextUML Toolkit&#8217;s test suite shines. For example, by reading the test classes, one could (maybe more effectively than by reading the <a href="http://abstratt.com/docs/index.php?title=TextUML_Guide">notation guide</a>), learn how the following UML features are exposed by the TextUML notation:</p>
<ul>
<li><a href="http://textuml.svn.sourceforge.net/viewvc/textuml/trunk/plugins/com.abstratt.mdd.core.tests/src/com/abstratt/mdd/core/tests/frontend/textuml/ClassTests.java?view=markup">classes and structural features<br />
</a></li>
<li><a href="http://textuml.svn.sourceforge.net/viewvc/textuml/trunk/plugins/com.abstratt.mdd.core.tests/src/com/abstratt/mdd/core/tests/frontend/textuml/PackageTests.java?view=markup">packages, imports, profiles</a></li>
<li><a href="http://textuml.svn.sourceforge.net/viewvc/textuml/trunk/plugins/com.abstratt.mdd.core.tests/src/com/abstratt/mdd/core/tests/frontend/textuml/AssociationTests.java?view=markup">associations</a></li>
<li><a href="http://textuml.svn.sourceforge.net/viewvc/textuml/trunk/plugins/com.abstratt.mdd.core.tests/src/com/abstratt/mdd/core/tests/frontend/textuml/MultiplicityTests.java?view=markup">multiplicity</a></li>
<li><a href="http://textuml.svn.sourceforge.net/viewvc/textuml/trunk/plugins/com.abstratt.mdd.core.tests/src/com/abstratt/mdd/core/tests/frontend/textuml/TemplateTests.java?view=markup">template classes</a></li>
</ul>
<p><strong>Trivia: can you find out from the <a href="http://textuml.svn.sourceforge.net/viewvc/textuml/trunk/plugins/com.abstratt.mdd.core.tests/src/com/abstratt/mdd/core/tests/frontend/textuml/">test suite</a> the difference between a private and a public package import? </strong><em>Give it a try and let me know if I am lying&#8230; by the way, the notation guide does not cover that yet, although the UML specification, of course, does.</em></p>
]]></content:encoded>
			<wfw:commentRss>http://abstratt.com/blog/2008/09/16/feature-shorthand-notation-for-aggregation-and-composition/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Diagrams != Models</title>
		<link>http://abstratt.com/blog/2008/09/10/diagrams-models/</link>
		<comments>http://abstratt.com/blog/2008/09/10/diagrams-models/#comments</comments>
		<pubDate>Thu, 11 Sep 2008 06:28:35 +0000</pubDate>
		<dc:creator>rafael.chaves</dc:creator>
		
		<category><![CDATA[Eclipse]]></category>

		<category><![CDATA[TextUML Toolkit]]></category>

		<category><![CDATA[UML]]></category>

		<category><![CDATA[editorial]]></category>

		<guid isPermaLink="false">http://abstratt.com/blog/?p=114</guid>
		<description><![CDATA[I often see the TextUML Toolkit being compared to tools that produce UML diagrams from textual descriptions. Examples of tools like that are ModSL, MetaUML and UMLGraph. But that doesn&#8217;t really make sense, and here is why: these tools produce diagrams from text. The TextUML Toolkit produces models from text. But what is the difference [...]]]></description>
			<content:encoded><![CDATA[<p>I often see the <a href="http://textuml.com">TextUML Toolkit</a> being compared to tools that produce UML diagrams from textual descriptions. Examples of tools like that are <a href="http://code.google.com/p/modsl/" target="_blank">ModSL</a>, <a href="http://metauml.sourceforge.net/" target="_blank">MetaUML</a> and <a href="http://www.umlgraph.org" target="_blank">UMLGraph</a>. But that doesn&#8217;t really make sense, and here is why: these tools produce <strong>diagrams</strong> from text. The TextUML Toolkit produces <strong>models</strong> from text. But what is the difference between models and diagrams?</p>
<p>According to Wikipedia:</p>
<ul>
<li><em>A <a href="http://en.wikipedia.org/wiki/Diagram" target="_blank"><strong>diagram</strong></a> is a 2D geometric symbolic representation of information according to some visualization technique</em>.</li>
<li><em>A <a href="http://en.wikipedia.org/wiki/Model" target="_blank"><strong>model</strong></a> is a pattern, plan, representation (especially in miniature), or description designed to show the main object or workings of an object, system, or concept</em>.</li>
</ul>
<p>Note that even though both terms are defined around the word &#8220;representation&#8221;, the term &#8220;diagram&#8221; implies graphical visualization, whereas the term &#8220;model&#8221; admits any kind of media, basically because models have no concrete form per se.</p>
<p>Now, please, if you are not convinced yet, read aloud 5 times: <strong>MODELS ARE NOT DIAGRAMS</strong>!</p>
<p>If that didn&#8217;t work, well, maybe the facts below will help:</p>
<ul>
<li>models, not diagrams, <strong>are the subject matter of model-driven development</strong>.</li>
<li>models, not diagrams, <strong>can be validated</strong>.</li>
<li>models, not diagrams, <strong>can serve as input to code generation</strong>.</li>
<li>models, not diagrams, <strong>can be automatically generated from reverse engineering source code</strong>.</li>
<li>models, not diagrams, <strong>can be executed</strong>.</li>
</ul>
<p>Even though diagrams are commonly used for representing models, they are not the only way, and non rare not the most appropriate one (yes, I am talking again about the virtues of textual notations, but I won&#8217;t <a href="http://abstratt.com/blog/2008/05/05/why-we-write-code-and-dont-just-draw-diagrams/">repeat</a> <a href="http://abstratt.com/blog/2008/02/07/textual-notations-and-uml-compliance/">myself</a>).</p>
<p><em>P.S. Maybe it helps adding to the confusion the fact that the TextUML Toolkit has an optional feature that will generate class diagrams automatically from the UML models created with it. However, that is just an optional, loosely integrated feature, and it is definitely <strong>not</strong> the Toolkit&#8217;s thing. Weirdly enough, from my observation, that feature is the main reason most people become interested in the TextUML Toolkit. Well, go figure.</em></p>
]]></content:encoded>
			<wfw:commentRss>http://abstratt.com/blog/2008/09/10/diagrams-models/feed/</wfw:commentRss>
		</item>
		<item>
		<title>TextUML Toolkit 1.1 is out!</title>
		<link>http://abstratt.com/blog/2008/09/02/textuml-toolkit-11-is-out/</link>
		<comments>http://abstratt.com/blog/2008/09/02/textuml-toolkit-11-is-out/#comments</comments>
		<pubDate>Wed, 03 Sep 2008 03:12:16 +0000</pubDate>
		<dc:creator>rafael.chaves</dc:creator>
		
		<category><![CDATA[Eclipse]]></category>

		<category><![CDATA[TextUML Toolkit]]></category>

		<category><![CDATA[v1.1]]></category>

		<guid isPermaLink="false">http://abstratt.com/blog/?p=113</guid>
		<description><![CDATA[TextUML Toolkit 1.1 is out! This is the first release after the TextUML Toolkit became an open source project. Besides the adoption of the Eclipse Public License, these are the new features that were added in 1.1:

more UML features exposed by the textual notation: abstract operations and parameter direction modifiers
more diagram layout controls (compartments, elements [...]]]></description>
			<content:encoded><![CDATA[<p>TextUML Toolkit 1.1 is out! This is the first release after the TextUML Toolkit <a href="http://abstratt.com/blog/2008/08/27/the-textuml-toolkit-needs-you/">became an open source project</a>. Besides the adoption of the Eclipse Public License, these are the <a href="http://abstratt.com/docs/index.php?title=TextUML_Toolkit_Features#Since_1.1">new features</a> that were added in 1.1:</p>
<ul>
<li><strong>more UML features</strong> exposed by the textual notation: abstract operations and parameter direction modifiers</li>
<li><strong>more diagram layout controls</strong> (compartments, elements across packages)</li>
<li>support for <strong>exporting the class diagram to a PNG or JPG image file</strong> (actually, an <a href="http://sourceforge.net/tracker/index.php?func=detail&amp;aid=1783799&amp;group_id=201477&amp;atid=977719">EclipseGraphviz</a> feature, also available for other graphical content providers)</li>
</ul>
<p>Also, the TextUML Toolkit is not available any longer as a standalone download. You need to install Eclipse 3.4 first  (3.3 support was dropped) and then install the TextUML Toolkit using the new smart Software Updates mechanism in Ganymede. See new install instructions <a href="http://abstratt.com/docs/index.php?title=Install_Instructions">here</a>.</p>
<p>As usual, feedback is most welcome - <a href="http://abstratt.com/blog/">blog</a>, <a href="http://sourceforge.net/tracker/?atid=1099987&amp;group_id=236545&amp;func=browse">issue tracker</a> or <a href="http://sourceforge.net/forum/forum.php?forum_id=855420">forum</a>, whatever option works best.</p>
]]></content:encoded>
			<wfw:commentRss>http://abstratt.com/blog/2008/09/02/textuml-toolkit-11-is-out/feed/</wfw:commentRss>
		</item>
		<item>
		<title>The TextUML Toolkit needs you</title>
		<link>http://abstratt.com/blog/2008/08/27/the-textuml-toolkit-needs-you/</link>
		<comments>http://abstratt.com/blog/2008/08/27/the-textuml-toolkit-needs-you/#comments</comments>
		<pubDate>Thu, 28 Aug 2008 05:10:04 +0000</pubDate>
		<dc:creator>rafael.chaves</dc:creator>
		
		<category><![CDATA[Eclipse]]></category>

		<category><![CDATA[TextUML Toolkit]]></category>

		<guid isPermaLink="false">http://abstratt.com/blog/?p=111</guid>
		<description><![CDATA[Since I started working on the TextUML Toolkit more than a year ago, I have been asking myself whether it would make sense to make it available under an open source license.
Open sourcing a product is a tough decision. Once you take that road, there is no way back, at least not without risking a [...]]]></description>
			<content:encoded><![CDATA[<p>Since I started working on the <a href="http://abstratt.com/textuml/">TextUML Toolkit</a> more than a year ago, I have been asking myself whether it would make sense to make it available under an open source license.</p>
<p>Open sourcing a product is a tough decision. Once you take that road, there is no way back, at least not without risking a backlash from the community (of course, if you managed to build a community). And even though there are more and more examples of successful businesses built on top of open source offerings, they are still the exception. However, from day one, my plan for the Toolkit has always been to give it away for free. Going from &#8220;free-as-in-beer&#8221; to &#8220;free-as-in-speech&#8221; is not nearly as traumatic.</p>
<p>I resisted to the idea while I was working on releasing version 1.0, as I considered it as potentially distracting and of questionable value, as then I knew exactly what I wanted to ship and how to get it done. However, now that 1.0 is out of the way, it seems the right thing to do. The first release provided a good starting point, but the project certainly needs more hands on deck to get to the next level. It is also clear that an open source license means a lot when you are catering to a developer audience.</p>
<p>So, you heard it here first: <strong>the next release of the TextU</strong><strong>ML Toolkit will be licensed under the Eclipse Public License</strong>. The source code is already available on <a href="http://sourceforge.net/projects/textuml/" target="_self">SourceForge</a>, and user forums and issue tracking are now also hosted there.</p>
<p>Joining the <a href="http://www.eclipse.org/modeling/" target="_blank">Eclipse Modeling</a> project (more specifically the <a href="http://www.eclipse.org/modeling/mdt/" target="_blank">MDT</a> subproject) is an option for the future, depending on whether the project succeeds in attracting other contributors.</p>
<p style="text-align: center;"><a href="http://sf.net/projects/textuml"><img class="size-full wp-image-112 aligncenter" title="textuml-toolkit-needs-you" src="http://abstratt.com/blog/wp-content/uploads/2008/08/textuml-toolkit-needs-you.jpg" alt="The TextUML Toolkit needs you" width="199" height="262" /></a></p>
<p>Using the tool, spreading the word, asking and answering questions on the <a href="http://sourceforge.net/forum/forum.php?forum_id=855420">forum</a>, <a href="http://sourceforge.net/tracker/?atid=1099987&amp;group_id=236545&amp;func=browse">reporting problems and requesting features</a> are all great ways of helping. Regarding new features, the project needs help on two main fronts: <strong>broader coverage of UML</strong> (state machines, activities), and <strong>better IDE features </strong>(such as content assist, templates, symbolic search and refactoring). If you like the textual notation approach, the tool, and feel like you could lend a hand, please do, <strong>the TextUML Toolkit needs you!</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://abstratt.com/blog/2008/08/27/the-textuml-toolkit-needs-you/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Feature: UML parameter direction kind</title>
		<link>http://abstratt.com/blog/2008/08/21/feature-uml-parameter-direction-kind/</link>
		<comments>http://abstratt.com/blog/2008/08/21/feature-uml-parameter-direction-kind/#comments</comments>
		<pubDate>Fri, 22 Aug 2008 04:27:02 +0000</pubDate>
		<dc:creator>rafael.chaves</dc:creator>
		
		<category><![CDATA[TextUML Toolkit]]></category>

		<category><![CDATA[UML]]></category>

		<category><![CDATA[v1.1]]></category>

		<guid isPermaLink="false">http://abstratt.com/blog/?p=110</guid>
		<description><![CDATA[I just completed the code for supporting parameter direction modifiers. When this feature makes into the next build, modelers will be able to choose for named parameters any of the standard parameter direction kinds: out, inout, or (the default) in. By the way, the syntax for specifying return types remains the same. Here is an [...]]]></description>
			<content:encoded><![CDATA[<p>I just completed the code for supporting parameter direction modifiers. When this feature makes into the next build, modelers will be able to choose for named parameters any of the standard parameter direction kinds: <strong>out</strong>, <strong>inout</strong>, or (the default) <strong>in</strong>. By the way, the syntax for specifying return types remains the same. Here is an example:</p>
<pre>
  operation op1(in p1 : String, out p2 : String);
</pre>
<p>Java developers might consider this feature unnecessary as there is only one way of passing parameters in Java, but for distributed applications (such as those using CORBA or web services) these modifiers are quite relevant.</p>
<p>The corresponding support for rendering operation parameter direction kind modifiers has been added to the TextUML model viewer (decompiler) and <a href="http://eclipsegraphviz.sf.net" target="_blank">EclipseGraphviz</a> graphical rendering component.</p>
<p>This is the first new feature since version 1.0 was released.  The impact of implementing it was quite minimal to the code base, so I am looking forward to implementing the next notation feature. The question is: what feature? Any suggestions?</p>
]]></content:encoded>
			<wfw:commentRss>http://abstratt.com/blog/2008/08/21/feature-uml-parameter-direction-kind/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Not yet another language</title>
		<link>http://abstratt.com/blog/2008/08/06/not-yet-another-language/</link>
		<comments>http://abstratt.com/blog/2008/08/06/not-yet-another-language/#comments</comments>
		<pubDate>Thu, 07 Aug 2008 05:24:07 +0000</pubDate>
		<dc:creator>rafael.chaves</dc:creator>
		
		<category><![CDATA[TextUML Toolkit]]></category>

		<category><![CDATA[UML]]></category>

		<guid isPermaLink="false">http://abstratt.com/blog/?p=108</guid>
		<description><![CDATA[One potential downside people often point out about using TextUML as a notation for UML is that it is yet another language to learn. But that is not really a well founded argument. TextUML is not a full-blown language, it is just an alternative notation for UML, the de facto standard language for modeling. The [...]]]></description>
			<content:encoded><![CDATA[<p>One potential downside people often point out about using TextUML as a notation for UML is that it is yet another language to learn. But that is not really a well founded argument. TextUML is not a full-blown language, it is just an alternative notation for UML, the <em>de facto</em> standard language for modeling. The language semantics of UML are defined in terms of an abstract syntax, and even though the specification includes sections about the graphical notation, it <a href="http://abstratt.com/blog/2008/02/07/textual-notations-and-uml-compliance/">clearly supports</a> the idea of alternate concrete syntaxes.</p>
<p>Moreover, we really shouldn&#8217;t care much about the actual notation being used, be it the standard graphical notation, TextUML or any other textual notation. I surely don&#8217;t. Regardless what notation you use for creating UML models, in the end there is only one language. All you know about the semantics of UML model elements is still true no matter what syntax you choose (for instance, if you know your UML, you should easily become productive with the <a href="http://abstratt.com/textuml/">TextUML Toolkit</a> by just glancing over the <a href="http://abstratt.com/docs/index.php?title=TextUML_Guide">notation guide</a> now and then). In fact, I predict a time where people will want to move between different notations across tasks and time. Also, in the same team, different people will be collaboratively creating UML models using different notations.</p>
<p>This will only be possible because supporting a new concrete syntax is much simpler than supporting a whole new language (by the way, that is the same reason why I believe UML-based DSLs to be a better option than homegrown proprietary DSLs, but I digress). Any reasonably good programmer armed with a parser generator and knowledge of the metamodel should be able to write a compiler for a textual notation for UML, and Eclipse makes it really easy to provide basic IDE features such as those you see in the TextUML Toolkit. Also, there are tools in the horizon such as <a href="http://www.eclipse.org/imp/" target="_blank">IMP</a> and <a href="http://wiki.eclipse.org/TMF" target="_blank">TMF</a> that will make these tasks really a breeze.</p>
<p>Meanwhile, you can stick with <a href="http://abstratt.com/textuml/">what is here today</a>. <img src='http://abstratt.com/blog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /></p>
]]></content:encoded>
			<wfw:commentRss>http://abstratt.com/blog/2008/08/06/not-yet-another-language/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Demo: Installing, configuring and exploring the TextUML Toolkit</title>
		<link>http://abstratt.com/blog/2008/07/29/demo-installing-configuring-and-exploring-the-textuml-toolkit/</link>
		<comments>http://abstratt.com/blog/2008/07/29/demo-installing-configuring-and-exploring-the-textuml-toolkit/#comments</comments>
		<pubDate>Tue, 29 Jul 2008 16:04:09 +0000</pubDate>
		<dc:creator>rafael.chaves</dc:creator>
		
		<category><![CDATA[TextUML Toolkit]]></category>

		<guid isPermaLink="false">http://abstratt.com/blog/?p=103</guid>
		<description><![CDATA[I just uploaded the first interactive presentation showing how to install and configure the TextUML Toolkit on Eclipse 3.4. It starts with a plain Eclipse Platform Runtime install, and guides the reader through the following steps:

making sure you have the right version of Eclipse (3.4)
adding the TextUML Toolkit update site
installing the TextUML Toolkit and EclipseGraphviz
configuring [...]]]></description>
			<content:encoded><![CDATA[<p>I just uploaded the first <a href="http://abstratt.com/textuml/demos/">interactive presentation</a> showing how to install and configure the TextUML Toolkit on Eclipse 3.4. It starts with a plain Eclipse Platform Runtime install, and guides the reader through the following steps:</p>
<ol>
<li>making sure you have the right version of Eclipse (3.4)</li>
<li>adding the TextUML Toolkit update site</li>
<li>installing the TextUML Toolkit and EclipseGraphviz</li>
<li>configuring EclipseGraphviz to point to your Graphviz install</li>
<li>opening the Image Viewer view to show models using the graphical notation</li>
<li>creating an empty TextUML Toolkit project</li>
<li>creating an empty TextUML source file</li>
<li>creating a minimal class diagram with a package and a featureless class</li>
<li>understanding the edit/compile/visualize cycle</li>
</ol>
<p>Give it a try and let me know what you think. Blame me for any weird screen transitions. <a href="http://www.debugmode.com/wink/" target="_blank">Wink</a> is a great little tool but has a few small quirks that I have yet to master, but the next presentation should look better. Cheers,</p>
<p>Rafael</p>
]]></content:encoded>
			<wfw:commentRss>http://abstratt.com/blog/2008/07/29/demo-installing-configuring-and-exploring-the-textuml-toolkit/feed/</wfw:commentRss>
		</item>
		<item>
		<title>One less reason for using Eclipse 3.3</title>
		<link>http://abstratt.com/blog/2008/07/25/one-less-reason-for-using-eclipse-33/</link>
		<comments>http://abstratt.com/blog/2008/07/25/one-less-reason-for-using-eclipse-33/#comments</comments>
		<pubDate>Sat, 26 Jul 2008 05:59:39 +0000</pubDate>
		<dc:creator>rafael.chaves</dc:creator>
		
		<category><![CDATA[Eclipse]]></category>

		<category><![CDATA[TextUML Toolkit]]></category>

		<guid isPermaLink="false">http://abstratt.com/blog/?p=102</guid>
		<description><![CDATA[According to an announcement made on the acceleo-dev mailing list, Acceleo 2.3.0 has been released today. Congrats to the folks at Obeo! The latest bits are already available from Acceleo&#8217;s update site, but the download page still shows 2.2.1 as the latest release available.
That is one less excuse for using Eclipse 3.3, which was the [...]]]></description>
			<content:encoded><![CDATA[<p>According to an announcement made on the <a href="http://mail-archive.ow2.org/acceleo-dev/2008-07/msg00013.html" target="_blank">acceleo-dev</a> mailing list, Acceleo 2.3.0 has been released today. Congrats to the folks at Obeo! The latest bits are already available from Acceleo&#8217;s <a href="http://www.acceleo.org/update/" target="_blank">update site</a>, but the <a href="http://acceleo.org/pages/download-acceleo/en" target="_blank">download page</a> still shows 2.2.1 as the latest release available.</p>
<p>That is one less excuse for using Eclipse 3.3, which was the latest release supported by Acceleo 2.2.1. An added bonus is that the TextUML Toolkit is much more stable on Eclipse 3.4 due to a nasty <a href="https://bugs.eclipse.org/220065" target="_blank">concurrency bug</a> fixed in UML2 for the Ganymede release (kudos to  Kenn and James!).</p>
<p>I just updated the <a href="http://abstratt.com/docs/index.php?title=Pet_Store_Example" target="_self">install instructions</a> for the Pet Store example application. With a new and improved Software Update  mechanism (a.k.a. P2), it became much simpler to install the TextUML Toolkit and Acceleo on Eclipse 3.4. For instance, no need to worry about EMF or UML2, they are transparently installed. How cool is that?</p>
]]></content:encoded>
			<wfw:commentRss>http://abstratt.com/blog/2008/07/25/one-less-reason-for-using-eclipse-33/feed/</wfw:commentRss>
		</item>
		<item>
		<title>TextUML Toolkit 1.0 has been released!</title>
		<link>http://abstratt.com/blog/2008/07/09/textuml-toolkit-10-has-been-released/</link>
		<comments>http://abstratt.com/blog/2008/07/09/textuml-toolkit-10-has-been-released/#comments</comments>
		<pubDate>Thu, 10 Jul 2008 05:18:21 +0000</pubDate>
		<dc:creator>rafael.chaves</dc:creator>
		
		<category><![CDATA[30-day challenge]]></category>

		<category><![CDATA[TextUML Toolkit]]></category>

		<guid isPermaLink="false">http://abstratt.com/blog/?p=95</guid>
		<description><![CDATA[I am proud to announce that the TextUML Toolkit reached version 1.0!

It is basically the same as the RC3 build, made available earlier this week, with version numbers updated to reflect the status of release. You can download the TextUML Toolkit 1.0 from here.
Even if it still preserves the same humble look &#38; feel, the [...]]]></description>
			<content:encoded><![CDATA[<p>I am proud to announce that the <strong>TextUML Toolkit reached version 1.0!</strong></p>
<p><img class="aligncenter size-full wp-image-99" title="splash-10" src="http://abstratt.com/blog/wp-content/uploads/2008/07/splash-10.png" alt="TextUML Toolkit 1.0 splash screen" width="450" height="297" /></p>
<p>It is basically the same as the RC3 build, made available earlier this week, with version numbers updated to reflect the status of release. You can download the TextUML Toolkit 1.0 from <a href="http://abstratt.com/textuml/download.html">here</a>.</p>
<p>Even if it still preserves the same humble look &amp; feel, the TextUML Toolkit has come a long way since the first public milestone was <a href="http://abstratt.com/blog/2007/05/02/a-website-and-the-first-release/">announced here</a> more than a year ago:</p>
<ul>
<li><strong><a href="http://abstratt.com/blog/2007/05/02/a-website-and-the-first-release/">M1</a> - May 2007</strong>
<ul>
<li>website went live</li>
<li>first public milestone</li>
</ul>
</li>
<li><strong><a href="http://abstratt.com/blog/2007/09/02/textuml-toolkit-10-m2-is-available/">M2</a> - September 2007</strong>
<ul>
<li>graphical class diagram visualization for Windows only (spawned as a brand new open-source project, <a href="http://abstratt.com/blog/2007/08/23/a-detour-from-a-detour-from-a-detour-or-how-a-graphical-viewing-framework-for-eclipse-was-born/" target="_self">EclipseGraphviz</a>)</li>
<li>support for <a href="http://abstratt.com/docs/index.php?title=TextUML_Guide#Enumerations">enumerations</a></li>
</ul>
</li>
<li><strong><a href="http://abstratt.com/blog/2008/03/03/textuml-toolkit-is-now-available-on-multiple-platforms/">M3</a> - March 2008</strong>
<ul>
<li>reverse engineering of UML2 models as TextUML source (aka <a href="http://abstratt.com/docs/index.php?title=TextUML_Toolkit_Features#Textual_browsing">textual browsing</a>)</li>
<li>diagram rendering also on Linux and Mac OS/X</li>
<li>click-through license</li>
<li>better stability and performance</li>
<li>website improvements: added user forum (SMF)</li>
</ul>
</li>
<li><strong><a href="http://abstratt.com/blog/2008/05/06/m4-has-left-the-building/">M4</a> - May 2008</strong>
<ul>
<li>duplicate symbols properly reported as compilation errors</li>
<li>TextUML  source renderer showing nested packages</li>
<li>evaluated a few code generators (Acceleo, oAW xPand, EMF JET), chose <a href="http://acceleo.org" target="_blank">Acceleo</a></li>
<li>first milestone available via update site</li>
</ul>
</li>
<li><strong><a href="http://abstratt.com/blog/2008/06/04/textuml-toolkit-m5-is-now-available/">M5</a> - June 2008</strong>
<ul>
<li>fixed a serious memory leak caused by UML2 caching</li>
<li>several bug fixes</li>
<li>decoupled the TextUML Toolkit from EclipseGraphviz (EG becoming just a possible integration)</li>
<li>website improvements: wiki-based (MediaWiki) documentation area</li>
</ul>
</li>
<li><strong><a href="http://abstratt.com/blog/2008/07/08/sample-application-textuml-toolkit-rc3-are-now-available/">1.0</a> - July 2008</strong>
<ul>
<li>support for applying stereotypes to stereotypes</li>
<li>provided a Pet Store-like <a href="http://abstratt.com/docs/index.php?title=Pet_Store_Example">sample application</a></li>
<li>more, better <a href="http://abstratt.com/docs/">documentation</a></li>
</ul>
</li>
</ul>
<p>On the outreach front: in December, I did a quick presentation of the TextUML Toolkit during the <a href="http://abstratt.com/blog/2007/12/08/eclipse-democamp-in-vancouver/">Eclipse DemoCamp in Vancouver</a>, and had the opportunity of doing a longer, more detailed presentation at the <a href="http://abstratt.com/blog/2008/03/26/textuml-toolkit-at-vijug/">VIJUG&#8217;s meeting</a> in April. At both opportunities, receptivity to the project was quite good. People seemed very keen on the idea of UML models as text, and I got lots of interesting questions.</p>
<p>In early June, I joined many other fellow mISVers in the <a href="http://feeds.feedburner.com/30dayers" target="_blank">30-day product challenge</a>. Even though I didn&#8217;t achieve <a href="http://abstratt.com/blog/2008/06/04/textuml-toolkit-commitments-for-the-30-day-challenge/">everything I had set out to do</a>, I am quite happy for having been part of it, as it provided me with the strength and courage to finally ship the first release.</p>
<p>Overall, I am quite happy with the current state of the TextUML Toolkit (or else I would not have declared a release). On the other hand, I confess I am disappointed that interest has not picked up yet, considering it is a free tool that provides real value. Now that there is an example describing how to use the TextUML Toolkit and Acceleo for generating code from UML models (which is the main application of the tool), I hope the value of the tool will become more apparent. And I guess more attention to the marketing side of things won&#8217;t hurt.</p>
<p>For the next few months, I will be focusing on a more ambitious project I have hinted at here a couple of times before. During this time, I will be promoting the TextUML Toolkit, writing more documentation and examples, and fixing any bugs users might report, but I do not plan to develop any new features unless there is user demand.</p>
<p>Well, it has been a fun ride, and I appreciate the interest of those of you who have followed at least some part of the journey. Your comments on the blog have been very helpful and encouraging. Thanks a lot!</p>
<p>Cheers,</p>
<p>Rafael</p>
]]></content:encoded>
			<wfw:commentRss>http://abstratt.com/blog/2008/07/09/textuml-toolkit-10-has-been-released/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Sample application, TextUML Toolkit RC3 are now available</title>
		<link>http://abstratt.com/blog/2008/07/08/sample-application-textuml-toolkit-rc3-are-now-available/</link>
		<comments>http://abstratt.com/blog/2008/07/08/sample-application-textuml-toolkit-rc3-are-now-available/#comments</comments>
		<pubDate>Tue, 08 Jul 2008 08:58:59 +0000</pubDate>
		<dc:creator>rafael.chaves</dc:creator>
		
		<category><![CDATA[30-day challenge]]></category>

		<category><![CDATA[TextUML Toolkit]]></category>

		<guid isPermaLink="false">http://abstratt.com/blog/?p=94</guid>
		<description><![CDATA[The Pet Store-like model-driven sample application is now available. This initial version contains UML models for a few of the key entities, and generates the domain model classes and their corresponding Hibernate mapping files. I noticed the generated mapping files (or maybe the models) have a few issues and/or missing elements, but as a first [...]]]></description>
			<content:encoded><![CDATA[<p>The Pet Store-like model-driven sample application is <a href="http://abstratt.com/docs/index.php?title=Pet_Store_Example">now available</a>. This initial version contains UML models for a few of the key entities, and generates the domain model classes and their corresponding Hibernate mapping files. I noticed the generated mapping files (or maybe the models) have a few issues and/or missing elements, but as a first stab I am quite happy. Please give it a try. It is a great way example of how the TextUML Toolkit can be used in the context of code generation, in this case, with the awesome <a href="http://acceleo.org" target="_blank">Acceleo</a> tool (open-source). Note this is just an example - you should be able to use any UML2-based Acceleo modules (like those available from Acceleo&#8217;s <a href="http://www.acceleo.org/pages/modules-repository/en" target="_blank">module repository</a>) and generate code from any UML models you create using the TextUML Toolkit.</p>
<p>In addition to the sample application, the latest TextUML Toolkit release candidate (RC3) is also now available, both as a standalone <a href="http://abstratt.com/textuml/download.html">download</a> and as an <a href="http://abstratt.com/textuml/update/">update site</a>, as usual. Work items delivered in this build:</p>
<ul>
<li>ticket #182 - associations end up with one single member end</li>
<li>ticket #183 - cannot define stereotypes on stereotypes</li>
<li>ticket #167 - provide sample application</li>
</ul>
<p>To my fellow 30-dayers - yes, its 8 days past the 30 day deadline, but unless I get a serious bug reported during this week, this is it, I am about to achieve my modest goals (yay!) of shipping 1.0 and a sample application (remember, I started working on the TextUML Toolkit quite  while ago). The only planned change for 1.0 is basically updating the splash screen to sport the elusive 1.0 version number.</p>
<p><strong>Feedback on RC3 or the sample application is most welcome</strong>. As usual, feel free to comment here or on the <a href="http://abstratt.com/forums/">forums</a>.</p>
<p>Cheers,</p>
<p>Rafael</p>
]]></content:encoded>
			<wfw:commentRss>http://abstratt.com/blog/2008/07/08/sample-application-textuml-toolkit-rc3-are-now-available/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Time is up</title>
		<link>http://abstratt.com/blog/2008/07/01/times-up/</link>
		<comments>http://abstratt.com/blog/2008/07/01/times-up/#comments</comments>
		<pubDate>Tue, 01 Jul 2008 09:05:37 +0000</pubDate>
		<dc:creator>rafael.chaves</dc:creator>
		
		<category><![CDATA[30-day challenge]]></category>

		<guid isPermaLink="false">http://abstratt.com/blog/?p=93</guid>
		<description><![CDATA[Even after cutting scope to close to half of what I was planning, I failed to accomplish what I set off to do in the 30-day challenge. I basically have the code and the example in a releasable state, but I have no means to publish a tutorial with images due to some unexpected web [...]]]></description>
			<content:encoded><![CDATA[<p>Even after cutting scope to close to half of what I was planning, I failed to accomplish what I set off to do in the 30-day challenge. I basically have the code and the example in a releasable state, but I have no means to publish a tutorial with images due to some unexpected web site issues. Even without this issue, I might not have made it, given how much work I left to the last day. Anyway&#8230; after spending quite some time trying to get MediaWiki to behave (with no success), now I don&#8217;t have time or energy for packaging and pushing the bits of the TextUML Toolkit RC3 (hopefully 1.0?) to the FTP server. Should do that at some point this week, and also hopefully get the wiki back online.</p>
<p>Well, enough ranting, need some sleep now. Thanks to the other <a href="https://feeds.feedburner.com/30dayers" target="_blank">30-dayers</a> for being part of this, and hope you guys had better luck. Cheers,</p>
<p>Rafael</p>
<p>P.S.: I considered not writing in my current mood, but I thought in the end it would be more honest doing so, so there you go</p>
]]></content:encoded>
			<wfw:commentRss>http://abstratt.com/blog/2008/07/01/times-up/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Scope cutting season</title>
		<link>http://abstratt.com/blog/2008/06/24/scope-cutting-season/</link>
		<comments>http://abstratt.com/blog/2008/06/24/scope-cutting-season/#comments</comments>
		<pubDate>Tue, 24 Jun 2008 09:02:04 +0000</pubDate>
		<dc:creator>rafael.chaves</dc:creator>
		
		<category><![CDATA[30-day challenge]]></category>

		<guid isPermaLink="false">http://abstratt.com/blog/?p=92</guid>
		<description><![CDATA[Well, things are not going so smoothly in TextUML Toolkit land. Hope the others are doing better.

a user reported that the embedded Graphviz install was not working for him on Windows XP (I expected it to work on all Windows versions, but really tested only on Vista). After some investigation, I realized that a minimal [...]]]></description>
			<content:encoded><![CDATA[<p>Well, things are not going so smoothly in TextUML Toolkit land. Hope <a href="http://feeds.feedburner.com/30dayers" target="_blank">the others</a> are doing better.</p>
<ul>
<li>a user <a href="http://abstratt.com/forums/index.php?topic=11.0">reported</a> that the embedded Graphviz install was not working for him on Windows XP (I expected it to work on all Windows versions, but really tested only on Vista). After some investigation, I realized that a minimal Graphviz install will look very different depending on the Windows version. Result: I decided to quit bundling Graphviz for Windows. Now, the TextUML Toolkit users on Windows have to manually install Graphviz on their own, and configure the location of an external Graphviz manually, just as Linux and Mac OS X users had to do since day 0. The latest build RC2 (just published) already reflects that change.</li>
<li>a simple Wordpress migration using GoDaddy&#8217;s Hosting Connection became a big hassle (their rollback feature did not work either). Result: had to delete my existing install, and install the latest version from scratch (thankfully, Wordpress export/import features worked like a charm). Lesson learned: avoid doing any infrastructure changes that are not critical in the weeks preceding a release (even if they seem harmless).</li>
</ul>
<p>I finally woke up to the fact I am really late with most of the <a href="http://abstratt.com/blog/2008/06/04/textuml-toolkit-commitments-for-the-30-day-challenge/">deliverables I planned for June 30th</a> and we are already a week from the deadline. I decided thus to postpone all non-product related items. Other than any critical bug that might be found this week, I will be focusing on publishing the sample application on the wiki. Nothing else.</p>
<p>Well, maybe some blogging.</p>
]]></content:encoded>
			<wfw:commentRss>http://abstratt.com/blog/2008/06/24/scope-cutting-season/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Moving forward again</title>
		<link>http://abstratt.com/blog/2008/06/19/moving-forward-again/</link>
		<comments>http://abstratt.com/blog/2008/06/19/moving-forward-again/#comments</comments>
		<pubDate>Thu, 19 Jun 2008 08:58:49 +0000</pubDate>
		<dc:creator>rafael.chaves</dc:creator>
		
		<category><![CDATA[30-day challenge]]></category>

		<category><![CDATA[TextUML Toolkit]]></category>

		<guid isPermaLink="false">http://abstratt.com/blog/2008/06/19/moving-forward-again/</guid>
		<description><![CDATA[I finally figured out what was preventing me from exporting the product from Eclipse and worked around the problem. So the TextUML Toolkit RC1 is finally available for download, 4 days after planned.
It turned out the issue that was blocking me was not specific to Eclipse 3.4 RC3. Still, I decided that, until the end [...]]]></description>
			<content:encoded><![CDATA[<p>I finally <a href="https://bugs.eclipse.org/bugs/show_bug.cgi?id=237435" target="_blank">figured out</a> what was preventing me from exporting the product from Eclipse and worked around the problem. So the TextUML Toolkit RC1 is finally available for <a href="http://abstratt.com/textuml/download.html">download</a>, 4 days after <a href="http://abstratt.com/blog/2008/06/04/textuml-toolkit-commitments-for-the-30-day-challenge/">planned</a>.</p>
<p>It turned out the issue that was blocking me was not specific to Eclipse 3.4 RC3. Still, I decided that, until the end of the 30-day challenge, I will continue to use 3.3 to avoid <a href="https://bugs.eclipse.org/bugs/show_bug.cgi?id=232476" target="_blank">any further surprises</a>. I intend to go back to 3.4 shortly after that.</p>
<p>Another important task that was planned for the first phase (first two weeks) and I have yet to address is the sample application (models + templates). That means some of the less critical work items planned for the second phase will have to be postponed (probably the artwork item).</p>
<p>Even though I am behind schedule, I am really happy to be moving forward again&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://abstratt.com/blog/2008/06/19/moving-forward-again/feed/</wfw:commentRss>
		</item>
		<item>
		<title>The bleeding edge: not for the faint of heart</title>
		<link>http://abstratt.com/blog/2008/06/18/the-bleeding-edge-not-for-the-faint-of-heart/</link>
		<comments>http://abstratt.com/blog/2008/06/18/the-bleeding-edge-not-for-the-faint-of-heart/#comments</comments>
		<pubDate>Wed, 18 Jun 2008 08:41:06 +0000</pubDate>
		<dc:creator>rafael.chaves</dc:creator>
		
		<category><![CDATA[30-day challenge]]></category>

		<category><![CDATA[Eclipse]]></category>

		<category><![CDATA[TextUML Toolkit]]></category>

		<guid isPermaLink="false">http://abstratt.com/blog/2008/06/18/the-bleeding-edge-not-for-the-faint-of-heart/</guid>
		<description><![CDATA[(To my fellow 30-dayers: It has been a while since my last post in the 30-day challenge category - at least if you think of how brief it is. But worse, I am also behind the schedule. My goal was to have the first release candidate on the 15th. It is the 17th and I [...]]]></description>
			<content:encoded><![CDATA[<p><em>(To my fellow <a href="http://feeds.feedburner.com/30dayers" target="_blank">30-dayers</a>: It has been a while since my <a href="http://abstratt.com/blog/2008/06/11/textuml-toolkit-layout-control-for-class-diagrams/">last post</a> in the <a href="http://abstratt.com/blog/category/30day/">30-day challenge</a> category - at least if you think of how brief it is. But worse, I am also behind the schedule. My goal was to have the first release candidate on the 15th. It is the 17th and I am not quite there yet. Read on for details) </em></p>
<p>Every now and then, the Eclipse Project goes through quite significant changes (OSGi and RCP in 3.0, P2 now in 3.4). And when the platform moves this fast, everybody living above feels it. New features are not well documented or are not very stable. Tooling for plug-in developers lags behind. Things that used to work before, are now broken.</p>
<p>That is really hard to avoid, even though backward compatibility with the previous release is a hard requirement for the Eclipse Project. I was part of the Eclipse Platform Core team in 3.0 (shipped in 2004) and even though we were having lots of fun with the move to OSGi and the birth of Equinox, it was a lot of work having to implement the new functionality and at the same time make sure all the existing use cases continued to work. And, as usual, some corner cases we missed were only discovered close to the release date, or even right after, when most people will finally migrate from the previous release. Many of the OSGi-aware features were only exposed by the plug-in development tooling in the subsequent releases. And even though we felt like all that backward compatibility effort was draining a lot of our time and energy, users would still get mad at us for introducing regressions, when they didn&#8217;t really give a damn about <a href="http://eclipse.org/equinox/" target="_blank">OSGi</a> or <a href="http://wiki.eclipse.org/index.php/Rich_Client_Platform">RCP</a>.</p>
<p>In hindsight, it is clear that all that work paid off when you look at the impact that OSGi and RCP had in the growth of Eclipse way beyond the realm of IDE frameworks. People are using Eclipse as a platform for embedded and <a href="http://http://springsource.com/products/suite/applicationplatform" target="_blank">server-side</a> applications, or <a href="http://www.rssowl.org" target="_blank">rich client applications</a> you could swear were native. OSGi itself had a boom in adoption (and features) since when it was adopted in Eclipse and moved from niche  technology into the mainstream.</p>
<p>I am sure the same is going to happen with <a href="http://wiki.eclipse.org/Equinox_p2" target="_blank">P2</a>, probably in smaller proportions (given its scope). We will be taking its features for granted two years from now, and the pain of change will have been long forgotten. And the good people developing P2 know that. But, this time around I am&#8230;</p>
<p><strong>&#8230;on the other side of the fence</strong></p>
<p>The plan of shipping <a href="http://abstratt.com/textuml/">TextUML Toolkit</a> 1.0 (scheduled for June 30th) on top of Eclipse 3.4 (scheduled for late June - yes, that should have raised a flag) proved to be quite a challenge. I have had minor problems with the latest Eclipse SDK milestones, which I could work around, but more recently I have faced more serious, blocking issues. And even the non-blocking problems and difficulties, which are just time wasters, grow in importance when you are in a tight schedule.</p>
<p>So I stepped back and decided to and develop and ship the TextUML Toolkit 1.0 on Eclipse 3.3, which was last year&#8217;s release. It was not an easy decision, as I will be missing many improvements and fixes (some of them to pretty significant issues) made in the <a href="http://eclipse.org/uml2/" target="_blank">UML2</a> and <a href="http://eclipse.org/emf/" target="_blank">EMF</a> components, which are the main requirements. But at least I should be able to move forward in a more predictable pace, and be more confident I have a chance of meeting the June 30th deadline, even if quality might suffer. On the bright side, thanks to backward compatibility, the same update site should still work with 3.4, so users using the Update Manager/P2 in Eclipse 3.4 should be able to install the TextUML Toolkit features, and get better performance and stability.</p>
<p>What makes me feel good is that <a href="http://www.eclipse.org/eclipse/development/eclipse_project_plan_3_4.html#Compatibility" target="_blank">backward compatibility</a> continues to be one of the Eclipse key values (e4 rumors aside), so regressions receive high priority and are fixed as quickly as possible. The least we (end-users and product providers) can do is to diligently <a href="http://bugs.eclipse.org/bugs" target="_blank">report them</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://abstratt.com/blog/2008/06/18/the-bleeding-edge-not-for-the-faint-of-heart/feed/</wfw:commentRss>
		</item>
		<item>
		<title>TextUML Toolkit - Layout control for class diagrams</title>
		<link>http://abstratt.com/blog/2008/06/11/textuml-toolkit-layout-control-for-class-diagrams/</link>
		<comments>http://abstratt.com/blog/2008/06/11/textuml-toolkit-layout-control-for-class-diagrams/#comments</comments>
		<pubDate>Thu, 12 Jun 2008 06:41:14 +0000</pubDate>
		<dc:creator>rafael.chaves</dc:creator>
		
		<category><![CDATA[30-day challenge]]></category>

		<category><![CDATA[Eclipse]]></category>

		<category><![CDATA[Graphviz]]></category>

		<category><![CDATA[TextUML Toolkit]]></category>

		<category><![CDATA[UML]]></category>

		<guid isPermaLink="false">http://abstratt.com/blog/2008/06/11/textuml-toolkit-layout-control-for-class-diagrams/</guid>
		<description><![CDATA[Contrary to my original intention of working this week on code generation and the sample application, I have been doing some improvements in the graphical visualization of UML models in EclipseGraphviz. EclipseGraphviz (a spin-off of the TextUML Toolkit) is an open source component (EPL) that integrates Graphviz into Eclipse, and among other things, can generate [...]]]></description>
			<content:encoded><![CDATA[<p>Contrary to my <a href="http://abstratt.com/blog/2008/06/04/textuml-toolkit-commitments-for-the-30-day-challenge/">original intention</a> of working this week on code generation and the sample application, I have been doing some improvements in the graphical visualization of UML models in <a href="http://eclipsegraphviz.sf.net" target="_blank">EclipseGraphviz</a>. EclipseGraphviz (<a href="http://abstratt.com/blog/2007/08/23/a-detour-from-a-detour-from-a-detour-or-how-a-graphical-viewing-framework-for-eclipse-was-born/">a spin-off</a> of the <a href="http://abstratt.com/textuml/">TextUML Toolkit</a>) is an open source component (EPL) that integrates <a href="http://graphviz.org" target="_blank">Graphviz</a> into Eclipse, and among other things, can generate UML class diagrams from <a href="http://wiki.eclipse.org/MDT-UML2" target="_blank">Eclipse UML2</a> models on the fly.</p>
<p>After fixing a <a href="http://sourceforge.net/tracker/index.php?func=detail&amp;aid=1986114&amp;group_id=201477&amp;atid=977719" target="_blank">couple</a> of <a href="http://sourceforge.net/tracker/index.php?func=detail&amp;aid=1986112&amp;group_id=201477&amp;atid=977719" target="_blank">bugs</a>, I decided to add a preference page to give some level of control over the way the diagrams are laid out. Here is what it looks like:</p>
<p><img src="http://abstratt.com/blog/wp-content/uploads/2008/06/eg-pref-page1.png"/></p>
<p>You can now turn on or off several adornments such as association end names, multiplicities and membership. For example, this diagram was rendered using the options shown above:</p>
<p><img src="http://abstratt.com/blog/wp-content/uploads/2008/06/eg-pref-page-demo-11.png"/></p>
<p>Whereas the following one was rendered for the same model while having only  the &#8220;Create constraints for association navigability&#8221; option checked:</p>
<p><img src="http://abstratt.com/blog/wp-content/uploads/2008/06/eg-pref-page-demo-01.png"/></p>
<p>As you can see, enabling constraints based on association navigability can significantly alter the diagram layout. One good reason for enabling that option is to avoid diagrams that grow too much horizontally (as Graphviz will put all nodes of the same rank on the same row), but I personally prefer the former layout.</p>
<p>Side note: I considered dropping the graphical visualization feature altogether for 1.0, as I see it as just a nice to have, and am not totally happy with the quality of the diagrams generated by Graphviz. But every bit of feedback I got for the TextUML Toolkit was that the graphical visualization was really nice, so I changed my mind. But unless serious bugs are found in this area, I have no plans of touching the EclipseGraphviz code again until after I complete the <a href="http://abstratt.com/blog/category/30day/">30-day challenge</a>.</p>
<p>Side note #2: I expanded the <a href="http://abstratt.com/docs/index.php?title=FAQ">FAQ</a> to cover the issue of notation choice and the role of EclipseGraphviz in the TextUML Toolkit.</p>
]]></content:encoded>
			<wfw:commentRss>http://abstratt.com/blog/2008/06/11/textuml-toolkit-layout-control-for-class-diagrams/feed/</wfw:commentRss>
		</item>
		<item>
		<title>TextUML Toolkit - Progress on the sample application</title>
		<link>http://abstratt.com/blog/2008/06/06/textuml-toolkit-progress-on-the-sample-application/</link>
		<comments>http://abstratt.com/blog/2008/06/06/textuml-toolkit-progress-on-the-sample-application/#comments</comments>
		<pubDate>Fri, 06 Jun 2008 07:48:56 +0000</pubDate>
		<dc:creator>rafael.chaves</dc:creator>
		
		<category><![CDATA[30-day challenge]]></category>

		<category><![CDATA[TextUML Toolkit]]></category>

		<guid isPermaLink="false">http://abstratt.com/blog/2008/06/06/textuml-toolkit-progress-on-the-sample-application/</guid>
		<description><![CDATA[Took a first stab at creating the model for the sample application for the TextUML Toolkit. As I wrote here before, the sample application is derived from Sun&#8217;s Java Pet Store application. Take a look at the models, and let me know how the textual notation feels.
It is late and I am tired, so it [...]]]></description>
			<content:encoded><![CDATA[<p>Took a first stab at creating <a href="http://abstratt.com/docs/index.php?title=Pet_Store_Example">the model for the sample application</a> for the <a href="http://abstratt.com/textuml/">TextUML Toolkit</a>. As I <a href="http://abstratt.com/blog/2008/06/04/textuml-toolkit-commitments-for-the-30-day-challenge/">wrote here</a> before, the sample application is derived from Sun&#8217;s <a href="https://blueprints.dev.java.net/petstore/" target="_blank">Java Pet Store</a> application. <a href="http://abstratt.com/docs/index.php?title=Pet_Store_Example">Take a look at the models</a>, and let me know how the textual notation feels.</p>
<p>It is late and I am tired, so it is very likely I have made at least a few mistakes (well, not <a href="http://abstratt.com/docs/index.php?title=TextUML_Toolkit_Features#Automatic_compilation">syntactic ones</a>, as the tool tells me about those). Of course, when I start working towards generating the code from the models, I am sure any mistakes I made will quickly emerge.</p>
<p>Cheers,</p>
<p>Rafael</p>
]]></content:encoded>
			<wfw:commentRss>http://abstratt.com/blog/2008/06/06/textuml-toolkit-progress-on-the-sample-application/feed/</wfw:commentRss>
		</item>
		<item>
		<title>TextUML Toolkit M5 is now available</title>
		<link>http://abstratt.com/blog/2008/06/04/textuml-toolkit-m5-is-now-available/</link>
		<comments>http://abstratt.com/blog/2008/06/04/textuml-toolkit-m5-is-now-available/#comments</comments>
		<pubDate>Thu, 05 Jun 2008 04:01:19 +0000</pubDate>
		<dc:creator>rafael.chaves</dc:creator>
		
		<category><![CDATA[TextUML Toolkit]]></category>

		<guid isPermaLink="false">http://abstratt.com/blog/2008/06/04/textuml-toolkit-m5-is-now-available/</guid>
		<description><![CDATA[M5 is now available. You can download a self-contained product install, or use the Eclipse update mechanism for adding the TextUML Toolkit to your Eclipse SDK (3.3 or 3.4), on Windows, Mac OS X or Linux. Please see instructions on the download page.
This milestone was mostly about bug fixing (including a performance bug), but it [...]]]></description>
			<content:encoded><![CDATA[<p>M5 is now available. You can download a self-contained product install, or use the Eclipse update mechanism for adding the TextUML Toolkit to your Eclipse SDK (3.3 or 3.4), on Windows, Mac OS X or Linux. Please see instructions on the <a href="http://abstratt.com/textuml/download.html">download page</a>.</p>
<p>This milestone was mostly about bug fixing (including a performance bug), but it also included a minor architectural change: graphical visualization is now optional, and supports different implementations.</p>
<p>This is the list of bug fixes:</p>
<table border="0" cellspacing="0" frame="void" rules="none">
<tbody>
<tr>
<th width="42" height="20" align="left">id</th>
<th width="10" align="left"></th>
<th width="400" align="left">summary</th>
</tr>
<tr>
<td>171</td>
<td></td>
<td>ClassCastException if an interface has an implements section</td>
</tr>
<tr>
<td>172</td>
<td></td>
<td>ClassCastException if tagged value does not match property&#8217;s type</td>
</tr>
<tr>
<td>173</td>
<td></td>
<td>NPE for invalid input</td>
</tr>
<tr>
<td>174</td>
<td></td>
<td>resource leak in TextUML  Source Viewer</td>
</tr>
<tr>
<td>175</td>
<td></td>
<td>EmptyStackException whn multiple duplicate named elements exist</td>
</tr>
<tr>
<td>176</td>
<td></td>
<td>CoreException when cleaning up file that is use on Windows</td>
</tr>
<tr>
<td>177</td>
<td></td>
<td>show annotations for packages in source viewer</td>
</tr>
<tr>
<td>178</td>
<td></td>
<td>decouple TextUML source editor from the EclipseGraphviz viewer</td>
</tr>
</tbody>
</table>
]]></content:encoded>
			<wfw:commentRss>http://abstratt.com/blog/2008/06/04/textuml-toolkit-m5-is-now-available/feed/</wfw:commentRss>
		</item>
		<item>
		<title>TextUML Toolkit - Commitments for the 30 day challenge</title>
		<link>http://abstratt.com/blog/2008/06/04/textuml-toolkit-commitments-for-the-30-day-challenge/</link>
		<comments>http://abstratt.com/blog/2008/06/04/textuml-toolkit-commitments-for-the-30-day-challenge/#comments</comments>
		<pubDate>Wed, 04 Jun 2008 07:58:24 +0000</pubDate>
		<dc:creator>rafael.chaves</dc:creator>
		
		<category><![CDATA[30-day challenge]]></category>

		<category><![CDATA[TextUML Toolkit]]></category>

		<guid isPermaLink="false">http://abstratt.com/blog/2008/06/04/textuml-toolkit-commitments-for-the-30-day-challenge/</guid>
		<description><![CDATA[As I mentioned before, I joined the 30 day product challenge with the TextUML Toolkit. Of the benefits of being part of the challenge, the ones that most attract me are the sense of being part of something greater,  and the motivational power of peer pressure (even if imaginary) and fear of public failure. [...]]]></description>
			<content:encoded><![CDATA[<p>As I <a href="http://abstratt.com/blog/2008/05/30/30-day-challenge-the-road-to-textuml-toolkit-10/">mentioned before</a>, I joined the 30 day product challenge with the <a href="http://abstratt.com/textuml/">TextUML Toolkit</a>. Of the benefits of being part of the challenge, the ones that most attract me are the sense of being part of something greater,  and the motivational power of peer pressure (even if imaginary) and fear of public failure. With that in mind, these are my commitments for the challenge:</p>
<p><strong>Phase 1 - June 1st to June 15th:</strong></p>
<p>Focus on finishing development and examples.</p>
<ul>
<li>publish the milestone 5 of the TextUML Toolkit (M5) (<strong>done</strong>)</li>
<li>making UML graphical visualization an optional component (<strong>done</strong>)</li>
<li>publish an example application
<ul>
<li>model - probably a subset of the <a href="https://blueprints.dev.java.net/petstore/" target="_blank">Java Pet Store</a> app</li>
<li>code generation templates - probably using <a href="http://acceleo.org" target="_blank">Acceleo</a></li>
</ul>
</li>
<li>should target Eclipse 3.4 (<strong>done</strong> - M5 can be installed on Eclipse 3.4 or 3.3, but download will continue to bundle 3.3 due to lack of tool support for product creation in the new software update mechanism available in Eclipse 3.4)</li>
<li>bug fixing (continuously)</li>
<li>improve documentation (continuously)</li>
<li>publish Release Candidate 1 on June 15th</li>
<li>development freeze</li>
</ul>
<p><strong>Phase 2 - June 16th to June 30th:</strong></p>
<p>Focus on polishing and getting it out of the door.</p>
<ul>
<li>major/critical bugs</li>
<li>minor bugs/polish items</li>
<li>improve documentation (continuously)</li>
<li>artwork
<ul>
<li>icons for TextUML source files, new project wizard  (outsource)</li>
<li>website (images, skins)*</li>
</ul>
</li>
<li>legal stuff
<ul>
<li>make sure we comply with all licenses for any bundled open source software</li>
<li>legal notices using Eclipse branding</li>
<li>beef up license (no redistribution, no reverse engineering)</li>
</ul>
</li>
<li>PR (go easy, this is 1.0) - <a href="http://www.eclipseplugincentral.com/Web_Links-index-req-viewlink-cid-1229.html" target="_blank">EPIC</a>, announcement-friendly developer forums</li>
<li>one active beta-tester</li>
<li>one early adopter*</li>
<li>screencasts (this is a biggie)
<ul>
<li> creating a UML model using the TextUML Toolkit</li>
<li>generating code using Acceleo</li>
</ul>
</li>
<li>RC3 on June 29th</li>
<li><strong>declare 1.0 on Monday June 30th</strong></li>
</ul>
<p><em>* marks nice-to-have items</em></p>
<p>There you go. You, my readers (yes, both of you), can now hold me accountable if I fail to accomplish any of the work items I committed to do above.</p>
<p>To my fellow <a href="http://feeds.feedburner.com/30dayers" target="_blank"><em>30-dayers</em></a>: good luck to us all. It will be fun!</p>
]]></content:encoded>
			<wfw:commentRss>http://abstratt.com/blog/2008/06/04/textuml-toolkit-commitments-for-the-30-day-challenge/feed/</wfw:commentRss>
		</item>
		<item>
		<title>When UML meets Slashdot</title>
		<link>http://abstratt.com/blog/2008/06/02/when-uml-meets-slashdot/</link>
		<comments>http://abstratt.com/blog/2008/06/02/when-uml-meets-slashdot/#comments</comments>
		<pubDate>Tue, 03 Jun 2008 06:28:36 +0000</pubDate>
		<dc:creator>rafael.chaves</dc:creator>
		
		<category><![CDATA[Eclipse]]></category>

		<category><![CDATA[UML]]></category>

		<category><![CDATA[editorial]]></category>

		<guid isPermaLink="false">http://abstratt.com/blog/2008/06/02/when-uml-meets-slashdot/</guid>
		<description><![CDATA[There was a recent thread about UML on Slashdot, as a reaction to this blog post . The headline: &#8220;Is UML Really Dead, Or Only Cataleptic?&#8220;. Many posters are clearly bitter towards UML. There seems to be a strong preference for using UML as a communication tool as opposed to as a basis for partial [...]]]></description>
			<content:encoded><![CDATA[<p>There was a <a href="http://developers.slashdot.org/developers/08/05/31/1726208.shtml" target="_blank">recent thread about UML</a> on Slashdot, as a reaction to <a href="http://littletutorials.com/2008/05/15/13-reasons-for-umls-descent-into-darkness/" target="_blank">this blog post</a> . The headline: &#8220;<em>Is UML Really Dead, Or Only Cataleptic?</em>&#8220;. Many posters are clearly bitter towards UML. There seems to be a strong preference for using UML as a communication tool as opposed to as a basis for partial or full code generation (see post on <a href="http://abstratt.com/blog/2007/05/12/uml-modes-and-tools/">UML modes</a>). Many also complain that the graphical notation is cumbersome and that it hurts productivity (<a href="http://abstratt.com/blog/2008/05/05/why-we-write-code-and-dont-just-draw-diagrams/">+1</a>!). A few actually like UML; however, it is said that the UML specification is vast and complex and that you should pick the parts of UML that make sense for your case/goals (+1 here too).</p>
<p>Lots of interesting points, but the most negative posts are just misinformed. But that is Slashdot, what should I expect? Java and Eclipse have,  in general, a poor receptivity on Slashdot, so I guess UML is in good company.</p>
<p>Of course, while I disagree with those that ditch UML because it was not properly employed in some project they worked, I strongly agree with the complaints about UML (graphical) diagrams being cumbersome and hard to deal with, as I have written <a href="http://abstratt.com/blog/2008/05/05/why-we-write-code-and-dont-just-draw-diagrams/">here before</a>. But that is not a problem with UML per se, but with the fact most still see it as a graphical language.</p>
<p>UML certainly has its share of problems (design by committee, no reference implementation), but I strongly believe it is very useful and that there isn&#8217;t anything out there (I am talking to you, home grown DSLs) that can replace it as the lingua franca for model-driven development.</p>
]]></content:encoded>
			<wfw:commentRss>http://abstratt.com/blog/2008/06/02/when-uml-meets-slashdot/feed/</wfw:commentRss>
		</item>
		<item>
		<title>30-day challenge: the road to TextUML Toolkit 1.0</title>
		<link>http://abstratt.com/blog/2008/05/30/30-day-challenge-the-road-to-textuml-toolkit-10/</link>
		<comments>http://abstratt.com/blog/2008/05/30/30-day-challenge-the-road-to-textuml-toolkit-10/#comments</comments>
		<pubDate>Sat, 31 May 2008 02:55:59 +0000</pubDate>
		<dc:creator>rafael.chaves</dc:creator>
		
		<category><![CDATA[30-day challenge]]></category>

		<category><![CDATA[TextUML Toolkit]]></category>

		<guid isPermaLink="false">http://abstratt.com/blog/2008/05/30/30-day-challenge-the-road-to-textuml-toolkit-10/</guid>
		<description><![CDATA[I decided to join a group of fellow mISVers in the 30-day product challenge. Differently from most of the other entries, which will go from product idea to release in 30 days, the TextUML Toolkit has been in development for quite a while now, so my challenge will be to finally ship the first release [...]]]></description>
			<content:encoded><![CDATA[<p>I decided to join a group of fellow <a href="http://en.wikipedia.org/wiki/Micro_ISV" target="_blank">mISVers</a> in the <a href="http://30dayproductchallenge.com/30day" target="_blank">30-day product challenge</a>. Differently from most of the other entries, which will go from product idea to release in 30 days, the <a href="http://abstratt.com/textuml/">TextUML Toolkit</a> has been in development for quite a while now, so my challenge will be to finally ship the first release of the product.</p>
<p>The challenge starts on June 1st. Watch <a href="http://abstratt.com/blog/">this space</a> for frequent updates as I make progress towards the elusive version 1.0.</p>
<p>Rafael</p>
]]></content:encoded>
			<wfw:commentRss>http://abstratt.com/blog/2008/05/30/30-day-challenge-the-road-to-textuml-toolkit-10/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Documentation on TextUML</title>
		<link>http://abstratt.com/blog/2008/05/16/documentation-on-textuml/</link>
		<comments>http://abstratt.com/blog/2008/05/16/documentation-on-textuml/#comments</comments>
		<pubDate>Sat, 17 May 2008 01:47:55 +0000</pubDate>
		<dc:creator>rafael.chaves</dc:creator>
		
		<category><![CDATA[TextUML Toolkit]]></category>

		<guid isPermaLink="false">http://abstratt.com/blog/2008/05/16/documentation-on-textuml/</guid>
		<description><![CDATA[Up until now, the TextUML Toolkit tutorial had been the only piece of documentation available on the TextUML notation. Well, not anymore. I just finished writing some reference documentation on the notation on the wiki. Since I was already at it, I also created a few topics on UML 101 with TextUML (also on the [...]]]></description>
			<content:encoded><![CDATA[<p>Up until now, the <a href="http://abstratt.com/textuml/tutorial/">TextUML Toolkit tutorial</a> had been the only piece of documentation available on the TextUML notation. Well, not anymore. I just finished writing some <a href="http://abstratt.com/docs/">reference documentation on the notation</a> on the wiki. Since I was already at it, I also created a few topics on UML 101 with TextUML (also on the wiki), taking the text from some posts I have written on the <a href="http://abstratt.com/blog/category/uml-101/">topic</a>.</p>
<p>Any issues or suggestions for the documentation are most welcome.</p>
<p>Rafael</p>
]]></content:encoded>
			<wfw:commentRss>http://abstratt.com/blog/2008/05/16/documentation-on-textuml/feed/</wfw:commentRss>
		</item>
		<item>
		<title>M4 has left the building!</title>
		<link>http://abstratt.com/blog/2008/05/06/m4-has-left-the-building/</link>
		<comments>http://abstratt.com/blog/2008/05/06/m4-has-left-the-building/#comments</comments>
		<pubDate>Wed, 07 May 2008 01:11:43 +0000</pubDate>
		<dc:creator>rafael.chaves</dc:creator>
		
		<category><![CDATA[TextUML Toolkit]]></category>

		<guid isPermaLink="false">http://abstratt.com/blog/2008/05/06/m4-has-left-the-building/</guid>
		<description><![CDATA[M4 has been declared. If you got the M4 test build that was announced a week ago, no need to download again, it is the same build. Please see that post for a summary of the changes.
The TextUML tutorial  has been updated in order to reflect the changes that happened during M4, the most [...]]]></description>
			<content:encoded><![CDATA[<p>M4 has been declared. If you got the M4 test build that <a href="http://abstratt.com/blog/2008/04/28/textuml-toolkit-m4-test-build-is-now-available/">was announced a week ago</a>, no need to download again, it is the same build. Please see that post for a summary of the changes.</p>
<p>The <a href="http://abstratt.com/textuml/tutorial/">TextUML tutorial</a>  has been updated in order to reflect the changes that happened during M4, the most remarkable one being that starting with M4 <strong>there are no built-in packages</strong> (such as &#8216;base&#8217; and &#8216;base_profile&#8217;) any longer, other than those defined in UML2 itself. So if you were using elements defined in those built-in packages, you have now to define the elements yourself.  The rationale is that the TextUML Toolkit should not be in the business of providing built-in packages nor rely on anything other than standard UML to do its work.</p>
<p>If you didn&#8217;t get the test build, go ahead and <a href="http://abstratt.com/textuml/download.html">download M4</a>. If you want to see a feature in the TextUML Toolkit, now it is the time to ask, as the next milestone will be feature freeze. And if you have tried the Toolkit and decided it is not for you, we would die to know why. Your feedback is greatly appreciated.</p>
]]></content:encoded>
			<wfw:commentRss>http://abstratt.com/blog/2008/05/06/m4-has-left-the-building/feed/</wfw:commentRss>
		</item>
		<item>
		<title>On code and diagrams</title>
		<link>http://abstratt.com/blog/2008/05/05/on-code-and-diagrams/</link>
		<comments>http://abstratt.com/blog/2008/05/05/on-code-and-diagrams/#comments</comments>
		<pubDate>Mon, 05 May 2008 07:09:03 +0000</pubDate>
		<dc:creator>rafael.chaves</dc:creator>
		
		<category><![CDATA[Eclipse]]></category>

		<category><![CDATA[TextUML Toolkit]]></category>

		<category><![CDATA[UML]]></category>

		<category><![CDATA[editorial]]></category>

		<guid isPermaLink="false">http://abstratt.com/blog/2008/05/05/why-we-write-code-and-dont-just-draw-diagrams/</guid>
		<description><![CDATA[TextUML is a textual notation for UML. The TextUML Toolkit is an Eclipse-based IDE-like tool for creating UML models using the TextUML notation.
Other tools follow the same approach. Emfatic (now an EMFT subproject) has been doing the same for EMF Ecore for a long time; the TMF project aims to be for textual  modeling [...]]]></description>
			<content:encoded><![CDATA[<p>TextUML is a textual notation for UML. The <a href="http://abstratt.com/textuml/">TextUML Toolkit</a> is an Eclipse-based IDE-like tool for creating UML models using the TextUML notation.</p>
<p>Other tools follow the same approach. <a href="http://wiki.eclipse.org/Emfatic" target="_blank">Emfatic</a> (now an EMFT subproject) has been doing the same for EMF Ecore for a long time; the <a href="http://wiki.eclipse.org/TMF" target="_blank">TMF</a> project aims to be for textual  modeling what <a href="http://www.eclipse.org/gmf/">GMF</a> is for graphical modeling, and will be based on <a href="http://www.eclipse.org/gmt/" target="_blank">GMT</a>&#8217;s <a href="http://wiki.eclipse.org/TCS" target="_blank">TCS</a> and <a href="http://www.eclipse.org/gmt/oaw/doc/4.2/html/contents/xtext_reference.html" target="_blank">xText</a> components.</p>
<p>Still, people are often puzzled when I explain what the TextUML Toolkit is. A common question is: &#8220;<em>if I am going to write code (sic), why do I need UML anyway?</em>&#8220;.</p>
<p>Dean Wampler from Object Mentor wrote on his blog a while ago a post entitled &#8220;<a href="http://blog.objectmentor.com/articles/2007/09/06/why-we-write-code-and-dont-just-draw-diagrams" target="_blank">Why we write code and don&#8217;t just draw diagrams</a>&#8220;. It is a short post, but he presents very good points on why a graphical notation is usually not suficient and is bound to be less productive than a textual one when it comes to modeling details. For instance, on the saying &#8220;<em>a picture is worth a thousand words</em>&#8220;, Dean wrote:</p>
<p>&#8220;<em>What that phrase really means is that we get the &#8216;gist&#8217; or the &#8216;gestalt&#8217; of a situation when we look at a picture, but nothing expresses the intricate details like text, the 1000 words. Since computers are literal-minded and don&#8217;t &#8216;do gist&#8217;, they require those details spelled out explicitly.</em>&#8221;</p>
<p>Couldn&#8217;t have said it better.</p>
<p>I strongly advise you to read the original post in its entirety, but I will leave you with another pearl from Dean&#8217;s post (emphasis is mine):</p>
<p>&#8220;<em>I came to this realization a few years ago when I worked for a Well Known Company developing <span class="caps">UML</span>-based tools for Java developers. The tool&#8217;s UI could have been more efficient, but <strong>there was no way to beat the speed of typing text</strong>.</em>&#8221;</p>
<p>Enough said.</p>
]]></content:encoded>
			<wfw:commentRss>http://abstratt.com/blog/2008/05/05/on-code-and-diagrams/feed/</wfw:commentRss>
		</item>
		<item>
		<title>TextUML Toolkit M4 test build is now available</title>
		<link>http://abstratt.com/blog/2008/04/28/textuml-toolkit-m4-test-build-is-now-available/</link>
		<comments>http://abstratt.com/blog/2008/04/28/textuml-toolkit-m4-test-build-is-now-available/#comments</comments>
		<pubDate>Mon, 28 Apr 2008 09:31:54 +0000</pubDate>
		<dc:creator>rafael.chaves</dc:creator>
		
		<category><![CDATA[TextUML Toolkit]]></category>

		<guid isPermaLink="false">http://abstratt.com/blog/2008/04/28/textuml-toolkit-m4-test-build-is-now-available/</guid>
		<description><![CDATA[The first (and hopefully only) test build for M4 is now available. This is the first milestone where you can get the TextUML Toolkit via Update Manager. Just point Update Manager to:
http://abstratt.com/textuml/update/
Actually, if you are planning to use Acceleo or UML2Tools, it is the best approach. From an Eclipse SDK 3.3 install, point the Update [...]]]></description>
			<content:encoded><![CDATA[<p>The first (and hopefully only) test build for M4 is now available. This is the first milestone where you can get the TextUML Toolkit via Update Manager. Just point Update Manager to:</p>
<p><strong>http://abstratt.com/textuml/update/</strong></p>
<p>Actually, if you are planning to use Acceleo or UML2Tools, it is the best approach. From an Eclipse SDK 3.3 install, point the Update Manager to the site above and install the TextUML Toolkit along with its prerequisites (EMF and UML2). Once you are done, you can install any compatible tools, such as Acceleo and/or UML2Tools (sites will be automatically configured after you install the Toolkit and its prerequisites). If you are not planning to use Acceleo, you can start from an Eclipse Platform install, or you can just download the TextUML Toolkit from the <a href="http://abstratt.com/textuml/download.html">download page</a> as usual.</p>
<p>Follows a summary of the changes that went into M4, including features (in bold) and bug fixes.</p>
<table border="0" cellspacing="0" width="95%">
<tr>
<td>Ticket</td>
<td>Summary</td>
</tr>
<tr>
<td>49</td>
<td><strong>prevent creation of duplicated symbols</strong></td>
</tr>
<tr>
<td>102</td>
<td>NPE trying to set value for stereotype property</td>
</tr>
<tr>
<td>143</td>
<td><strong>declare a built-in update site for the textuml toolkit</strong></td>
</tr>
<tr>
<td>145</td>
<td>project creation wizard issues</td>
</tr>
<tr>
<td>164</td>
<td><strong>Support nested packages in TextUMLRenderer</strong></td>
</tr>
<tr>
<td>165</td>
<td>Unexpected exception while compiling - java.lang.IllegalStateException: deresolve relative URI</td>
</tr>
<tr>
<td>166</td>
<td>spurious empty null.uml or base_profile.uml files being created</td>
</tr>
<tr>
<td>168</td>
<td><strong>integrate a code generator</strong></td>
</tr>
<tr>
<td>169</td>
<td>constant literal assignment is broken</td>
</tr>
</table>
<p>I will be writing on some of those features in following posts.</p>
<p>Rafael</p>
]]></content:encoded>
			<wfw:commentRss>http://abstratt.com/blog/2008/04/28/textuml-toolkit-m4-test-build-is-now-available/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Lightning Talks at VIJUG</title>
		<link>http://abstratt.com/blog/2008/04/13/lightning-talks-at-aprils-vijug-meeting/</link>
		<comments>http://abstratt.com/blog/2008/04/13/lightning-talks-at-aprils-vijug-meeting/#comments</comments>
		<pubDate>Mon, 14 Apr 2008 05:58:15 +0000</pubDate>
		<dc:creator>rafael.chaves</dc:creator>
		
		<category><![CDATA[TextUML Toolkit]]></category>

		<guid isPermaLink="false">http://abstratt.com/blog/2008/04/13/lightning-talks-at-aprils-vijug-meeting/</guid>
		<description><![CDATA[The next VIJUG meeting will follow the Lightning Talks format. Last December, I attended the Eclipse Democamp in Vancouver which had a similar format and it was quite dynamic and fast-paced. I am looking forward to VIJUG&#8217;s first meeting using this exciting format.
I plan to do a demo on using Acceleo for generating code from [...]]]></description>
			<content:encoded><![CDATA[<p>The <a href="http://www.mosabuam.com/index.php?name=News&amp;file=article&amp;sid=259">next VIJUG meeting</a> will follow the <a href="http://en.wikipedia.org/wiki/Lightning_talk">Lightning Talks</a> format. Last December, I attended the <a href="http://abstratt.com/blog/2007/12/08/eclipse-democamp-in-vancouver/">Eclipse Democamp</a> in Vancouver which had a similar format and it was quite dynamic and fast-paced. I am looking forward to VIJUG&#8217;s first meeting using this exciting format.</p>
<p>I plan to do a demo on using Acceleo for generating code from UML models, of course, using the TextUML Toolkit for modeling, which is what the next milestone (M4) is all about.</p>
]]></content:encoded>
			<wfw:commentRss>http://abstratt.com/blog/2008/04/13/lightning-talks-at-aprils-vijug-meeting/feed/</wfw:commentRss>
		</item>
		<item>
		<title>TextUML Toolkit at VIJUG</title>
		<link>http://abstratt.com/blog/2008/03/26/textuml-toolkit-at-vijug/</link>
		<comments>http://abstratt.com/blog/2008/03/26/textuml-toolkit-at-vijug/#comments</comments>
		<pubDate>Wed, 26 Mar 2008 09:18:16 +0000</pubDate>
		<dc:creator>rafael.chaves</dc:creator>
		
		<category><![CDATA[TextUML Toolkit]]></category>

		<guid isPermaLink="false">http://abstratt.com/blog/2008/03/26/textuml-toolkit-at-vijug/</guid>
		<description><![CDATA[I will be presenting the TextUML Toolkit at this month&#8217;s Vancouver Island Java User Group meeting. If you are in the Victoria area, I hope to see you there. It is free, and there will be pizza and drinks. Oh, and there will be a cool demo of the toolkit, including code generation using Acceleo [...]]]></description>
			<content:encoded><![CDATA[<p>I will be presenting the <a href="http://abstratt.com/textuml">TextUML Toolkit</a> at this month&#8217;s <a href="http://www.mosabuam.com/index.php?name=News&amp;file=article&amp;sid=256" target="_blank">Vancouver Island Java User Group</a> meeting. If you are in the Victoria area, I hope to see you there. It is free, and there will be pizza and drinks. Oh, and there will be a cool demo of the toolkit, including code generation using <a href="http://acceleo.org" target="_blank">Acceleo</a> and a quick demo on model execution just to give a hint of what comes next after the toolkit goes GA.</p>
<p>Many thanks to Manfred, the JUG leader, for organizing the meeting, and to <a href="http://genologics.com" target="_blank">Genologics</a> for sponsoring it!</p>
<p><em><strong>UPDATE</strong>: the meeting was great </em><em>(slides <a href="http://abstratt.com/blog/wp-content/uploads/2008/03/vijug-200803261.swf">here</a>)</em><em>, got lots of interesting questions and comments, and many in the audience liked the idea of using a textual notation for UML. A bit harder to get buy-in for the idea of <a href="http://abstratt.com/blog/2007/05/12/uml-modes-and-tools/">UML as programming language</a>. I guess I will need to show something running to get that across too&#8230; ;) </em></p>
]]></content:encoded>
			<wfw:commentRss>http://abstratt.com/blog/2008/03/26/textuml-toolkit-at-vijug/feed/</wfw:commentRss>
		</item>
		<item>
		<title>TextUML Toolkit is now available on multiple platforms</title>
		<link>http://abstratt.com/blog/2008/03/03/textuml-toolkit-is-now-available-on-multiple-platforms/</link>
		<comments>http://abstratt.com/blog/2008/03/03/textuml-toolkit-is-now-available-on-multiple-platforms/#comments</comments>
		<pubDate>Mon, 03 Mar 2008 08:17:27 +0000</pubDate>
		<dc:creator>rafael.chaves</dc:creator>
		
		<category><![CDATA[TextUML Toolkit]]></category>

		<guid isPermaLink="false">http://abstratt.com/blog/2008/03/03/textuml-toolkit-is-now-available-on-multiple-platforms/</guid>
		<description><![CDATA[The latest milestone (M3) of the TextUML Toolkit has been declared today, as promised earlier here. As I said before, the focus for this milestone was stability and performance, so you can expect a much snappier and more solid tool. But it also includes some cool new features:

you can drop UML2 models created elsewhere into [...]]]></description>
			<content:encoded><![CDATA[<p>The latest milestone (M3) of the TextUML Toolkit has been declared today, as <a href="http://abstratt.com/blog/2008/02/28/textuml-toolkit-m3-test-build-is-available/">promised earlier here</a>. As I said before, the focus for this milestone was stability and performance, so you can expect a much snappier and more solid tool. But it also includes some cool new features:</p>
<ul>
<li>you can <strong>drop UML2 models created elsewhere</strong> into a MDD project and you can use them from your TextUML code as you would with models created using the Toolkit</li>
<li>you can even <strong>decompile a UML2 model</strong> and read it using the TextUML syntax with the TextUML Viewer (which takes over as the default editor for *.uml files)</li>
<li>you can <strong>auto-format</strong> the current compilation unit with Ctrl-Shift-F</li>
<li>and last but not least:<strong> Linux and Mac OS X  (Power PC and Intel) are now supported</strong></li>
</ul>
<p>The main reason for this focus on performance and robustness is that the tool must be something that people can rely upon and become productive with. From now on, real user demand must drive the addition of any new features and bug fixing efforts. <strong>So now it is your turn. </strong>Download the TextUML Toolkit and start using it for creating your UML models. It is free! If you like the approach of modeling using a textual notation, I am sure you will enjoy it. And even if you haven&#8217;t bought the idea yet, give it a try. I would be more than glad of hearing your  suggestions and opinions. And more importantly, will make sure that any problems reported will be promptly addressed.</p>
<p>Looking forward to your comments, either here or <strike>by e-mail</strike> <a href="http://abstratt.com/forums/">on the Abstratt forum</a>. Cheers.</p>
<p>Rafael</p>
]]></content:encoded>
			<wfw:commentRss>http://abstratt.com/blog/2008/03/03/textuml-toolkit-is-now-available-on-multiple-platforms/feed/</wfw:commentRss>
		</item>
		<item>
		<title>TextUML Toolkit M3 test build is available!</title>
		<link>http://abstratt.com/blog/2008/02/28/textuml-toolkit-m3-test-build-is-available/</link>
		<comments>http://abstratt.com/blog/2008/02/28/textuml-toolkit-m3-test-build-is-available/#comments</comments>
		<pubDate>Fri, 29 Feb 2008 06:26:10 +0000</pubDate>
		<dc:creator>rafael.chaves</dc:creator>
		
		<category><![CDATA[TextUML Toolkit]]></category>

		<guid isPermaLink="false">http://abstratt.com/blog/2008/02/28/textuml-toolkit-m3-test-build-is-available/</guid>
		<description><![CDATA[A TextUML Toolkit M3 test build is now available from the download page. If no serious issues are found in this build, it will be declared the final M3 build later this week.
The focus for this milestone was to improve the performance, memory footprint and stability of the tool, and very good progress was made [...]]]></description>
			<content:encoded><![CDATA[<p>A TextUML Toolkit M3 test build is now available from the <a href="http://abstratt.com/textuml/download.html">download</a> page. If no serious issues are found in this build, it will be declared the final M3 build later this week.</p>
<p>The focus for this milestone was to improve the performance, memory footprint and stability of the tool, and very good progress was made in those areas. But there are also some brand new features, mostly in the area of integration with existing UML models. You can now safely add existing UML2 UML models (built elsewhere) to the project root and they will become available to the textual notation. Another cool feature in this area is that you can now double-click any existing UML2 UML model and read it using the textual notation (think &#8220;UML decompiler&#8221;). See below the sample model from <a href="http://www.eclipse.org/modeling/mdt/uml2/docs/articles/Getting_Started_with_UML2/article.html" target="_blank">Getting Started with UML2</a> in both textual and graphical notations:</p>
<p><a href="http://abstratt.com/blog/wp-content/uploads/2008/02/textuml-toolkit-10m3-test-full1.png"><img src="http://abstratt.com/blog/wp-content/uploads/2008/02/textuml-toolkit-10m3-test-small1.png" alt="click for a full screenshot" /></a></p>
<p>Would you like to take a look? <a href="http://abstratt.com/textuml/download.html">Grab the M3 test build</a>, and give it a try. Please report here any problems and leave your comments. As usual, your feedback is really appreciated.</p>
<p><strong>UPDATE: </strong>If the diagrams don&#8217;t show and everything else seems to work, you probably need the <a href="http://www.microsoft.com/downloads/details.aspx?familyid=32bc1bee-a3f9-4c13-9c99-220b62a191ee&amp;displaylang=en" target="_blank">Visual C++ Redistributable package</a> from Microsoft. This is a limitation that seemed to be recently introduced with the Graphviz support on Windows and the Graphviz team <a href="http://www.graphviz.org/Download_windows.php" target="_blank">is looking</a> into this issue. Sorry for the inconvenience.</p>
<p>Rafael</p>
]]></content:encoded>
			<wfw:commentRss>http://abstratt.com/blog/2008/02/28/textuml-toolkit-m3-test-build-is-available/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Textual notations and UML compliance</title>
		<link>http://abstratt.com/blog/2008/02/07/textual-notations-and-uml-compliance/</link>
		<comments>http://abstratt.com/blog/2008/02/07/textual-notations-and-uml-compliance/#comments</comments>
		<pubDate>Fri, 08 Feb 2008 06:22:42 +0000</pubDate>
		<dc:creator>rafael.chaves</dc:creator>
		
		<category><![CDATA[TextUML Toolkit]]></category>

		<category><![CDATA[UML]]></category>

		<category><![CDATA[editorial]]></category>

		<guid isPermaLink="false">http://abstratt.com/blog/2008/02/07/textual-notations-and-uml-compliance/</guid>
		<description><![CDATA[One common misconception is that UML is a graphical language and that any tools adopting alternative notations (such as a textual one) are inherently non-compliant. That can&#8217;t be farther from the truth. Read on to understand.
The fact is that the UML specification clearly separates abstract syntax (the kinds of elements and how they relate) and [...]]]></description>
			<content:encoded><![CDATA[<p>One common misconception is that UML is a graphical language and that any tools adopting alternative notations (such as a textual one) are inherently non-compliant. That can&#8217;t be farther from the truth. Read on to understand.</p>
<p>The fact is that the UML specification clearly separates abstract syntax (the kinds of elements and how they relate) and semantics (what they mean) from concrete syntax (what they look like), and states that there are two types of compliance:</p>
<ul>
<li>abstract syntax compliance</li>
<li>concrete syntax compliance</li>
</ul>
<p>Concrete syntax compliance means that users can continue to use a notation they are familiar with across different tools. This is important when UML is used as a communication tool in a team environment. Architects, designers, programmers and even many business analysts speak the same language.</p>
<p>Abstract syntax compliance means that users can move models across different tools, even if they use different notations. This is essential when UML is used as a basis for model-driven development. You might want to use tool A for creating the model, tool B for validating the model, tool C for somehow transforming/enhancing the model and tool D for generating code from it (a common form of MDD <em>tool chain</em>).</p>
<p>The <a href="http://abstratt.com/textuml/">TextUML Toolkit</a> uses a textual notation that strictly exposes the UML semantics, but it is not compliant with the language concrete syntax by any means. On the other hand, the toolkit uses Eclipse UML2&#8217;s XMI flavor for persisting models and thus is fully compliant regarding the abstract syntax. That is consistent with the vision for the product: a tool from developers for developers that want to build software in a more sane way: the model-driven way. Developers can create models using a notation they are more productive with. Models can then be used as input for code generation using many of the tools available in the market. If non-developers might frown upon a textual modeling notation, they will always have the option of using their favorite graphical-notation based tools for reading the models. I mean, if their tool of choice is abstract syntax compliant as well.</p>
]]></content:encoded>
			<wfw:commentRss>http://abstratt.com/blog/2008/02/07/textual-notations-and-uml-compliance/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Frequently Asked Questions about the TextUML Toolkit</title>
		<link>http://abstratt.com/blog/2008/01/27/frequently-asked-questions-about-the-textuml-toolkit/</link>
		<comments>http://abstratt.com/blog/2008/01/27/frequently-asked-questions-about-the-textuml-toolkit/#comments</comments>
		<pubDate>Sun, 27 Jan 2008 10:18:34 +0000</pubDate>
		<dc:creator>rafael.chaves</dc:creator>
		
		<category><![CDATA[TextUML Toolkit]]></category>

		<category><![CDATA[UML]]></category>

		<guid isPermaLink="false">http://abstratt.com/blog/2008/01/27/frequently-asked-questions-about-the-textuml-toolkit/</guid>
		<description><![CDATA[I just added a brand new FAQ section to the web site. It was long overdue.
Here is the first  batch of questions:

 Can a tool that uses a textual notation be considered UML compliant?
 What are the differences between TextUML and the real UML?
 I thought UML was all about raising the level of [...]]]></description>
			<content:encoded><![CDATA[<p>I just added a <a href="http://abstratt.com/textuml/faq.html">brand new FAQ section</a> to the web site. It was long overdue.</p>
<p>Here is the first  batch of questions:</p>
<ol>
<li> <a href="http://abstratt.com/textuml/faq.html#compliance-types">Can a tool that uses a textual notation be considered UML compliant?</a></li>
<li> <a href="http://abstratt.com/textuml/faq.html#real-uml">What are the differences between TextUML and the <em>real</em> UML?</a></li>
<li> <a href="http://abstratt.com/textuml/faq.html#abstraction">I thought UML was all about raising the level of abstraction. Why should I go back to coding?</a></li>
<li> <a href="http://abstratt.com/textuml/faq.html#pricing">How much does the TextUML Toolkit cost?</a></li>
<li> <a href="http://abstratt.com/textuml/faq.html#open-source">Is the TextUML Toolkit open source?</a></li>
<li> <a href="http://abstratt.com/textuml/faq.html#diagrams">What diagrams can I create with the TextUML Toolkit?</a></li>
</ol>
<p>Do you have any questions that are not answered in the FAQ or do not agree with or understand an answer? Fire your comments, I am always happy to hear from you.</p>
]]></content:encoded>
			<wfw:commentRss>http://abstratt.com/blog/2008/01/27/frequently-asked-questions-about-the-textuml-toolkit/feed/</wfw:commentRss>
		</item>
		<item>
		<title>A reader&#8217;s &#8220;Thoughts about TextUML&#8221;</title>
		<link>http://abstratt.com/blog/2007/12/18/a-readers-thoughts-about-textuml/</link>
		<comments>http://abstratt.com/blog/2007/12/18/a-readers-thoughts-about-textuml/#comments</comments>
		<pubDate>Tue, 18 Dec 2007 08:39:02 +0000</pubDate>
		<dc:creator>rafael.chaves</dc:creator>
		
		<category><![CDATA[TextUML Toolkit]]></category>

		<category><![CDATA[UML]]></category>

		<guid isPermaLink="false">http://abstratt.com/blog/2007/12/18/a-readers-thoughts-about-textuml/</guid>
		<description><![CDATA[Andreas Awenius, from Empowertec, was kind enough to devote not only one, but two blog postings on the TextUML Toolkit. While his first post was just a paragraph or two acknowledging the use of a textual notation for UML modeling in the TextUML Toolkit, his second post was a very detailed and balanced analysis on [...]]]></description>
			<content:encoded><![CDATA[<p>Andreas Awenius, from <a href="http://empowertec.de">Empowertec</a>, was kind enough to devote <a href="http://www.empowertec.de/blog/2007/12/03/text-based-modeling-with-textuml/" target="_blank">not only one</a>, <a href="http://www.empowertec.de/blog/2007/12/10/thoughts-about-textuml/" target="_blank">but two</a> blog postings on the TextUML Toolkit. While his first post was just a paragraph or two acknowledging the use of a textual notation for UML modeling in the TextUML Toolkit, his second post was a very detailed and balanced analysis on the whether using textual notations is a good idea. Even though the conclusion of his posting is that a graphical notation is superior to a textual one, I still agree with many points Andreas has made in his analysis:</p>
<ol>
<li>the presentation notation and the persistence format are completely unrelated concerns <em>(exactly, see <a href="http://abstratt.com/blog/2007/12/08/eclipse-democamp-in-vancouver/#comment-151">my previous comment</a> on this)</em>.</li>
<li>diagrams are views for models, focused on a specific aspect, and as such must show only what is needed and omit anything that is not essential. <em>(perfect)</em></li>
<li>there are &#8220;multiple ways to manipulate the repository, e.g. the conventional - graphical - way or a textual notation&#8221;. <em>(yes!)</em></li>
</ol>
<p>These are the very same facts that justify the existence of a tool such as the TextUML Toolkit.</p>
<ol>
<li>since user-oriented notation and persistence format are completely different things, you can please users with the most appropriate syntax for their needs (and that is text for many developers), without affecting interoperability with other tools, as tools interoperate at the level of the persistence format. The TextUML Toolkit achieves that by producing UML2 models as the native object file format.</li>
<li>the graphical notation is great for creating views, but it is not that suitable for exposing all the details in a model. A textual notation has no problem doing that. The graphical notation is still useful, and this is why TextUML Toolkit will include a read-only graphical view for browsing the repository. And here is the first point I disagree with Andreas. He says: &#8220;a diagram must carefully be crafted manually, leaving out all irrelevant detail&#8221;. I say: <em>automatically generated diagrams can still obey a set of preferences defined by the user</em> (level of detail, color, font, etc). <a href="http://www.umlgraph.org/doc/ceg-color.html" target="_blank">UMLGraph</a> has been doing this for a long time (albeit by breaking some basic rules of separation of concerns, but I digress). The TextUML Toolkit will embed an upcoming version of UMLGraph in its next milestone.</li>
<li>this is basically a conundrum of points #1 and #2. The model created will be the same (from the point of view of tools) regardless the user-facing notation. If users say they would rather use a textual notation, why forcing them to use a graphical one when there are no technical reasons to do so? Here is where Andreas makes several points to back his opinion based on technical and strategical reasons, most of which I (strongly to moderately) disagree. Instead of trying to refute each of those arguments (that is not how you encourage people to provide elaborate feedback), I will use them as an opportunity for driving awareness efforts around the Toolkit, the notation and our future offerings in upcoming posts to this blog.</li>
</ol>
<p>The &#8216;<em>raison d&#8217;être</em>&#8216; for this blog is to establish connections with the modeling community at large, users and tool providers. I really appreciate the time and energy that Andreas committed to sharing his views on the TextUML Toolkit and the textual notation approach and am both grateful and honored for that. Thanks a lot, Andreas. Stay in touch. I hope at some point I can convince you that you are wrong! <img src='http://abstratt.com/blog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /></p>
]]></content:encoded>
			<wfw:commentRss>http://abstratt.com/blog/2007/12/18/a-readers-thoughts-about-textuml/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Eclipse DemoCamp in Vancouver</title>
		<link>http://abstratt.com/blog/2007/12/08/eclipse-democamp-in-vancouver/</link>
		<comments>http://abstratt.com/blog/2007/12/08/eclipse-democamp-in-vancouver/#comments</comments>
		<pubDate>Sat, 08 Dec 2007 09:56:56 +0000</pubDate>
		<dc:creator>rafael.chaves</dc:creator>
		
		<category><![CDATA[Eclipse]]></category>

		<category><![CDATA[TextUML Toolkit]]></category>

		<category><![CDATA[UML]]></category>

		<guid isPermaLink="false">http://abstratt.com/blog/2007/12/08/eclipse-democamp-in-vancouver/</guid>
		<description><![CDATA[Last Thursday happened the 1st Eclipse DemoCamp in Vancouver. It was a very dynamic event, with nine short talks packed into little more than  one and a half hours. Attendance was high, I was really amazed to see such a great turnaround. The audience saw a diverse range of interesting Eclipse-based projects being developed [...]]]></description>
			<content:encoded><![CDATA[<p>Last Thursday happened the 1st <a href="http://wiki.eclipse.org/Vancouver_DemoCamp">Eclipse DemoCamp in Vancouver</a>. It was a very dynamic event, with nine short talks packed into little more than  one and a half hours. Attendance was high, I was really amazed to see such a great turnaround. The audience saw a diverse range of <a href="http://wiki.eclipse.org/Vancouver_DemoCamp#Presentations" target="_blank">interesting Eclipse-based projects</a> being developed in Vancouver/Victoria.</p>
<p>I demoed the <a href="http://abstratt.com/textuml/">TextUML Toolkit</a> and got good feedback and some very interesting questions.  The idea of a using a textual notation for creating UML models is still not a very easy sell, and that continues to surprise me. Being a developer, I find working with a textual notation so much more natural than a graphical one that it makes it hard for me to see things from other people&#8217;s shoes. I plan to go over the issue of textual versus graphical notations on a future post.</p>
<p>All in all, it was a great event. Many thanks to <a href="http://tasktop.com" target="_blank">Tasktop</a>&#8217;s Robert Elves and Mik Kersten for organizing it, to the Eclipse Foundation for sponsoring the event, and congrats to all presenters.</p>
]]></content:encoded>
			<wfw:commentRss>http://abstratt.com/blog/2007/12/08/eclipse-democamp-in-vancouver/feed/</wfw:commentRss>
		</item>
		<item>
		<title>The two EMFs</title>
		<link>http://abstratt.com/blog/2007/12/01/the-two-emfs-and-the-beauty-of-mdd/</link>
		<comments>http://abstratt.com/blog/2007/12/01/the-two-emfs-and-the-beauty-of-mdd/#comments</comments>
		<pubDate>Sun, 02 Dec 2007 02:17:35 +0000</pubDate>
		<dc:creator>rafael.chaves</dc:creator>
		
		<category><![CDATA[Eclipse]]></category>

		<category><![CDATA[UML]]></category>

		<guid isPermaLink="false">http://abstratt.com/blog/2007/12/01/the-two-emfs-and-the-beauty-of-mdd/</guid>
		<description><![CDATA[In a recent thread on the EMF newsgroup, I came to realize that there are (at least) two EMFs, each belonging to a different class of product, and attending completely distinct requirements.
EMF&#8217;s native metamodel, Ecore, is a generic, lean object-oriented metamodel based on a subset of UML.
EMF&#8217;s runtime framework provides Java applications with runtime support [...]]]></description>
			<content:encoded><![CDATA[<p>In a <a href="http://www.eclipse.org/newsportal/thread.php?group=eclipse.tools.emf" target="_blank">recent thread</a> on the EMF newsgroup, I came to realize that there are (<a href="http://en.wikipedia.org/wiki/EMF" target="_blank">at least</a>) two EMFs, each belonging to a different class of product, and attending completely distinct requirements.</p>
<p>EMF&#8217;s native metamodel, Ecore, is a generic, lean object-oriented metamodel based on a subset of UML.</p>
<p>EMF&#8217;s runtime framework provides Java applications with runtime support for object	models &#8220;including change notification, persistence support with 	default XMI serialization, and a very efficient reflective API for 	manipulating EMF objects generically&#8221; (<a href="http://www.eclipse.org/modeling/emf/?project=emf#emf" target="_blank">source</a>).</p>
<p>I am a happy user of EMF&#8217;s Ecore metamodel as a poor man&#8217;s UML (EMF team, please take that as a compliment). From Ecore-based models, using a compatible template engine, I can generate all code/artifacts that are prone to automation, be they Java code or not.</p>
<p>The runtime aspect of EMF is certainly useful to many applications, but certainly not to all or maybe even most. That is not to say that the EMF runtime does not provide a lot of value, as it clearly does given its popularity. Nor does it imply that the EMF runtime API has design flaws that prevent its use to be more widespread.  The fact is that frameworks, while designed for extension, always impose a certain set of architectural decisions in order to provide value out-of-the-box. Those decisions are bound to make its use more suitable to some scenarios and applications than others. The goal is to make as many people happy as possible. It is clear that the EMF team has pulled off that trick. But that does not mean that using EMF-generated model code is appropriate for every Java application out there.</p>
<p>Model driven development <a href="http://abstratt.com/blog/2007/05/30/model-driven-development-improves-reuse/">maximizes reuse via a complete separation between problem domain and technological concerns</a>. This separation is critical to allow us to build software in an obsolescence-proof way. EMF&#8217;s Ecore  provides a good foundation for MDD in this sense, regardless the technology choices for the software being developed. The EMF runtime framework, albeit a valuable tool for a significant range of applications, brings with it a specific set of choices in terms of design and implementation decisions, and as such has a less universal applicability.</p>
<p>However, time and  again I read comments in the EMF newsgroup that lead me to believe that this duality might have been accidental, and that the sole reason Ecore was created was to support the generation of Java applications based on the EMF runtime. If that is really the case, this is something that both amuses and worries me. My concern is that if the EMF team does not acknowledge the importance of Ecore as an independently useful product, technical decisions in the evolution of EMF might break the use of Ecore in contexts other than EMF-based Java applications.</p>
]]></content:encoded>
			<wfw:commentRss>http://abstratt.com/blog/2007/12/01/the-two-emfs-and-the-beauty-of-mdd/feed/</wfw:commentRss>
		</item>
		<item>
		<title>UML 101 with TextUML: multiplicity (or [*])</title>
		<link>http://abstratt.com/blog/2007/11/17/uml-101-with-textuml-multiplicity-or/</link>
		<comments>http://abstratt.com/blog/2007/11/17/uml-101-with-textuml-multiplicity-or/#comments</comments>
		<pubDate>Sat, 17 Nov 2007 19:33:57 +0000</pubDate>
		<dc:creator>rafael.chaves</dc:creator>
		
		<category><![CDATA[TextUML Toolkit]]></category>

		<category><![CDATA[UML]]></category>

		<guid isPermaLink="false">http://abstratt.com/blog/2007/11/17/uml-101-with-textuml-multiplicity-or/</guid>
		<description><![CDATA[One weird thing about UML is that there aren&#8217;t collection types or array types. Basically, multiplicity and typing are totally independent concerns, represented by the metaclasses TypedElement and MultiplicityElement.
A typed element is a named element that has a type, and that is all about it. Examples of typed elements are value specifications, properties, parameters, pins [...]]]></description>
			<content:encoded><![CDATA[<p>One weird thing about UML is that there aren&#8217;t collection types or array types. Basically, multiplicity and typing are totally independent concerns, represented by the metaclasses TypedElement and MultiplicityElement.</p>
<p>A typed element is a named element that has a type, and that is all about it. Examples of typed elements are value specifications, properties, parameters, pins and variables.</p>
<p>A multiplicity element, on the other hand, is an element that when instantiated potentially admits a collection of values.  An optionally defined lower bound value (defaults to 1) can determine the minimum number of instances expected. Whether multiple values are in fact admitted will depend on the upper bound of the multiplicity element, which defaults to 1  (no multiple values allowed), but can be set to any positive integer, or infinity. A multiplicity element that can actually be multivalued can also be characterized regarding ordering (whether values can be accessed by position) and uniqueness (whether values can be repeated).</p>
<p>Some kinds of elements are both typed and support multiplicity (such as properties, parameters, pins and variables), however a few are one or the other (let&#8217;s ignore those in this discussion).</p>
<p><strong>Mapping UML to Java</strong></p>
<p>To try to illustrate all that was said above, let&#8217;s see a few examples of Java variable declarations and the equivalent declaration in UML (using <a href="http://abstratt.com/textuml">TextUML </a>syntax):</p>
<table border="1" cellspacing="0">
<tr>
<th width="25%">declaration</th>
<th width="40%">Java</th>
<th width="35%">TextUML</th>
</tr>
<tr>
<td>single-valued</td>
<td><code>Client c</code></td>
<td><code>c:Client</code></td>
</tr>
<tr>
<td rowspan="2">multi-valued</td>
<td><code>Collection&lt;Client&gt; c</code></td>
<td rowspan="2"><code>c:Client[*]</code></td>
</tr>
<tr>
<td><code>Client[] c</code></td>
</tr>
<tr>
<td>ordered</td>
<td><code>List&lt;Client&gt; c</code></td>
<td><code>c:Client[*]{ordered}</code></td>
</tr>
<tr>
<td>unique</td>
<td><code>Set&lt;client&gt; c</code></td>
<td><code>c:Client[*]{unique}<br />
</code></td>
</tr>
</table>
<p>There are few interesting differences though:</p>
<ol>
<li>in UML, <em>it is the typed element itself that defines multiplicity, and not the type</em></li>
<li>c:Client, c:Client[1] and c:Client[1,1] are all equivalent</li>
<li>c:Client[*], c:Client[1,*] are equivalent</li>
<li>if a value is optional, the lower bound must be specified to be 0 (example: c:Client[0,1]). There is no  Java equivalent for that.</li>
<li>unique and unordered are the default in UML (you can use the modifiers &#8216;nonunique&#8217; and &#8216;ordered&#8217; to override the defaults)</li>
</ol>
<p>There are some implications related to assignment when the source and destination are multiplicity elements:</p>
<ol>
<li>the upper bound of the destination must be the same or greater than the upper bound of the source, or a type mismatch will ensue</li>
<li>what happens if source and destination differ on ordering or unicity? The UML spec does not sem to cover that (let me know if you think otherwise). In TextUML, any required transformations are performed automatically behind the scenes. For example: if the source is non-unique and the destination is unique, duplicates will be silently suppressed, or if the source is unordered and the  destination is ordered, an arbitrary order will be defined.</li>
</ol>
<p>Well, that was it for today. If you have questions, suggestions or think I got something wrong here, feel free to add a comment.</p>
]]></content:encoded>
			<wfw:commentRss>http://abstratt.com/blog/2007/11/17/uml-101-with-textuml-multiplicity-or/feed/</wfw:commentRss>
		</item>
		<item>
		<title>UML 101 with TextUML: the Templates package</title>
		<link>http://abstratt.com/blog/2007/11/01/uml-101-the-templates-package/</link>
		<comments>http://abstratt.com/blog/2007/11/01/uml-101-the-templates-package/#comments</comments>
		<pubDate>Fri, 02 Nov 2007 04:22:10 +0000</pubDate>
		<dc:creator>rafael.chaves</dc:creator>
		
		<category><![CDATA[TextUML Toolkit]]></category>

		<category><![CDATA[UML]]></category>

		<guid isPermaLink="false">http://abstratt.com/blog/2007/11/01/uml-101-the-templates-package/</guid>
		<description><![CDATA[One of the least known and understood concepts of UML is templates. Section 17.5 on version 2.1.1 of the UML specification covers the Templates package in 31 pages. What follows is an attempt at providing a summary of the mechanism in a way that is easy to understand without actually omitting any important details.
A simple [...]]]></description>
			<content:encoded><![CDATA[<p>One of the least known and understood concepts of UML is templates. Section 17.5 on version 2.1.1 of the UML specification covers the Templates package in 31 pages. What follows is an attempt at providing a summary of the mechanism in a way that is easy to understand without actually omitting any important details.</p>
<p><strong>A simple example</strong></p>
<p>The following example in <a href="http://abstratt.com/textuml">TextUML</a> should be easy to understand for any developer familiar with C++ parametrized types  or Java generics:</p>
<pre>class Foo
end;

class Bar&lt;T&gt;
    attribute prop1 : T;
    operation op11(par1 : T);
end;

class Fred
    attribute attr1 : Bar&lt;Foo&gt;;
end;</pre>
<p>Class &#8216;Bar&#8217; is a template class, whose template signature contains a single parameter: &#8216;T&#8217;. The type of the property &#8216;prop1&#8242; is defined as the template parameter &#8216;T&#8217;. Class &#8216;Fred&#8217; declares &#8217;someOp1&#8242;, an operation that takes a parameter whose type is a binding of the template class &#8216;Bar&#8217;. &#8216;Bar&#8217;&#8217;s template parameter &#8216;T&#8217; is bound to the class &#8216;Foo&#8217;. Implicitly, the type of &#8216;Fred.attr1&#8242; when expanded against Foo should look something like:</p>
<pre>class BarOfFoo
    attribute prop1 : Foo;
    operation op11(par1 : Foo);
end;</pre>
<p>Note that the expanded class has actually no name, but I am calling it &#8216;BarOfZoo&#8217; for pedagogical reasons.</p>
<p><strong>Looking closer at the abstractions<br />
</strong></p>
<ul>
<li><strong>TemplateableElements </strong>- abstract super-class for elements that can be declared as templates, or that can bind other templates to a set of parameters. Four kinds of elements can be declared as templates in UML 2.*: Classifier, Operation, Package and StringExpression, and thus only those metaclasses specialize TemplateableElement*.</li>
<li><strong>ParameterableElements </strong>- abstract class that is specialized by any type of element that can be used as parameters to templates.</li>
<li><strong>TemplateSignature </strong>- a template signature is owned by a template element and contains the set of parameters declared by a template element.</li>
<li><strong>TemplateBinding </strong>- a template binding represents the &#8220;instantiation&#8221; of a template in the form of  a directed relationship between a template signature and a a bound element, another templateable element. In addition to tying the template to the bound element through the template&#8217;s signature, the template binding contains a set of template parameter substitutions. Which takes us to the next abstraction&#8230;</li>
<li><strong>TemplateParameterSubstitution </strong>- a template parameter substitution is created for every template parameter declared by a template signature. It binds an open parameter to an actual parameter, which is a ParameterableElement.</li>
</ul>
<p>Would you like to play with templates in UML? For now, you will have to look elsewhere. There is some support for templates in the TextUML Toolkit 1.0 M2, but it is, to put it mildly, half-baked. Full template support is planned for M3 (whenever it happens), and that is exactly what I am working right now. I know I am close to getting it right, but assignment compatibility involving template/bound classifiers get be really tricky to implement. Well, whenever I am done, you will learn it first here.<br />
<em>*in the Eclipse UML2 API, Property also specializes TemplateableElement. That seems to be a deviation from the spec, and a <a href="https://bugs.eclipse.org/208353" target="_blank">bug report</a> has been submited.</em></p>
]]></content:encoded>
			<wfw:commentRss>http://abstratt.com/blog/2007/11/01/uml-101-the-templates-package/feed/</wfw:commentRss>
		</item>
		<item>
		<title>EclipseGraphviz on non-Windows platforms</title>
		<link>http://abstratt.com/blog/2007/09/26/eclipsegraphviz-on-non-windows-platforms/</link>
		<comments>http://abstratt.com/blog/2007/09/26/eclipsegraphviz-on-non-windows-platforms/#comments</comments>
		<pubDate>Thu, 27 Sep 2007 06:43:48 +0000</pubDate>
		<dc:creator>rafael.chaves</dc:creator>
		
		<category><![CDATA[Eclipse]]></category>

		<category><![CDATA[Graphviz]]></category>

		<guid isPermaLink="false">http://abstratt.com/blog/2007/09/26/eclipsegraphviz-on-non-windows-platforms/</guid>
		<description><![CDATA[Starting today there is support for EclipseGraphviz on non-Windows platforms. Scott Bronson convinced me that while bundling a Graphviz install was a good idea for the Windows audience, on Linux and other platforms that really would not make sense given that Linux runs on many different architectures,  not to mention other Unix-like systems where [...]]]></description>
			<content:encoded><![CDATA[<p>Starting today there is support for EclipseGraphviz on non-Windows platforms. <a href="http://u32.net" target="_blank">Scott Bronson</a> convinced me that while bundling a Graphviz install was a good idea for the Windows audience, on Linux and other platforms that really would not make sense given that Linux runs on many different architectures,  not to mention other Unix-like systems where Eclipse and Graphviz are known to work and EclipseGraphviz would not due to lack of a corresponding bundled Graphviz install.</p>
<p>Thanks to Scott&#8217;s patches, EclipseGraphviz should now work out of the box on any Windows system or on any other platform where Eclipse and Graphviz were successfully installed. If Graphviz is installed under a location that is not part of the system path, you will have to open the Graphviz preference page, choose the &#8220;Specify manually&#8221; option and enter the absolute location of the &#8220;dot&#8221; executable:</p>
<p><img src="http://abstratt.com/blog/wp-content/uploads/2007/09/eclipse-graphviz-prefs11.png" alt="eclipse-graphviz-prefs1.png" /></p>
<p>Do you create diagrams using Graphviz dot language or would you like to see the UML visualization capabilities on non-Windows platforms? Make sure you have <a href="http://graphviz.org">Graphviz</a> installed (Windows users can skip this step), then point the Eclipse update manager to http://eclipsegraphviz.sf.net/update and get the latest build. Any problems, report here or on the <a href="http://eclipsegraphviz.sf.net">EclipseGraphviz</a> issue tracker. Need help? Ask away, either here or on the forum. We only tested on Windows XP and Linux/x86 64 bits so if you are using another platform, please tell us what OS/architecture you are using EclipseGraphviz on and whether it works or not.</p>
]]></content:encoded>
			<wfw:commentRss>http://abstratt.com/blog/2007/09/26/eclipsegraphviz-on-non-windows-platforms/feed/</wfw:commentRss>
		</item>
		<item>
		<title>EclipseGraphviz gets an update site</title>
		<link>http://abstratt.com/blog/2007/09/19/eclipsegraphviz-gets-an-update-site/</link>
		<comments>http://abstratt.com/blog/2007/09/19/eclipsegraphviz-gets-an-update-site/#comments</comments>
		<pubDate>Wed, 19 Sep 2007 07:34:56 +0000</pubDate>
		<dc:creator>rafael.chaves</dc:creator>
		
		<category><![CDATA[Eclipse]]></category>

		<category><![CDATA[Graphviz]]></category>

		<guid isPermaLink="false">http://abstratt.com/blog/2007/09/19/eclipsegraphviz-gets-an-update-site/</guid>
		<description><![CDATA[A few people have asked for a more convenient way of getting EclipseGraphviz other than by checking it out from the Subversion repository on Sourceforge, so I decided to create an update site with the most current code. Again, this is alpha code, so proceed with caution.
Check out the EclipseGraphviz wiki on instructions for installing [...]]]></description>
			<content:encoded><![CDATA[<p>A few people have asked for a more convenient way of getting EclipseGraphviz other than by checking it out from the Subversion repository on Sourceforge, so I decided to create an update site with the most current code. Again, this is alpha code, so proceed with caution.</p>
<p>Check out the <a href="http://eclipsegraphviz.sf.net">EclipseGraphviz wiki</a> on instructions for installing EclipseGraphviz from the update site and a few hints on how to use it.</p>
<p>Enjoy. Feedback is most appreciated.</p>
]]></content:encoded>
			<wfw:commentRss>http://abstratt.com/blog/2007/09/19/eclipsegraphviz-gets-an-update-site/feed/</wfw:commentRss>
		</item>
		<item>
		<title>TextUML Toolkit M2a - Java 5 users please read</title>
		<link>http://abstratt.com/blog/2007/09/08/63/</link>
		<comments>http://abstratt.com/blog/2007/09/08/63/#comments</comments>
		<pubDate>Sat, 08 Sep 2007 19:36:08 +0000</pubDate>
		<dc:creator>rafael.chaves</dc:creator>
		
		<category><![CDATA[TextUML Toolkit]]></category>

		<category><![CDATA[UML]]></category>

		<guid isPermaLink="false">http://abstratt.com/blog/2007/09/08/63/</guid>
		<description><![CDATA[A user has just reported that the TextUML Toolkit M2 build did not work at all for him. Ouch. Thankfully, the user included in the bug report all the information I needed to allow a quick diagnostic: turns out he was using a Java 5 VM, and he was getting exceptions like this:

java.lang.UnsupportedClassVersionError: Bad version [...]]]></description>
			<content:encoded><![CDATA[<p>A user has just reported that the TextUML Toolkit M2 build did not work at all for him. Ouch. Thankfully, the user included in the bug report all the information I needed to allow a quick diagnostic: turns out he was using a Java 5 VM, and he was getting exceptions like this:</p>
<pre>
java.lang.UnsupportedClassVersionError: Bad version number in .class file

 at java.lang.ClassLoader.defineClass1(Native Method)

 ...</pre>
<p>I then realized that for the M2 build some of the plug-ins were accidentally compiled having Java 6 as the target platform, and thus wouldn&#8217;t work on a Java 5 VM. This is being fixed as I write this, and a new M2a build will be available shortly.</p>
<p>So, for those of you running with a Java 5 VM, please make sure you <a href="http://abstratt.com/textuml/download.html">download the TextUML Toolkit M2a build</a>. Otherwise, if you are using a Java 6 VM, you should be fine with M2, no need to download the build again.</p>
<p>Thanks to Jon for reporting the issue. Keep those bug reports coming!</p>
]]></content:encoded>
			<wfw:commentRss>http://abstratt.com/blog/2007/09/08/63/feed/</wfw:commentRss>
		</item>
		<item>
		<title>UML 101 with TextUML - Profiles and Stereotypes</title>
		<link>http://abstratt.com/blog/2007/09/06/profiles-and-stereotypes-in-textuml/</link>
		<comments>http://abstratt.com/blog/2007/09/06/profiles-and-stereotypes-in-textuml/#comments</comments>
		<pubDate>Fri, 07 Sep 2007 05:09:14 +0000</pubDate>
		<dc:creator>rafael.chaves</dc:creator>
		
		<category><![CDATA[TextUML Toolkit]]></category>

		<category><![CDATA[UML]]></category>

		<guid isPermaLink="false">http://abstratt.com/blog/2007/09/06/profiles-and-stereotypes-in-textuml/</guid>
		<description><![CDATA[Profiles and stereotypes form a lightweight mechanism for extending the UML metamodel.
A stereotype allows you to tag elements in your model so they can be interpreted differently from ordinary model elements, much like annotations work in languages such as C# and Java. These tags can then be used to drive code generation, for example, so [...]]]></description>
			<content:encoded><![CDATA[<p>Profiles and stereotypes form a lightweight mechanism for extending the UML metamodel.</p>
<p>A <em>stereotype</em> allows you to tag elements in your model so they can be interpreted differently from ordinary model elements, much like annotations work in languages such as C# and Java. These tags can then be used to drive code generation, for example, so for every class marked as &#8220;persistent&#8221;, appropriate persistence code should be generated.</p>
<p>A <em>profile</em> is a special kind of package intended to contain stereotype declarations that extend UML to cover some specific domain or platform.</p>
<p>Let&#8217;s see how to declare and use profiles and stereotypes with the help of the <a href="http://abstratt.com/textuml/">TextUML Toolkit</a>.</p>
<p><strong>Declaring a stereotype</strong></p>
<p>To declare a stereotype in TextUML, one uses the following syntax:</p>
<pre>
profile &lt;profile-name&gt;;

stereotype &lt;stereotype-name&gt; extends &lt;metaclass-1 [,...metaclass-n]&#8230;]
[&lt;property-1&gt;; [... property-n;]&#8230;]
end;

end.</pre>
<p>In other words, a stereotype can be declared as applicable to one or more metaclasses (i.e. types of elements in a UML model), and a stereotype can optionally declare properties (more on properties later) . For instance, a classes could be tagged with the &lt;&lt;persistent&gt;&gt; stereotype:</p>
<pre>profile business_apps;

import uml;

stereotype persistent extends Class
end;

end.</pre>
<p>Or operations could be marked as &lt;&lt;transactional&gt;&gt;, meaning that a transaction will be started whenever the operation starts executing, and finished when its execution ends:</p>
<pre>profile business_apps;

import uml;

stereotype transactional extends Operation
end;

end.</pre>
<p>Any UML element can be affected by stereotypes, but stereotypes are declared as targetting (potentially multiple) specific element types. For instance, the UML specification has an example of a profile for Enterprise JavaBeans that defines a &lt;&lt;Session&gt;&gt; stereotype for session beans. The&lt;&lt;Session&gt;&gt; stereotype declares a property that allows modelers to define whether the session bean component is stateful or stateless.</p>
<pre>profile EJB;

enumeration StateKind
  STATELESS, STATEFUL
end;

stereotype Bean extends uml::Component
end;

stereotype Session specializes Bean
  property kind : StateKind;
end;

stereotype Entity specializes Bean
end;

end.</pre>
<p><strong>Applying a stereotype</strong></p>
<p>Now that we know how to declare stereotypes, lets see how to use them. First of all, you must apply the profile defining the stereotypes to the model declaring elements you want to apply stereotypes to:</p>
<pre>model bank;

apply business_apps;

/* other model elements here */

end.</pre>
<p>You can then attach stereotypes defined in the applied profile  to the suitable model elements in your model:</p>
<pre>model bank;

apply business_apps;

[persistent]
class Account
    attribute accountNumber : base::String;
    attribute balance : base::Real;
    attribute changes : AccountChange[0,*];
    [transactional] operation withdraw(amount : Real);
    [transactional] operation deposit(amount : Real);
    operation balance() : Real;
    [transactional] operation transfer(other : Account, amount : Real);
end;

end.</pre>
<p>In the example above, we applied the &lt;&lt;persistent&gt;&gt; stereotype to the Bank class, and the &lt;&lt;transactional&gt;&gt; stereotype  to the withdraw, deposit and transfer operations. In order to have access to these stereotypes,  we had to apply the &#8220;business_apps&#8221; profile to our model.</p>
<p><strong>Conclusion</strong></p>
<p>In this post/article on UML basics using TextUML, we saw how to declare stereotypes and apply them to elements in UML models. We learned that a stereotype must explicitly declare the metaclasses they are applicable to, and that optionally stereotypes might declare properties. Finally, we saw that before a stereotype can be used in a model, the profile declaring the stereotype must be applied to the model.</p>
]]></content:encoded>
			<wfw:commentRss>http://abstratt.com/blog/2007/09/06/profiles-and-stereotypes-in-textuml/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Rendering UML2 models with Graphviz</title>
		<link>http://abstratt.com/blog/2007/09/02/rendering-uml2-models-with-graphviz/</link>
		<comments>http://abstratt.com/blog/2007/09/02/rendering-uml2-models-with-graphviz/#comments</comments>
		<pubDate>Sun, 02 Sep 2007 08:28:33 +0000</pubDate>
		<dc:creator>rafael.chaves</dc:creator>
		
		<category><![CDATA[Eclipse]]></category>

		<category><![CDATA[Graphviz]]></category>

		<category><![CDATA[UML]]></category>

		<guid isPermaLink="false">http://abstratt.com/blog/2007/09/02/rendering-uml2-models-with-graphviz/</guid>
		<description><![CDATA[The primary goal of the EclipseGraphviz project  is to support Eclipse-based applications that want to use Graphviz as an easy way of producing non-interactive structured diagrams without requiring the complexity of GEF or GMF.
The TextUML Toolkit is the only application currently known to be based on the EclipseGraphviz project. To support rendering UML models [...]]]></description>
			<content:encoded><![CDATA[<p>The primary goal of the <a href="http://eclipsegraphviz.sf.net" target="_blank">EclipseGraphviz project</a>  is to support Eclipse-based applications that want to use <a href="http://graphviz.org" target="_blank">Graphviz</a> as an easy way of producing non-interactive structured diagrams without requiring the complexity of GEF or GMF.</p>
<p>The <a href="http://abstratt.com/blog/2007/09/02/textuml-toolkit-10-m2-is-available/">TextUML Toolkit</a> is the only application currently known to be based on the EclipseGraphviz project. To support rendering UML models generated using the TextUML textual notation, EclipseGraphviz has now the ability of rendering any UML model generated using the <a href="http://eclipse.org/uml2" target="_blank">Eclipse UML2</a> API.</p>
<p>In this screenshot, you can see the UML model used in the article &#8220;<a href="http://www.eclipse.org/modeling/mdt/uml2/docs/articles/Getting_Started_with_UML2/article.html" target="_blank">Getting started with UML2</a>&#8221; rendered with EclipseGraphviz:</p>
<p><a href="http://abstratt.com/blog/wp-content/uploads/2007/09/getting-started-with-uml2-full1.jpg" title="getting-started-with-uml2-small.jpg"><img src="http://abstratt.com/blog/wp-content/uploads/2007/09/getting-started-with-uml2-small1.jpg" alt="getting-started-with-uml2-small.jpg" /></a></p>
<p>The main benefits are that the EclipseGraphviz graphical rendering of UML2 models is quite lightweight, and Graphviz produces great layouts automatically. The main caveat is that the diagrams are not interactive. Not to mention that EclipseGraphviz is still quite in its early stages, so it lacks maturity and features. And it does not run yet on non-Windows platforms.</p>
<p>There is where you can make a difference. Check out the project from the Subversion repository,  give it a try, and  contribute with bug reports, feature requests and patches.</p>
]]></content:encoded>
			<wfw:commentRss>http://abstratt.com/blog/2007/09/02/rendering-uml2-models-with-graphviz/feed/</wfw:commentRss>
		</item>
		<item>
		<title>TextUML Toolkit 1.0 M2 is available!</title>
		<link>http://abstratt.com/blog/2007/09/02/textuml-toolkit-10-m2-is-available/</link>
		<comments>http://abstratt.com/blog/2007/09/02/textuml-toolkit-10-m2-is-available/#comments</comments>
		<pubDate>Sun, 02 Sep 2007 07:56:37 +0000</pubDate>
		<dc:creator>rafael.chaves</dc:creator>
		
		<category><![CDATA[TextUML Toolkit]]></category>

		<category><![CDATA[UML]]></category>

		<guid isPermaLink="false">http://abstratt.com/blog/2007/09/02/textuml-toolkit-10-m2-is-available/</guid>
		<description><![CDATA[After a few minor bug fixes and improvements to the test build, the M2 milestone of TextUML Toolkit is available. With this milestone you can:

create UML models using the TextUML textual  representation
visualize the model created using the conventional graphical notation for class diagrams

This milestone does not support non-Windows platforms. But progress is being made [...]]]></description>
			<content:encoded><![CDATA[<p>After a few minor bug fixes and improvements to the test build, the M2 milestone of TextUML Toolkit is available. With this milestone you can:</p>
<ul>
<li>create UML models using the TextUML textual  representation</li>
<li>visualize the model created using the conventional graphical notation for class diagrams</li>
</ul>
<p>This milestone does not support non-Windows platforms. But progress is being made in that direction. See below a screenshot of TextUML Toolkit running on Ubuntu Feisty Fawn:<br />
<a href="http://abstratt.com/blog/wp-content/uploads/2007/09/ubuntu-first1.jpg" title="ubuntu-first-small.jpg"><img src="http://abstratt.com/blog/wp-content/uploads/2007/09/ubuntu-first-small1.jpg" alt="ubuntu-first-small.jpg" /></a></p>
<p>Just go to the <a href="http://abstratt.com/textuml/download.html">download</a> page and fetch it, it is free with no restrictions (or guarantees). Make sure to check out the <a href="http://abstratt.com/textuml/tutorial">tutorial</a>. Your feedback is most appreciated.</p>
<p>Now off to a long weekend on the beach&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://abstratt.com/blog/2007/09/02/textuml-toolkit-10-m2-is-available/feed/</wfw:commentRss>
		</item>
		<item>
		<title>TextUML Toolkit 1.0 M2 test build is available</title>
		<link>http://abstratt.com/blog/2007/08/29/textuml-toolkit-10-m2-test-build-is-available/</link>
		<comments>http://abstratt.com/blog/2007/08/29/textuml-toolkit-10-m2-test-build-is-available/#comments</comments>
		<pubDate>Wed, 29 Aug 2007 16:03:50 +0000</pubDate>
		<dc:creator>rafael.chaves</dc:creator>
		
		<category><![CDATA[TextUML Toolkit]]></category>

		<guid isPermaLink="false">http://abstratt.com/blog/2007/08/29/textuml-toolkit-10-m2-test-build-is-available/</guid>
		<description><![CDATA[A TextUML Toolkit 1.0 M2 test build is available off the download page. If no serious issues are found in this build, it will be declared the final M2 build later this week.
The key feature developed for this milestone is the graphical class diagram viewer, which reuses the EclipseGraphviz project. The viewer shows a live [...]]]></description>
			<content:encoded><![CDATA[<p>A TextUML Toolkit 1.0 M2 test build is available off the <a href="http://abstratt.com/textuml/download.html">download</a> page. If no serious issues are found in this build, it will be declared the final M2 build later this week.</p>
<p>The key feature developed for this milestone is the graphical class diagram viewer, which reuses the <a href="http://eclipsegraphviz.sf.net" target="_blank">EclipseGraphviz</a> project. The viewer shows a live representation of the UML model built from your TextUML source file using the standard graphical notation. It can also be used to visualize UML files created by any UML2 compliant tools.</p>
<p><a href="http://abstratt.com/blog/wp-content/uploads/2007/08/textuml-toolkit-10m2-full1.jpg" title="Click for a full size view"><img src="http://abstratt.com/blog/wp-content/uploads/2007/08/textuml-toolkit-10m2-small1.jpg" alt="textuml-toolkit-10m2-small.jpg" /></a></p>
<p>Other significant change is that the &#8220;extends&#8221; keyword is now used specifically to state the metaclass a stereotype is a applicable to, whereas &#8220;specializes&#8221; should be used for class inheritance. This was for a better alignment with the official UML terminology. Finally, there is now support for declaring enumerations.</p>
<p>Would you like to take a look? <a href="http://abstratt.com/textuml/download.html">Grab the M2 test build</a>, and give it a try. Your feedback is much appreciated.</p>
<p>RC</p>
]]></content:encoded>
			<wfw:commentRss>http://abstratt.com/blog/2007/08/29/textuml-toolkit-10-m2-test-build-is-available/feed/</wfw:commentRss>
		</item>
		<item>
		<title>A detour from a detour from a detour (or how a graphical viewing framework for Eclipse was born)</title>
		<link>http://abstratt.com/blog/2007/08/23/a-detour-from-a-detour-from-a-detour-or-how-a-graphical-viewing-framework-for-eclipse-was-born/</link>
		<comments>http://abstratt.com/blog/2007/08/23/a-detour-from-a-detour-from-a-detour-or-how-a-graphical-viewing-framework-for-eclipse-was-born/#comments</comments>
		<pubDate>Thu, 23 Aug 2007 17:04:59 +0000</pubDate>
		<dc:creator>rafael.chaves</dc:creator>
		
		<category><![CDATA[Eclipse]]></category>

		<category><![CDATA[Graphviz]]></category>

		<category><![CDATA[TextUML Toolkit]]></category>

		<category><![CDATA[UML]]></category>

		<guid isPermaLink="false">http://abstratt.com/blog/2007/08/23/a-detour-from-a-detour-from-a-detour-or-how-a-graphical-viewing-framework-for-eclipse-was-born/</guid>
		<description><![CDATA[In the context of providing class diagram visualization for TextUML Toolkit, I have developed a simple graphical viewing framework for Eclipse. It is content type based, and allows you to view anything a content provider has been registered for. For instance, any image file supported by SWT:


But you can also view  the graphical  [...]]]></description>
			<content:encoded><![CDATA[<p>In the context of providing class diagram visualization for <a href="http://abstratt.com/textuml/">TextUML Toolkit</a>, I have developed a simple graphical viewing framework for Eclipse. It is content type based, and allows you to view anything a content provider has been registered for. For instance, any image file supported by SWT:</p>
<p><a href="http://abstratt.com/blog/wp-content/uploads/2007/08/graphical-viewer-sample11.jpg" title="Graphical viewer showing image files"></a></p>
<p style="text-align: center"><a href="http://abstratt.com/blog/wp-content/uploads/2007/08/graphical-viewer-sample1-full1.jpg" title="Graphical viewer showing image files"><img src="http://abstratt.com/blog/wp-content/uploads/2007/08/graphical-viewer-sample11.jpg" alt="Graphical viewer showing image files" /></a></p>
<p>But you can also view  the graphical  representation of a <a href="http://graphviz.org" target="_blank">Graphviz</a> DOT file, and it will even update as you edit the file:</p>
<p><a href="http://abstratt.com/blog/wp-content/uploads/2007/08/graphical-viewer-sample21.jpg" title="Graphical viewer showing DOT files"></a></p>
<p style="text-align: center"><a href="http://abstratt.com/blog/wp-content/uploads/2007/08/graphical-viewer-sample2-full1.jpg" title="Graphical viewer showing DOT files"><img src="http://abstratt.com/blog/wp-content/uploads/2007/08/graphical-viewer-sample21.jpg" alt="Graphical viewer showing DOT files" /></a></p>
<p>And finally, and also the reason why I had to develop support for DOT visualization in the first place, you can also visualize a UML model (here showing a model created using the TextUML Toolkit):</p>
<p><a href="http://abstratt.com/blog/wp-content/uploads/2007/08/graphical-viewer-sample31.jpg" title="Graphical viewer showing UML model"></a></p>
<p style="text-align: center"><a href="http://abstratt.com/blog/wp-content/uploads/2007/08/graphical-viewer-sample3-full1.jpg" title="Graphical viewer showing UML model"><img src="http://abstratt.com/blog/wp-content/uploads/2007/08/graphical-viewer-sample31.jpg" alt="Graphical viewer showing UML model" /></a></p>
<p>All these features  (except for the TextUML Toolkit itself) are part of the <a href="http://sf.net/projects/eclipsegraphviz" target="_blank">EclipseGraphviz</a> project, which is open source (EPL). No releases yet as this is still very new, but you can grab the source from the Subversion repository. If you would like to contribute to the EclipseGraphviz project, or to the graphical viewing framework, your help will be most welcome.</p>
<p><em>RC </em></p>
]]></content:encoded>
			<wfw:commentRss>http://abstratt.com/blog/2007/08/23/a-detour-from-a-detour-from-a-detour-or-how-a-graphical-viewing-framework-for-eclipse-was-born/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Graphviz on Eclipse - first cut</title>
		<link>http://abstratt.com/blog/2007/08/03/graphviz-on-eclipse-first-cut/</link>
		<comments>http://abstratt.com/blog/2007/08/03/graphviz-on-eclipse-first-cut/#comments</comments>
		<pubDate>Fri, 03 Aug 2007 07:36:38 +0000</pubDate>
		<dc:creator>rafael.chaves</dc:creator>
		
		<category><![CDATA[Eclipse]]></category>

		<category><![CDATA[Graphviz]]></category>

		<category><![CDATA[TextUML Toolkit]]></category>

		<guid isPermaLink="false">http://abstratt.com/blog/2007/08/03/graphviz-on-eclipse-first-cut/</guid>
		<description><![CDATA[Just finished a raw implementation of a viewer for GraphViz dot files. Here is a screenshot:

By the way, the project has been provisioned on SourceForge with the suggestive name of EclipseGraphviz.
RC
]]></description>
			<content:encoded><![CDATA[<p>Just finished a raw implementation of a viewer for GraphViz dot files. Here is a screenshot:</p>
<p><a href="http://abstratt.com/blog/wp-content/uploads/2007/08/eclipsegraphviz-first-reduced1.png" title="EclipseGraphviz in action"><img src="http://abstratt.com/blog/wp-content/uploads/2007/08/eclipsegraphviz-first-reduced1.png" alt="EclipseGraphviz in action" /></a></p>
<p>By the way, the project has been provisioned on SourceForge with the suggestive name of <a href="http://sourceforge.net/projects/eclipsegraphviz" target="_blank">EclipseGraphviz</a>.</p>
<p><em>RC</em></p>
]]></content:encoded>
			<wfw:commentRss>http://abstratt.com/blog/2007/08/03/graphviz-on-eclipse-first-cut/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Graphviz support in Eclipse</title>
		<link>http://abstratt.com/blog/2007/07/23/graphviz-support-in-eclipse/</link>
		<comments>http://abstratt.com/blog/2007/07/23/graphviz-support-in-eclipse/#comments</comments>
		<pubDate>Mon, 23 Jul 2007 07:35:57 +0000</pubDate>
		<dc:creator>rafael.chaves</dc:creator>
		
		<category><![CDATA[Graphviz]]></category>

		<category><![CDATA[TextUML Toolkit]]></category>

		<guid isPermaLink="false">http://abstratt.com/blog/2007/07/23/graphviz-support-in-eclipse/</guid>
		<description><![CDATA[Would you like an Eclipse-based development environment for composing Graphviz diagrams, for instance, an editor with syntax highlighting, on-the-fly validation and visualization? Or would you, as an Eclipse plug-in developer, like an easy way of producing nice looking diagrams by calling Graphviz from your own Eclipse application?
Well, we have the second need (for our TextUML [...]]]></description>
			<content:encoded><![CDATA[<p>Would you like an Eclipse-based development environment for composing <a href="http://graphviz.org">Graphviz</a> diagrams, for instance, an editor with syntax highlighting, on-the-fly validation and visualization? Or would you, as an Eclipse plug-in developer, like an easy way of producing nice looking diagrams by calling Graphviz from your own Eclipse application?</p>
<p>Well, we have the second need (for our <a href="http://abstratt.com/textuml/">TextUML Toolkit</a> product) and I have started developing it as an open source project to be maintained on SourceForge (project being provisioned as I write this). We will certainly need help from other contributors. Help will be mostly welcome with the end-user oriented features as our initial focus will be on producing an API for invoking Graphviz from within Eclipse.</p>
<p><em>(By the way, it has been a while since the last post.  Meanwhile, I have been busy moving back from Brazil to Canada (more specifically to the beautiful Victoria, BC), finding a new home and buying a new computer. The trip itself was exhausting (5 flights across a week), but it could have been much worse <a href="http://maps.google.com/maps?f=d&amp;hl=en&amp;geocode=&amp;saddr=florianopolis,santa+catarina,brazil&amp;daddr=victoria,bc&amp;sll=-27.614189,-48.506012&amp;sspn=0.497696,1.230469&amp;ie=UTF8&amp;ll=21.943046,-77.695312&amp;spn=112.356972,315&amp;z=2&amp;om=1" target="_blank">had I followed Google&#8217;s advice</a>.</em></p>
<p><em>From now on, you should see a new post here at least once a week. The plan is to have the second milestone for TextUML Toolkit (with diagram visualization) in about two weeks. Stay tuned.)</em></p>
]]></content:encoded>
			<wfw:commentRss>http://abstratt.com/blog/2007/07/23/graphviz-support-in-eclipse/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Full code generation from UML class, state and activity diagrams</title>
		<link>http://abstratt.com/blog/2007/06/01/full-code-generation-in-uml-from-the-class-state-and-activity-diagrams/</link>
		<comments>http://abstratt.com/blog/2007/06/01/full-code-generation-in-uml-from-the-class-state-and-activity-diagrams/#comments</comments>
		<pubDate>Fri, 01 Jun 2007 23:36:19 +0000</pubDate>
		<dc:creator>rafael.chaves</dc:creator>
		
		<category><![CDATA[TextUML Toolkit]]></category>

		<category><![CDATA[UML]]></category>

		<category><![CDATA[editorial]]></category>

		<guid isPermaLink="false">http://abstratt.com/blog/2007/06/01/full-code-generation-in-uml-from-the-class-state-and-activity-diagrams/</guid>
		<description><![CDATA[UML has become the lingua franca for modeling applications using the object-oriented paradigm. People use UML in many different ways (see the post on UML modes), ranging from as a communication tool to as a full fledged programming language that supports full code generation. This last way of using UML should puzzle most readers - [...]]]></description>
			<content:encoded><![CDATA[<p>UML has become the lingua franca for modeling applications using the object-oriented paradigm. People use UML in many different ways (see the post on <a href="http://abstratt.com/blog/2007/05/12/uml-modes-and-tools/">UML modes</a>), ranging from as a communication tool to as a full fledged programming language that supports full code generation. This last way of using UML should puzzle most readers - how can UML models lead to full code generation?</p>
<p>UML has two diagrams that are used for behavior specification: the activity diagram and the state diagram. These two diagrams (more one than the other, depending on the nature of the subsystem being modeled), plus the class diagram (for modeling the structural aspects of the object model) provide the framework that supports the design of complex applications in a way that is fully complete (and thus allowing 100% code generation) while still implementation independent (see earlier post on <a href="http://abstratt.com/blog/2007/05/22/platform-independence-in-mda/">platform independence</a>). All the other diagrams (use case, sequence, collaboration) are interesting for gathering requirements, but are useless in modeling a solution that can be automatically transformed into a running application, and thus we will ignore them here.</p>
<p><strong>Specifying structure with the Class Diagram</strong></p>
<p>The class diagram is the most well understood of all diagrams in UML. You can model all structural aspects of your object model in the form of classes, attributes, operations and relationships between classes. This specification of structural aspects can then be used for generating (boilerplate) code, database schema, configuration files and so on so forth. This is great already, as that is most of the work. But without including behavioral aspects, it is impossible to do full code generation solely from the class diagram, you are forced to fill the empty methods with handwritten code (unfortunately this is how most vendors expect you to do model-driven development). Still, the class diagram is a fundamental one in which it provides a base framework the other diagrams can build upon.</p>
<p><strong>Specifying dynamics with the State Diagram</strong></p>
<p>The UML state diagram (derived from David Harel&#8217;s state charts) allows for a full design of the dynamic aspects of a system. One can model complex state machines using the state diagram, always in the context of a class described in the class diagram. Many mainstream applications do not have any interesting dynamics though, so in those cases the state diagram has limited value. However, in applications for certain industries (such as robotics, telecom and automotive) it is the most important diagram.</p>
<p><strong>Specifying business logic with the Activity Diagram</strong></p>
<p>The most underrated of the UML diagrams, the activity diagram has a key role: it is the only one to allow the modeler to specify behavior in a precise way. The Activity Diagram provides elements (such as actions, pins, data and control flows, signals) that allow specifying the meaning of a behavioral element (such as the body of an operation from the class diagram, or the effect of a state transition from the state diagram).</p>
<p>But no matter how important the UML activity diagram is, it has one strong limitation: it demands too much detailed information in order to be fully defined (and thus actually useful in the context of code generation). Any simple logic that could be written in a few lines in, say, Java, requires a graph with so many nodes that it is virtually impractical to use it with the graphical notation, severely hampering its more widespread adoption.</p>
<p>Have I just suggested that activity diagrams are useless for any serious usage? No! It is just the case that the graphical notation is too cumbersome, and it is not just a problem with the specific choice of symbols - there will never be any graphical representation that can be as expressive and concise for specifying behavior as your programming language of choice (even if your favorite language is as verbose as COBOL). So it is a matter of representation: a textual notation is much more appropriate than a graphical one. The activity diagram itself is fine, thanks.</p>
<p>So what is the textual notation for the activity diagram?  There is none. I mean, not one defined by the <a href="http://omg.org/mda" target="_blank">OMG</a>. Many companies have defined their own <em>action languages </em>(such as <a href="http://www.pathfindermda.com/products/" target="_blank">Pathfinder AL</a>, <a href="http://www.mentor.com/products/sm/uml_suite/index.cfm" target="_blank">Bridgepoint OAL</a>, <a href="http://www.kc.com/products/iuml.php" target="_blank">Kennedy Carter&#8217;s ASL</a>) with compilers that provide a textual front-end for the UML activity diagram. <a href="http://abstratt.com/textuml/">TextUML</a> itself has a bigger cousin (currently an ongoing work) that allows specifying UML activities in a way that is familiar to any programmer. Want to see what an action language looks like? Expect a new post on the subject (including our very own action language) here soon.</p>
]]></content:encoded>
			<wfw:commentRss>http://abstratt.com/blog/2007/06/01/full-code-generation-in-uml-from-the-class-state-and-activity-diagrams/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Model-driven development improves reuse</title>
		<link>http://abstratt.com/blog/2007/05/30/model-driven-development-improves-reuse/</link>
		<comments>http://abstratt.com/blog/2007/05/30/model-driven-development-improves-reuse/#comments</comments>
		<pubDate>Wed, 30 May 2007 22:49:49 +0000</pubDate>
		<dc:creator>rafael.chaves</dc:creator>
		
		<category><![CDATA[UML]]></category>

		<category><![CDATA[editorial]]></category>

		<guid isPermaLink="false">http://abstratt.com/blog/2007/05/30/model-driven-development-improves-reuse/</guid>
		<description><![CDATA[One notable benefit of model-driven development that is often underrated is improved reuse. This is a direct consequence of appropriate separation of concerns promoted by this development approach. The more intertwined concerns are when addressed in a piece of code, the harder it is to reuse that piece of code. The reason is simple: whenever [...]]]></description>
			<content:encoded><![CDATA[<p>One notable benefit of model-driven development that is often underrated is <strong>improved reuse</strong>. This is a direct consequence of appropriate separation of concerns promoted by this development approach. The more intertwined concerns are when addressed in a piece of code, the harder it is to reuse that piece of code. The reason is simple: whenever you tie a solution for one concern to a solution for another concern, you are in trouble: you cannot reuse that piece of code where only one of the concerns is relevant, or the solution for one of the concerns is not appropriate (even if the solution for the other concern is).</p>
<p>Model-driven development promotes an approach where problem-domain concerns are addressed separately from implementation concerns. That means artifacts dealing with problem-domain concerns are free from any specifics on target platforms, and also that artifacts addressing implementation-related concerns are totally unaware of any problem domain knowledge.</p>
<p>That is fantastic, and the reason is twofold:</p>
<ol>
<li> it makes it viable to build a repository of platform-independent problem-domain specific components, likely created by people that are experts in their domain, that can be reused on different target platforms;</li>
<li>it allows implementation specialists to code their technology-specific implementation strategies as standalone artifacts (i.e. templates), which can then be shared and reused in applications for the most varied problem domains.</li>
</ol>
<p>The software industry has been looking for a long time for a way of encapsulating knowledge about specific problem domains in the form of platform-independent software components. Model-driven development with true executable models enables that dream.</p>
<p>For many decades, valuable business logic has been imprisoned into obsolescence-prone implementation-specific artifacts. We are working hard on a product that will help stop this insanity and finally make the dream of truly reusable component repositories a reality.</p>
]]></content:encoded>
			<wfw:commentRss>http://abstratt.com/blog/2007/05/30/model-driven-development-improves-reuse/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Platform independence in MDA</title>
		<link>http://abstratt.com/blog/2007/05/22/platform-independence-in-mda/</link>
		<comments>http://abstratt.com/blog/2007/05/22/platform-independence-in-mda/#comments</comments>
		<pubDate>Tue, 22 May 2007 15:33:17 +0000</pubDate>
		<dc:creator>rafael.chaves</dc:creator>
		
		<category><![CDATA[UML]]></category>

		<category><![CDATA[editorial]]></category>

		<guid isPermaLink="false">http://abstratt.com/blog/2007/05/22/platform-independence-in-mda/</guid>
		<description><![CDATA[One key aspect of MDA is platform independence. However, even some of the brightest people in our industry misunderstand what platform independence means in MDA.
Platform independence has a different meaning in MDA than it has, for instance, in Java. Java promotes platform-independence by providing a common environment that insulates the application from platform details such [...]]]></description>
			<content:encoded><![CDATA[<p>One key aspect of MDA is platform independence. However, even some of the brightest people in our industry misunderstand what platform independence means in MDA.</p>
<p>Platform independence has a different meaning in MDA than it has, for instance, in Java. Java promotes platform-independence by providing a common environment that insulates the application from platform details such as the instruction set and system API (for instance, for memory allocation, file system manipulation, networking, GUI,  threading, etc).  The application still has to address all these concerns, but it does that through API and mechanisms that work the same way regardless the actual underlying platform, and thus can run on any platform the Java environment is available. In other words, the Java environment is the platform.</p>
<p>MDA promotes platform-independence by adopting a design-centric approach. Models are removed from implementation related concerns and thus are inherently platform independent: a single design can be reused for building the same system for multiple target platforms. The implementation details are taken care of by target platform specific templates. The templates are applied to the user models then generating concrete platform-specific artifacts (running code, documentation, database schema, configuration files).  Differently from Java (even if <a href="http://www.martinfowler.com/bliki/PlatformIndependentMalapropism.html">Martin Fowler says so</a>), MDA does <em>not</em> promote another platform. What it does is to promote a clear separation between problem domain concerns and implementation concerns (as covered before here in the inaugural series entitled &#8220;<a href="http://abstratt.com/blog/2007/03/31/where-we-are-coming-from-part-i/">Where we are coming from</a>&#8220;).</p>
<p>The benefits of this separation are many: from unprecedented levels of reuse to better opportunities for work specialization. I plan to cover these benefits in detail on future posts.</p>
<p><em>RC</em></p>
]]></content:encoded>
			<wfw:commentRss>http://abstratt.com/blog/2007/05/22/platform-independence-in-mda/feed/</wfw:commentRss>
		</item>
		<item>
		<title>UML modes and tools</title>
		<link>http://abstratt.com/blog/2007/05/12/uml-modes-and-tools/</link>
		<comments>http://abstratt.com/blog/2007/05/12/uml-modes-and-tools/#comments</comments>
		<pubDate>Sun, 13 May 2007 06:37:30 +0000</pubDate>
		<dc:creator>rafael.chaves</dc:creator>
		
		<category><![CDATA[TextUML Toolkit]]></category>

		<category><![CDATA[UML]]></category>

		<category><![CDATA[editorial]]></category>

		<guid isPermaLink="false">http://abstratt.com/blog/2007/05/12/uml-modes-and-tools/</guid>
		<description><![CDATA[On his bliki, Martin Fowler eloquently describes the three different modes in which UML  can be used: UML as sketch, UML as blueprint and UML as programming language. Let&#8217;s revisit the different modes from the perspective of tools for the job.
UML as sketch
Description: In this mode, UML is essentially a tool for conceiving and [...]]]></description>
			<content:encoded><![CDATA[<p>On his <a href="http://en.wikipedia.org/wiki/Bliki">bliki</a>, <a href="http://www.martinfowler.com/">Martin Fowler</a> eloquently describes the <a href="http://www.martinfowler.com/bliki/UmlMode.html">three different modes</a> in which UML  can be used: <a href="http://www.martinfowler.com/bliki/UmlAsSketch.html">UML as sketch</a>, <a href="http://www.martinfowler.com/bliki/UmlAsBlueprint.html">UML as blueprint</a> and <a href="http://www.martinfowler.com/bliki/UmlAsProgrammingLanguage.html">UML as programming language</a>. Let&#8217;s revisit the different modes from the perspective of tools for the job.</p>
<p><strong>UML as sketch</strong></p>
<p><em>Description</em>: In this mode, UML is essentially a tool for conceiving and communicating ideas between team members. As such, there is no need for completeness or validity of the object models, and actually any information not essential for communicating the idea at hand is intentionally omitted for conciseness and clarity. UML as sketch is increasingly popular, even at shops where model-driven development is considered an abomination.</p>
<p><em>Tools for the job</em>: developers don&#8217;t need special tools for using UML as a sketching tool, paper and pen or a whiteboard are great. The only flaws are when you would like to archive a drawing or send it to others by email. In that case, <em>Visio</em> (or any other generic diagram editor) is a common choice. Another less known option is <em>Whiteboard Photo</em>, that allows you to take a snapshot of your hand drawings (on a whiteboard or on paper) and have them automatically translated into great looking clean 2-D charts.</p>
<p><strong>UML as blueprint</strong></p>
<p><em>Description</em>: in this mode, the focus is on having UML models used as an input to the implementation phase, and thus need to be valid and complete from the point of view of structure. Behavioral aspects are described in textual form (such as in use case descriptions) or by means of diagrams depicting scenarios (such as sequence or collaboration diagrams) and are inherently informally and incompletely described. The models can be submitted as input to code generation but the generated code has to be enhanced by hand to cover the behavioral aspects.</p>
<p><em>Tools for the job</em>: generic tools won&#8217;t cut it here - you will need diagram editing tools that support all (or most) of UML diagrams, and (if you are taking the code generation route) persist your models in a format that your code generation tools can understand. Most UML tools out there support (or intend to support) this.</p>
<p>The <a href="http://abstratt.com/textuml/">TextUML Toolkit</a> we provide supports this mode too. Your class diagrams are fully verified, and are persisted using a <a href="http://eclipse.org/emf">standard format</a>.</p>
<p><strong>UML as programming language</strong></p>
<p><em>Description</em>: In this mode, UML models must be complete both structurally and behaviorally as they must be simulatable and serve as input to code generation (<em>by the way, Fowler really misses the point when he argues that a graphical language such as UML is not appropriate for fine grained behavior specification - <a href="http://abstratt.com/textuml/">who said UML is graphical anyway</a>?</em>).</p>
<p><em>Tools for the job</em>:  there are only a few tools currently in the market that support this mode, they tend to target embedded software development, and I bet you will not find how much they cost on their websites unless you call them.</p>
<p><span style="text-decoration: line-through;">Corcova</span> <a href="http://abstratt.com/blog/2007/04/15/where-we-are-coming-from-part-iii/">Libra</a> will support this, and when made available will visibly sport a reasonably fair price on our web site. Also, Libra will aim at mainstream business application developers, instead of focusing on specific vertical markets.</p>
<p><span style="font-weight: bold">Conclusion</span></p>
<p>UML as sketch is cool and useful, but from the point of view of software engineering (our focus here) is meaningless.</p>
<p>UML as blueprint is increasingly practiced in shops where (partial) code generation has been adopted. It has benefits over writing the entire code by hand, but it still requires all the interesting code to be written manually, and there are <span style="font-style: italic">a lot</span> of issues with that.</p>
<p>Finally, UML as programming language (in other words, full blown model-driven development) is the most interesting of the three modes, even if there is a lot of skepticism and misinformation towards it. I will talk about that in an upcoming post.</p>
<p><span style="font-style: italic">RC</span></p>
]]></content:encoded>
			<wfw:commentRss>http://abstratt.com/blog/2007/05/12/uml-modes-and-tools/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Graphical notation in the TextUML Toolkit</title>
		<link>http://abstratt.com/blog/2007/05/06/graphical-notation-in-the-textuml-toolkit/</link>
		<comments>http://abstratt.com/blog/2007/05/06/graphical-notation-in-the-textuml-toolkit/#comments</comments>
		<pubDate>Sun, 06 May 2007 23:07:08 +0000</pubDate>
		<dc:creator>rafael.chaves</dc:creator>
		
		<category><![CDATA[Eclipse]]></category>

		<category><![CDATA[TextUML Toolkit]]></category>

		<category><![CDATA[UML]]></category>

		<guid isPermaLink="false">http://abstratt.com/blog/2007/05/06/graphical-notation-in-textuml-toolkit/</guid>
		<description><![CDATA[Even though a textual notation such as TextUML is much more productive when creating UML models, the graphical notation is still better for a high-level overview. So, for the next milestone of the TextUML Toolkit, the main feature planned is a model visualizer using the conventional graphical notation of UML.
The first option considered in implementing [...]]]></description>
			<content:encoded><![CDATA[<p>Even though a textual notation such as TextUML is much more productive when creating UML models, the graphical notation is still better for a high-level overview. So, for the next milestone of the <a href="http://abstratt.com/textuml/">TextUML Toolkit</a>, the main feature planned is a model visualizer using the conventional graphical notation of UML.</p>
<p>The first option considered in implementing that feature was the <a href="http://www.eclipse.org/modeling/mdt/downloads/?project=uml2tools">UML2 Tools</a> project, part of the Eclipse.org <a href="http://www.eclipse.org/modeling/mdt/">Model Development Tools</a> project. UML2 Tools supports viewing and editing most of UML diagram types, and works seamlessly with models created using <a href="http://eclipse.org/uml2">UML2</a> and <a href="http://www.eclipse.org/emf">EMF</a>, which the TextUML Toolkit already uses, and that is great. However, it also requires <a href="http://www.eclipse.org/gef">GEF</a> and <a href="http://www.eclipse.org/gmf">GMF</a>, what is bad because it significantly increases the download size for the TextUML Tookit (currently at 31MB), already high for the value it currently provides. Also, from some initial experimentation, it seems to be very computation and/or memory intensive. Because of that, it was decided a more lightweight alternative should be found, even more so if you consider interactivity and support for diagrams other than the class diagram are very low on our list.</p>
<p><strong>Enter Graphviz and UMLGraph</strong></p>
<p><a href="http://graphviz.org">Graphviz</a> is an awesome tool for graph visualization. Graphviz takes simple text files (in the <em><a href="http://www.graphviz.org/doc/info/lang.html">dot</a></em> notation) describing the graph structure and produces <a href="http://www.graphviz.org/Gallery.php">great looking diagrams</a>.</p>
<p>However, Graphviz is very generic, and does not know anything about the UML notation. That is when <a href="http://www.spinellis.gr/sw/umlgraph/">UMLGraph </a>comes into play. UMLGraph produces dot files that generate OMG compliant UML diagrams (like the ones showing <a href="http://www.spinellis.gr/sw/umlgraph/doc/indexw.html">here</a>).</p>
<p>So the direction is to adopt Graphviz and UMLGraph into a lightweight, non-interactive graphical viewer for UML class diagrams. We don&#8217;t dismiss having a more powerful graphical viewer (and editor) in the future, probably based on the UML2 Tools project, but the focus now is on simplicity.</p>
<p>There are two difficulties into adopting Graphviz and UMLGraph though:</p>
<ol>
<li>Graphviz is a native standalone tool, not a Java API</li>
<li>UMLGraph, as a Java doclet, supports only one input representation: Java source with Javadoc comments</li>
</ol>
<p>Turns out the first obstacle can be easily overcome by wrapping the Graphviz binaries into platform-specific fragments and providing a simple Java API on top of it.</p>
<p>The second obstacle is a bit trickier though. UMLGraph ties the usage of the <a href="http://java.sun.com/javase/6/docs/jdk/api/javadoc/doclet/">doclet API</a> into the generation of output in dot form. Breaking that coupling requires a non-trivial refactoring effort. I have been talking to UMLGraph author <a href="http://www.spinellis.gr/index.html.var">Diomidis Spinellis</a> and he is keen on the decoupling, and that is the route we are going to take.</p>
<p>Would you like to see what it looks like? Make sure to check out the M2 milestone coming out in mid-June.</p>
<p><em>RC</em></p>
]]></content:encoded>
			<wfw:commentRss>http://abstratt.com/blog/2007/05/06/graphical-notation-in-the-textuml-toolkit/feed/</wfw:commentRss>
		</item>
		<item>
		<title>TextUML Toolkit as a single download</title>
		<link>http://abstratt.com/blog/2007/05/03/textuml-toolkit-as-a-single-download/</link>
		<comments>http://abstratt.com/blog/2007/05/03/textuml-toolkit-as-a-single-download/#comments</comments>
		<pubDate>Thu, 03 May 2007 16:53:12 +0000</pubDate>
		<dc:creator>rafael.chaves</dc:creator>
		
		<category><![CDATA[TextUML Toolkit]]></category>

		<guid isPermaLink="false">http://abstratt.com/blog/2007/05/03/textuml-toolkit-as-a-single-download/</guid>
		<description><![CDATA[It has been suggested that it is often the case that non-Java developers are not familiar with Eclipse-based products. Thus, we have made available to Windows users a single-click download option containing only the essential plug-ins from the basic Eclipse platform, EMF and UML2, plus the TextUML Toolkit itself.  Check out the download page.
Users [...]]]></description>
			<content:encoded><![CDATA[<p>It has been suggested that it is often the case that non-Java developers are not familiar with Eclipse-based products. Thus, we have made available to Windows users a single-click download option containing only the essential plug-ins from the basic Eclipse platform, EMF and UML2, plus the <a href="http://abstratt.com/textuml/">TextUML Toolkit</a> itself.  Check out the <a href="http://abstratt.com/textuml/download.html">download</a> page.</p>
<p>Users will still have to make sure they have Java 5 or later installed. The ZIP file has 31MB, so if you are familiar with Eclipse, we appreciate if you get the platform, EMF and UML2 from <a href="http://eclipse.org/downloads">Eclipse.org</a> to keep our hosting costs under control.</p>
<p>Thanks for the feedback, and keep the suggestions coming!</p>
<p><em> RC</em></p>
]]></content:encoded>
			<wfw:commentRss>http://abstratt.com/blog/2007/05/03/textuml-toolkit-as-a-single-download/feed/</wfw:commentRss>
		</item>
		<item>
		<title>A website and the first release!</title>
		<link>http://abstratt.com/blog/2007/05/02/a-website-and-the-first-release/</link>
		<comments>http://abstratt.com/blog/2007/05/02/a-website-and-the-first-release/#comments</comments>
		<pubDate>Wed, 02 May 2007 07:28:36 +0000</pubDate>
		<dc:creator>rafael.chaves</dc:creator>
		
		<category><![CDATA[TextUML Toolkit]]></category>

		<category><![CDATA[UML]]></category>

		<guid isPermaLink="false">http://abstratt.com/blog/2007/05/02/a-website-and-the-first-release/</guid>
		<description><![CDATA[There hasn&#8217;t been a post here for a while, but there is a good reason for that: we are glad to announce that we now have an actual web site (go see for yourself) and have simultaneously made the first public release! TextUML Toolkit 1.0 M1 is the first milestone of the tool we have [...]]]></description>
			<content:encoded><![CDATA[<p>There hasn&#8217;t been a post here for a while, but there is a good reason for that: we are glad to announce that we now have an actual web site (<a href="http://abstratt.com">go see for yourself</a>) and have simultaneously made the first public release! TextUML Toolkit 1.0 M1 is the first milestone of the tool we have developed for creating UML models in a way that is more natural to hard-core developers. If you want to know more, go read the <a href="http://abstratt.com/textuml/">overview</a>, <a href="http://abstratt.com/textuml/download.html">download</a> the tool and try out the <a href="http://abstratt.com/textuml/tutorial">tutorial</a>.</p>
<p>After a long period of silence, I almost pity that I have somehow crammed too many great news on a single post&#8230;</p>
<p><em>RC </em></p>
]]></content:encoded>
			<wfw:commentRss>http://abstratt.com/blog/2007/05/02/a-website-and-the-first-release/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Where we are coming from - Part III</title>
		<link>http://abstratt.com/blog/2007/04/15/where-we-are-coming-from-part-iii/</link>
		<comments>http://abstratt.com/blog/2007/04/15/where-we-are-coming-from-part-iii/#comments</comments>
		<pubDate>Sun, 15 Apr 2007 17:57:25 +0000</pubDate>
		<dc:creator>rafael.chaves</dc:creator>
		
		<category><![CDATA[editorial]]></category>

		<guid isPermaLink="false">http://abstratt.com/blog/2007/04/15/where-we-are-coming-from-part-iii-final/</guid>
		<description><![CDATA[(This is the third and last installment in this series. If you haven&#8217;t done it yet, read the first and second installments before you proceed)
Let&#8217;s start by recalling the main points we wanted to make in the previous posts. In summary, we should strive for addressing concerns as independently as possible (points #1 and #2), [...]]]></description>
			<content:encoded><![CDATA[<p><em>(This is the third and last installment in this series. If you haven&#8217;t done it yet, read the <a href="http://abstratt.com/blog/2007/03/31/where-we-are-coming-from-part-i/">first </a>and <a href="http://abstratt.com/blog/2007/04/07/where-we-are-coming-from-part-ii/">second</a> installments before you proceed)</em></p>
<p>Let&#8217;s start by recalling the main points we wanted to make in the previous posts. In summary, we should strive for addressing concerns as independently as possible (points <a href="http://abstratt.com/blog/2007/03/31/where-we-are-coming-from-part-i/#point1">#1</a> and <a href="http://abstratt.com/blog/2007/03/31/where-we-are-coming-from-part-i/#point2">#2</a>), and that depending on the dimension (point <a href="http://abstratt.com/blog/2007/03/31/where-we-are-coming-from-part-i/#point3">#3</a>) the concern lives in we should deploy the most appropriate languages and skills for the job (point <a href="http://abstratt.com/blog/2007/04/07/where-we-are-coming-from-part-ii/#point4">#4</a> and <a href="http://abstratt.com/blog/2007/04/07/where-we-are-coming-from-part-ii/#point5">#5</a>). The benefits are countless across many areas such as productivity, handling of changes in requirements, reuse, and work specialization. But how to achieve that?</p>
<p><strong><em>Libra</em> comes to the rescue</strong></p>
<p><em><span style="text-decoration: line-through;">Corcova</span> Libra</em> (codename) is our yet to be released tool that supports our vision of how software development should be done. Libra artifacts are models and templates. Problem domain concerns are addressed in a platform-independent way in the form of executable UML models. Implementation-technology concerns are addressed in templates using one of the supported template languages.</p>
<p>Since the platform-independent models are fully complete (from the point of view of business requirements), they can be tried, tested and debugged, even before a target platform is chosen. And when the implementation-aware templates are applied to the platform-independent models, the result is platform-specific code that fully addresses all concerns, be them in the problem-domain or implementation technology dimension.</p>
<p>Libra is not the first product to follow this approach, but is the first that aims to bring the benefits of executable models and full code generation to the masses of application developers.</p>
<p>This is the last post of a series that aimed at explaining what problem we set out to fix. We hope you enjoyed it. We sure were vague on technical details, which we plan to unveil as we release the first publicly available version. If you want to know about any news on the development of Libra, <a href="http://abstratt.com/blog/feed/">this is the place to watch</a>. If you don&#8217;t like to use feed readers, you can also <a href="mailto:news@abstratt.com">send us</a> an e-mail, and we will let you know whenever a new post is available  (we promise not to spam you, and you can opt-out at any time).</p>
]]></content:encoded>
			<wfw:commentRss>http://abstratt.com/blog/2007/04/15/where-we-are-coming-from-part-iii/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Where we are coming from - Part II</title>
		<link>http://abstratt.com/blog/2007/04/07/where-we-are-coming-from-part-ii/</link>
		<comments>http://abstratt.com/blog/2007/04/07/where-we-are-coming-from-part-ii/#comments</comments>
		<pubDate>Sat, 07 Apr 2007 23:07:21 +0000</pubDate>
		<dc:creator>rafael.chaves</dc:creator>
		
		<category><![CDATA[editorial]]></category>

		<guid isPermaLink="false">http://abstratt.com/blog/2007/04/07/where-we-are-coming-from-part-ii/</guid>
		<description><![CDATA[(This is the second installment in a series of posts that explains what we think is wrong with the current state of affairs in the mainstream business application development industry, and how we plan to fix it. If you haven&#8217;t done it yet, read the first post first)
We finished the first post of this series [...]]]></description>
			<content:encoded><![CDATA[<p><em>(This</em><em> is the second installment in a series of posts that explains what we think is wrong with the current state of affairs in the mainstream business application development industry, and how we plan to fix it. If you haven&#8217;t done it yet, read the <a href="http://abstratt.com/blog/2007/03/31/where-we-are-coming-from-part-i/">first post</a> first)</em></p>
<p>We finished the <a href="2007/03/31/where-we-are-coming-from-part-i/">first post</a> of this series by stating it was essential to acknowledge the fact that concerns belong to one of two primary dimensions, namely the problem domain dimension or the implementation technology dimension.</p>
<p>The reason for that is that these dimensions impose a set of common characteristics shared by all concerns they are home to. That suggests that we should need different tools when addressing concerns in different dimensions.</p>
<p><em><strong>Point #4: when addressing a concern, we should use tools that are appropriate for concerns in its dimension.</strong></em></p>
<p>But is that true? And what are tools appropriate for concerns in the problem domain dimension, or for concerns in the technology dimension? To answer these questions, we need to look deeper to understand the differences between the two primary dimensions.</p>
<ul>
<li><em>change rate</em>: concerns in the problem domain dimension change as often as the business requirements change, and that depends on the application and the problem domain. Concerns in the implementation technology dimension change only when a new target platform is to be supported, or a new kind of implementation artifact must be created, or a new implementation strategy (for the technology in use) is chosen. Comparatively, concerns in this dimension are more stable than concerns in the problem domain dimension.</li>
<li><em> abstraction level</em>: since concerns in the problem domain dimension can be addressed in a way that is completely independent from implementation details, they can be dealt with at a high abstraction level. Conversely, concerns in the implementation technology dimension are closely tied to the implementation platform and thus have a lower level of abstraction. Trying to address concerns on those two dimensions using the same abstraction level (for instance, by using the same programming language) is less than optimal, and it is bound to favor one dimension at expense of the other (think of an accounting application in C or an operating system in COBOL).</li>
<li><em>reusability</em>: artifacts created to address concerns in the problem domain dimension are reusable across target platforms and implementation strategies. Artifacts addressing implementation-related concerns are reusable across problem domains. Thus, the languages and methods for addressing concerns in the problem domain dimension should be technology obsolescence-proof, whereas languages and methods for addressing implementation technology concerns are free to harness the power of the technologies they are related to, while remaining agnostic to problem domains.</li>
<li><em>skills required</em>: developers addressing implementation technology concerns must be deeply familiar with the target platform and must know the best practices for the particular set of technologies chosen, no knowledge of the problem domain being required. On the other hand, people addressing concerns in the problem domain dimension must have good analysis skills and understand the problem domain they are working on - little to no knowledge of the implementation platform is required. They are not exempt though of having good object orientation design skills and a decent proficiency on specifying algorithms using imperative programming. It is seldom the case that a person that is knowledgeable on the problem domain is also an expert at some target platform, so being able to address concerns in different dimensions in a compartmentalized way opens great opportunities for work specialization.</li>
</ul>
<p><em><strong>Point #5: Concerns in the problem domain and implementation technology dimensions differ in many fundamental aspects, and thus you need different languages, methods and skills to address them. </strong></em></p>
<p>It should be needless to say that this is the model of software development in what we believe. Languages and methods with the appropriate abstraction level for higher expressiveness and power. Problem domain related artifacts that are obsolescence-proof.  Reuse nirvana by completely separating concerns across dimensions. Optimal productivity and job satisfaction through specialization of work across concern dimensions.</p>
<p><em>All this will be possible </em><em>only </em><em>if you can truly address problem domain and implementation related concerns completely independently from one another</em>.</p>
<p>We are building the tools that will allow you to do that. Want to know how? Stay tuned for the next installment in this series of posts. Want to see it with your own eyes and help us make a great product? <a href="mailto:beta-program@abstratt.com">Send us an e-mail</a>, introduce yourself and tell us how you would like to help.</p>
]]></content:encoded>
			<wfw:commentRss>http://abstratt.com/blog/2007/04/07/where-we-are-coming-from-part-ii/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Where we are coming from - Part I</title>
		<link>http://abstratt.com/blog/2007/03/31/where-we-are-coming-from-part-i/</link>
		<comments>http://abstratt.com/blog/2007/03/31/where-we-are-coming-from-part-i/#comments</comments>
		<pubDate>Sun, 01 Apr 2007 03:57:07 +0000</pubDate>
		<dc:creator>rafael.chaves</dc:creator>
		
		<category><![CDATA[editorial]]></category>

		<guid isPermaLink="false">http://abstratt.com/blog/2007/03/31/where-we-are-coming-from-part-i/</guid>
		<description><![CDATA[(This is the first installment in a series of posts that will explain what we think is wrong with the current state of affairs in the mainstream business application development industry, and how we plan to fix it)
One term that often appears in a conversation between two developers deciding how to better write a piece [...]]]></description>
			<content:encoded><![CDATA[<p><em>(This</em><em> is the first installment in a series of posts that will explain what we think is wrong with the current state of affairs in the mainstream business application development industry, and how we plan to fix it)</em></p>
<p>One term that often appears in a conversation between two developers deciding how to better write a piece of code is “<strong>separation of concerns</strong>”. But what is a concern and why is separating concerns so important? And even more, why is it being discussed here?</p>
<p>A concern is any basic responsibility a software system has to address. A software system has to deal with many different concerns as it bears many different responsibilities. Basically, a system is made of a collection of composition units or modules (functions, classes, methods, components etc) created to collectively address all of the different concerns imposed by requirements.</p>
<p>But every concern leaves its imprint on the system being developed, in the form of changes or additions to the code. The more places a concern leaves its imprint on, the harder it is to adapt the system due to a change in requirements. The reason is twofold: if the code dealing with a given concern is scattered throughout multiple modules, it is hard to figure out exactly what different places in the source code need to be changed; and if a typical module handles many different concerns at once, it is hard to tell apart code that deals with one concern from code that deals with another.</p>
<p><strong><em>Point #1: the more independently concerns are dealt with, the easier it is to evolve the code when requirements change.<br />
</em></strong></p>
<p>Ideally, every single concern should map to a single composition unit. If a concern ceases to exist, you delete the corresponding composition unit. If a new concern needs to be taken into account, you just create a new composition unit to deal with it, and no other part of the system is affected. But life is not pretty like that. In practice, there is actually a good deal of interaction between different concerns. So even though maintenance-wise it is better that different concerns are dealt with as independently as possible, it is still required for the system to run correctly that some level of coordination take place between parts of the code addressing different concerns.</p>
<p><strong><em>Point #2: however, some sort of coordination between code dealing with different concerns is often required.</em></strong></p>
<p>OK, so far it has been pretty much all common sense, as up to now, we were just trying to level the playing field. But one thing that is not quite common sense yet is the notion that every concern inhabits one of two completely orthogonal dimensions.</p>
<p>One of the dimensions, the dominating one, is home to concerns related to requirements originating from the problem domain. Let’s call it the <em>problem domain dimension</em>. These concerns can be completely understood and dealt with regardless the implementation language or target platform. The richer your problem domain is, the more concerns will inhabit the problem domain dimension.</p>
<p>The second dimension, which we like to call the <em>implementation technology dimension,</em> is also essential, but concerns in this dimension have more of an additive nature. Concerns in this dimension are originated from requirements related to the implementation space, and bear no relationship whatsoever to concepts in the problem domain.</p>
<p><em>(Are there more dimensions other than the two discussed here? <a href="http://www.research.ibm.com/hyperspace/MDSOC.htm" target="_blank">Probably</a>. But pragmatically, we believe that a clear distinction between problem domain and implementation related concerns goes a long way and is the first step we must take.)</em></p>
<p><strong><em>Point #3: concerns inhabit one of two dimensions, either the problem domain dimension or the implementation technology dimension.</em></strong></p>
<p>One important benefit of acknowledging this is that we can now understand that a dimension imposes a common set of characteristics to all concerns inhabiting it. That has several implications, from a much higher degree of reusability to interesting opportunities for work specialization.</p>
<p>But let&#8217;s leave that to the next installment. Meanwhile, feel free to comment or ask any questions, just as usual.</p>
]]></content:encoded>
			<wfw:commentRss>http://abstratt.com/blog/2007/03/31/where-we-are-coming-from-part-i/feed/</wfw:commentRss>
		</item>
		<item>
		<title>The road ahead of us</title>
		<link>http://abstratt.com/blog/2007/03/23/the-road-ahead-of-us/</link>
		<comments>http://abstratt.com/blog/2007/03/23/the-road-ahead-of-us/#comments</comments>
		<pubDate>Fri, 23 Mar 2007 22:47:33 +0000</pubDate>
		<dc:creator>rafael.chaves</dc:creator>
		
		<category><![CDATA[TextUML Toolkit]]></category>

		<category><![CDATA[editorial]]></category>

		<guid isPermaLink="false">http://modelprogrammer.com/blog/?p=3</guid>
		<description><![CDATA[Thanks for checking us out. We are busy working hard on a tool that will bring  software development productivity to a whole new level. At some point this summer, we will release a full fledged model-driven development tool, with support for model execution and complete code generation.
Before that, as a preview, we plan to [...]]]></description>
			<content:encoded><![CDATA[<p>Thanks for checking us out. We are busy working hard on a tool that will bring  software development productivity to a whole new level. At some point this summer, we will release a full fledged model-driven development tool, with support for model execution and complete code generation.</p>
<p>Before that, as a preview, we plan to release one of its components as a standalone product. It is a UML authoring tool that presents a hybrid textual/graphical notation. Our hunch is that even hardcore hackers will want to use it.</p>
<p><a href="http://abstratt.com/blog/feed/">Stay tuned!</a></p>
]]></content:encoded>
			<wfw:commentRss>http://abstratt.com/blog/2007/03/23/the-road-ahead-of-us/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
