Category Archives: Java

OSGi Component Testing

In my last blog post I talked about Getting Started with OSGi Declarative Services. In this blog post I want to show how to test OSGi service components. Unit testing / “white-box testing” The first approach for testing components is … Continue reading

Posted in Dirk Fauth, Eclipse, Java, OSGi | Comments Off on OSGi Component Testing

Make Retrofit ready for usage in OSGi

Retrofit is a really great library for addressing  REST APIs. It is often used for Android apps, because it is really lightweight and easy to use. I’d also love to use this library for my Eclipse 4 RCP applications, so … Continue reading

Posted in Eclipse, Java, OSGi, Simon Scholz | Comments Off on Make Retrofit ready for usage in OSGi

Eclipse Hackathon Hamburg, January, 23rd 2015

We like to announce this coming Eclipse event again, since this is such a great Eclipse community event. So please don’t miss the change to be a part of it. In Hamburg and its surroundings there are so many Eclipse … Continue reading

Posted in Eclipse, Java, Other, Simon Scholz, vogella | Tagged , , | Comments Off on Eclipse Hackathon Hamburg, January, 23rd 2015

Migration to JUnit 4

When you’re facing the issue to migrate your JUnit 3 tests to JUnit 4, it can be very annoying, because of course you all have a lot of tests. 😉 In general it is a mindless task to migrate things … Continue reading

Posted in Eclipse, Java, Simon Scholz | Tagged , , , | Comments Off on Migration to JUnit 4

Accessing the caller information of a method in Java code

Sometimes it is nice to access the caller of a method. Doing this is relatively simple, you can use the getStackTrace() method on the current thread. This returns the call stack in reverse order, e.g. the first element is the … Continue reading

Posted in Java | Tagged | 3 Comments

LanguageTool

The mission of vogella is to provide everyone with developer knowledge in plain simple English whether by online tutorials, books or training materials. Improving the text quality is a constant endeavour. It has to be done, because flawed texts become hard … Continue reading

Posted in Eclipse, Java, Matthias MailÀnder, vogella | Comments Off on LanguageTool

Using Eclipse application model persisted state to specify the SWT stylebits

With Eclipse Luna M6 and M7 we introduced the possibility to set the stylebits for user interface controls via persisted state data. Use “styleOverride” as key and the integer value for the SWT stylebits you want to use. For example … Continue reading

Posted in Eclipse, Java, Lars Vogel | Tagged , | 2 Comments

Porting Eclipse 3.x RCP application to Eclipse 4.4 – now without QuickAccess box

Lots of Eclipse 3.X RCP application which switched to Eclipse 4 as runtime complained that they get the QuickAccess search bar of the Eclipse IDE for “free”. Thanks to RenĂ© Brandstetter for solving Bug 411821 this does not happen automatically … Continue reading

Posted in Eclipse, Java, Lars Vogel | Comments Off on Porting Eclipse 3.x RCP application to Eclipse 4.4 – now without QuickAccess box

Install Java8 on Ubuntu

The following commands allow you to install Java 8 on your Ubuntu machine. sudo add-apt-repository ppa:webupd8team/java sudo apt-get update sudo apt-get install oracle-java8-installer

Posted in Java | Tagged | Comments Off on Install Java8 on Ubuntu

Google Summer of Code at Eclipse

I would like to introduce myself. I’m Hendrik and currently I’m participating at the Google Summer of Code this year with a coding project at Eclipse.org. The Google Summer of Code is a program by Google to motivate students (like me) … Continue reading

Posted in Eclipse, Hendrik Still, Java, Other | Tagged | Comments Off on Google Summer of Code at Eclipse