Platform check in Eclipse 3.5
July 8, 2009 | In Java, Eclipse | No CommentsTo 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);
}
…
5 short Eclipse 3.5 links
July 8, 2009 | In Tools, Eclipse | No Comments- Eclipse 3.5 - New and Noteworthy
- Ten Tips for Installing Plugins in Eclipse Galileo
- Eclipse RCP - Tutorial with Eclipse 3.5 (Galileo)
- Memory analysis with Eclipse 3.5
- Open Eclipse 3.5 Bugs
How-to: Eclipse Commands
February 8, 2009 | In Java, Links, Eclipse | 1 CommentIf you searching for good eclipse commads instructions, see here…
Six good articles by Prakash G.R.:
- Commands Part 1: Actions Vs Commands
- Commands Part 2: Selection and Enablement of IHandlers
- Commands Part 3: Parameters for Commands
- Commands Part 4: Misc items …
- Commands Part 5: Authentication in RCP applications
- Commands Part 6: Toggle & Radio menu contributions.
Other articles:
- Using advanced features in Eclipse popup menus
- Advanced features in Eclipse popup menus – Take 2: The new API
- Commands in die Toolbar einfügen
and the standard set of references:
Powered by WordPress. Theme based on Pool theme design by Borja Fernandez.
Entries and comments feeds.
Valid XHTML and CSS. ^Top^


