Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Visual Editor (VE) » constant name defined in an interface "... is too complicated"
constant name defined in an interface "... is too complicated" [message #113434] Fri, 16 December 2005 15:03 Go to next message
Eclipse UserFriend
Originally posted by: i.hate.spam

This is a multi-part message in MIME format.
--------------090308030307060003020509
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: 7bit

Hi,

I know there are a lot of threads about "Expression ... is too
complicated", but I couldn't find an answer to my specific question.

(btw. the source code for this sample scenario is attached as zip)

First I have a very simple custom bean "MyTextField" which is just a
subclass of JTextField with an additional property named "myProperty".

Second there is an interface "IDemo" with a String constant named
DEMO_PROPERTY.

Now I create a new JPanel "Demo" in VE that implements IDemo. I add an
instance of MyTextField to the panel. In the getMyTextField() method I
add a the following line of code:
myTextField.setMyProperty(DEMO_PROPERTY);

After doing that, VE 1.0.1 shows DEMO_PROPERTY in the property sheet for
myProperty, which is perfect for us. I know, when I enter DEMO_PROPERTY
in the propert sheet, this will be inserted into the source code as
setMyProperty("DEMO_PROPERTY") with quotes around the constant name.
That's not what we want, but we can handle this in a custom property
editor, so that's not a problem.

But VE 1.1.0.1 doesn't show any value for myProperty in the property
sheet, but the "too complicated" warning for the MyTextField bean.

Will this be fixed in a future release of VE, so that it will work again
like in VE 1.0? I don't think I can handle that myself with a custom
property editor. It seems that the java code parser no longer returns
the property value if it cannot successfully parse it.

Thanks
Werner


--------------090308030307060003020509
Content-Type: application/x-zip-compressed;
name="vedemo.zip"
Content-Transfer-Encoding: base64
Content-Disposition: inline;
filename="vedemo.zip"

UEsDBAoAAAAAAPKedjMAAAAAAAAAAAAAAAAMAAAAdmUvYnVnNjk0NjYvUEsD BAoAAAAAAPKe
djMAAAAAAAAAAAAAAAAQAAAAdmUvYnVnNjk0NjYvQ1ZTL1BLAwQKAAAAAADy nnYzAAAAAAAA
AAAAAAAABwAAAHZlL0NWUy9QSwMECgAAAAAAEXKQMwAAAAAAAAAAA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IAAt1kDMl
xQHlegAAAI8AAAAdAAAAAAAAAAEAIAC2gUYCAAB2ZS9kZW1vL215cHJvcGVy dHkvSURlbW8u
amF2YVBLAQIUABQAAgAIAKNzkDP+jfcWsAAAAEUBAAAjAAAAAAAAAAEAIAC2 gfsCAAB2ZS9k
ZW1vL215cHJvcGVydHkvTXlUZXh0RmllbGQuamF2YVBLAQIUAAoAAAAAAPKe djMAAAAAAAAA
AAAAAAAQAAAAAAAAAAAAEAD/QewDAAB2ZS9wcm9wZXJ0eW5hbWUvUEsBAhQA CgAAAAAAzXCQ
MwAAAAAAAAAAAAAAABUAAAAAAAAAAAAQAP9BGgQAAHZlL3Byb3BlcnR5bmFt ZS9iYXNlL1BL
AQIUAAoAAAAAAPKedjMAAAAAAAAAAAAAAAAZAAAAAAAAAAAAEAD/QU0EAAB2 ZS9wcm9wZXJ0
eW5hbWUvYmFzZS9DVlMvUEsBAhQACgAAAAAA8p52MwAAAAAAAAAAAAAAABQA AAAAAAAAAAAQ
AP9BhAQAAHZlL3Byb3BlcnR5bmFtZS9DVlMvUEsBAhQACgAAAAAA8p52MwAA AAAAAAAAAAAA
ABUAAAAAAAAAAAAQAP9BtgQAAHZlL3Byb3BlcnR5bmFtZS9kZW1vL1BLAQIU AAoAAAAAAPKe
djMAAAAAAAAAAAAAAAAZAAAAAAAAAAAAEAD/QekEAAB2ZS9wcm9wZXJ0eW5h bWUvZGVtby9D
VlMvUEsBAhQACgAAAAAAEXKQMwAAAAAAAAAAAAAAAAMAAAAAAAAAAAAQAP9B IAUAAHZlL1BL
BQYAAAAADwAPAM8DAABBBQAAAAA=
--------------090308030307060003020509--
Re: constant name defined in an interface "... is too complicated" [message #113448 is a reply to message #113434] Fri, 16 December 2005 16:06 Go to previous message
Eclipse UserFriend
Originally posted by: richkulp.us.NO_SPAM.ibm.com

In 1.2 we show that actual value of DEMO_PROPERTY, not the word
DEMO_PROPERTY. You could still get too complicated but we've cleaned up
many of these. String constants should work.

Werner Huber wrote:
> Hi,
>
> I know there are a lot of threads about "Expression ... is too
> complicated", but I couldn't find an answer to my specific question.
>
> (btw. the source code for this sample scenario is attached as zip)
>
> First I have a very simple custom bean "MyTextField" which is just a
> subclass of JTextField with an additional property named "myProperty".
>
> Second there is an interface "IDemo" with a String constant named
> DEMO_PROPERTY.
>
> Now I create a new JPanel "Demo" in VE that implements IDemo. I add an
> instance of MyTextField to the panel. In the getMyTextField() method I
> add a the following line of code:
> myTextField.setMyProperty(DEMO_PROPERTY);
>
> After doing that, VE 1.0.1 shows DEMO_PROPERTY in the property sheet for
> myProperty, which is perfect for us. I know, when I enter DEMO_PROPERTY
> in the propert sheet, this will be inserted into the source code as
> setMyProperty("DEMO_PROPERTY") with quotes around the constant name.
> That's not what we want, but we can handle this in a custom property
> editor, so that's not a problem.
>
> But VE 1.1.0.1 doesn't show any value for myProperty in the property
> sheet, but the "too complicated" warning for the MyTextField bean.
>
> Will this be fixed in a future release of VE, so that it will work again
> like in VE 1.0? I don't think I can handle that myself with a custom
> property editor. It seems that the java code parser no longer returns
> the property value if it cannot successfully parse it.
>
> Thanks
> Werner
>

--
Thanks,
Rich Kulp
Re: constant name defined in an interface "... is too complicated" [message #611637 is a reply to message #113434] Fri, 16 December 2005 16:06 Go to previous message
Eclipse UserFriend
Originally posted by: richkulp.us.NO_SPAM.ibm.com

In 1.2 we show that actual value of DEMO_PROPERTY, not the word
DEMO_PROPERTY. You could still get too complicated but we've cleaned up
many of these. String constants should work.

Werner Huber wrote:
> Hi,
>
> I know there are a lot of threads about "Expression ... is too
> complicated", but I couldn't find an answer to my specific question.
>
> (btw. the source code for this sample scenario is attached as zip)
>
> First I have a very simple custom bean "MyTextField" which is just a
> subclass of JTextField with an additional property named "myProperty".
>
> Second there is an interface "IDemo" with a String constant named
> DEMO_PROPERTY.
>
> Now I create a new JPanel "Demo" in VE that implements IDemo. I add an
> instance of MyTextField to the panel. In the getMyTextField() method I
> add a the following line of code:
> myTextField.setMyProperty(DEMO_PROPERTY);
>
> After doing that, VE 1.0.1 shows DEMO_PROPERTY in the property sheet for
> myProperty, which is perfect for us. I know, when I enter DEMO_PROPERTY
> in the propert sheet, this will be inserted into the source code as
> setMyProperty("DEMO_PROPERTY") with quotes around the constant name.
> That's not what we want, but we can handle this in a custom property
> editor, so that's not a problem.
>
> But VE 1.1.0.1 doesn't show any value for myProperty in the property
> sheet, but the "too complicated" warning for the MyTextField bean.
>
> Will this be fixed in a future release of VE, so that it will work again
> like in VE 1.0? I don't think I can handle that myself with a custom
> property editor. It seems that the java code parser no longer returns
> the property value if it cannot successfully parse it.
>
> Thanks
> Werner
>

--
Thanks,
Rich Kulp
Previous Topic:constant name defined in an interface "... is too complicated"
Next Topic:ve update site
Goto Forum:
  


Current Time: Fri Apr 26 10:51:31 GMT 2024

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

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

Back to the top