Skip to content

Instantly share code, notes, and snippets.

View jvanzyl's full-sized avatar

Jason van Zyl jvanzyl

  • Guelph, Ontario, Canada
View GitHub Profile
Index
|-- Terms of Service
|-- Store
|-- Services
| |-- NavigationLeft - Services
| |-- Support
| |-- Training
| | |-- Training Instructors
| | |-- MVN - 201
| | |-- MVN - 101
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building rails_sqlite3 - rails3 application 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] artifact rubygems:jdbc-sqlite3: checking for updates from rubygems-releases
[INFO] artifact rubygems:jdbc-sqlite3: checking for updates from rubygems-prereleases
[INFO] artifact rubygems:jdbc-sqlite3: checking for updates from central
[INFO] artifact rubygems:builder: checking for updates from rubygems-releases
[INFO] artifact rubygems:builder: checking for updates from rubygems-prereleases
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building rails_sqlite3 - rails3 application 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- rails3-maven-plugin:0.20.0:generate (default-cli) @ rails_sqlite3 ---
[INFO] Successfully installed bundler-1.0.0.rc.2
[INFO] 1 gem installed
[INFO] create app/controllers/form_controller.rb
public void run(IAction action) {
IFile file;
// If I am in the POM editor I want to get hold of the IFile that is currently
// in the buffer
IWorkbenchWindow window = PlatformUI.getWorkbench().getActiveWorkbenchWindow();
if ( window != null )
{
searchText = new Text(this, SWT.BORDER);
searchText.setLayoutData(new GridData(SWT.FILL, SWT.TOP, true, false, 2, 1));
searchText.addKeyListener(new KeyAdapter() {
public void keyPressed(KeyEvent e) {
if(e.keyCode == SWT.ARROW_DOWN) {
searchResultViewer.getTree().setFocus();
if(searchResultViewer.getTree().getItemCount()>0) {
searchResultViewer.setSelection(new StructuredSelection(searchResultViewer.getTree().getItem(0)), true);
}
}
People develop abstractions by generalizing from concrete examples.
Every attempt to determine the correct abstraction on paper without
actually developing a running system is doomed to failure. No one
is that smart. A framework is a resuable design, so you develop it by
looking at the things it is supposed to be a design of. The more examples
you look at, the more general your framework will be.
-- Ralph Johnson & Don Roberts, Patterns for Evolving Frameworks
Sonatype has developing an open source tool called Tycho to help people manage OSGi and Eclipse builds with Maven. JBoss Tools is currently the largest OSS codebase to migrate Tycho to build a set of Eclipse plugins.
For more information about using Tycho, see the Tycho project site's helpful guide <a title="How to Create a New OSGI Bundle" href="http://tycho.sonatype.org/how-to-create-a-new-osgi-bundle.html">How to Create a New OSGi Bundle</a>
Nick Boldt
* IRC assistance in #maven
* mailing list well trafficked and watched
* frequent releases
* fairly recent/up to date docs (though I could point to things I think are missing if you'd like, such as examples of product and source builds)
bash-3.2$ mvn clean package
[INFO] Scanning for projects...
[INFO] Resolving target platform for project MavenProject: org.sonatype.idiom:org.eclipse.mylyn.commons.ui:3.5.0-SNAPSHOT @ /Users/jvanzyl/js/org.eclipse.mylyn/org.eclipse.mylyn.commons.ui/pom.xml
log4j:WARN No appenders could be found for logger (org.apache.commons.httpclient.HttpClient).
log4j:WARN Please initialize the log4j system properly.
[INFO] Adding repository http://localhost:8081/nexus/content/repositories/nx-helios/
[INFO] Adding repository http://localhost:8081/nexus/content/repositories/nx-helios/
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Idiom 3.5.0-SNAPSHOT
<?xml version="1.0" encoding="UTF-8"?>
<project>
<modelVersion>4.0.0</modelVersion>
<groupId>org.sonatype.idiom</groupId>
<artifactId>org.eclipse.mylyn.commons.ui</artifactId>
<version>3.5.0-SNAPSHOT</version>
<name>Idiom</name>
<packaging>eclipse-plugin</packaging>
<properties>
package org.sonatype.idiom.plugin.manager;
import java.util.Map;
import javax.inject.Inject;
import javax.inject.Named;
import javax.inject.Singleton;
import org.sonatype.idiom.plugin.IdiomPlugin;