|
Re: Demo mail app toolbar + configure actions strange behavior [message #659526 is a reply to message #659474] |
Mon, 14 March 2011 12:21 |
Ivan Furnadjiev Messages: 2426 Registered: July 2009 Location: Sofia, Bulgaria |
Senior Member |
|
|
This is a multi-part message in MIME format.
--------------060507020109010000090901
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Hi Andrew,
just tested with a new RAP application, based on the mail template and
it's working fine. See my plugin.xml attached. Could you provide a
simple project to reproduce it?
Thanks,
Ivan
On 3/14/2011 10:40 AM, Andrew wrote:
> Hi all,
> Don't know is it a bug or not but nevertheless try to explain my
> experience with it. My computer config: Linux, rap 1.4 M5, eclipse 3.6.
> After creating a demo mail app example try to add 2 commands (using
> existing commands from this demo) to view (with name Message) toolbar
> through plugin.xml using org.eclipse.ui.menus extension ( ...
> locationURI="toolbar:id.of.Message.view" ...). After launching mail
> app (it has buisness theme as default) you can see in the top right of
> Message view config for this view where you can configure it. Then try
> to check visible actions for this view. Checking only first command do
> nothing (not saved), checking only second command save both commands
> as checked...
>
--------------060507020109010000090901
Content-Type: text/xml;
name="plugin.xml"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
filename="plugin.xml"
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.4"?>
<plugin>
<extension
id="mailapp"
point="org.eclipse.core.runtime.applications">
<application
thread="main"
cardinality="singleton-global"
visible="true">
<run
class="rap.mail.demo.Application">
</run>
</application>
</extension>
<extension
point="org.eclipse.ui.perspectives">
<perspective
name="RAP Perspective"
class="rap.mail.demo.Perspective"
id="rap.mail.demo.perspective">
</perspective>
</extension>
<extension
point="org.eclipse.ui.views">
<view
allowMultiple="true"
name="Message"
icon="icons/sample2.gif"
class="rap.mail.demo.View"
id="rap.mail.demo.view">
</view>
<view
name="Mailboxes"
icon="icons/sample3.gif"
class="rap.mail.demo.NavigationView"
id="rap.mail.demo.navigationView">
</view>
</extension>
<extension
point="org.eclipse.ui.commands">
<category
name="Mail"
id="rap.mail.demo.category">
</category>
<command
name="Open Mailbox"
description="Opens a mailbox"
categoryId="rap.mail.demo.category"
id="rap.mail.demo.open">
</command>
<command
name="Open Message Dialog"
description="Opens a message dialog"
categoryId="rap.mail.demo.category"
id="rap.mail.demo.openMessage">
</command>
<command
id="rap.bugs.commands.copy"
name="Copy">
</command>
<command
id="rap.bugs.commands.paste"
name="Paste">
</command>
</extension>
<extension
point="org.eclipse.rap.ui.branding">
<branding
servletName="mail"
themeId="org.eclipse.rap.design.example.business.theme"
defaultEntrypointId="rap.mail.demo.mailapp"
title="RAP Maildemo"
id="rap.mail.demo.branding">
<presentationFactory
defaultLayoutId="org.eclipse.rap.design.example.business.layout "
name="Business PresentationFactory"
id="org.eclipse.rap.design.example.business.factory">
<defaultStackPresentation
id="org.eclipse.rap.design.example.stack.view">
</defaultStackPresentation>
</presentationFactory>
</branding>
</extension>
<extension
point="org.eclipse.ui.handlers">
<handler
class="rap.bugs.commands.CopyHandler"
commandId="rap.bugs.commands.copy">
</handler>
<handler
class="rap.bugs.commands.PasteHandler"
commandId="rap.bugs.commands.paste">
</handler>
</extension>
<extension
point="org.eclipse.ui.menus">
<menuContribution
allPopups="false"
locationURI="toolbar:rap.mail.demo.view?after=additions">
<command
commandId="rap.bugs.commands.copy"
label="Copy"
style="push"
tooltip="Copy">
</command>
<command
commandId="rap.bugs.commands.paste"
label="Paste"
style="push"
tooltip="Paste">
</command>
</menuContribution>
</extension>
</plugin>
--------------060507020109010000090901--
|
|
|
|
Powered by
FUDForum. Page generated in 0.03029 seconds