<?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; cvs</title>
	<atom:link href="http://www.vogella.de/blog/tag/cvs/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>Google the location of a plugin in Eclipse cvs</title>
		<link>http://www.vogella.de/blog/2010/01/19/google-cvs-plugin-location/</link>
		<comments>http://www.vogella.de/blog/2010/01/19/google-cvs-plugin-location/#comments</comments>
		<pubDate>Tue, 19 Jan 2010 15:34:46 +0000</pubDate>
		<dc:creator>Lars Vogel</dc:creator>
				<category><![CDATA[Eclipse]]></category>
		<category><![CDATA[cvs]]></category>

		<guid isPermaLink="false">http://www.vogella.de/blog/?p=1805</guid>
		<description><![CDATA[If you want to find the cvs location of a certain Eclipse plugin you can use Google site search using site:"dev.eclipse.org/viewsvn".

For example if you are looking for the cvs location of the plugin "org.eclipse.e4.tools.ui" you can run the following Google search:

"org.eclipse.e4.tools.ui" site:dev.eclipse.org/viewsvn

Thanks to Tom Seidel for sharing this tip via twitter. ]]></description>
			<content:encoded><![CDATA[<p>If you want to find the cvs location of a certain <a href="http://www.vogella.de/articles/EclipsePlugIn/article.html">Eclipse plugin</a> you can use Google site search using site:&#8221;dev.eclipse.org/viewsvn&#8221;.</p>
<p>For example if you are looking for the cvs location of the plugin &#8220;org.eclipse.e4.tools.ui&#8221; you can run the following Google search:</p>
<p>&#8220;org.eclipse.e4.tools.ui&#8221; site:dev.eclipse.org/viewsvn</p>
<p>Thanks to <a href="http://remus-software.org/">Tom Seidel</a> for sharing this tip via twitter. </p>
<p class="wp-flattr-button"></p>]]></content:encoded>
			<wfw:commentRss>http://www.vogella.de/blog/2010/01/19/google-cvs-plugin-location/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Getting the Eclipse source code via Git</title>
		<link>http://www.vogella.de/blog/2009/11/24/eclipse-source-git/</link>
		<comments>http://www.vogella.de/blog/2009/11/24/eclipse-source-git/#comments</comments>
		<pubDate>Tue, 24 Nov 2009 13:57:07 +0000</pubDate>
		<dc:creator>Lars Vogel</dc:creator>
				<category><![CDATA[Eclipse]]></category>
		<category><![CDATA[cvs]]></category>
		<category><![CDATA[Git]]></category>
		<category><![CDATA[Source]]></category>
		<category><![CDATA[svn]]></category>

		<guid isPermaLink="false">http://www.vogella.de/blog/?p=1417</guid>
		<description><![CDATA[Eclipse recently started to provide Git mirrors of the cvs repositories.You find the location of the Git repository on the following website Eclipse Git repositories.

If you have the git commad line tools installed (Ubuntu: sudo apt-get git-core) you can use the following command to check these repositories out from the command line: 


for example ...]]></description>
			<content:encoded><![CDATA[<p>Eclipse recently started to provide Git mirrors of the cvs repositories.You find the location of the Git repository on the following website <a href="http://dev.eclipse.org/git/">Eclipse Git repositories</a>.</p>
<p>If you have the git commad line tools installed (Ubuntu: sudo apt-get git-core) you can use the following command to check these repositories out from the command line: </p>
<pre class="brush: bash; title: ; notranslate">
git clone url
</pre>
<p>for example to get the JFace snippets use the following command.</p>
<pre class="brush: bash; title: ; notranslate">
git clone git://dev.eclipse.org/org.eclipse.jface/org.eclipse.jface.snippets.git
</pre>
<p>After that checkout you can import the project into Eclipse via File -&gt; Import -&gt; General -&gt; Existing Project into Workspace.</p>
<p>Of course you can use the <a href="http://www.eclipse.org/egit/">EGit plugin</a> to checkout Git repositories directly in Eclipse. Check the excellent <a href="http://wiki.eclipse.org/EGit/User_Guide/">EGit User Guide</a> for this.</p>
<p>Via Git we have another nice option to get the Eclipse source code in additon <a href="http://www.vogella.de/articles/EclipseCodeAccess/article.html#versioncontrol">to cvs and svn</a>. <img src='http://www.vogella.de/blog/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />  </p>
<p>I believe Git does currently not support Project Set Files (.psf) similar to cvs to get a consistent set of plugins but at least individual plugins can be checked out. </p>
<p><strong>Update</strong> I have created a small  introduction to Git <a href="http://www.vogella.de/articles/Git/article.html">Git Tutorial</a> and to EGit <a href="http://www.vogella.de/articles/EGit/article.html">Git with Eclipse &#8211; EGit Tutorial</a>. Hope this helps.</p>
<p class="wp-flattr-button"></p>]]></content:encoded>
			<wfw:commentRss>http://www.vogella.de/blog/2009/11/24/eclipse-source-git/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Create your first Eclipse e4 application</title>
		<link>http://www.vogella.de/blog/2009/08/12/eclipse-e4/</link>
		<comments>http://www.vogella.de/blog/2009/08/12/eclipse-e4/#comments</comments>
		<pubDate>Wed, 12 Aug 2009 20:58:44 +0000</pubDate>
		<dc:creator>Lars Vogel</dc:creator>
				<category><![CDATA[Eclipse]]></category>
		<category><![CDATA[cvs]]></category>
		<category><![CDATA[E4]]></category>
		<category><![CDATA[Plugin]]></category>
		<category><![CDATA[RCP]]></category>

		<guid isPermaLink="false">http://www.vogella.de/blog/?p=823</guid>
		<description><![CDATA[Update This description has been updated in the following tutorial: Eclipse e4.

Eclipse released on the 29 July 2009 the tech preview version 0.9 of Eclipse e4, which can be downloaded here.

I wasn't able to find a description how to create an new application based on E4. Starting from the CVS example is possible but ...]]></description>
			<content:encoded><![CDATA[<p><strong>Update</strong> This description has been updated in the following tutorial: <a href="http://www.vogella.de/articles/EclipseE4/article.html">Eclipse e4</a>.</p>
<p>Eclipse released on the 29 July 2009 the tech preview version 0.9 of <a href="http://www.vogella.de/articles/EclipseE4/article.html">Eclipse e4</a>, which can be downloaded <a href="http://download.eclipse.org/e4/downloads/drops/R-0.9-200907291930/index.html">here</a>.</p>
<p>I wasn&#8217;t able to find a description how to create an new application based on E4. Starting from the CVS example is possible but I wanted to start from scratch. After several failed attempts to create an E4 application I believe I have found a way to create an E4 application. I assume others will have similar problems so I wanted to share my experience. </p>
<p> To follow this description you need to have knowledge how to develop <a href="http://www.vogella.de/articles/EclipsePlugIn/article.html">Eclipse Plugins</a> in Eclipse 3.5 or earlier. Check out this <a href="http://www.vogella.de/articles/EclipsePlugIn/article.html">Eclipse Plugin Development Tutorial</a>.</p>
<p>So lets get started with e4.</p>
<p>Download e4. Extract it and start it is similar to older Eclipse versions.</p>
<p>Currently there is no wizard which creates a working scaffold of an E4 application. We will therefore use the exsting plugin templates.</p>
<p>Create a new Plugin project &#8220;de.vogella.e4.first&#8221;. Do not select &#8220;Generate an activator&#8221;, nor &#8220;This plug-in will make contributions to the UI&#8221; nor &#8220;Would you like to create a rich client application&#8221;. Do not select a template. Press finish.</p>
<p><a href="http://www.vogella.de/blog/wp-content/uploads/2009/08/e410.gif"><img src="http://www.vogella.de/blog/wp-content/uploads/2009/08/e410.gif" alt="e410" width="498" height="573" class="alignnone size-full wp-image-911" /></a></p>
<p>This will open the Plugin Perspective, switch here to the Package Explorer to see your new project. </p>
<p>Create the package &#8220;de.vogella.e4.first&#8221;. The result should look like the following.</p>
<p><a href="http://www.vogella.de/blog/wp-content/uploads/2009/08/e412.gif"><img src="http://www.vogella.de/blog/wp-content/uploads/2009/08/e412-150x150.gif" alt="e412" width="150" height="150" class="alignnone size-thumbnail wp-image-948" /></a></p>
<p>Select your MANIFEST.MF and add the following dependencies to your plugin.</p>
<pre class="brush: plain; title: ; notranslate">
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: First
Bundle-SymbolicName: de.vogella.e4.first;singleton:=true
Bundle-Version: 1.0.0.qualifier
Bundle-RequiredExecutionEnvironment: JavaSE-1.6
Require-Bundle: org.eclipse.ui,
 org.eclipse.core.runtime,
 org.eclipse.e4.ui.workbench;bundle-version=&quot;0.9.0&quot;,
 org.eclipse.e4.ui.workbench.renderers.swt;bundle-version=&quot;0.9.0&quot;,
 org.eclipse.e4.ui.workbench.renderers.swt.contributions;bundle-version=&quot;0.9.0&quot;,
 org.eclipse.e4.ui.workbench.swt;bundle-version=&quot;0.9.0&quot;,
 org.eclipse.e4.ui.services;bundle-version=&quot;0.9.0&quot;,
 org.eclipse.e4.core.services;bundle-version=&quot;0.9.0&quot;
</pre>
<p>You need (some of) these plugins for the usage of E4 features. </p>
<p>Add the following extension points. I noticed that for some of the features you have to modify the plugin.xml directly as the UI does not support them. But you have to create the plugin.xml via the MANIFEST.MF file; as I created it directly as a new file I received a strange system behavior. </p>
<pre class="brush: plain; title: ; notranslate">

&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
&lt;?eclipse version=&quot;3.4&quot;?&gt;
&lt;plugin&gt;
   &lt;extension
         point=&quot;org.eclipse.e4.workbench.parts&quot;&gt;
          &lt;part
            class=&quot;de.vogella.e4.first.views.View1&quot;
            label=&quot;My first E4 View&quot;
            parentId=&quot;org.eclipse.e4.ui.tags.navigation&quot;&gt;
      &lt;/part&gt;
   &lt;/extension&gt;
   &lt;extension
         id=&quot;product&quot;
         point=&quot;org.eclipse.core.runtime.products&quot;&gt;
      &lt;product
            application=&quot;org.eclipse.e4.ui.workbench.swt.application&quot;
            name=&quot;vogella&quot;&gt;
             &lt;property
               name=&quot;appName&quot;
               value=&quot;vogella&quot;&gt;
         &lt;/property&gt;
         &lt;property
               name=&quot;applicationXMI&quot;
               value=&quot;de.vogella.e4.first/Application.xmi&quot;&gt;
         &lt;/property&gt;
      &lt;/product&gt;

   &lt;/extension&gt;

&lt;/plugin&gt;
</pre>
<p>&#8220;org.eclipse.e4.workbench.parts&#8221; is a new extension point by which you can define your view parts, formally known as views and editors. </p>
<p>The extension point &#8220;org.eclipse.core.runtime.products&#8221; has a new parameter &#8220;applicationXMI&#8221;. This is a parameter to the model of your UI. We came to this later. You also do not define your own application; we use &#8220;org.eclipse.e4.ui.workbench.swt.application&#8221;. </p>
<p>Create a product configuration called &#8220;vogella.product&#8221;. This is similar to Eclipse 3.5; see here for a description: <a href="http://www.vogella.de/articles/RichClientPlatform/article.html#product">Eclipse Product Configuration</a>.</p>
<p><a href="http://www.vogella.de/blog/wp-content/uploads/2009/08/e4202.gif"><img src="http://www.vogella.de/blog/wp-content/uploads/2009/08/e4202.gif" alt="e420" width="498" height="476" class="aligncenter size-full wp-image-954" /></a></p>
<p>Make sure you select &#8220;org.eclipse.e4.ui.workbench.swt.application&#8221;. </p>
<p><a href="http://www.vogella.de/blog/wp-content/uploads/2009/08/e430.gif"><img src="http://www.vogella.de/blog/wp-content/uploads/2009/08/e430.gif" alt="e430" width="776" height="501" class="aligncenter size-full wp-image-956" /></a></p>
<p>Add as dependency to your product the plugin &#8220;org.eclipse.e4.ui.workbench&#8221;. Add also the plugin &#8220;de.vogella.e4.first&#8221;.<br />
Press &#8220;add required plugins&#8221;.</p>
<p>Create the following two classes:</p>
<pre class="brush: java; title: ; notranslate">

package de.vogella.e4.first.handlers;

import org.eclipse.e4.workbench.ui.IWorkbench;

public class ExitHandler {
	public void execute(IWorkbench workbench) {
		workbench.close();
	}
}
</pre>
<p>and </p>
<pre class="brush: java; title: ; notranslate">
package de.vogella.e4.first.views;

import org.eclipse.e4.core.services.context.IEclipseContext;
import org.eclipse.jface.layout.GridLayoutFactory;
import org.eclipse.swt.SWT;
import org.eclipse.swt.layout.GridData;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Label;
import org.eclipse.swt.widgets.Text;
import org.eclipse.ui.services.IDisposable;

public class View1 implements IDisposable {

	public View1(Composite parent, final IEclipseContext outputContext) {
		Label label = new Label(parent, SWT.NONE);
		label.setText(&quot;E4 is new&quot;);
		GridData gridData = new GridData(GridData.HORIZONTAL_ALIGN_FILL);
		gridData.horizontalIndent = 20;
		label.setLayoutData(gridData);
		Text text = new Text(parent, SWT.NONE);
		text.setText(&quot;and different&quot;);
		GridLayoutFactory.fillDefaults().generateLayout(parent);
	}

	public void dispose() {

	}
}
</pre>
<p>You need a model for your application. In the parameter &#8220;applicationXMI&#8221; we earlier defined that this model will be &#8220;de.vogella.e4.first/Application.xmi&#8221;. Create the file Application.xmi with the following content. </p>
<pre class="brush: xml; title: ; notranslate">

&lt;?xml version=&quot;1.0&quot; encoding=&quot;ASCII&quot;?&gt;
&lt;application:MApplication xmi:version=&quot;2.0&quot; xmlns:xmi=&quot;http://www.omg.org/XMI&quot; xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot; xmlns:application=&quot;http://www.eclipse.org/ui/2008/Application&quot;&gt;
  &lt;windows name=&quot;Main&quot; x=&quot;100&quot; y=&quot;100&quot; width=&quot;800&quot; height=&quot;600&quot;&gt;
    &lt;menu&gt;
      &lt;items xsi:type=&quot;application:MMenuItem&quot; name=&quot;File&quot;&gt;
        &lt;menu&gt;
          &lt;items xsi:type=&quot;application:MMenuItem&quot; id=&quot;&quot; name=&quot;Exit&quot; command=&quot;//@command.0&quot;/&gt;
        &lt;/menu&gt;
      &lt;/items&gt;
    &lt;/menu&gt;
    &lt;children policy=&quot;VerticalComposite&quot;&gt;
      &lt;children xsi:type=&quot;application:MSashForm&quot; policy=&quot;HorizontalSash&quot;&gt;
        &lt;children xsi:type=&quot;application:MStack&quot;&gt;
          &lt;children xsi:type=&quot;application:MContributedPart&quot; iconURI=&quot;&quot; name=&quot;My View&quot; tooltip=&quot;My first View&quot; URI=&quot;platform:/plugin/de.vogella.e4.first/de.vogella.e4.first.views.View1&quot;/&gt;
        &lt;/children&gt;
        &lt;weights&gt;30&lt;/weights&gt;
        &lt;weights&gt;70&lt;/weights&gt;
      &lt;/children&gt;
    &lt;/children&gt;
    &lt;handlers id=&quot;&quot; URI=&quot;platform:/plugin/de.vogella.e4.first/de.vogella.e4.first.handlers.ExitHandler&quot; persistedState=&quot;&quot; command=&quot;//@command.0&quot;/&gt;
  &lt;/windows&gt;
  &lt;command id=&quot;application.exit&quot; name=&quot;Exit&quot;/&gt;
&lt;/application:MApplication&gt;
</pre>
<p>This is the <a href="http://www.vogella.de/articles/EclipseEMF/article.html">EMF model </a> which defines your UI. Eclipse should display this model in a EMF editor so that you can investigate it. In this model you find your view and command definition. The content can be viewed via the properities view.</p>
<p><a href="http://www.vogella.de/blog/wp-content/uploads/2009/08/e450.gif"><img src="http://www.vogella.de/blog/wp-content/uploads/2009/08/e450.gif" alt="e450" width="653" height="581" class="aligncenter size-full wp-image-961" /></a></p>
<p>Now start your application from your vogella.product. Starting it directly from the plugin.xml will not work (easily). </p>
<p>If you receive the error &#8220;org.eclipse.core.runtime.AssertionFailedException: null argument:-applicationXMI argument missing&#8221; check you plugin.xml. E4 created in several cases twice the products entry. </p>
<p>You should be rewarded <img src='http://www.vogella.de/blog/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' />  with this user interface:</p>
<p><a href="http://www.vogella.de/blog/wp-content/uploads/2009/08/e460.gif"><img src="http://www.vogella.de/blog/wp-content/uploads/2009/08/e460.gif" alt="e460" width="327" height="333" class="aligncenter size-full wp-image-964" /></a></p>
<p>With this first application I hope you can started using the E4 advanced features, e.g. CSS styling, etc. </p>
<p>My final thoughts: <a href="http://www.vogella.de/articles/EclipseE4/article.html">Eclipse e4</a> has already amazing capabilities for a tech review release. The new modeled UI removes the need for a lot of boilerplate code. </p>
<p>Try it out!</p>
<p class="wp-flattr-button"></p>]]></content:encoded>
			<wfw:commentRss>http://www.vogella.de/blog/2009/08/12/eclipse-e4/feed/</wfw:commentRss>
		<slash:comments>24</slash:comments>
		</item>
	</channel>
</rss>

