Home Forums Wiki Doc Install Extras Screenshots Source Code Projects Blog Users Groups Register
Glx-Dock / Cairo-Dock List of forums Problems at use | Problèmes à l'utilisation Several different launchers for eclipse steal each other's running instances
The latest stable release is the *3.4.0* : How to install it here.
Note: We just switched from BZR to Git on Github! (only to host the code and your future pull requests)
Problems at use | Problèmes à l'utilisation

Subjects Author Language Messages Last message
[Locked] Several different launchers for eclipse steal each other's running instances
Guest English 7 Guest [Read]
17 July 2014 à 17:55

Guest, Wednesday 29 May 2013 à 09:34

I usually run several instances of eclipse at the same time.

These are not the same binaries. They live in different folders and I even renamed the binaries (
$HOME/dev/eclipse/sdk/3.8/eclipse38
,
$HOME/dev/eclipse/sdk/eclipse42
and so on...).

I want to have several separate launchers, icons for each eclipse version and I therefore added a few launchers in the $HOME/.conf/current_theme/launchers

It all works nearly OK, except that the launchers "steal" each others running instances and you don't know where to click anymore in the dock to select one of these.

I've tried both grouped and ungrouped options. I'm running 3.1.0.

Thanks for any suggestions.

P.S. Thanks to all these Frenchies (Mint + glx-dock make my desktop life bearable )

Guest, Wednesday 29 May 2013 à 17:49

OK. I think it's OK now.

But that took longer than what I hoped for.

1. Basically like other docks, Cairo/Glx dock use X windows WM_CLASS to group applications.

2. Eclipse is based on SWT/JFace which use the native graphic toolkit to implement the GUI part of the IDE.

3. In X-Windows based SWT implementations the WM_CLASS is set as the name attribute of the SWT Display class.

4. Digging into the classes of eclipse one can follow the Ariadne thread:

org.eclipse.e4.ui.internal.workbench.swt.E4Application.start (I was looking at a 4.2.SR2 aka Juno version)
Display.setAppName(product.getName());
-----8<----
org.eclipse.core.runtime.Platform
public static IProduct getProduct() { return InternalPlatform.getDefault().getProduct(); }
-----8<----
org.eclipse.core.internal.runtime.InternalPlatform
EclipseAppContainer container = Activator.getContainer();
IBranding branding = container == null ? null : container.getBranding();


5. So basically you end up looking into plugin.xml for org.eclipse.epp.package.jee_xxxx

6. To get xprop to show you a different WM_CLASS than "Eclipse", modify the following keys (especilly the 2nd one)
<product
application="org.eclipse.ui.ide.workbench"
name="eclipse42">
...
<property
name="appName"
value="eclipse42">


If that doesn't fly on the long run, I'll post an update here.

Guest, Wednesday 29 May 2013 à 18:08

Tsmee again...

For 3.8.2 non Java EE, look into

/plugins/org.eclipse.sdk_3.8.2_xxx/plugin.xml


Also always start with

eclipse -clean


In some versions, ajdt does protest a little bit because of the cache being cleaned up, but then it gradually calms down after a few invocations. The exact message being

[org.eclipse.ajdt.core] error at org/eclipse/ajdt/some class class 'org.eclipse.ajdt.core.SomeClass is already woven and has not been built in reweavable mode

matttbe, Friday 31 May 2013 à 21:12


Subscription date : 24 January 2009
Messages : 12573
Hello,

Thank you for this tips

I didn't check but maybe the -name <String> option can also help.

alainPannetier, Thursday 06 June 2013 à 21:26


Subscription date : 29 May 2013
Messages : 4
This is one of the first things I tried as well but it does not seem to work as expected.

At least xprop does not recognize the WM_CLASS.

BTW, how do I mark this topic SOLVED? I was only connected as guest when I started it.

matttbe, Thursday 06 June 2013 à 22:45


Subscription date : 24 January 2009
Messages : 12573
Ok, good to know

BTW, how do I mark this topic SOLVED? I was only connected as guest when I started it.
Done

Guest, Thursday 17 July 2014 à 17:43

Hi,

This used to work, but it seems that since I updated to final release (Version: Luna Release (4.4.0)), it doesn't work anymore.
Of course, I did patch the plugin.xml file again after it was overwritten by the update.

Eric

Guest, Thursday 17 July 2014 à 17:55

Well, forget what I said above. Launching once from the terminal with -clean cured it.

Eric

Problems at use | Problèmes à l'utilisation

Subjects Author Language Messages Last message
[Locked] Several different launchers for eclipse steal each other's running instances
Guest English 7 Guest [Read]
17 July 2014 à 17:55


Glx-Dock / Cairo-Dock List of forums Problems at use | Problèmes à l'utilisation Several different launchers for eclipse steal each other's running instances Top

Online users :

Powered by ElementSpeak © 2007 Adrien Pilleboue, 2009-2013 Matthieu Baerts.
Dock based on CSS Dock Menu (Ndesign) with jQuery. Icons by zgegball
Cairo-Dock is a free software under GNU-GPL3 licence. First stable version created by Fabounet.
Many thanks to TuxFamily for the web Hosting and Mav for the domain name.