Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Wiki update about complex expressions
Wiki update about complex expressions [message #325499] Wed, 20 February 2008 06:15 Go to next message
Eclipse UserFriend
Originally posted by: jan-hendrik.diederich.bredex.de

The Command Core Expressions explanation on
http://wiki.eclipse.org/Command_Core_Expressions is incomplete. While the
command core expressions support complete complex nested boolean
expressions,
it's never mentioned in a single word or example. You can, to my knowledge
-
tell me if I'm wrong - insert boolean expressions like "(a & b & (c | d |
(!e)))". But after reading the Wiki you get the impression it's declared
in the
xsd but not officially supported, since also the javadoc in the
corresponding
xsd never mentions it. Referring to the given example above the declaration
would look like this:
<and>
<test args="a" property="rcpAuthActivitiesExample.test1" />
<test args="b" property="rcpAuthActivitiesExample.test2" />
<or>
<test args="c" property="rcpAuthActivitiesExample.test3" />
<test args="d" property="rcpAuthActivitiesExample.test4" />
<not>
<test args="e" property="rcpAuthActivitiesExample.test5" />
</not>
</or>
</and>

(That I took property testers for this example has no special meaning, they
were just very convenient for this example, choose whatever you think fits
better.)

So, is that true that this complex expressions are supported?
If it's true I would really like to update the Wiki, at best with the
example I gave here.
Please answer me, enlightend Eclipse Expression Professionals
:-)
Re: Wiki update about complex expressions [message #325541 is a reply to message #325499] Thu, 21 February 2008 11:37 Go to previous messageGo to next message
Eclipse UserFriend
Jan Diederich wrote:
> The Command Core Expressions explanation on
> http://wiki.eclipse.org/Command_Core_Expressions is incomplete. While the
> command core expressions support complete complex nested boolean
> expressions,
> it's never mentioned in a single word or example.

Just because something is not mentioned in an example doesn't mean that
it is an omission ... but we always welcome new examples that are
descriptive (and work).


> You can, to my
> knowledge -
> tell me if I'm wrong - insert boolean expressions like "(a & b & (c | d |
> (!e)))". But after reading the Wiki you get the impression it's declared
> in the
> xsd but not officially supported, since also the javadoc in the
> corresponding
> xsd never mentions it.

The Extension Point Description (and the PDEEditor) give directions on
what is allowed in a core expression. While we welcome more examples,
it's the Extension Point Description (from the exsd) that determines
what is allowed ... why do you assume that the official document that
describes the schema is not officially supported?

> Referring to the given example above the declaration
> would look like this:
> <and>
> <test args="a" property="rcpAuthActivitiesExample.test1" /> <test
> args="b" property="rcpAuthActivitiesExample.test2" /> <or>
> <test args="c" property="rcpAuthActivitiesExample.test3" /> <test
> args="d" property="rcpAuthActivitiesExample.test4" /> <not>
> <test args="e" property="rcpAuthActivitiesExample.test5" /> </not>
> </or>
> </and>
>
> (That I took property testers for this example has no special meaning, they
> were just very convenient for this example, choose whatever you think fits
> better.)
>
> So, is that true that this complex expressions are supported?

TIAS (Try It And See :-) ... but your expression looks fine to me.
multi-line to make it a little more clear:


<and>
<test args="a" property="rcpAuthActivitiesExample.test1" />
<test args="b" property="rcpAuthActivitiesExample.test2" />
<or>
<test args="c" property="rcpAuthActivitiesExample.test3" />
<test args="d" property="rcpAuthActivitiesExample.test4" />
<not>
<test args="e" property="rcpAuthActivitiesExample.test5" />
</not>
</or>
</and>
[/xml]



Later,
PW



--
Paul Webster
http://wiki.eclipse.org/Platform_Command_Framework
http://wiki.eclipse.org/Command_Core_Expressions
http://wiki.eclipse.org/Menu_Contributions
http://wiki.eclipse.org/Menus_Extension_Mapping
http://help.eclipse.org/help33/index.jsp?topic=/org.eclipse. platform.doc.isv/guide/workbench.htm
Re: Wiki update about complex expressions [message #325629 is a reply to message #325541] Sat, 23 February 2008 13:06 Go to previous message
Eclipse UserFriend
Originally posted by: jan-hendrik.diederich.bredex.de

Paul Webster wrote:

> ... why do you assume that the official document that
> describes the schema is not officially supported?
I just got the impression, like: this should work, but who does this
anyway? And why? An our unit tests for this are only superficial. It's
just that I mistrust any undocumented feature. But you're right: the .xsd
should be enough reliable documentation.


Later,
Jan
Previous Topic:Suggestion for daily build
Next Topic:Jobs and unloading of plugins
Goto Forum:
  


Current Time: Sat May 24 02:29:50 EDT 2025

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

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

Back to the top