Blog Archives

[Snippet] Find out a monitor’s size / resolution in Eclipse SWT, on a multi-monitor setup

Recently I needed to find out the resolution of the monitor that is displaying my Eclipse RCP application, while I had two monitors in use. In SWT, this can easily be done using org.eclipse.swt.widgets.Monitor.getBounds(), which canbe utilized in a multi-monitor

Tagged with: , , , , , , , ,
Posted in Eclipse RCP, Snippet, SWT

[Eclipse Expressions] Control the visibility of Eclipse RCP menu contributions depending on text selection with PropertyTesters

For seasoned RCP developers, this will be yesterday’s news I guess. However, I have just spent more than the usual 10 minutes on finding a solution to my problem, so I thought it’d be good to provide a quick write-up.

Tagged with: , , , , , , , , , , , , , , , ,
Posted in Eclipse RCP, Tutorial

Eclipse GEF Tutorial: Secondary layout for multiple children of a PolylineConnection with ConnectionLocator and RelativeLocator

In an Eclipse GEF editor I am developing, PolylineConnections can have multiple children (of a type extending org.eclipse.draw2d.Label). I’ve wanted them to be located at ConnectionLocator.MIDDLE, but they should also have a secondary layout, similar to ToolbarLayout (i.e., ordered in

Tagged with: , , , , , , , , , , ,
Posted in Draw2D, Eclipse RCP, GEF: Eclipse Graphical Editing Framework, Tutorial

List of EMF Notification event types (event type name – int)

Just a very quick post today, which will hopefully be useful to someone other than myself as well. When using the org.eclipse.emf.common.notify.Notification interface in Eclipse GEF editors, more precisely in any extensions of Adapter or EContentAdapter (cf. respective tutorial at

Tagged with: , , , , , , , , , , , ,
Posted in Eclipse RCP, EMF: Eclipse Modeling Framework, GEF: Eclipse Graphical Editing Framework, Resources

Building a cross-platform, feature-based Eclipse RCP Product with Tycho II: Mind your OSs

If you have followed Building a cross-platform, feature-based Eclipse RCP Product with Tycho (the umpteenth), and have run the build on a Windows system, you will have ended up with non-executable products for Mac OS X and Linux. What this

Tagged with: , , , , , , , , , , , , , , , , , , , , , ,
Posted in Build, Eclipse RCP, Operating System, Tutorial, Tycho

Dynamically calculating the position constraints for a figure in a GEF editor layout in relation to another figure

I’ve worked on the implementation of a GEF editor for an EMF-based model, using both the GEF book and vainolo‘s great GEF tutorials. The model consists of several types of nodes and connections, with different layout requirements for the display

Tagged with: , , , , , , , , , , , , , ,
Posted in Draw2D, GEF: Eclipse Graphical Editing Framework, Tutorial

Building a cross-platform, feature-based Eclipse RCP Product with Tycho (the umpteenth)

DISCLAIMER: This solution was tested with Eclipse Indigo (3.7.2), Java JDK 1.6.0_37, Tycho 0.16.0, using a Target Definition which contains p2 repositories only, and a Product Definition which is feature-based. A “delta pack” is not needed, as all necessary plug-ins

Tagged with: , , , , , , , , , , , , , , , , , , , ,
Posted in Build, Eclipse RCP, Maven, Tycho

A Stack Exchange site for the Eclipse community?!

Earlier this week, I’ve been listening to Episode #87 of the (then) Stack Overflow Podcast, where Jeff Atwood and Joel Spolsky as well as the (then) new Community Coordinator Robert Cartaino discussed some of the fundamental features of and ideas

Tagged with: , , , , , , , , , , ,
Posted in Discussion

EclipseCon Europe 2012 – lessons learned

Last week I went to my first ever developer conference (apart from a local Eclipse Demo Camp for the Juno release): EclipseCon Europe 2012. It could be summed up in one word: GREAT! In the course of the conference, I’ve

Tagged with: , , , , , , , , , , ,
Posted in Misc
About this blog
This blog documents my advances in learning how to develop software using Java and the Eclipse RCP.
I’m a
Support NCOTB

If you found this site helpful, perhaps you may want to consider donating a small sum towards my server costs.

Recent Tweets
Advertisement

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 18 other subscribers