Google Code and Mylyn

This page has moved.  Please update your links:
http://linuxsagas.digitaleagle.net/2010/12/28/google-code-and-mylyn/

Since I am using Eclipse with my Google Code projects(Project Shaphan & Project Sarah), I did some research to see if I could connect Mylyn and found this project: GoogleCode Mylyn Connector.

To install it, I had to add this URL to the install sites:

http://knittig.de/googlecode-mylyn-connector/update/

Then, it installs through the Eclipse installation tool.

Next, I added a repository with the “New Task” menu on the right side of the Tasks view.  This walks through the wizard.

  • Step 1: Select repository type: Google Code
  • Step 2: Repository Settings
    • Project URL: http://code.google.com/p/project-shaphan/
    • Label: Project Shaphan (I believe this is the label you will see on the category)
    • Unchecked “Anonymous” (since I am the owner of the project)
    • entered user name and password
    • clicked “Validate Settings”
    • Clicked Finish
  • Yes to create a new query
  • Use a predefined query — All open issues

For some reason, I get the following error: “could not execute query”.  Then, I found this Issue.  The solution is to use the regular Google Account user name and password that you would use to login to GMail as opposed to one you would use to connect via SVN.

Eclipse Labs

I ran across this InfoWorld article announcing a place for new Eclipse projects:

InfoWorld: Eclipse partners with Google on projects portal

So, you can check out the new portal here:

Eclipse Labs

While we are at it, I also ran across this new tool for Eclipse from Google itself:

Workspace Mechanic

Eclipse on Karmic (Ubuntu 9.10)

After installing Ubuntu 9.10, I realized that they have updated the version of Eclipse in the repositories.  So, I was able to install it with apt-get rather than download it manually.  Here is the version information from the About screen:

Eclipse SDK
Version: 3.5.1
Build id: M20090917-0800
(c) Copyright Eclipse contributors and others 2000, 2009.  All rights reserved.

Eclipse SDK
Version: 3.5.1Build id: M20090917-0800
(c) Copyright Eclipse contributors and others 2000, 2009.  All rights reserved.Visit http://www.eclipse.org/platform

The one thing I had to add was the plugins that I use.  First, I found a blog post with instructions on adding a repository with additional plugins via packages.  To use it, add this repository to your software sources:

deb http://ppa.launchpad.net/yogarine/eclipse/ubuntu karmic main

This command will import the key:

wget http://www2.yogarine.com/eclipse-ppa.key -O- | sudo apt-key add - && sudo apt-get update

So, with that said, here are the packages that I installed:

  • eclipse
  • eclipse-rcp
  • eclipse-platform
  • eclipse-emf
  • eclipse-platform-data
  • eclipse-pde
  • eclipse-plugin-cvs
  • eclipse-wtp
  • eclipse-dtp
  • eclipse-jdt
  • eclipse-gef

Then, I added the following update sites to Eclipse.  Open the preferences with the menu: Window > Preferences.  Then, go to Install/Update > Available Software Sites.

I added Visual Swing.  See this earlier post for more information.  Here is the update site:

For MyLyn, I found a conversation that recommended the following two sites:

To install the plugins, go to Help > Install New Software.

Visual Swing

This page has moved.  Please update your links:
http://linuxsagas.digitaleagle.net/2009/11/10/visual-swing/

I found a nice Swing Designer for Eclipse called Visual Swing:

Eclipse Zone: Visual Swing for Eclipse

This is a project hosted on Google Code.  So far, it has worked pretty nice.  It is by no means a commercial solution, but it definitely gets the job done.

I had a little trouble installing it from the Update Site.  The first time, I just downloaded the files and manually placed them in my Eclipse Home directory.  But, today I figured out how to get the update site to work.

Here is the update site I had to use:

http://visualswing4eclipse.googlecode.com/svn/trunk/vs4e

Then, in the install window, I had to uncheck “Group items by category”.  Otherwise, it would say “There are no categorized items”.  Finally, the install window seems to have a refresh problem.  It was loading the items in the list, but it was not painting them.  I had to give it some time to load, then I had to resize the install window to make it repaint the list.

There is an outstanding bug on the Update Site: Issue #119.

Adding Eclipse Project to Git

I did an earlier post where I did this, but I felt like it was sloppy.  Also, I did not add files to be ignored.  So, here is how to add an existing Eclipse project to Git:

Step 1:  In a terminal, change directories to your Eclipse workspace and project (assuming it is called my-project)

cd ~/workspace/my-project

Step 2: intialize the repository

git init

Step 3: add any files you want to ignore — consider any test data that might contain real production data and also consider connection information

vi .git/info/exclude

Assuming you have an Apache Derby database called db, you would exclude all of the database and the log with the following two lines:

db
derby.log

If you want to exclude Eclipse specific files, you may choose to add the following two lines:

.classpath
.project

Step 4: Add your files to your new Git repository

git add .

Step 5: Commit your files to the repository

git commit -m "My-Project inital code"

Step 6: Tag your code with a version

git tag v1.0

Update: You may want to tag this way so other developers see your tag (thanks Dominic):

git tag -a -m "GIT v1.0" v1.0

Now, your git repository is created and contains the code from your Eclipse project.

Resources

Eclipse Keyboard

Java FX Links

Here is a tutorial for using Java FX with Eclipse:

Java FX for Eclipse

I was able to install it on Linux using the update site listed here:

Java FX Plugin for Eclipse Wiki

Follow

Get every new post delivered to your Inbox.