Skip to main content



      Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Icons initially not visible in perspective
Icons initially not visible in perspective [message #519847] Wed, 10 March 2010 03:42 Go to next message
Eclipse UserFriend
Hi all,
with RAP 1.3.0M5 we run into a strange behaviour. Our application
consists of some perspectives. If I initially start the application, the
perspectives are all shown, but the icons for the commands which are
assigned to the perspective aren't visible. They only appear if I change
the perspective. In the debugger I've seen that the handler for this
perspective isn't called initially (only if I switch to another
perspective and back). The plugin.xml is as follows:


<extension
point="org.eclipse.ui.perspectives">
<perspective
class="my.perspectives.PerspectiveFactory01"
id="my.perspectives.Test01"
name="Test01">
</perspective>
<perspective
class="my.perspectives.PerspectiveFactory02"
id="my.perspectives.Test02"
name="Test02">
</perspective>
</extension>
<extension
point="org.eclipse.ui.commands">
<command
defaultHandler="my.handlers.ShowTest01Handler"
id="my.commands.ShowTest01"
name="Show Test01">
</command>
</extension>
<menuContribution
locationURI="toolbar:my.ui.view.Test01">
<command
commandId="my.ui.commands.Store"
icon="src/main/resources/icons/fam/page_save.png"
label="Save"
style="push"
tooltip="save">
<visibleWhen>
<with variable="activePartId">
<test property="my.test.isEnabled"/></with>
</visibleWhen>
</command>
<command
commandId="my.ui.commands.Create"
icon="src/main/resources/icons/fam/page_add.png"
id="createPulldownCommand"
label="New"
style="push"
tooltip="New">
<visibleWhen>
<with variable="activePartId">
<test property="my.test.isEnabledForCreate"/></with>
</visibleWhen>
</command>
</menuContribution>
</extension>


Even if I omit the visibleWhen part the icons (page_save and page_add in
this case) aren't shown. Has something changed there in RAP?


