The Eclipse Neon DemoCamp in Trondheim

Trondheim Eclipse Neon Demo Camp - 8

For the sixth year in a row Itema has hosted an Eclipse DemoCamp in Trondheim. And even though I might be biased; I would have to say it was a real pleasure. There was the usual, fairly small crowd and a few new faces. The friendly atmosphere, excellent food and beverages and really top notch presentations made it one of my highlights of the Eclipse-year.

Over the years, there has been a clear trend towards more science content in our event. Personally I really enjoy this. There are plenty of talks on how to do this and that with Eclipse, but not so many on how Eclipse technologies are used in science and research. I hope that next year we can make better use of this knowledge and have even more attendants from the science community.

After a warm welcome by Lone Madsen, the CEO of Itema, we saw Ralph Müller of the Eclipse Foundation give an introduction to the work of the foundation and how open source has changed the way one can do business in consulting and in the software industry in general.

Next up was Hallvard Trætteberg, a professor at NTNU, to give us an introduction to Eclipse Sirius and how it can be used to model the genealogy of Pokemons 😄 Hallvard often uses Eclipse technologies in his classes, so it was interesting to see how he leverages good documentation and API in open source projects to help students understand software development.

As a follow-up on the Sirius introduction: Erlend Stav from SINTEF ICT talked about how Eclipse Sirius is being used in a EU project to model sensors, actuators and the relationship between these in a complex structure, such as in a modern airplane. Apparently a modern Airbus has several hundred kilometers of cabling that weighs a total way-too-much, so this can be improved using smarter modules. Open source technologies is playing a big role in this. This resulting code is not open source though.

Håvard Heierli-Nesse from MARINTEK introduced us to the world of 3D modeling and the Eclipse Advanced Visualization Project (EAVP). This project is part of the Eclipse Science Working Group’s efforts to lower the bar on developing scientific applications. In particular visualization of problems and post-processing results. In this case 3D models of both. He demonstrated their current solution using a commercial rendering engine and what can be achieved with EAVP rendering using JavaFX. It was clear that EAVP has a way to go, but the point was that EAVP abstracts the rendering layer. Utilizing this technology allows you to ignore the nitty-gritty OpenGL and whatnots, so you can focus on getting your model representation right. Also he demonstrated how the numerical arrays in the Eclipse January API (also from the SWG) can be directly plugged into EAVP for rendering. He also mentioned that JavaFX is not the only rendering option for EAVP; ParaView and ORLN‘s VisIt can also be used.

This slideshow requires JavaScript.

Traditionally we have brought in a few speakers that have little to do with Eclipse in general. Not only because the Eclipse community in Trondheim is small, but also because it’s interesting to learn from other arenas. So this year Lars Eidnes from Itema gave us a nice introduction to machine learning and showed us the formula to get started solving certain problems using neural networks. It was a bit math-heavy according to some, but as one attendant summed it up: “Aha! That’s how they do it!”.

To follow that up; Per Arnold Blåsmo from Microchip/Atmel Norway explained how a small team’s use of agile practices; in a few years could grow into a pipeline of continuously deploying really complex pieces of software and hardware, in a global company, involving more than 110 developers and 1400 daily build jobs. Not unlike what Eclipse does, except what they’re doing involves a robot pulling microcontrollers from a shelf and connecting them to hardware debuggers to test the software tools as part of the Jenkins jobs. I think the lesson here was that best practices rules, even in a huge company, one just have to convince the management that the engineers knows best how to do their work. Good riddance to the Gantt charts!

Matthew Gerring from Diamond Light Source (DLS) gave us a quick update on the Eclipse Science Working Group, as well as explaining how a synchrotron works, in particular the one located in Oxfordshire, UK. You get a feel of it once you’re actually inside it and the scale is overwhelming, I counted 31 beamlines, which I think equals the number of experiments one can do concurrently, and one beamline is the size of an average sized bedroom I guess. Then he went on into talking about the numerous Eclipse based software at DLS and how they are used. He also demonstrated a new feature in DAWN, their post-processing software, allowing you to do plug-in development from within the DAWN, test it, then deploy either to the running instance or to a marketplace server for sharing. I’m glad the British and the Norwegians share the sense of humor, otherwise his stream of carefully placed jokes would fall on infertile ground. They did not.

We closed the event with a Kahoot quiz before having a couple of beers and moving to the Work-Work gaming lab (and bar).

Using Hi-DPI icons in Eclipse Neon M7


