<?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"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Holgers Blog &#187; Entwicklung</title>
	<atom:link href="http://grosse-plankermann.com/category/entwicklung/feed/" rel="self" type="application/rss+xml" />
	<link>http://grosse-plankermann.com</link>
	<description>... mal Bloggen ...</description>
	<lastBuildDate>Tue, 11 May 2010 06:38:30 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Eclipse RCP: What to do when things don&#8217;t work on your colleague&#8217;s machine</title>
		<link>http://grosse-plankermann.com/2009/07/07/eclipse-rcp-what-to-do-when-things-do-not-work-on-your-colleagues-machine/</link>
		<comments>http://grosse-plankermann.com/2009/07/07/eclipse-rcp-what-to-do-when-things-do-not-work-on-your-colleagues-machine/#comments</comments>
		<pubDate>Tue, 07 Jul 2009 18:06:22 +0000</pubDate>
		<dc:creator>Holger</dc:creator>
				<category><![CDATA[Eclipse RCP]]></category>
		<category><![CDATA[Entwicklung]]></category>
		<category><![CDATA[Java]]></category>

		<guid isPermaLink="false">http://grosse-plankermann.com/?p=83</guid>
		<description><![CDATA[I have compiled a list of potential pitfalls, that one might step in when executing code on another system:

Check your IDs
Check them again
Does your product contain all nessesary Plugins/Features
Does your run-configuration (the one generated by selecting Run on your product) contain all your plugins? Did you press Add required plugins
If you use features, check them! [...]]]></description>
			<content:encoded><![CDATA[<p>I have compiled a list of potential pitfalls, that one might step in when executing code on another system:</p>
<ul>
<li>Check your IDs</li>
<li>Check them again</li>
<li>Does your product contain all nessesary Plugins/Features</li>
<li>Does your run-configuration (the one generated by selecting <em>Run</em> on your product) contain all your plugins? Did you press <em>Add required plugins</em></li>
<li>If you use features, check them! Are all plugins present?</li>
<li><span style="text-decoration: underline;">Help system</span>: If your help system does not show: Double check that the Plugin-Editor did not swallow your context definitions. They are often gone if I simply open the editor. Topics do not disappear&#8230;</li>
<li>Check if all help system dependencies are present in your run-configuration. Start by adding all *help*-plugins, continue with *jetty* and *servlet*. Then press <em>Add required plugins</em>. That should do the trick.</li>
<p>If you know of any other helpful tricks, please let me know!</ul>
]]></content:encoded>
			<wfw:commentRss>http://grosse-plankermann.com/2009/07/07/eclipse-rcp-what-to-do-when-things-do-not-work-on-your-colleagues-machine/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Eclipse RCP: The dreaded Plugin ID</title>
		<link>http://grosse-plankermann.com/2009/07/02/eclipse-rcp-the-dreaded-plugin-id/</link>
		<comments>http://grosse-plankermann.com/2009/07/02/eclipse-rcp-the-dreaded-plugin-id/#comments</comments>
		<pubDate>Thu, 02 Jul 2009 20:08:26 +0000</pubDate>
		<dc:creator>Holger</dc:creator>
				<category><![CDATA[Eclipse RCP]]></category>
		<category><![CDATA[Entwicklung]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[Plugin ID]]></category>

		<guid isPermaLink="false">http://grosse-plankermann.com/?p=65</guid>
		<description><![CDATA[Hi all!
Apologies for not updating this blog lately.
As I want to talk a little bit about my experiences with Eclipse RCP, I think it is suitable if I tried to write in english. Perhaps this can be helpful for non-german speakers aswell, as information/documentation about E-RCP is a little sparse.
So&#8230; lately I had the chance [...]]]></description>
			<content:encoded><![CDATA[<p>Hi all!</p>
<p>Apologies for not updating this blog lately.</p>
<p>As I want to talk a little bit about my experiences with Eclipse RCP, I think it is suitable if I tried to write in english. Perhaps this can be helpful for non-german speakers aswell, as information/documentation about E-RCP is a little sparse.</p>
<p>So&#8230; lately I had the chance to be a part of a Eclipse RCP project, which I greatly looked forward to! As I took a deep-dive into the concepts, I noticed that things work very differently compared to web-applications or even Swing applications.</p>
<p>In case you are interested, I mostly refered to 2 books, namely</p>
<ul>
<li> <a href="http://www.amazon.de/Eclipse-Rich-Client-Platform-erweiterbaren/dp/3939084913/ref=sr_1_2?ie=UTF8&amp;s=books&amp;qid=1244738431&amp;sr=8-2">Die Eclipse Rich Client Platform: Entwicklung von erweiterbaren Anwendungen mit RCP</a><a href="http://www.amazon.com/Eclipse-Rich-Client-Platform-Addison-Wesley/dp/0321334612/ref=sr_1_4?ie=UTF8&amp;s=books-intl-de&amp;qid=1244738431&amp;sr=8-4"></a></li>
<li><a href="http://www.amazon.com/Eclipse-Rich-Client-Platform-Addison-Wesley/dp/0321334612/ref=sr_1_4?ie=UTF8&amp;s=books-intl-de&amp;qid=1244738431&amp;sr=8-4"><span id="btAsinTitle">Eclipse Rich Client Platform: Designing, Coding, and Packaging Java Applications</span></a></li>
</ul>
<p><span id="btAsinTitle">Additionally there is one <a href="http://www.vogella.de/">blog </a>by a guy called Lars Vogel, which I appreciate very much! Thanks for the great effort Lars!</span></p>
<p><span>By now, our project has produced a niffty little prototype of the soon-to-be greatest RCP-application. Though none of our design decisions are written in stone yet (e.g. I am not sure whether we should use editors for our inputs or just views), I think/hope I have more or less understood the framework.</span></p>
<p><span>But there is at least one thing, that bothers me time and time again:</span></p>
<p><span>The </span><span id="query">ubiquitous</span><span> Plugin ID. I cannot complain much about the basic concept: Of course a plugin has to have an unique identifier, and when you refer to a specific plugin, you have to use this Plugin ID. But again and again I have spent ages looking for some error/non-functional bits while finally noticing that I used the wrong ID.</span></p>
<p><span>So I could just end up blaming me. What I am missing though is some kind of assistance from the framework itself, saying &#8220;Man! You are looking for a plugin named <em>this.is.wrong</em>, but I only know<em> </em>the following plugins:<em>&#8230;</em>&#8221; I think that would save us a lot of time.</span></p>
<p><span>Lately I was implementing context-sensitive help. But I could not figure out, why hitting <em>f1 </em>on a text field did not do anything. This <a href="http://richclientplatform.blogspot.com/2008/02/my-favorite-breakpoints.html">blog</a></span> then showed me, where to place a proper breakpoint to take a peek into the help-listener. It showed that the context-arrays where simply empty. So no context help could be seen. At least I saw that the keybinding worked. After debugging a few hours I was basically stuck. I made a few steps back and made a small sample project. At first I experienced the same issues&#8230; is Ganymede broken? I then realized that I did not provide the Plugin ID but the package name (which had a different case). I changed cases and voila it worked. Again I debugged to the help-listener and behold: The context array had one element.</p>
<p>What I am asking myself right now is: Why doesn&#8217;t Eclipse tell me that it does not register my context (or puts it somewhere only it knows). Life would be easier! <img src='http://grosse-plankermann.com/wordpress/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  It is seldom obvious to me what happens internally, when Eclipse executes a specific functionallity. At least I need an easier way to find places to debug to.</p>
<p>Perhaps I&#8217;m just missing some point&#8230;</p>
<p>Until then I only can repeat what the aforementioned books told me before:</p>
<p><strong>BE  VERY CAREFULL WHEN YOU USE PLUGIN-IDS</strong> as there is no safety net!</p>
]]></content:encoded>
			<wfw:commentRss>http://grosse-plankermann.com/2009/07/02/eclipse-rcp-the-dreaded-plugin-id/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Warum sind checked exceptions so schlimm?</title>
		<link>http://grosse-plankermann.com/2008/10/16/warum-sind-checked-exceptions-so-schlimm/</link>
		<comments>http://grosse-plankermann.com/2008/10/16/warum-sind-checked-exceptions-so-schlimm/#comments</comments>
		<pubDate>Thu, 16 Oct 2008 16:14:44 +0000</pubDate>
		<dc:creator>Holger</dc:creator>
				<category><![CDATA[Entwicklung]]></category>
		<category><![CDATA[Java]]></category>

		<guid isPermaLink="false">http://grosse-plankermann.com/?p=21</guid>
		<description><![CDATA[Momentan sieht man auf jedem dritten Blog bei Dzone, die &#220;berschrift &#34;Checked Exceptions are bad&#34;. Aber ich habe bisher noch nicht ganz verstanden warum!
In einem Fehlerfall (bspw. bei einer klassischen IOException) ist diese Art Exception-Handling doch eigentlich ganz sinnvoll. Selbstverst&#228;ndlich haben Exceptions nichts im Kontrollfluss verloren. Ich habe vielleicht den Punkt auch noch nicht verstanden.
Sollte [...]]]></description>
			<content:encoded><![CDATA[<p>Momentan sieht man auf jedem dritten Blog bei Dzone, die &#220;berschrift &quot;Checked Exceptions are bad&quot;. Aber ich habe bisher noch nicht ganz verstanden warum!</p>
<p>In einem Fehlerfall (bspw. bei einer klassischen IOException) ist diese Art Exception-Handling doch eigentlich ganz sinnvoll. Selbstverst&#228;ndlich haben Exceptions nichts im Kontrollfluss verloren. Ich habe vielleicht den Punkt auch noch nicht verstanden.</p>
<p>Sollte ich irgendwann verstehen warum (oder warum nicht), versuche ich daran zu denken, hier nochmal was zu schreiben.</p>
]]></content:encoded>
			<wfw:commentRss>http://grosse-plankermann.com/2008/10/16/warum-sind-checked-exceptions-so-schlimm/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Frameworks and Building blocks in Javascript</title>
		<link>http://grosse-plankermann.com/2008/10/16/frameworks-and-building-blocks-in-javascript/</link>
		<comments>http://grosse-plankermann.com/2008/10/16/frameworks-and-building-blocks-in-javascript/#comments</comments>
		<pubDate>Thu, 16 Oct 2008 16:01:58 +0000</pubDate>
		<dc:creator>Holger</dc:creator>
				<category><![CDATA[Entwicklung]]></category>
		<category><![CDATA[Javascript]]></category>

		<guid isPermaLink="false">http://grosse-plankermann.com/?p=18</guid>
		<description><![CDATA[Ich habe grad auf Ajaxian mal wieder was spannendes entdeckt.
Muss ich mir die Tage mal näher anschauen.
]]></description>
			<content:encoded><![CDATA[<p>Ich habe grad auf Ajaxian mal wieder <a href="http://billhiggins.us/weblog/2008/10/10/frameworks-and-building-blocks/">was spannendes</a> entdeckt.</p>
<p>Muss ich mir die Tage mal näher anschauen.</p>
]]></content:encoded>
			<wfw:commentRss>http://grosse-plankermann.com/2008/10/16/frameworks-and-building-blocks-in-javascript/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Tooltip via jQuery</title>
		<link>http://grosse-plankermann.com/2008/06/27/tooltip-via-jquery/</link>
		<comments>http://grosse-plankermann.com/2008/06/27/tooltip-via-jquery/#comments</comments>
		<pubDate>Fri, 27 Jun 2008 09:15:38 +0000</pubDate>
		<dc:creator>Holger</dc:creator>
				<category><![CDATA[Entwicklung]]></category>
		<category><![CDATA[Javascript]]></category>

		<guid isPermaLink="false">http://grosse-plankermann.com/2008/06/27/tooltip-via-jquery/</guid>
		<description><![CDATA[Nachdem ich bisher fast alle Tooltips mit Hilfe von Yahoo UI umgesetzt habe, muss ich mal das Folgende ausprobieren:
http://plugins.learningjquery.com/cluetip/
Auch das IE6 Bleed-Through-Problem d&#252;rfte damit umgangen werden.
     
]]></description>
			<content:encoded><![CDATA[<p>Nachdem ich bisher fast alle Tooltips mit Hilfe von Yahoo UI umgesetzt habe, muss ich mal das Folgende ausprobieren:</p>
<p><a title="cluetip" href="http://plugins.learningjquery.com/cluetip/">http://plugins.learningjquery.com/cluetip/</a></p>
<p>Auch das IE6 Bleed-Through-Problem d&#252;rfte damit umgangen werden.</p>
<p><a title="cluetip" href="http://plugins.learningjquery.com/cluetip/">     <br /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://grosse-plankermann.com/2008/06/27/tooltip-via-jquery/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Was sind denn eigentlich ems?</title>
		<link>http://grosse-plankermann.com/2008/06/20/was-sind-denn-eigentlich-ems/</link>
		<comments>http://grosse-plankermann.com/2008/06/20/was-sind-denn-eigentlich-ems/#comments</comments>
		<pubDate>Fri, 20 Jun 2008 07:59:06 +0000</pubDate>
		<dc:creator>Holger</dc:creator>
				<category><![CDATA[Entwicklung]]></category>
		<category><![CDATA[Web]]></category>

		<guid isPermaLink="false">http://grosse-plankermann.com/2008/06/20/was-sind-denn-eigentlich-ems/</guid>
		<description><![CDATA[Ich hab mich schon immer gefragt, was ems als css-Ma&#223;angaben bedeuten sollen.    Hier eine lange Antwort.
]]></description>
			<content:encoded><![CDATA[<p>Ich hab mich schon immer gefragt, was <code>em</code>s als css-Ma&#223;angaben bedeuten sollen.    <br /><a href="http://jontangerine.com/log/2007/09/the-incredible-em-and-elastic-layouts-with-css">Hier </a>eine lange Antwort.</p>
]]></content:encoded>
			<wfw:commentRss>http://grosse-plankermann.com/2008/06/20/was-sind-denn-eigentlich-ems/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ein Eclipse Webprojekt migrieren</title>
		<link>http://grosse-plankermann.com/2008/05/26/ein-eclipse-webprojekt-migrieren/</link>
		<comments>http://grosse-plankermann.com/2008/05/26/ein-eclipse-webprojekt-migrieren/#comments</comments>
		<pubDate>Mon, 26 May 2008 13:08:20 +0000</pubDate>
		<dc:creator>Holger</dc:creator>
				<category><![CDATA[Entwicklung]]></category>
		<category><![CDATA[Java]]></category>

		<guid isPermaLink="false">http://grosse-plankermann.com/2008/05/26/ein-eclipse-webprojekt-migrieren/</guid>
		<description><![CDATA[Ich vergesse hin und wieder folgende Schritte durchzuf&#252;hren, von daher eine kleine &#34;Note-to-self&#34;:   Falls man ein bestehendes Eclipse (Web-)Projekt migriert, muss man

folgenden Artikel lesen
und

die Datei
PLAIN TEXT
CODE:




org.eclipse.wst.common.component 





anpassen, um Context-Root und den Anzeigenamen einzustellen.     Hierf&#252;r sieht besagte Datei zwei Schl&#252;ssel vor
PLAIN TEXT
XML:




&#60;wb-module deploy-name="foo"&#62;&#60;/wb-module&#62; 





 und      [...]]]></description>
			<content:encoded><![CDATA[<p>Ich vergesse hin und wieder folgende Schritte durchzuf&#252;hren, von daher eine kleine &quot;Note-to-self&quot;:   <br />Falls man ein bestehendes Eclipse (Web-)Projekt migriert, muss man</p>
<ul>
<li>folgenden <a href="http://greatwebguy.com/programming/eclipse/converting-a-java-project-to-a-dynamic-web-project-in-eclipse/">Artikel </a>lesen
<p>und</p>
</li>
<li>die Datei
<div class="igBar"><span id="lcode-4"><a href="#" onclick="javascript:showPlainTxt('code-4'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-4">
<div class="code">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">org.<span style="">eclipse</span>.<span style="">wst</span>.<span style="">common</span>.<span style="">component</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p>anpassen, um Context-Root und den Anzeigenamen einzustellen.     <br />Hierf&#252;r sieht besagte Datei zwei Schl&#252;ssel vor
<div class="igBar"><span id="lxml-5"><a href="#" onclick="javascript:showPlainTxt('xml-5'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">XML:</span>
<div id="xml-5">
<div class="xml">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;wb</span>-module <span style="color: #000066;">deploy-name</span>=<span style="color: #ff0000;">"foo"</span><span style="font-weight: bold; color: black;">&gt;</span></span><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/wb</span>-module<span style="font-weight: bold; color: black;">&gt;</span></span> </div>
</li>
</ol>
</div>
</div>
</div>
<p> und      
<div class="igBar"><span id="lxml-6"><a href="#" onclick="javascript:showPlainTxt('xml-6'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">XML:</span>
<div id="xml-6">
<div class="xml">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;br</span> <span style="font-weight: bold; color: black;">/&gt;</span></span><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;property</span> <span style="color: #000066;">value</span>=<span style="color: #ff0000;">"bar"</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">"context-root"</span><span style="font-weight: bold; color: black;">&gt;</span></span><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/property<span style="font-weight: bold; color: black;">&gt;</span></span></span> </div>
</li>
</ol>
</div>
</div>
</div>
<p>vor. </li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://grosse-plankermann.com/2008/05/26/ein-eclipse-webprojekt-migrieren/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mein erstes jQuery Plugin.</title>
		<link>http://grosse-plankermann.com/2008/05/16/mein-erstes-jquery-plugin/</link>
		<comments>http://grosse-plankermann.com/2008/05/16/mein-erstes-jquery-plugin/#comments</comments>
		<pubDate>Fri, 16 May 2008 17:42:08 +0000</pubDate>
		<dc:creator>Holger</dc:creator>
				<category><![CDATA[Entwicklung]]></category>
		<category><![CDATA[Javascript]]></category>

		<guid isPermaLink="false">http://grosse-plankermann.com/2008/05/16/mein-erstes-jquery-plugin/</guid>
		<description><![CDATA[Ich mag jQuery! In vielen Software-Projekten, findet man einen Wildwuchs an selbstgestrickten JavaScript "Lösungen". Wenn man Probleme im Browser sauberer lösen möchte, so bietet sich jQuery, als einfaches aber auch mächtiges Werkzeug an. Ich habe es in einigen Projekten einsetzen können und es hat sich bisher immer bewährt. Aber das nur kurz zur Motivation. Im [...]]]></description>
			<content:encoded><![CDATA[<p>Ich mag <a title="JQuery" href="http://jquery.com">jQuery</a>! In vielen Software-Projekten, findet man einen Wildwuchs an selbstgestrickten JavaScript "Lösungen". Wenn man Probleme im Browser sauberer lösen möchte, so bietet sich jQuery, als einfaches aber auch mächtiges Werkzeug an. Ich habe es in einigen Projekten einsetzen können und es hat sich bisher immer bewährt. <span id="more-11"></span>Aber das nur kurz zur Motivation. Im letzten Projekt hatte ich die Möglichkeit den Plugin Mechanismus, den jQuery bietet, sinnvoll einzusetzen. Wir hatten das Problem, das das<br />
<code>disabled</code> Attribut für ein <code>&lt;a&gt;</code> nicht Browser Übergreifend konsistent dargestellt wird. Als Abhilfe habe ich jeweils zwei Varianten eines Links hinterlegt:<br />
Einen normalen, aktiven Link <code><a class="activeLink" href="someLink">Link</a></code> und einen inaktiven <code><a class="inactiveLink">Link</a></code><br />
Der <code>inactiveLink</code> kann nun per css <code>.inactiveLink{color:gray;}</code> gefÃ¤rbt werden.<br />
Um nun nach gewissen Regeln einen Link aktiv zu schalten, müsste man sich ohne jQuery oder ohne jQuery Plugin entweder das gesuchte Element "merken" (Stichwort:Dreicktausch), oder es müssten Elemente on-the-fly erzeugt werden. Diese Lösungen fand ich nicht schön, sondern ich wollte eine Lösung der Form</p>
<div class="igBar"><span id="ljavascript-9"><a href="#" onclick="javascript:showPlainTxt('javascript-9'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">JavaScript:</span>
<div id="javascript-9">
<div class="javascript">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&lt;script type=<span style="color: #3366CC;">"text/javascript"</span>&gt;&lt;!--</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">$<span style="color: #66cc66;">&#40;</span>\\<span style="color: #3366CC;">'.activeLink<span style="color: #000099; font-weight: bold;">\\</span>'</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">swapElements</span><span style="color: #66cc66;">&#40;</span>\\<span style="color: #3366CC;">'.inActiveLink<span style="color: #000099; font-weight: bold;">\\</span>'</span><span style="color: #66cc66;">&#41;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900; font-style: italic;">// --&gt;&lt;/script&gt; </span></div>
</li>
</ol>
</div>
</div>
</div>
<p> Das hält das Markup sauber!<br />
Folgender <a href="http://www.learningjquery.com/2007/10/a-plugin-development-pattern">Link</a> zeigt sehr schön, wie man so etwas anstellt. Die KernfunktionalitÃ¤t bildet folgender Schnipsel:</p>
<div class="igBar"><span id="ljavascript-10"><a href="#" onclick="javascript:showPlainTxt('javascript-10'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">JavaScript:</span>
<div id="javascript-10">
<div class="javascript">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">$.<span style="color: #006600;">fn</span>.<span style="color: #006600;">swapElements</span> = <span style="color: #003366; font-weight: bold;">function</span><span style="color: #66cc66;">&#40;</span>options<span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">debug<span style="color: #66cc66;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #003366; font-weight: bold;">var</span> opts=options;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900; font-style: italic;">// element to be swapped with</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">$that=$<span style="color: #66cc66;">&#40;</span>opts<span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">debug<span style="color: #66cc66;">&#40;</span>$that<span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">$that.<span style="color: #006600;">show</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #000066; font-weight: bold;">return</span> <span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #006600;">each</span><span style="color: #66cc66;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">$this = $<span style="color: #66cc66;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">debug<span style="color: #66cc66;">&#40;</span>$this<span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900; font-style: italic;">// build element specific options</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">$this.<span style="color: #006600;">hide</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>; </div>
</li>
</ol>
</div>
</div>
</div>
<p>
Hier passiert nicht viel: Das erste Element wird ausgeblendet und das zweite wird ausgeblendet. (Hmmm ich glaube ich sehe da grad noch einen kleinen Bug ...)<br />
Falls dies irgendwer nützlich findet, kann man das Plugin <a href="http://www.grosse-plankermann.com/files/download/jquery-swapElements.js">hier</a> herunterladen.<br />
Der letzte Trick besteht darin, das Plugin NACH der jQuery Bibliothek einzubinden.</p>
<p>Viel Spaß damit <img src='http://grosse-plankermann.com/wordpress/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://grosse-plankermann.com/2008/05/16/mein-erstes-jquery-plugin/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Eclipse 3.2.1 Out of Memory Error</title>
		<link>http://grosse-plankermann.com/2007/11/21/eclipse-321-out-of-memory-error/</link>
		<comments>http://grosse-plankermann.com/2007/11/21/eclipse-321-out-of-memory-error/#comments</comments>
		<pubDate>Wed, 21 Nov 2007 19:26:02 +0000</pubDate>
		<dc:creator>Holger</dc:creator>
				<category><![CDATA[Entwicklung]]></category>
		<category><![CDATA[Java]]></category>

		<guid isPermaLink="false">http://grosse-plankermann.com/2007/11/21/eclipse-321-out-of-memory-error/</guid>
		<description><![CDATA[Heute habe ich mich den ganzen Tag mit einem &#34;PermGem&#34; Out of Memory Error in Eclipse herumge&#228;rgert. An durchgehendes Entwickeln war nicht zu denken, da Eclipse in relativ kurzen Abst&#228;nden abgest&#252;rzt ist, besonders beim Aufrufen von jsps (bzw. der entsprechenden Editoren). Im Taskmanager selber habe ich kaum nennenswertes entdecken k&#246;nnen, sprich Speicherauslastung von ~250MB. Eigentlich [...]]]></description>
			<content:encoded><![CDATA[<p>Heute habe ich mich den ganzen Tag mit einem &quot;PermGem&quot; Out of Memory Error in Eclipse herumge&#228;rgert. An durchgehendes Entwickeln war nicht zu denken, da Eclipse in relativ kurzen Abst&#228;nden abgest&#252;rzt ist, besonders beim Aufrufen von jsps (bzw. der entsprechenden Editoren). Im Taskmanager selber habe ich kaum nennenswertes entdecken k&#246;nnen, sprich Speicherauslastung von ~250MB. Eigentlich sollte das kein Problem bei 2GB Hauptspeicher sein. Googlen ergab dann den Tipp mit den Argumenten in der eclipse.ini herumzuspielen. Folgenden Parameter waren eingestellt:   </p>
<pre><tt>-vmargs</tt></pre>
<p>
  </p>
<pre><tt>-Xms64m</tt></pre>
<p>
  </p>
<pre><tt>-Xmx1024m</tt></pre>
<p>
  <br />Bei vielen Leuten hat die letzte Zeile Abhilfe geschaffen (so auch bei einem Kollegen):</p>
<p></p>
<pre><code>-XX:MaxPermSize=128m</code></pre>
<p>Dieses beschreibt den &quot;Objekt-Speicher&quot; der JVM. Dieser l&#228;uft laut der Fehlermeldung &#252;ber.</p>
<p>Allerdings half dieses bei mir nicht. Wichtig an dieser Stelle soll (laut vieler Postings) das Platzieren der Parameter nach dem Eintrag</p>
<pre>-vmargs</pre>
<p>F&#252;rs Erste geholfen hat das Deaktivieren des Exadel-Plugins, so da&#223; ich zumindest weiterarbeiten konnte.</p>
<p>Die sch&#246;nen Web-Editoren vermisse ich trotzdem.</p>
]]></content:encoded>
			<wfw:commentRss>http://grosse-plankermann.com/2007/11/21/eclipse-321-out-of-memory-error/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
