Platform check in Eclipse 3.5

July 8, 2009 | In Java, Eclipse | No Comments

To check the running platform in an Eclipse 3.5 plugin or RCP app use this:

org.eclipse.jface/src/org/eclipse/jface/util/Util.java

...
        /**
	 * Note: this may be made internal in 3.5
	 * @return true for windows platforms
	 * @since 3.5
	 */
	public static final boolean isWindows() {
		final String ws = SWT.getPlatform();
		return WS_WIN32.equals(ws) || WS_WPF.equals(ws);
	}

	/**
	 * Note: this may be made internal in 3.5
	 * @return true for mac platforms
	 * @since 3.5
	 */
	public static final boolean isMac() {
		final String ws = SWT.getPlatform();
		return WS_CARBON.equals(ws) || WS_COCOA.equals(ws);
	}
…

Lösungen für einen SWT Rich Text Editor

December 17, 2008 | In Programming, Java | 4 Comments

Wenn man, wie ich, vor der Aufgabe steht einen WYSIWYG Rich Text Editor in eine Eclipse RCP Anwendung zu integrieren, stellt man leider schnell fest, das es keine Standardlösung gibt. Vielmehr hat man folgende Optionen mit ganz speziellen Vor- und Nachteilen, für die man sich entscheiden muss:

Continue reading Lösungen für einen SWT Rich Text Editor…

GuiceBerry: JUnit with dependency injection

October 18, 2008 | In Java | No Comments

GuiceBerry brings the joys of dependency injection to your test cases and test infrastructure. It leverages Guice to accomplish this. It allows you to use a composition model for the services your test needs, rather than the traditional extends MyTestCase approach.

GuiceBerry does not supplant your JUnit testing framework — it builds on top of it (and works around it, when necessary), so you can run your tests normally, from your favorite command line or IDE environment.

Links

Berkeley DB JE: DPL Assistant for Eclipse

August 13, 2008 | In Tools, Java | No Comments

The Berkeley DB Java Edition Team announced the DPL (Direct Persistence Layer) Assistant Eclipse Plugin:

This first version of the plug-in performs validation of DPL
annotations in Java source code. Each time you save changes from the
Java source code editor, the validator analyzes annotations (@Entity,
@Persistent, etc.) and reports any errors or warnings that it can
detect, in a similar way to how the IDE reports Java compilation
errors.

Java Performance Tuning

July 23, 2008 | In Java | No Comments

A Conversation With Java Champion Kirk Pepperdine:

“Because we’re trained to look at code, when something goes wrong, we look at code… Developers often fix things that have little or no impact on overall performance. I’ve seen teams literally waste months rewriting ugly code that had no impact on performance.”
Kirk Pepperdine

Must have Code Quality Plugins for Eclipse

April 20, 2008 | In Tools, Programming, Java | No Comments

Findbugs looks for bugs in Java programs
Update-Site: http://findbugs.cs.umd.edu/eclipse/

PMD scans Java source code and looks for potential problems
Update-Site: http://pmd.sourceforge.net/eclipse

Checkstyle helps you ensure that your Java code adheres to a set of coding standards
Update-Site: http://eclipse-cs.sourceforge.net/update/

Code Analysis Plugin (CAP) checks dependencies between the classes and packages and gives you a hint about the architecture, reusability and maintainability.
Update-Site: http://cap.xore.de/update

moreUnit is a eclipse plugin that should assist you writing more unit test.
Update-Site: http://moreunit.sourceforge.net/org.moreunit.updatesite/

EclEmma is a free Java code coverage tool for Eclipse.
Update-Site: http://update.eclemma.org/

JAutodoc is an Plugin for automatic adding Javadoc and file headers to your source code.
Update-Site: http://jautodoc.sourceforge.net/update/

Java Wikipedia API 3.0.1 released

January 25, 2008 | In Programming, Java | No Comments

Das MathEclipse Projekt hat eine neue Version von der Java Wikipedia API veröffentlicht. Die API ermöglicht das Rendern von Wikipedia-Texten zu HTML, PDF und Docbook. Verwendung findet die API z.B. im “Eclipse Wikipedia Editor“.

Links

Eclipse Plugin Tip - EclEmma

July 4, 2007 | In Tools, Programming, Java | No Comments

EclEmma is a free Java code coverage tool for Eclipse, available under the Eclipse Public License. Internally it is based on the great EMMA Java code coverage tool, trying to adopt EMMA’s philosophy for the Eclipse workbench:

  • Fast develop/test cycle: Launches from within the workbench like JUnit test runs can directly be analyzed for code coverage.
  • Rich coverage analysis: Coverage results are immediately summarized and highlighted in the Java source code editors.
  • Non-invasive: EclEmma does not require modifying your projects or performing any other setup.

..implemented by Marc R. Hoffmann. It’s simply the best JUnit coverage plugin for Eclipse.

Dozer 3.0 Released

February 9, 2007 | In Tools, Java | No Comments

Dozer is a powerful, yet simple Java Bean to Java Bean mapper that recursively copies data from one object to another. Typically, these Java Beans will be of different complex types. Dozer supports simple property mapping, complex type mapping, bi-directional mapping, implicit-explicit mapping, as well as recursive mapping. This includes mapping collection attributes that also need mapping at the element level.

Next Page »

Powered by WordPress. Theme based on Pool theme design by Borja Fernandez.
Entries and comments feeds. Valid XHTML and CSS. ^Top^