RCP app,: pb with KEPLER when moving views inside a perspective [message #1065852] |
Thu, 27 June 2013 15:25  |
Eclipse User |
|
|
|
Hello,
I have a RCP app, that was based on a Juno target platform; I tried to switch to Kepler. Now, when I move a view inside a perspective, I do no longer see the green border / rectangle indicating where the view will go on; Instead of that, I see a light grey rectangle, quite invisible, since having the same colour as the default background of the application. This makes moving views much less intuitive for final users.
Is there a way to restore the previous behaviour ?
Note: Inside Eclipse Kepler IDE, I still see the green rectangle; I have the problem only inside my RCP app.
Thanks,
Bernard.
|
|
|
|
|
|
Re: RCP app,: pb with KEPLER when moving views inside a perspective [message #1075875 is a reply to message #1066130] |
Tue, 30 July 2013 04:42  |
Eclipse User |
|
|
|
Okay,
Finally I could fix the issue by adding styling support to my application, as described here:
http://fr.slideshare.net/toedter_k/css-styling-for-eclipse-rcp-3x-and-4x :
in ApplicationWorkbenchAdvisor, I added:
@Override
public void initialize(IWorkbenchConfigurer config) {
Bundle b = FrameworkUtil.getBundle(getClass());
BundleContext context = b.getBundleContext();
ServiceReference<?> serviceRef = context.getServiceReference(IThemeManager.class.getName());
IThemeManager themeManager = (IThemeManager) context.getService(serviceRef);
final IThemeEngine engine = themeManager.getEngineForDisplay(Display.getCurrent());
engine.setTheme("mail.themeClassicWin7", true);
}
In plugin.xml
<extension point="org.eclipse.e4.ui.css.swt.theme">
<theme basestylesheeturi="css/e4_classic_win7.css"
id="mail.themeClassicWin7" label="Classic Win 7">
</theme>
</extension>
* AND *
<extension id="product" point="org.eclipse.core.runtime.products">
<product
application="mail.application"
name="RCP Product">
(...)
<property
name="cssTheme"
value="org.eclipse.e4.ui.css.theme.e4_default">
</property>
</product>
</extension>
The css files are available in org.eclipse.platform, I just copied them under mail/css folder.
Hope that Helps,
Bernard.
|
|
|
Powered by
FUDForum. Page generated in 0.07581 seconds