Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsExpressionLanguage in RAP
https://www.eclipse.org/forums/index.php/mv/msg/15285/48811/#msg_48811
hander activation/deactivation.
I'm using the build from M6 and when I try to add something like this in my
This leads me to think that expressions are not implemented in RAP, right?
Tom
--
B e s t S o l u t i o n . at
------------------------------------------------------------ --------
Tom Schindl JFace-Committer
------------------------------------------------------------ --------]]>Thomas Schindl2007-09-21T15:34:38-00:00Re: ExpressionLanguage in RAP
https://www.eclipse.org/forums/index.php/mv/msg/15285/48871/#msg_48871
getViewSite().setSelectionProvider(TableViewer) is not working :-(
This two problems make the commands-framework useless in RAP.
Tom
Tom Schindl schrieb:
> Maybe I'm missing something obvious but I can't use expression for
> hander activation/deactivation.
>
> I'm using the build from M6 and when I try to add something like this in my
>
> ---------------8<---------------
> <handler
> class="at.bestsolution.webcat.admin.core.OpenPieceHandler"
> commandId="at.bestsolution.webcat.admin.openPiece">
> <enabledWhen>
> <with
> variable="activePartId">
> <equals
> value="test.MyView">
> </equals>
> </with>
> </enabledWhen>
> </handler>
> ---------------8<---------------
>
> When opening the handler.exsd one notice that the dependency to
> schema://org.eclipse.core.expressions/schema/expressionLangu age.exsd fails.
>
> This leads me to think that expressions are not implemented in RAP, right?
>
> Tom
>
--
B e s t S o l u t i o n . at
------------------------------------------------------------ --------
Tom Schindl JFace-Committer
------------------------------------------------------------ --------]]>Thomas Schindl2007-09-21T19:21:20-00:00Re: ExpressionLanguage in RAP
https://www.eclipse.org/forums/index.php/mv/msg/15285/48901/#msg_48901
nice you found the way to RAP ;-)
See inline comments.
Tom Schindl wrote:
> In the same light it also seems that the
> getViewSite().setSelectionProvider(TableViewer) is not working :-(
Whats not working? We do the same in the demo application in the
DemoTableViewPart.
>
> This two problems make the commands-framework useless in RAP.
>
> Tom
>
> Tom Schindl schrieb:
>> Maybe I'm missing something obvious but I can't use expression for
>> hander activation/deactivation.
>>
>> I'm using the build from M6 and when I try to add something like this
>> in my
>>
>> ---------------8<---------------
>> <handler
>> class="at.bestsolution.webcat.admin.core.OpenPieceHandler"
>> commandId="at.bestsolution.webcat.admin.openPiece">
>> <enabledWhen>
>> <with
>> variable="activePartId">
>> <equals
>> value="test.MyView">
>> </equals>
>> </with>
>> </enabledWhen>
>> </handler>
>> ---------------8<---------------
>>
>> When opening the handler.exsd one notice that the dependency to
>> schema://org.eclipse.core.expressions/schema/expressionLangu age.exsd
>> fails.
Ouch...curios that nobody else saw this before. But you're completely
right - the did not yet provide the source (and the schemas) of the core
plugins with our target. See bug 201805. Hope to get this fixed asap.
>>
>> This leads me to think that expressions are not implemented in RAP,
>> right?
No, we support expressions. But additional there seems to be a problem
with the enableWhen expressions. Have to figure that out this weekend ;)
Would you please file a bug report to track it? Thanks!
>>
>> Tom
>>
>
>
Greets
Benny]]>Benjamin Muskalla2007-09-21T22:05:42-00:00Re: ExpressionLanguage in RAP
https://www.eclipse.org/forums/index.php/mv/msg/15285/49097/#msg_49097
Benjamin Muskalla schrieb:
> Hi Tom,
>
> nice you found the way to RAP ;-)
Yeah, I'm doing a prototype implementation for a big company who may use
RAP in an upcoming project (which we are going to develop for them :-).
I'm trying to create a prototype to show them what is possible and how
fast it is possible with RAP.
We may deploy the project as an RCP (for power-users) and as a RAP
application if I can't figure out. I've already integrated EMF into my
prototype and it works out really great :-) and when I will show them
what I've created within 2 days of work they will be astonished (I could
remember having said so often 'Is' des geil' when exploring new
technologies and so will my hopefully my customers).
The more I'll dive into the whole thing the more bug reports, ... you'll
get from my side and I know how much you love bug reports to hack on :-)
>
> See inline comments.
>
> Tom Schindl wrote:
>> In the same light it also seems that the
>> getViewSite().setSelectionProvider(TableViewer) is not working :-(
> Whats not working? We do the same in the demo application in the
> DemoTableViewPart.
>
Need to take a look but eventually I think I'm doing all things correct:
1. Setup a table viewer
2. getViewSite().setSelectionProvider(viewer);
3. Test the selection in my handler with:
----------------8<----------------
System.err.println(ctx.getVariable(ISources.ACTIVE_CURRENT_S ELECTION_NAME));
----------------8<----------------
>>
>> This two problems make the commands-framework useless in RAP.
>>
>> Tom
>>
>> Tom Schindl schrieb:
>>> Maybe I'm missing something obvious but I can't use expression for
>>> hander activation/deactivation.
>>>
>>> I'm using the build from M6 and when I try to add something like this
>>> in my
>>>
>>> ---------------8<---------------
>>> <handler
>>> class="at.bestsolution.webcat.admin.core.OpenPieceHandler"
>>> commandId="at.bestsolution.webcat.admin.openPiece">
>>> <enabledWhen>
>>> <with
>>> variable="activePartId">
>>> <equals
>>> value="test.MyView">
>>> </equals>
>>> </with>
>>> </enabledWhen>
>>> </handler>
>>> ---------------8<---------------
>>>
>>> When opening the handler.exsd one notice that the dependency to
>>> schema://org.eclipse.core.expressions/schema/expressionLangu age.exsd
>>> fails.
> Ouch...curios that nobody else saw this before. But you're completely
> right - the did not yet provide the source (and the schemas) of the core
> plugins with our target. See bug 201805. Hope to get this fixed asap.
>>>
>>> This leads me to think that expressions are not implemented in RAP,
>>> right?
> No, we support expressions. But additional there seems to be a problem
> with the enableWhen expressions. Have to figure that out this weekend ;)
> Would you please file a bug report to track it? Thanks!
Ok good. Not having a working expression framework would be a show
stopper for the real implementation and we would have to use write
things our own.
And I hope this can be resolved for the 1.0-release.
Tom
--
B e s t S o l u t i o n . at
------------------------------------------------------------ --------
Tom Schindl JFace-Committer
------------------------------------------------------------ --------]]>Thomas Schindl2007-09-23T11:35:31-00:00Re: ExpressionLanguage in RAP
https://www.eclipse.org/forums/index.php/mv/msg/15285/49371/#msg_49371
Tom Schindl wrote:
> Ben,
>
> Benjamin Muskalla schrieb:
>> Hi Tom,
>>
>> nice you found the way to RAP ;-)
>
> Yeah, I'm doing a prototype implementation for a big company who may use
> RAP in an upcoming project (which we are going to develop for them :-).
> I'm trying to create a prototype to show them what is possible and how
> fast it is possible with RAP.
>
> We may deploy the project as an RCP (for power-users) and as a RAP
> application if I can't figure out. I've already integrated EMF into my
> prototype and it works out really great :-) and when I will show them
> what I've created within 2 days of work they will be astonished (I could
> remember having said so often 'Is' des geil' when exploring new
> technologies and so will my hopefully my customers).
Hehe, nice to hear ;)
>
> The more I'll dive into the whole thing the more bug reports, ... you'll
> get from my side and I know how much you love bug reports to hack on :-)
Oh yes :)
>
>>
>> See inline comments.
>>
>> Tom Schindl wrote:
>>> In the same light it also seems that the
>>> getViewSite().setSelectionProvider(TableViewer) is not working :-(
>> Whats not working? We do the same in the demo application in the
>> DemoTableViewPart.
>>
>
> Need to take a look but eventually I think I'm doing all things correct:
> 1. Setup a table viewer
> 2. getViewSite().setSelectionProvider(viewer);
> 3. Test the selection in my handler with:
> ----------------8<----------------
> System.err.println(ctx.getVariable(ISources.ACTIVE_CURRENT_S ELECTION_NAME));
The problem is not the selection provider but the selection source
provider of the workbench which is not yet available in RAP (not that it
would be a problem we just forgot to add it :). I recommend to use
selectionservice of the workbench in the meantime. It's too late in the
release cycle to add that stuff but it's a good candidate for a service
release. If there are reasons why you don't want to use the selection
service directly, i could tell you how to do a little hack to have the
selection source provider in place.
>
> ----------------8<----------------
>
>
>>>
>>> <snip>
>>>> ---------------8<---------------
>>>> <handler
>>>> class="at.bestsolution.webcat.admin.core.OpenPieceHandler"
>>>> commandId="at.bestsolution.webcat.admin.openPiece">
>>>> <enabledWhen>
>>>> <with
>>>> variable="activePartId">
>>>> <equals
>>>> value="test.MyView">
>>>> </equals>
>>>> </with>
>>>> </enabledWhen>
>>>> </handler>
>>>> ---------------8<---------------
>>>>
>>>> <snip>
>
> I've logged: https://bugs.eclipse.org/bugs/show_bug.cgi?id=204377
This is a little but confusing as it is working with RAP m6 and CVS
HEAD. I just added the sample command to the demo (with the pde
templates) and added an enabledWhen expression for a part and it is
working. Would you take a look if this is really a problem on our side
or did you just use the wrong id or something similar? I know that the
manifest editor will not help you to create the expression (see bug i
mentioned before) but it's working correctly.
Greets
Benny
>
> Tom
>]]>Benjamin Muskalla2007-09-24T10:09:14-00:00Re: ExpressionLanguage in RAP
https://www.eclipse.org/forums/index.php/mv/msg/15285/49401/#msg_49401
>>>>
>>>> <snip>
>>>>> ---------------8<---------------
>>>>> <handler
>>>>> class="at.bestsolution.webcat.admin.core.OpenPieceHandler"
>>>>> commandId="at.bestsolution.webcat.admin.openPiece">
>>>>> <enabledWhen>
>>>>> <with
>>>>> variable="activePartId">
>>>>> <equals
>>>>> value="test.MyView">
>>>>> </equals>
>>>>> </with>
>>>>> </enabledWhen>
>>>>> </handler>
>>>>> ---------------8<---------------
>>>>>
>>>>> <snip>
>>
>> I've logged: https://bugs.eclipse.org/bugs/show_bug.cgi?id=204377
>
> This is a little but confusing as it is working with RAP m6 and CVS
> HEAD. I just added the sample command to the demo (with the pde
> templates) and added an enabledWhen expression for a part and it is
> working. Would you take a look if this is really a problem on our side
> or did you just use the wrong id or something similar? I know that the
> manifest editor will not help you to create the expression (see bug i
> mentioned before) but it's working correctly.
>
I'll take a look later today but the main problem is that I need to use
the selection because an open-command can only be available when there's
really a selection. So I'll appreciate any insight how to attach the
SelectionSourceProvider you mentionned before :-)
Tom
--
B e s t S o l u t i o n . at
------------------------------------------------------------ --------
Tom Schindl JFace-Committer
------------------------------------------------------------ --------]]>Thomas Schindl2007-09-24T10:22:44-00:00Re: ExpressionLanguage in RAP
https://www.eclipse.org/forums/index.php/mv/msg/15285/49431/#msg_49431
> I'll take a look later today but the main problem is that I need to use
> the selection because an open-command can only be available when there's
> really a selection. So I'll appreciate any insight how to attach the
> SelectionSourceProvider you mentionned before :-)
>
You are right I am wrong I really used the wrong part-id. Shame one me :-)
Tom
--
B e s t S o l u t i o n . at
------------------------------------------------------------ --------
Tom Schindl JFace-Committer
------------------------------------------------------------ --------]]>Thomas Schindl2007-09-24T11:16:17-00:00Re: ExpressionLanguage in RAP
https://www.eclipse.org/forums/index.php/mv/msg/15285/49461/#msg_49461
> [...]
>
>> I'll take a look later today but the main problem is that I need to
>> use the selection because an open-command can only be available when
>> there's really a selection. So I'll appreciate any insight how to
>> attach the SelectionSourceProvider you mentionned before :-)
>>
>
> You are right I am wrong I really used the wrong part-id. Shame one me :-)
Shame on you ;)
Hope that RAP fits your needs. If you have any additional ideas,
questions, etc don't hesitate to ask them here or on the dev mailing list.
Greets
Benny
>
> Tom
>]]>Benjamin Muskalla2007-09-24T12:49:32-00:00Re: ExpressionLanguage in RAP
https://www.eclipse.org/forums/index.php/mv/msg/15285/49490/#msg_49490
work around it.
Tom
Benjamin Muskalla schrieb:
> Tom Schindl wrote:
>> [...]
>>
>>> I'll take a look later today but the main problem is that I need to
>>> use the selection because an open-command can only be available when
>>> there's really a selection. So I'll appreciate any insight how to
>>> attach the SelectionSourceProvider you mentionned before :-)
>>>
>>
>> You are right I am wrong I really used the wrong part-id. Shame one me
>> :-)
>
> Shame on you ;)
>
> Hope that RAP fits your needs. If you have any additional ideas,
> questions, etc don't hesitate to ask them here or on the dev mailing list.
>
> Greets
> Benny
>
>>
>> Tom
>>
--
B e s t S o l u t i o n . at
------------------------------------------------------------ --------
Tom Schindl JFace-Committer
------------------------------------------------------------ --------]]>Thomas Schindl2007-09-24T13:27:48-00:00