Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » RCP issues (view titles, toolbar, quick access)
RCP issues (view titles, toolbar, quick access) [message #893532] Wed, 04 July 2012 09:17 Go to next message
Oleg Danilov is currently offline Oleg Danilov
Messages: 21
Registered: July 2012
Junior Member
I just installed 4.2 and found 3 issues (see attached pic) with my simple RCP application:

index.php/fa/10566/0/

1. toolbar is right aligned
2. viewpart titles are missed
3. new 'quick access' field which is useless for me

On #3 seems like it is hard-coded somewhere and can't be removed, correct?

Any ideas about #1 & #2?

Thanks.
Re: RCP issues (view titles, toolbar, quick access) [message #893582 is a reply to message #893532] Wed, 04 July 2012 13:11 Go to previous messageGo to next message
Brian de Alwis is currently offline Brian de Alwis
Messages: 242
Registered: July 2009
Senior Member
#1 and #3 are known and we'll deal with them for 4.3.

#2 is bizarre: I've never seen anything like it. Are there any errors in your log? Are you using the old themes support? Can you reproduce with the RCP Mail example? If not, please file a bug report against Eclipse Platform UI and attach your .metadata/.plugins/org.eclipse.e4.workbench/workbench.xmi.

Brian,
Re: RCP issues (view titles, toolbar, quick access) [message #893666 is a reply to message #893582] Thu, 05 July 2012 03:59 Go to previous messageGo to next message
Oleg Danilov is currently offline Oleg Danilov
Messages: 21
Registered: July 2012
Junior Member
Brian de Alwis wrote on Wed, 04 July 2012 13:11
Are there any errors in your log? Are you using the old themes support?


There are no error in the log. I didn't change anything in my app developed using 3.7, and frankly say, I have no ideas about themes support.

Quote:
Can you reproduce with the RCP Mail example?


No, but mail example has another issue:

index.php/fa/10572/0/
Re: RCP issues (view titles, toolbar, quick access) [message #893692 is a reply to message #893582] Thu, 05 July 2012 05:47 Go to previous messageGo to next message
Oleg Danilov is currently offline Oleg Danilov
Messages: 21
Registered: July 2012
Junior Member
Brian de Alwis wrote on Wed, 04 July 2012 13:11

#2 is bizarre: I've never seen anything like it.


I just found the reason. These views are configured as standalone in the org.eclipse.ui.perspectiveExtensions. 3.7 shows titles for standalone views, 4.2 - doesn't.
Re: RCP issues (view titles, toolbar, quick access) [message #893705 is a reply to message #893692] Thu, 05 July 2012 06:22 Go to previous messageGo to next message
Sopot Cela is currently online Sopot Cela
Messages: 505
Registered: December 2010
Senior Member

It would be great if you could file a bug related to that here https://bugs.eclipse.org/bugs/enter_bug.cgi?product=Platform&component=UI so it can be fixed.
Thanks.
Re: RCP issues (view titles, toolbar, quick access) [message #893743 is a reply to message #893705] Thu, 05 July 2012 08:42 Go to previous messageGo to next message
Sopot Cela is currently online Sopot Cela
Messages: 505
Registered: December 2010
Senior Member

I noticed you filed them. For reference to others: https://bugs.eclipse.org/bugs/show_bug.cgi?id=384344 and https://bugs.eclipse.org/bugs/show_bug.cgi?id=384345
Re: RCP issues (view titles, toolbar, quick access) [message #1007090 is a reply to message #893743] Mon, 04 February 2013 07:12 Go to previous messageGo to next message
govind Mising name is currently offline govind Mising name
Messages: 92
Registered: July 2009
Member
Hello All,



1. toolbar is right aligned facing the same issue.

This occurs when we try to add tool bar actions using plugin.xml
<extension
point="org.eclipse.ui.menus">
<menuContribution
allPopups="false"
locationURI="toolbar:org.eclipse.ui.main.toolbar?after=additions">
<command
commandId="SampleMail.category"
icon="icons/sample2.gif"
label="Test"
style="push">
</command>
</menuContribution>
</extension>

But doesn't occur when add in ..ActionBar advisor.
protected void fillCoolBar(ICoolBarManager coolBar) {
IToolBarManager toolbar = new ToolBarManager(SWT.FLAT | SWT.LEFT);
coolBar.add(new ToolBarContributionItem(toolbar, "main"));
toolbar.add(openViewAction);
toolbar.add(messagePopupAction);
}

Just WorkAround.


Just override ActionBaradvisor

protected void fillCoolBar(ICoolBarManager coolBar) {
IToolBarManager toolbar = new ToolBarManager(SWT.FLAT | SWT.LEFT);
coolBar.add(new ToolBarContributionItem(toolbar, "main")); <-- is id the
}

Then add the actions

<extension
point="org.eclipse.ui.menus">
<menuContribution
allPopups="false"
locationURI="toolbar:main?after=additions"> <!-- main id-->
<command
commandId="SampleMail.category"
icon="icons/sample2.gif"
label="Test"
style="push">
</command>
</menuContribution>
</extension>

This fixes the issues..
Re: RCP issues (view titles, toolbar, quick access) [message #1116324 is a reply to message #893532] Wed, 25 September 2013 04:48 Go to previous message
Cedric Moonen is currently offline Cedric Moonen
Messages: 244
Registered: August 2009
Senior Member
Hi, I'm bumping this since I have similar problems when upgrading my RCP application from Indigo to Kepler.

Problems 2 and 3 were fixed but problem 1 remains (toolbar which is aligned to the right). I tried the solution provided above (creating a toolbar in the fillCoolBar method of the ActionBarAdvisor class) but this doesn't solve the problem: my toolbar is simply not visible anymore (I used the same Id in the ActionBarAdvisor and in my plugin.xml).

Did anybody fixed this problem ?
Previous Topic:Overriding Ctrl-W behavior
Next Topic:Create product with resources
Goto Forum:
  


Current Time: Mon Oct 07 15:26:07 EDT 2013

Powered by FUDForum. Page generated in 0.02097 seconds