Blog Archives

[Logging] Using log4j2 with asynchronous loggers via LMAX disruptor in an Eclipse RCP application, incl. solving sun.misc issue

When it was first released, the web was full of praise for Version 2.x of the quasi standard Java logging framework Apache Log4j. One of its main selling points is that it includes asynchronous loggers for low-latency logging, which apparently

Tagged with: , , , , , , , , , , ,
Posted in Eclipse RCP, Log4j, Logging, Maven, Tycho

[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

How to refresh model source/target connection “children” of GEF NodeEditParts

I am currently developing a GEF-based editor for an EMF-based model with the help of the GEF Book, and vainolo’s incredibly helpful blog posts. I had implemented connection creation, following vainolo’s post about connections, but in my editor, the added

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

Getting started with the Eclipse RCP

Everybody has to start somewhere, and as a complete beginner in software development with Java and the Eclipse RCP, I have been, and still am, constantly on the lookout for sources of information. The following books and websites – in

Tagged with: , , , ,
Posted in Resources
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