TIA,
Ralf.
Re: Icons initially not visible in perspective [message #520121 is a reply to message #519847] Wed, 10 March 2010 23:14 Go to previous messageGo to next message
Eclipse UserFriend
Hi Ralf,

Are you using a design provided by the the rap.design.example bundle?
Does it make a difference when you access your application like this:
http://HOST:PORT/rap?startup=ENTRYPOINT

If so, it might be a regression of this bug:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=295451

Regards, Ralf

R. Heydenreich wrote:
> Hi all,
> with RAP 1.3.0M5 we run into a strange behaviour. Our application
> consists of some perspectives. If I initially start the application, the
> perspectives are all shown, but the icons for the commands which are
> assigned to the perspective aren't visible. They only appear if I change
> the perspective. In the debugger I've seen that the handler for this
> perspective isn't called initially (only if I switch to another
> perspective and back). The plugin.xml is as follows:
>
>
> <extension
> point="org.eclipse.ui.perspectives">
> <perspective
> class="my.perspectives.PerspectiveFactory01"
> id="my.perspectives.Test01"
> name="Test01">
> </perspective>
> <perspective
> class="my.perspectives.PerspectiveFactory02"
> id="my.perspectives.Test02"
> name="Test02">
> </perspective>
> </extension>
> <extension
> point="org.eclipse.ui.commands">
> <command
> defaultHandler="my.handlers.ShowTest01Handler"
> id="my.commands.ShowTest01"
> name="Show Test01">
> </command>
> </extension>
> <menuContribution
> locationURI="toolbar:my.ui.view.Test01">
> <command
> commandId="my.ui.commands.Store"
> icon="src/main/resources/icons/fam/page_save.png"
> label="Save"
> style="push"
> tooltip="save">
> <visibleWhen>
> <with variable="activePartId">
> <test property="my.test.isEnabled"/></with>
> </visibleWhen>
> </command>
> <command
> commandId="my.ui.commands.Create"
> icon="src/main/resources/icons/fam/page_add.png"
> id="createPulldownCommand"
> label="New"
> style="push"
> tooltip="New">
> <visibleWhen>
> <with variable="activePartId">
> <test property="my.test.isEnabledForCreate"/></with>
> </visibleWhen>
> </command>
> </menuContribution>
> </extension>
>
>
> Even if I omit the visibleWhen part the icons (page_save and page_add in
> this case) aren't shown. Has something changed there in RAP?
>
>
> TIA,
> Ralf.
Re: Icons initially not visible in perspective [message #520221 is a reply to message #520121] Thu, 11 March 2010 05:34 Go to previous messageGo to next message
Eclipse UserFriend
Ralf Sternberg schrieb:
> Hi Ralf,
>
> Are you using a design provided by the the rap.design.example bundle?
> Does it make a difference when you access your application like this:
> http://HOST:PORT/rap?startup=ENTRYPOINT
>

Hi Ralf,
it doesn't make a difference.

> If so, it might be a regression of this bug:
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=295451

The bug description sounds like the same problem, and the project
content looks similar to mine. But I can't get the example run. I always
get Error 404 if I launch the test project. And initially after
importing the project my IDE complaints about "Access restrictions":

Access restriction: The type PlatformUI is not accessible due to
restriction on required library
C:\MyProjects\plugins\rap-bundles_1.3.0-M5\plugins\org.eclip se.rap.ui.workbench_1.3.0.20100201-1223.jar


I've set a target environment with the new RAP version. Perhaps someone
could check if the bug occurs with the actual Milestone release.

TIA,
Ralf.



>
> R. Heydenreich wrote:
>> Hi all,
>> with RAP 1.3.0M5 we run into a strange behaviour. Our application
>> consists of some perspectives. If I initially start the application, the
>> perspectives are all shown, but the icons for the commands which are
>> assigned to the perspective aren't visible. They only appear if I change
>> the perspective. In the debugger I've seen that the handler for this
>> perspective isn't called initially (only if I switch to another
>> perspective and back). The plugin.xml is as follows:
>>
>>
>> <extension
>> point="org.eclipse.ui.perspectives">
>> <perspective
>> class="my.perspectives.PerspectiveFactory01"
>> id="my.perspectives.Test01"
>> name="Test01">
>> </perspective>
>> <perspective
>> class="my.perspectives.PerspectiveFactory02"
>> id="my.perspectives.Test02"
>> name="Test02">
>> </perspective>
>> </extension>
>> <extension
>> point="org.eclipse.ui.commands">
>> <command
>> defaultHandler="my.handlers.ShowTest01Handler"
>> id="my.commands.ShowTest01"
>> name="Show Test01">
>> </command>
>> </extension>
>> <menuContribution
>> locationURI="toolbar:my.ui.view.Test01">
>> <command
>> commandId="my.ui.commands.Store"
>> icon="src/main/resources/icons/fam/page_save.png"
>> label="Save"
>> style="push"
>> tooltip="save">
>> <visibleWhen>
>> <with variable="activePartId">
>> <test property="my.test.isEnabled"/></with>
>> </visibleWhen>
>> </command>
>> <command
>> commandId="my.ui.commands.Create"
>> icon="src/main/resources/icons/fam/page_add.png"
>> id="createPulldownCommand"
>> label="New"
>> style="push"
>> tooltip="New">
>> <visibleWhen>
>> <with variable="activePartId">
>> <test property="my.test.isEnabledForCreate"/></with>
>> </visibleWhen>
>> </command>
>> </menuContribution>
>> </extension>
>>
>>
>> Even if I omit the visibleWhen part the icons (page_save and page_add in
>> this case) aren't shown. Has something changed there in RAP?
>>
>>
>> TIA,
>> Ralf.
Re: Icons initially not visible in perspective [message #520384 is a reply to message #520221] Thu, 11 March 2010 22:30 Go to previous messageGo to next message
Eclipse UserFriend
Hi Ralf,
does this error occurs while using one of the new designs (business or
fancy) or in the default look and feel? It's important for us to know
because the new designs and the default look uses different managers
for displaying contribution items.

Regards Holger


On 2010-03-11 16:01:02 +0100, "R. Heydenreich" <rheydenr@justmail.de> said:

> Ralf Sternberg schrieb:
>> Hi Ralf,
>>
>> Are you using a design provided by the the rap.design.example bundle?
>> Does it make a difference when you access your application like this:
>> http://HOST:PORT/rap?startup=ENTRYPOINT
>>
>
> Hi Ralf,
> it doesn't make a difference.
>
>> If so, it might be a regression of this bug:
>> https://bugs.eclipse.org/bugs/show_bug.cgi?id=295451
>
> The bug description sounds like the same problem, and the project
> content looks similar to mine. But I can't get the example run. I always
> get Error 404 if I launch the test project. And initially after
> importing the project my IDE complaints about "Access restrictions":
>
> Access restriction: The type PlatformUI is not accessible due to
> restriction on required library
> C:\MyProjects\plugins\rap-bundles_1.3.0-M5\plugins\org.eclip se.rap.ui.workbench_1.3.0.20100201-1223.jar


I've
>
> set a target environment with the new RAP version. Perhaps someone
> could check if the bug occurs with the actual Milestone release.
>
> TIA,
> Ralf.
>
>
>
>>
>> R. Heydenreich wrote:
>>> Hi all,
>>> with RAP 1.3.0M5 we run into a strange behaviour. Our application
>>> consists of some perspectives. If I initially start the application, the
>>> perspectives are all shown, but the icons for the commands which are
>>> assigned to the perspective aren't visible. They only appear if I change
>>> the perspective. In the debugger I've seen that the handler for this
>>> perspective isn't called initially (only if I switch to another
>>> perspective and back). The plugin.xml is as follows:
>>>
>>>
>>> <extension
>>> point="org.eclipse.ui.perspectives">
>>> <perspective
>>> class="my.perspectives.PerspectiveFactory01"
>>> id="my.perspectives.Test01"
>>> name="Test01">
>>> </perspective>
>>> <perspective
>>> class="my.perspectives.PerspectiveFactory02"
>>> id="my.perspectives.Test02"
>>> name="Test02">
>>> </perspective>
>>> </extension>
>>> <extension
>>> point="org.eclipse.ui.commands">
>>> <command
>>> defaultHandler="my.handlers.ShowTest01Handler"
>>> id="my.commands.ShowTest01"
>>> name="Show Test01">
>>> </command>
>>> </extension>
>>> <menuContribution
>>> locationURI="toolbar:my.ui.view.Test01">
>>> <command
>>> commandId="my.ui.commands.Store"
>>> icon="src/main/resources/icons/fam/page_save.png"
>>> label="Save"
>>> style="push"
>>> tooltip="save">
>>> <visibleWhen>
>>> <with variable="activePartId">
>>> <test property="my.test.isEnabled"/></with>
>>> </visibleWhen>
>>> </command>
>>> <command
>>> commandId="my.ui.commands.Create"
>>> icon="src/main/resources/icons/fam/page_add.png"
>>> id="createPulldownCommand"
>>> label="New"
>>> style="push"
>>> tooltip="New">
>>> <visibleWhen>
>>> <with variable="activePartId">
>>> <test property="my.test.isEnabledForCreate"/></with>
>>> </visibleWhen>
>>> </command>
>>> </menuContribution>
>>> </extension>
>>>
>>>
>>> Even if I omit the visibleWhen part the icons (page_save and page_add in
>>> this case) aren't shown. Has something changed there in RAP?
>>>
>>>
>>> TIA,
>>> Ralf.


