Hazelcast USA Trip, EastBayJUG and Coffee

Fuad and I will be in USA. Our schedule is below. I am sure we can squeeze a coffee break somewhere if you are near-by and would like to meet. Please drop an email (talip@hazelcast.com). We will also speak at SF EastBayJUG on 13th. Here is the link to sign up: http://www.meetup.com/eastbayjug/events/42096972/ Dec 4-6 Atlanta, GA […]

Hazelcast 1.9.4 is released!

1.9.4 is now final. We all have been waiting for this release long enough. Now it is time to enjoy it! Other news: Our new product: Hazelcast Elastic Memory: Off-heap memory storage to avoid GC pauses. New features are added into our Management Center product such as map config change in-runtime and TimeTravel. We will […]

Hazelcast Elastic Memory

We made pretty good progress in our new product, Hazelcast Elastic Memory: Hazelcast with off-heap memory storage to avoid GC pauses. We have been working on it for months and we are already quite impressed with the results. Even if you have terabytes of cache in-memory with lots of updates, GC will have almost no […]

Using AspectJ in Ecplipse RCP

If you try to export an AspectJ enabled Eclipse RCP 3.6, you will notice that none of your pretty aspects is compiled.
Before Eclipse 3.6 there was an export option as “Export Product with AspectJ”.

But since version 3.6 you will not see that option. Instead you should just add AspectJ compiler adapter into your build.properties file:

compilerAdapter = org.eclipse.ajdt.core.ant.AJDT_AjcCompilerAdapter
sourceFileExtensions = *.java, *.aj

Migrated from old blog: using-aspectj-in-eclipse-rcp

JFreeChart in Eclipse RCP & SWT

To use JFreeChart in a Eclipse RCP project or simply embed in an SWT composite, you have two applicable choices:
org.jfree.experimental.chart.swt.ChartComposite from JFreeChart SWT experimental project, which I can not say works seamless.

SWT_AWT bridge, hmm, not perfect but plays its role better.

  • Create a container composite with SWT.EMBEDED style (required for SWT_AWT).
Composite container = new Composite(parent, SWT.EMBEDDED)
  • Create new AWT Frame using container.
java.awt.Frame chartFrame = SWT_AWT.new_Frame(container)
  • Create a JFreeChart ChartPanel and append on chartFrame. (This should be done in AWT Event Thread)
SwingUtilities.invokeLater(new Runnable() {
     public void run() {
          ChartPanel chartPanel = new ChartPanel(chart, true);
          chartFrame.add(chartPanel);
     }
})

That’s it!

Migrated from old blog: jfreechart-in-eclipse-rcp-swt