Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » RCP app,: pb with KEPLER when moving views inside a perspective(Green rectangle no longer visible when moving views)
RCP app,: pb with KEPLER when moving views inside a perspective [message #1065852] Thu, 27 June 2013 19:25 Go to next message
Bernard Sarter is currently offline Bernard SarterFriend
Messages: 88
Registered: August 2011
Location: Paris, France
Member
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 #1065993 is a reply to message #1065852] Fri, 28 June 2013 17:05 Go to previous messageGo to next message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

Does your RCP app include the org.eclipse.e4.ui.workbench.addons.swt bundle?

PW

--
Paul Webster
http://wiki.eclipse.org/Platform_Command_Framework
http://wiki.eclipse.org/Command_Core_Expressions
http://wiki.eclipse.org/Platform_Expression_Framework
http://wiki.eclipse.org/Menu_Contributions
http://wiki.eclipse.org/Menus_Extension_Mapping
http://help.eclipse.org/helios/index.jsp?topic=/org.eclipse.platform.doc.isv/guide/workbench.htm


Re: RCP app,: pb with KEPLER when moving views inside a perspective [message #1066033 is a reply to message #1065993] Sat, 29 June 2013 08:02 Go to previous messageGo to next message
Bernard Sarter is currently offline Bernard SarterFriend
Messages: 88
Registered: August 2011
Location: Paris, France
Member
Hello Paul,

Thank you for your reply. YES, my RCP app. includes org.eclipse.e4.ui.workbench.addons.swt (1.0.0.v20130515-1857).

BTW, the app is running on Windows 7 Pro x86_64.

Best regards,
Bernard.
Re: RCP app,: pb with KEPLER when moving views inside a perspective [message #1066130 is a reply to message #1066033] Mon, 01 July 2013 07:41 Go to previous messageGo to next message
Bernard Sarter is currently offline Bernard SarterFriend
Messages: 88
Registered: August 2011
Location: Paris, France
Member
It's in fact possible to reproduce this 'problem' with the Default mail application:
- download & install Kepler
- create a fresh workspace and start the default 'Mail' RCP application
- open several messages
- move a message inside the perspective: there is only a light grey border around the view.

(see attached screenshot).

Note: swt.addons are part of the RCP Mail product.
  • Attachment: rcp_mail.png
    (Size: 25.16KB, Downloaded 192 times)
Re: RCP app,: pb with KEPLER when moving views inside a perspective [message #1075875 is a reply to message #1066130] Tue, 30 July 2013 08:42 Go to previous message
Bernard Sarter is currently offline Bernard SarterFriend
Messages: 88
Registered: August 2011
Location: Paris, France
Member
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.
Previous Topic:User assistance neglect
Next Topic:a method to change current cursor position?
Goto Forum:
  


Current Time: Thu Apr 25 04:33:25 GMT 2024

Powered by FUDForum. Page generated in 0.03326 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top