EclipseCon France is taking place in a few weeks so I figured it’s about time I started working on my presentation and get distracted doing so. This year I’m talking about How Mylyn Docs can be a powerful tool. For the EclipseCon North America version of this talk I wrote a very basic LaTeX equation editor to show how you can easily integrate mathematical expressions into your PDF or EPUB using the Mylyn Docs API with a few extras. It has content assist and shows an icon illustrating the macro to the left of the text, as most of these implementations in Eclipse. Now rendering a more advanced mathematical operator or greek letter in 16×16 pixels just makes it look horrible, so I’ve been waiting for the day when I can use high(er) resolution images. That was only one of the reasons it was slightly embarrassing demonstrating that editor.

Support for high-DPI displays in Eclipse has been in the works for about four years. For those of us on a “retina” MacBook, the lack of it has not been much of a problem since fonts could be fixed with a simple setting and images are automatically scaled. Images appeared blurred, but that was it. However on Windows and Linux icons have been tiny, making Eclipse practically useless in some configurations.

Since Eclipse 4.6 milestone 6, presentation on high DPI monitors has improved. Images are now automatically scaled to the correct size also on Windows and Linux. The one bit that is missing is providing support for higher resolution icons, typically at 2x and 1.5x. I went digging through bug reports and code to see how this can be done. The bad news is that it’s not yet quite in place, the good news is that you can get it to work, and I guess it will be ready by the Neon release. There were a few bits that caught my attention:

  • The zoom level currently used by the operating system is exposed through the system property org.eclipse.swt.internal.deviceZoom. You should not have to care about that.
  • There is a SWT snippet for testing use of DPI-aware image constructors at the usual location.
  • There is a debug option to enable high-DPI images via the “@2x” filename convention. Yummy!

I’m really happy that the team behind the implementation chose this approach. It makes it so easy to add the new images and it does not break backwards compatibility. So I changed my target platform to use 4.6M7 and did some minor changes to the code in addition to generating the higher DPI image files. I used ImageDescriptor imageDescriptor = ImageDescriptor.createFromURL(url) to create the ImageDescriptor for each icon, as it appears that this is (only) the way to go. Earlier I was using the file path. That way the mechanism that detects the “@2x” suffix will be activated and the icon will be “magically” rendered correctly. I also added some debug options to my launch configuration to enable it:

Notice that in the screenshot above, the editor icon is also rendered in the 2x version. It was simply a matter of adding a new image in double the size with the “@2x” suffix. So we have icon.png, icon@1.5x.png and icon@2x.png.

For reference here is the 1x version:


I don’t know when we can officially use this feature and I am jumping the gun, but I think we should get started already and prepare our plug-ins. High DPI displays are here to stay. Thanks to everyone that has been working on this, you guys are awesome! I’m certainly looking forward to using Eclipse with beautifully rendered @2x-icons 😄

Oh, and if you want to learn about how to easily generate PDFs, EPUBs and more, including equations, using the Mylyn Docs API, meet me at EclipseCon France. And for those interested in the equation writer; there is a decent preview, utilizing MathJax for the LaTeX rendering.


EclipseCon North America 2016 Retrospective

It’s been almost a month since EclipseCon North America 2016 closed, but I figured it is not too late to write a short retrospective, so here goes.

EclipseCon is a series of conferences arranged by the Eclipse Foundation in the USA, France and Germany. In addition we have Eclipse Summit India, which is a new conference this year. The conferences in the USA and France are the smaller ones with almost half the number of visitors compared to the one in Germany. All are stretched over three or four days, but with slightly different focus.

For many, Eclipse is a Java IDE, but in reality Eclipse is an organization that hosts a number of activities. For example the Science Working Group which has teamed up to build scientific software and the IoT Group which does the same thing for the Internet of things.

This year’s EclipseCon North America (ECNA) was in Reston, Virginia from the 7th to the 10th of March. The first day was mostly tutorials, one before lunch and one after. I attended “The ins and outs of high-performance modeling and simulation with Eclipse” and the members meeting after lunch. This is a yearly thing where the organization’s financials and member numbers are presented. We also got an update on the FEEP-program where the foundation is financing development and improvements of core Eclipse components. This is a fairly new initiative to improve the platform in areas where the members are not focussing. We were also told that there are now 302 projects hosted and the number of member organizations is close to 300 – both numbers are increasing slowly.

The keynote on Tuesday was given by Tyler Jewell from Codenvy which amongst other things announce the Eclipse Che release. This is a neat browser based IDE with support for Java, Node.js, PHP and more. The presentation was supplemented by representatives from RedHat and Microsoft. The latter announced that they are joining the Eclipse Foundation as solution provider members.

