* You are viewing Posts Tagged ‘RCP’

Icons in preferences dialog in Eclipse

When you’re working on custom RCP based applications you’re sometimes forced to change visual aspects of parts of the application that are provided by Eclipse RCP itself. Preferences is a good example of that visual aspect. Since we want to reuse code from RCP as much as possible we decided to use JFace preferences dialog.

After implementing first pages we were pointed out that items should have icons next to label. I thought I would have to patch JFace plug-in to achieve that, but I was wrong! Preferences dialog (and therefore Properties dialog) have undocumented functionality of showing image next to item on the tree view and above content composite. No coding is required to achieve that!

Here’s how preference page (in this case wklej.org plug-in’s page) is shown

Preferences without icons

After adding attribute icon to extension point we’re presented with nice image

Preferences with icons

And here’s modified extension point entry in your plugin.xml (or fragment.xml):

<extension point="org.eclipse.ui.preferencePages">
    <page
        class="org.example.plugin.preferences.ExamplePreferencePage"
        id="org.example.preferencepage" name="Preference page with image"
        icon="images/example.png">

    </page>
</extension>

Notice that Eclipse will show you a warning that icon element is illegal. Fortunately it just a warning, and extension point org.eclipse.ui.preferencePages does support images (icons) but it just doesn’t expose this publicly.

As you can see on the screenshots above, placing image in a plug-in that will be used in standard Eclipse IDE just looks wrong, I agree. But for a custom applications, when you’re providing all pages, it looks great and helps non-developers to find what they’re looking for.

On the other note, I would like to welcome everyone at Eclipse Planet. It’s a pleasure to be here :-)

Example plug-ins from Eclipse DemoCamp are now available

It took a while to find some spare time to write JavaDoc comments (with the exception of org.khrone.example.app.rssview plug-in) but I’ve finally managed to do that and here it is. Simple application that I’ve presented during my presentation.

Download it here:
1.0.0 - org.khrone.example.app (426.08 KB)

RssView plug-in includes software developed by the JDOM Project and Project ROME

Eclipse DemoCamp podsumowanie

Pierwszy wrocławski Eclipse DemoCamp za nami. Jak wynika z blogu Grześka udało nam się osiągnąć zamierzony sukces. W obecnej chwili nie mam zbyt wiele czasu aby napisać troche więcej na temat spotkania, ale postaram się w ciągu paru dni zamieścić kod źródłowy aplikacji które demonstrowałem podczas swojej prezentacji.

Eclipse DemoCamp we Wrocławiu

Eclise & Java

Na sobotę, 25 Listopada, zaplanowane jest pierwsze we Wrocławiu Eclipse DemoCamp. To będzie już moja druga impreza eclipsowa, pierwsza zaś na którym będę pełnił rolę prezentera.

Temat dość obszerny, a mianowicie: “Tworzenie aplikacji w oparciu o Eclipse RCP”.

Planuję swoją prezentacją zainteresować innych programistów do tworzenia aplikacji okienkowych w oparciu o już istniejące fundamenty jakimi właśnie jest Eclipse Rich Client Platform. Postaram się przybliżyć podstawy budowania takiego typu aplikacji, od czego zacząć, co dostajemy gratis, co musimy dopisać samemu, itp.

Ponadto prezentować będą:

  • Jacek Pospychała, IBM Eclipse Support Center - Eclipse RAP
  • Grzegorz Białek, Sygnity - Eclipse Modeling (DSL)

Godzina i miejsce spotkania: 11:00, lokalizacja nie została jeszcze potwierdzona ul. Robotnicza 46 ul. Strzegomska 140.

Zapraszam wszystkich chętnych, a tych co nie mogą, to komunikuje, że wszelkie prezentacje będą dostępne na Wiki Eclipse.