<?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>Developer Papercuts &#187; Mylyn</title>
	<atom:link href="http://www.vogella.de/blog/tag/mylyn/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.vogella.de/blog</link>
	<description>Tips around Eclipse and Android programming</description>
	<lastBuildDate>Wed, 08 Feb 2012 17:31:00 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Eclipse IDE 3.7 Book available for the Kindle</title>
		<link>http://www.vogella.de/blog/2011/12/20/eclipse-ide-3-7-book-available-for-the-kindle/</link>
		<comments>http://www.vogella.de/blog/2011/12/20/eclipse-ide-3-7-book-available-for-the-kindle/#comments</comments>
		<pubDate>Tue, 20 Dec 2011 06:53:28 +0000</pubDate>
		<dc:creator>Lars Vogel</dc:creator>
				<category><![CDATA[Eclipse]]></category>
		<category><![CDATA[vogella]]></category>
		<category><![CDATA[Debugging]]></category>
		<category><![CDATA[Eclipse IDE]]></category>
		<category><![CDATA[JUnit]]></category>
		<category><![CDATA[Mylyn]]></category>

		<guid isPermaLink="false">http://www.vogella.de/blog/?p=4659</guid>
		<description><![CDATA[Today I released my new Eclipse IDE 3.7 book for the Kindle device.


Eclipse IDE 3.7
Fundamentals of Java Programming, Debugging, JUnit Testing and Mylyn Tasks with Eclipse



This book demonstrates how you can develop Java applications, how you can debug them and how to write JUnit tests for your applications. It also explains how you can ...]]></description>
			<content:encoded><![CDATA[<p>Today I released my new Eclipse IDE 3.7 book for the Kindle device.</p>
<p><a href="http://www.amazon.com/dp/B006O1J39S"><strong><br />
Eclipse IDE 3.7<br />
Fundamentals of Java Programming, Debugging, JUnit Testing and Mylyn Tasks with Eclipse</strong></a></p>
<p><img src="http://www.vogella.de/blog/wp-content/uploads/2011/12/cover1-225x300.png" alt="" width="225" height="300" class="aligncenter size-medium wp-image-4664" /></p>
<p>This book demonstrates how you can develop Java applications, how you can debug them and how to write JUnit tests for your applications. It also explains how you can work with local Mylyn tasks to organize your work efficiently.</p>
<p>It also includes important Eclipse configuration tips which make programming with Eclipse more effective.</p>
<p>After finishing this book you should feel comfortable with using the Eclipse IDE for standard Java development tasks and you should be equipped to explore Eclipse further.</p>
<p>You find the book in all Amazon stores:</p>
<p><a href="http://www.amazon.com/dp/B006O1J39S">Eclipse IDE 3.7 in Amazon USA</a><br />
<a href="http://www.amazon.de/dp/B006O1J39S">Eclipse IDE 3.7in Amazon Germany</a><br />
<a href="http://www.amazon.co.uk/dp/B006O1J39S">Eclipse IDE 3.7 in Amazon UK</a><br />
<a href="http://www.amazon.fr/dp/B006O1J39S">Eclipse IDE 3.7 in Amazon France</a><br />
<a href="http://www.amazon.it/dp/B006O1J39S">Eclipse IDE 3.7 in Amazon IT</a><br />
<a href="http://www.amazon.es/dp/B006O1J39S">Eclipse IDE 3.7 in Amazon ES</a></p>
<p>This book summerizes several tutorials I publish on my website. It includes the Eclipse IDE introduction tutorial, the JUnit tutorial, Debugging with Eclipse, my Mylyn Tutorial and my favorite Eclipse shortcuts. The full content of the book is still available online on my website.</p>
<p>I would especially thank <strong>Elias Volanakis</strong> for his thorough spell checking and feedback on the content. </p>
<p>I also am very grateful to <strong>Wayne Beaton</strong> for writing the foreword and providing feedback on the content.</p>
<p>In addition I would like to thank the Eclipse Foundation and <strong>Ian Skerrett</strong> for the permission to use the Eclipse logo and <strong>Matthew Nuzum</strong> for the permission to use his svg version of the Eclipse logo.</p>
<p>I got many suggestions or corrections from countless readers of my website and I would like to express my deepest gratitude for their contributions.</p>
<p><strong>I have plans to add an EGit chapter over the next months</strong>. If you buy this book now you will get the update with EGit for free. I have confirmed twice with the Amazon customer support that if I publish an update to this book that buyers of the book will get notified and that they can download the updated book with EGit for free.</p>
<p>I&#8217;m again surprised how much work it is to convert my website content into a book format. I hope you like this book and if you new to Eclipse I hope you enjoy your learning experience.</p>
<p class="wp-flattr-button"></p> <p><a href="http://www.vogella.de/blog/?flattrss_redirect&amp;id=4659&amp;md5=97e14a64264e837290b5640b7d4b8264" title="Flattr" target="_blank"><img src="http://www.vogella.de/blog/wp-content/plugins/flattr/img/flattr-badge-large.png" alt="flattr this!"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.vogella.de/blog/2011/12/20/eclipse-ide-3-7-book-available-for-the-kindle/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>Mylyn Github Connector</title>
		<link>http://www.vogella.de/blog/2011/05/10/mylyn-github-connector/</link>
		<comments>http://www.vogella.de/blog/2011/05/10/mylyn-github-connector/#comments</comments>
		<pubDate>Tue, 10 May 2011 21:15:57 +0000</pubDate>
		<dc:creator>Lars Vogel</dc:creator>
				<category><![CDATA[Eclipse]]></category>
		<category><![CDATA[Git]]></category>
		<category><![CDATA[GitHub]]></category>
		<category><![CDATA[Mylyn]]></category>

		<guid isPermaLink="false">http://www.vogella.de/blog/?p=3962</guid>
		<description><![CDATA[Just in case you missed it, there is a prototype for a Mylyn and Github connector available. Please see https://github.com/blog/852-github-mylyn-connector-for-eclipse for the official announcement.

Installing the connector is pretty straight forward you can directly install it from the Eclipse Marketplace client. The only pre-requisite is that you add the Orbit repository http://download.eclipse.org/tools/orbit/downloads/drops/S20110422041657/repository/ and install "Gson" ...]]></description>
			<content:encoded><![CDATA[<p>Just in case you missed it, there is a prototype for a <a href="http://www.vogella.de/articles/Mylyn/article.html">Mylyn</a> and <a href="https://github.com/">Github</a> connector available. Please see <a href="https://github.com/blog/852-github-mylyn-connector-for-eclipse">https://github.com/blog/852-github-mylyn-connector-for-eclipse</a> for the official announcement.</p>
<p>Installing the connector is pretty straight forward you can directly install it from the Eclipse Marketplace client. The only pre-requisite is that you add the Orbit repository http://download.eclipse.org/tools/orbit/downloads/drops/S20110422041657/repository/ and install &#8220;Gson&#8221; from the com.google.* category (thanks to <a href="http://twitter.com/smilebase">Christian Trutz</a> for the tip on <a href="http://twitter.com/vogella">twitter</a>).</p>
<p>Importing your issues is as easy as File -&gt; Import -&gt; Tasks -&gt; Github Task Repositories and then you can define new queries for this repository. </p>
<p>The first test unfortunately failed. During a submit of a new issue with the error &#8220;Submit failed: Unexpected error: Unprocessable Entry&#8221;.</p>
<p>Still the connector looks very promissing. <a href="http://www.vogella.de/articles/Git/article.html">Git</a> is my favorite version control system and I love Github. Its great that soon Mylyn will also to share issues and ther context via GitHub. </p>
<p>I suggest you give it a test run. If you find issues you can report them in bugzilla: <a href="https://bugs.eclipse.org/bugs/enter_bug.cgi?product=EGit&amp;component=Mylyn&amp;rep_platform=All&amp;op_sys=All">Mylyn EGit Connector</a>.</p>
<p><strong>Update</strong>: The bug is already fixed, looks like testing will get your bugs solved fast. <img src='http://www.vogella.de/blog/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p class="wp-flattr-button"></p> <p><a href="http://www.vogella.de/blog/?flattrss_redirect&amp;id=3962&amp;md5=17c56c407d6b0f1313cc3102b8e35e7e" title="Flattr" target="_blank"><img src="http://www.vogella.de/blog/wp-content/plugins/flattr/img/flattr-badge-large.png" alt="flattr this!"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.vogella.de/blog/2011/05/10/mylyn-github-connector/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Local Mylyn tasks distributed via git</title>
		<link>http://www.vogella.de/blog/2010/08/26/local-mylyn-tasks-distributed/</link>
		<comments>http://www.vogella.de/blog/2010/08/26/local-mylyn-tasks-distributed/#comments</comments>
		<pubDate>Thu, 26 Aug 2010 11:46:01 +0000</pubDate>
		<dc:creator>Lars Vogel</dc:creator>
				<category><![CDATA[Eclipse]]></category>
		<category><![CDATA[Git]]></category>
		<category><![CDATA[Mylyn]]></category>

		<guid isPermaLink="false">http://www.vogella.de/blog/?p=3072</guid>
		<description><![CDATA[I learned from Steffen Pingel and Ekkehard Gentz that Mylyn has the ability to save local tasks outside the workspace. This is hidden under advanced in the Preferences.



This allows you to put your local tasks outside your workspace and versionize them with git. This way you can use git to move your local tasks ...]]></description>
			<content:encoded><![CDATA[<p>I learned from <a href="http://steffenpingel.de/">Steffen Pingel</a> and <a href="http://ekkescorner.wordpress.com/">Ekkehard Gentz</a> that <a href="http://www.vogella.de/articles/Mylyn/article.html">Mylyn</a> has the ability to save local tasks outside the workspace. This is hidden under advanced in the Preferences.</p>
<p><a href="http://www.vogella.de/blog/wp-content/uploads/2010/08/20.08-1.png"><img src="http://www.vogella.de/blog/wp-content/uploads/2010/08/20.08-1.png" alt="" width="634" height="669" class="aligncenter size-full wp-image-3074" /></a></p>
<p>This allows you to put your local tasks outside your workspace and versionize them with <a href="http://www.vogella.de/articles/Git/article.html">git</a>. This way you can use git to move your local tasks between machines. I really like this as I frequently use different machines and now I can not only share source code betwee them but also my mylyn taslks.</p>
<p><a href="http://www.vogella.de/blog/wp-content/uploads/2010/08/20.08.png"><img src="http://www.vogella.de/blog/wp-content/uploads/2010/08/20.08.png" alt="" width="270" height="205" class="aligncenter size-full wp-image-3076" /></a></p>
<p>As <a href="http://steffenpingel.de/">Steffen</a> told me, simultanous access to the Mylyn tasks might cause task corruption but I don&#8217;t think that is an issue for me as Git takes care of conflicts and I do not have two machines writing to the same local file. </p>
<p>Fun times with Git and Mylyn!</p>
<p class="wp-flattr-button"></p> <p><a href="http://www.vogella.de/blog/?flattrss_redirect&amp;id=3072&amp;md5=245314baf95b4437d29cc74b5b22a950" title="Flattr" target="_blank"><img src="http://www.vogella.de/blog/wp-content/plugins/flattr/img/flattr-badge-large.png" alt="flattr this!"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.vogella.de/blog/2010/08/26/local-mylyn-tasks-distributed/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Save your local Mylyn tasks</title>
		<link>http://www.vogella.de/blog/2010/08/24/local-mylyn-tasks/</link>
		<comments>http://www.vogella.de/blog/2010/08/24/local-mylyn-tasks/#comments</comments>
		<pubDate>Tue, 24 Aug 2010 07:19:14 +0000</pubDate>
		<dc:creator>Lars Vogel</dc:creator>
				<category><![CDATA[Eclipse]]></category>
		<category><![CDATA[Mylyn]]></category>

		<guid isPermaLink="false">http://www.vogella.de/blog/?p=2965</guid>
		<description><![CDATA[If you are using Eclipse you properly using Mylyn. I recently got a new machine and wanted to migrate my local Mylyn tasks from one computer to another. 



Local tasks stored in your workspace in .metadata/mylyn/tasks.xml.zip. The context for local tasks stored in .metadata/.mylyn/contexts... look for files labeled local-X.xml.zip, these have the context. You ...]]></description>
			<content:encoded><![CDATA[<p>If you are using <a href="http://www.vogella.de/articles/Eclipse/article.html">Eclipse</a> you properly using <a href="http://www.vogella.de/articles/Mylyn/article.html">Mylyn</a>. I recently got a new machine and wanted to migrate my local Mylyn tasks from one computer to another. </p>
<p><a href="http://www.vogella.de/blog/wp-content/uploads/2010/08/check10.png"><img src="http://www.vogella.de/blog/wp-content/uploads/2010/08/check10.png" alt="" width="255" height="268" class="aligncenter size-full wp-image-3065" /></a></p>
<p>Local tasks stored in your workspace in .metadata/mylyn/tasks.xml.zip. The context for local tasks stored in .metadata/.mylyn/contexts&#8230; look for files labeled local-X.xml.zip, these have the context. You can back up the entire Mylyn data directory and put it into the same place on your new computer.</p>
<p>Worked well for me!</p>
<p>Thanks to <a href="http://twitter.com/davidcshepherd">David Shepherd</a> for the tip via <a href="http://twitter.com/vogella">twitter</a>.</p>
<p class="wp-flattr-button"></p> <p><a href="http://www.vogella.de/blog/?flattrss_redirect&amp;id=2965&amp;md5=429b351d2a362d1483e419891eadb6c4" title="Flattr" target="_blank"><img src="http://www.vogella.de/blog/wp-content/plugins/flattr/img/flattr-badge-large.png" alt="flattr this!"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.vogella.de/blog/2010/08/24/local-mylyn-tasks/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Eclipse Papercut #6 &#8211; Modifying Mylyn Context</title>
		<link>http://www.vogella.de/blog/2009/10/05/modifying-mylyn-context/</link>
		<comments>http://www.vogella.de/blog/2009/10/05/modifying-mylyn-context/#comments</comments>
		<pubDate>Mon, 05 Oct 2009 06:06:55 +0000</pubDate>
		<dc:creator>Lars Vogel</dc:creator>
				<category><![CDATA[Eclipse]]></category>
		<category><![CDATA[Papercut]]></category>
		<category><![CDATA[Commands]]></category>
		<category><![CDATA[JDT]]></category>
		<category><![CDATA[Mylyn]]></category>
		<category><![CDATA[Plugin]]></category>

		<guid isPermaLink="false">http://www.vogella.de/blog/?p=1183</guid>
		<description><![CDATA[Change the Mylyn context in a task]]></description>
			<content:encoded><![CDATA[<p>In this episode of <a href="http://www.vogella.de/blog/2009/06/29/paper-cuts/">Eclipse Papercuts </a> I will demonstrate how to modify the <a href="www.eclipse.org/mylyn/?phpMyAdmin=pGYgzr5q5pQd6aMfv3bd9m1zbi3">Mylyn</a> tasks context. Many thanks to <a href="http://greensopinion.blogspot.com/">David Green </a> for providing sample code to access the Mylyn context.</p>
<p><a href="http://www.vogella.de/articles/Mylyn/article.html">Mylyn</a> makes certain assumptions how the developer works. If you start a new task the Mylyn context is empty and fills up based on the selected files. </p>
<p>Which is not always the way I work. Frequently I know that for my task a whole package (or project) is relevant. I would like to include all classes in this package / project in my Mylyn task.</p>
<p>Ok, lets see how we can solve this papercut. I describe how to add Java classes from a package to an active task.</p>
<p>Create an command which extends the package explorer with a new popup commands as described here <a href="http://www.vogella.de/articles/EclipsePlugIn/article.html#packageexplorer">Extend the package explorer</a>.</p>
<p>Create the command handler with the following coding:</p>
<pre class="brush: java; title: ; notranslate">

package de.vogella.mylyn.tasksmodify.handlers;

import org.eclipse.core.commands.AbstractHandler;
import org.eclipse.core.commands.ExecutionEvent;
import org.eclipse.core.commands.ExecutionException;
import org.eclipse.jdt.core.ICompilationUnit;
import org.eclipse.jdt.core.IPackageFragment;
import org.eclipse.jdt.core.IPackageFragmentRoot;
import org.eclipse.jdt.core.JavaModelException;
import org.eclipse.jface.viewers.IStructuredSelection;
import org.eclipse.mylyn.context.core.ContextCore;
import org.eclipse.mylyn.context.core.IInteractionContext;
import org.eclipse.mylyn.internal.context.core.ContextCorePlugin;
import org.eclipse.mylyn.monitor.core.InteractionEvent;
import org.eclipse.mylyn.monitor.core.InteractionEvent.Kind;
import org.eclipse.ui.handlers.HandlerUtil;

public class SampleHandler extends AbstractHandler {
	public Object execute(ExecutionEvent event) throws ExecutionException {

		IStructuredSelection selection = (IStructuredSelection) HandlerUtil
				.getActiveMenuSelection(event);
		if (selection ==null){
			return null;
		}

		Object firstElement = selection.getFirstElement();

		if (firstElement instanceof IPackageFragment) {
			IPackageFragment mypackage = (IPackageFragment) firstElement;
			try {
				if (mypackage.getKind() == IPackageFragmentRoot.K_SOURCE){
					 ICompilationUnit[] compilationUnits = mypackage.getCompilationUnits();
					 for (ICompilationUnit iCompilationUnit : compilationUnits) {
						 IInteractionContext activeContext = ContextCore.getContextManager()
							.getActiveContext();
						 ContextCorePlugin.getContextManager().processInteractionEvent(iCompilationUnit,
									Kind.PROPAGATION, InteractionEvent.ID_UNKNOWN, activeContext);
					}
				}
			} catch (JavaModelException e) {
				e.printStackTrace();
			}
		}

		return null;
	}
}
</pre>
<p>Launch your plugin. Create a Mylyn task and select a package in the package explorer. Select your commands and all files of this package will be added to the task.</p>
<p>Further reading: If you want to access other Java Elements, e.g. Project and add them to the Mylyn task this tutorial might help you: <a href="http://www.vogella.de/articles/EclipseJDT/article.html">Eclipse JDT</a>.</p>
<p>Please note that ContextCorePlugin is supposed to be internal API but I did not find another way of accessing the Mylyn tasks. </p>
<p class="wp-flattr-button"></p>]]></content:encoded>
			<wfw:commentRss>http://www.vogella.de/blog/2009/10/05/modifying-mylyn-context/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>