Tuesday I was attending several good talks, I’d like to mention Johan Stokking from the The Things Network: These people have created (crowdsourced) a network of LoRaWAN portals around Amsterdam which lets the little things of the Internet connect in a cheap and safe way. If you’re into IoT you should definitely check this out.

New this year at ECNA was a “Science Track” with presentations related to the projects in the Eclipse Science Working Group. EclipseCon France started this track in 2015 and we also had one at EclipseCon Europe later in 2015. This time the number of talks was nearly doubled – to thirteen. There was a lot exiting talks in this track and I think it is clear that the Science Working Group is maturing – only a couple of years after it was started.

Wednesday got a unexpected start. The keynote speaker for Thursday called in sick and someone should replace her. Could the Science Working Group step up? We said yes without actually thinking about it, but as it turned out that was not a problem. Everyone helped out and I think we pulled off a decent keynote. I’ve certainly seen my share of worse ones.

This slideshow requires JavaScript.

In the evening on the same day we arranged the yearly general meeting in the Science Working Group (SWG). At the end of this we had presentations from the Canadian Space Agency that showed Apogy and Halliburton that demonstrated software for analyzing geology in relation to oil-and gas-extraction. Yours truly was re-elected as a secretary for the SWG steering committee and Jay Billings was reelected as leader for the committee.

Thursday it was my turn to do a presentation about “Mylyn Docs and how it can be a powerful tool“. The room was nearly full, so I was pleased although I did not get as many questions as expected. I was approached later on by several of the attendees so I take this as an indication that others also think working on documentation generation tools can be fun 😄. The source code with examples is on GitHub.

I should add that even after ten years of going to Eclipse Conferences I still think they are awesome. You get to meet interesting and smart people, learn new things and inspire others. Some things are the same old, while others are in the forefront of technology and new developments. The conferences are pretty intense as there is a lot going on over the four days – so doing a writeup like this is not quite doing them justice. If you don’t believe me, come see for yourself.

The next Eclipse-conference is EclipseCon France in June and we also have one event here in Trondheim, The Eclipse DemoCamp Trondheim in August.

See you there…

Call for papers, EclipseCon Europe 2015

Time flies when you’re having fun! EclipseCon France has just finished and it’s already time to plan for EclipseCon Europe 2015 in November. The call for papers is out, and you should not miss the chance to present at the tenth European Eclipse Conference. It’s a great opportunity to meet people and show off your technology.

The first Eclipse Summit Europe was convened in 2006 – a two day event in the charming town of Esslingen am Neckar just south of Stuttgart. Since then the conference has been at the Forum am Schlosspark in Ludwigsburg, also in the Stuttgart region. In 2011, for the tenth anniversary of Eclipse, the name was changed to EclipseCon Europe. The number of attendees, from around 30 different countries, have been growning steadily to about 600 in 2014. It’s now a three day event, well packed with activities and interesting talks. This year we’re even adding a science track for talks about the tools on the scientific workbench.

The deadline for EclipseCon Europe submissions is the 31. of July, so you have a whole month to work on your abstract!

You may also consider submitting a paper for the Trondheim Eclipse Mars DemoCamp in August. We have space for a couple more talks and it’s a good opportunity to try your talk on an Eclipse-savvy audience before the real deal at EclipseCon.

See you there!

Timekeeper for Eclipse released

The "Timekeeper for Eclipse" workweek view.

For the past two-three months I’ve been building a timekeeper plug-in for Eclipse to keep track of how much time I spend on each task and project. What started out as an experiment in using the latest Java 8 APIs, specifically DateTime and Streams, has at least for me become a useful tool. There are a few more features I’d like to add before I consider it done, but since it’s been working just fine for quite a while I decided to share. Feel free to try it out and let me know if there are any issues using the GitHub tracker. Note that you need to run Eclipse on Java 1.8 and that Mylyn Tasks also must be installed.

Whenever a task is activated in Mylyn it will automatically show up in the Workweek view with a bold label, and the amount of time the task is active per day will be tracked. However if you go AFK for more than one minute the time will not be automatically added – when you’re back you will be asked how to handle this. The time can be manually edited by clicking into a cell.

There is built in support for GitHub, JIRA and Bugzilla task repositories, however other repository types should also work. Tasks from GitHub are grouped by the name of the first query they appear in. Tasks from Bugzilla repositories are grouped by the “product”. Which field to use for JIRA is undefined so one must be selected. This can be done by right clicking on a task and selecting a field from the Set Grouping Field… menu.

Note that the timekeeping data are stored in the task repository so they follow your workspace. If the workspace is lost, so is the timekeeping data.

See the GitHub page for more details and the code. The installer can be found at the Eclipse Marketplace – or you can drag  into an running Eclipse instance.