--
-----------------------------------------

http://eclipsesource.com

http://twitter.com/eclipsesource
Re: Icons initially not visible in perspective [message #520419 is a reply to message #520221] Fri, 12 March 2010 05:31 Go to previous messageGo to next message
Eclipse UserFriend
Hi Ralf,

see my comments below...

R. Heydenreich wrote:
> Ralf Sternberg schrieb:
>> Hi Ralf,
>>
>> Are you using a design provided by the the rap.design.example bundle?
>> Does it make a difference when you access your application like this:
>> http://HOST:PORT/rap?startup=ENTRYPOINT
>>
>
> Hi Ralf,
> it doesn't make a difference.

Then it is not related to the designs. Would you open a bug for this issue?

>> If so, it might be a regression of this bug:
>> https://bugs.eclipse.org/bugs/show_bug.cgi?id=295451
>
> The bug description sounds like the same problem, and the project
> content looks similar to mine. But I can't get the example run. I always
> get Error 404 if I launch the test project. And initially after
> importing the project my IDE complaints about "Access restrictions":
>
> Access restriction: The type PlatformUI is not accessible due to
> restriction on required library
> C:\MyProjects\plugins\rap-bundles_1.3.0-M5\plugins\org.eclip se.rap.ui.workbench_1.3.0.20100201-1223.jar
>
>
> I've set a target environment with the new RAP version. Perhaps someone
> could check if the bug occurs with the actual Milestone release.

M5 definitely works, there is no such access restriction. I guess you
need to reload your target / rebuild your projects etc. You don't have
another version of this bundle in your workspace, have you?

Best regards, Ralf

>
>> R. Heydenreich wrote:
>>> Hi all,
>>> with RAP 1.3.0M5 we run into a strange behaviour. Our application
>>> consists of some perspectives. If I initially start the application, the
>>> perspectives are all shown, but the icons for the commands which are
>>> assigned to the perspective aren't visible. They only appear if I change
>>> the perspective. In the debugger I've seen that the handler for this
>>> perspective isn't called initially (only if I switch to another
>>> perspective and back). The plugin.xml is as follows:
>>>
>>>
>>> <extension
>>> point="org.eclipse.ui.perspectives">
>>> <perspective
>>> class="my.perspectives.PerspectiveFactory01"
>>> id="my.perspectives.Test01"
>>> name="Test01">
>>> </perspective>
>>> <perspective
>>> class="my.perspectives.PerspectiveFactory02"
>>> id="my.perspectives.Test02"
>>> name="Test02">
>>> </perspective>
>>> </extension>
>>> <extension
>>> point="org.eclipse.ui.commands">
>>> <command
>>> defaultHandler="my.handlers.ShowTest01Handler"
>>> id="my.commands.ShowTest01"
>>> name="Show Test01">
>>> </command>
>>> </extension>
>>> <menuContribution
>>> locationURI="toolbar:my.ui.view.Test01">
>>> <command
>>> commandId="my.ui.commands.Store"
>>> icon="src/main/resources/icons/fam/page_save.png"
>>> label="Save"
>>> style="push"
>>> tooltip="save">
>>> <visibleWhen>
>>> <with variable="activePartId">
>>> <test property="my.test.isEnabled"/></with>
>>> </visibleWhen>
>>> </command>
>>> <command
>>> commandId="my.ui.commands.Create"
>>> icon="src/main/resources/icons/fam/page_add.png"
>>> id="createPulldownCommand"
>>> label="New"
>>> style="push"
>>> tooltip="New">
>>> <visibleWhen>
>>> <with variable="activePartId">
>>> <test property="my.test.isEnabledForCreate"/></with>
>>> </visibleWhen>
>>> </command>
>>> </menuContribution>
>>> </extension>
>>>
>>>
>>> Even if I omit the visibleWhen part the icons (page_save and page_add in
>>> this case) aren't shown. Has something changed there in RAP?
>>>
>>>
>>> TIA,
>>> Ralf.
Re: Icons initially not visible in perspective [message #520487 is a reply to message #520384] Fri, 12 March 2010 10:20 Go to previous messageGo to next message
Eclipse UserFriend
Holger Staudacher schrieb:
> Hi Ralf,
> does this error occurs while using one of the new designs (business or
> fancy) or in the default look and feel? It's important for us to know
> because the new designs and the default look uses different managers for
> displaying contribution items.
>
> Regards Holger
>
>
Hi Holger,
we use our own theme, afaik.

Regards,
Ralf.
Re: Icons initially not visible in perspective [message #520492 is a reply to message #520419] Fri, 12 March 2010 10:23 Go to previous message
Eclipse UserFriend
Ralf Sternberg schrieb:
> Hi Ralf,
>
> see my comments below...
>
> R. Heydenreich wrote:
>> Ralf Sternberg schrieb:
>>> Hi Ralf,
>>>
>>> Are you using a design provided by the the rap.design.example bundle?
>>> Does it make a difference when you access your application like this:
>>> http://HOST:PORT/rap?startup=ENTRYPOINT
>>>
>> Hi Ralf,
>> it doesn't make a difference.
>
> Then it is not related to the designs. Would you open a bug for this issue?


OK. I will try to create a simple project that shows the bug. This will
take some time.


>
>>> If so, it might be a regression of this bug:
>>> https://bugs.eclipse.org/bugs/show_bug.cgi?id=295451
>> The bug description sounds like the same problem, and the project
>> content looks similar to mine. But I can't get the example run. I always
>> get Error 404 if I launch the test project. And initially after
>> importing the project my IDE complaints about "Access restrictions":
>>
>> Access restriction: The type PlatformUI is not accessible due to
>> restriction on required library
>> C:\MyProjects\plugins\rap-bundles_1.3.0-M5\plugins\org.eclip se.rap.ui.workbench_1.3.0.20100201-1223.jar
>>
>>
>> I've set a target environment with the new RAP version. Perhaps someone
>> could check if the bug occurs with the actual Milestone release.
>
> M5 definitely works, there is no such access restriction. I guess you
> need to reload your target / rebuild your projects etc. You don't have
> another version of this bundle in your workspace, have you?

No, I've installed a clean eclipse (3.5) and added my projects. Clean
and rebuild didn't solve the problem.

Thanks,
Ralf.


>
> Best regards, Ralf
>
>>> R. Heydenreich wrote:
>>>> Hi all,
>>>> with RAP 1.3.0M5 we run into a strange behaviour. Our application
>>>> consists of some perspectives. If I initially start the application, the
>>>> perspectives are all shown, but the icons for the commands which are
>>>> assigned to the perspective aren't visible. They only appear if I change
>>>> the perspective. In the debugger I've seen that the handler for this
>>>> perspective isn't called initially (only if I switch to another
>>>> perspective and back). The plugin.xml is as follows:
>>>>
>>>>
>>>> <extension
>>>> point="org.eclipse.ui.perspectives">
>>>> <perspective
>>>> class="my.perspectives.PerspectiveFactory01"
>>>> id="my.perspectives.Test01"
>>>> name="Test01">
>>>> </perspective>
>>>> <perspective
>>>> class="my.perspectives.PerspectiveFactory02"
>>>> id="my.perspectives.Test02"
>>>> name="Test02">
>>>> </perspective>
>>>> </extension>
>>>> <extension
>>>> point="org.eclipse.ui.commands">
>>>> <command
>>>> defaultHandler="my.handlers.ShowTest01Handler"
>>>> id="my.commands.ShowTest01"
>>>> name="Show Test01">
>>>> </command>
>>>> </extension>
>>>> <menuContribution
>>>> locationURI="toolbar:my.ui.view.Test01">
>>>> <command
>>>> commandId="my.ui.commands.Store"
>>>> icon="src/main/resources/icons/fam/page_save.png"
>>>> label="Save"
>>>> style="push"
>>>> tooltip="save">
>>>> <visibleWhen>
>>>> <with variable="activePartId">
>>>> <test property="my.test.isEnabled"/></with>
>>>> </visibleWhen>
>>>> </command>
>>>> <command
>>>> commandId="my.ui.commands.Create"
>>>> icon="src/main/resources/icons/fam/page_add.png"
>>>> id="createPulldownCommand"
>>>> label="New"
>>>> style="push"
>>>> tooltip="New">
>>>> <visibleWhen>
>>>> <with variable="activePartId">
>>>> <test property="my.test.isEnabledForCreate"/></with>
>>>> </visibleWhen>
>>>> </command>
>>>> </menuContribution>
>>>> </extension>
>>>>
>>>>
>>>> Even if I omit the visibleWhen part the icons (page_save and page_add in
>>>> this case) aren't shown. Has something changed there in RAP?
>>>>
>>>>
>>>> TIA,
>>>> Ralf.
Previous Topic:Execute command Phase Listener for KeyBindings
Next Topic:It seems a Bug when calling "WorkbenchPage.resetPerspective"
Goto Forum:
  


Current Time: Mon Jul 14 20:56:20 EDT 2025

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

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

Back to the top