Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Visual Editor (VE) » VE failed to parse public final static Dimention() const of base class
VE failed to parse public final static Dimention() const of base class [message #131192] Thu, 21 September 2006 10:01 Go to next message
Alexey Kuznetsov is currently offline Alexey KuznetsovFriend
Messages: 42
Registered: July 2009
Member
Here 2 classes: base class and its descendant (VisTest)
Public const DIM_0_32 is declared in base class.

When I try to open VisTest in VE it show panel with blue info sign and
show in hint that '...DIM_0_32 is to complicated...' I think this is a
kind of bug.

At run time all works fine.

I use lates VE with Eclipse 3.2 M20060919-1045

------------------------------------------------------------ ----
package ve.test;

import java.awt.Dimension;

import javax.swing.JDialog;

public class VisBase extends JDialog
{
public final static Dimension DIM_0_32 = new Dimension(0, 32);
}
------------------------------------------------------------ ----
package ve.test;

import java.awt.BorderLayout;
import java.awt.Color;

import javax.swing.JPanel;
import java.awt.Dimension;

public class VisTest extends VisBase
{
JPanel pnlLayer = null;
JPanel pnlOptions = null;
JPanel pnlButtons = null;

public VisTest()
{
super();
initialize();
}

private void initialize()
{
this.setTitle("VisTest");
this.setSize(new Dimension(437, 361));
this.setContentPane(this.getPnlLayer());
}

private JPanel getPnlLayer()
{
if (pnlLayer == null)
{
pnlLayer = new JPanel();
pnlLayer.setLayout(new BorderLayout());
pnlLayer.add(getPnlOptions(), BorderLayout.CENTER);
pnlLayer.add(getPnlButtons(), BorderLayout.SOUTH);
}
return pnlLayer;
}

private JPanel getPnlOptions()
{
if (pnlOptions == null)
{
pnlOptions = new JPanel();
pnlOptions.setBackground(Color.RED);
}
return pnlOptions;
}

private JPanel getPnlButtons()
{
if (pnlButtons == null)
{
pnlButtons = new JPanel();
pnlButtons.setPreferredSize(DIM_0_32);
pnlButtons.setBackground(Color.GREEN);
}
return pnlButtons;
}

public static void main(String[] args)
{
VisTest aDlg = new VisTest();
aDlg.setModal(true);
aDlg.setVisible(true);

System.exit(0);
}

} // @jve:decl-index=0:visual-constraint="10,10"
------------------------------------------------------------ -
Re: VE failed to parse public final static Dimention() const of base class [message #131250 is a reply to message #131192] Thu, 21 September 2006 14:25 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: richkulp.us.NO_SPAM.ibm.com

Just ignore the info. That is why it is a blue info mark. It is just
telling you that VE didn't understand that line. It didn't stop the rest
of VE from working except that we couldn't apply any properties that
used that value. It doesn't break the running class, it is not a warning
that there is anything wrong with the class. Just info that it was
something VE couldn't parse.
Re: VE failed to parse public final static Dimention() const of base class [message #131288 is a reply to message #131250] Fri, 22 September 2006 01:43 Go to previous messageGo to next message
Alexey Kuznetsov is currently offline Alexey KuznetsovFriend
Messages: 42
Registered: July 2009
Member
>Just ignore the info.
So I do :)

....
> It doesn't break the running class, it is not a warning that there is
> anything wrong with the class. Just info that it was something
> VE couldn't parse.

But why VE couldn't parse public consts of a base class?
May be it is possible to make VE to understand such code in future
versions of VE?
Re: VE failed to parse public final static Dimention() const of base class [message #131356 is a reply to message #131288] Fri, 22 September 2006 14:40 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: richkulp.us.NO_SPAM.ibm.com

Hi,

There is always something unexpected in code that shows up as time goes
by. :-) We try to add them in, but we don't always get them all.

Alexey Kuznetsov wrote:
>> Just ignore the info.
>
> So I do :)
>
> ....
>
>> It doesn't break the running class, it is not a warning that there is
>> anything wrong with the class. Just info that it was something
>> VE couldn't parse.
>
>
> But why VE couldn't parse public consts of a base class?
> May be it is possible to make VE to understand such code in future
> versions of VE?
>
Re: VE failed to parse public final static Dimention() const of base class [message #131439 is a reply to message #131356] Tue, 26 September 2006 01:37 Go to previous messageGo to next message
Alexey Kuznetsov is currently offline Alexey KuznetsovFriend
Messages: 42
Registered: July 2009
Member
Hi Rich!

>>There is always something unexpected in code that shows up as time goes
>>by. :-) We try to add them in, but we don't always get them all.

So should I open feature request in bugzila?

Alexey.
Re: VE failed to parse public final static Dimention() const of base class [message #131465 is a reply to message #131439] Tue, 26 September 2006 13:54 Go to previous message
Eclipse UserFriend
Originally posted by: richkulp.us.NO_SPAM.ibm.com

Go ahead and open a request.
Thanks.

Alexey Kuznetsov wrote:
> Hi Rich!
>
>>> There is always something unexpected in code that shows up as time goes
>>> by. :-) We try to add them in, but we don't always get them all.
>
>
> So should I open feature request in bugzila?
>
> Alexey.
>
Re: VE failed to parse public final static Dimention() const of base class [message #614643 is a reply to message #131192] Thu, 21 September 2006 14:25 Go to previous message
Eclipse UserFriend
Originally posted by: richkulp.us.NO_SPAM.ibm.com

Just ignore the info. That is why it is a blue info mark. It is just
telling you that VE didn't understand that line. It didn't stop the rest
of VE from working except that we couldn't apply any properties that
used that value. It doesn't break the running class, it is not a warning
that there is anything wrong with the class. Just info that it was
something VE couldn't parse.
Re: VE failed to parse public final static Dimention() const of base class [message #614646 is a reply to message #131250] Fri, 22 September 2006 01:43 Go to previous message
Alexey Kuznetsov is currently offline Alexey KuznetsovFriend
Messages: 42
Registered: July 2009
Member
>Just ignore the info.
So I do :)

....
> It doesn't break the running class, it is not a warning that there is
> anything wrong with the class. Just info that it was something
> VE couldn't parse.

But why VE couldn't parse public consts of a base class?
May be it is possible to make VE to understand such code in future
versions of VE?
Re: VE failed to parse public final static Dimention() const of base class [message #614652 is a reply to message #131288] Fri, 22 September 2006 14:40 Go to previous message
Eclipse UserFriend
Originally posted by: richkulp.us.NO_SPAM.ibm.com

Hi,

There is always something unexpected in code that shows up as time goes
by. :-) We try to add them in, but we don't always get them all.

Alexey Kuznetsov wrote:
>> Just ignore the info.
>
> So I do :)
>
> ....
>
>> It doesn't break the running class, it is not a warning that there is
>> anything wrong with the class. Just info that it was something
>> VE couldn't parse.
>
>
> But why VE couldn't parse public consts of a base class?
> May be it is possible to make VE to understand such code in future
> versions of VE?
>
Re: VE failed to parse public final static Dimention() const of base class [message #614659 is a reply to message #131356] Tue, 26 September 2006 01:37 Go to previous message
Alexey Kuznetsov is currently offline Alexey KuznetsovFriend
Messages: 42
Registered: July 2009
Member
Hi Rich!

>>There is always something unexpected in code that shows up as time goes
>>by. :-) We try to add them in, but we don't always get them all.

So should I open feature request in bugzila?

Alexey.
Re: VE failed to parse public final static Dimention() const of base class [message #614661 is a reply to message #131439] Tue, 26 September 2006 13:54 Go to previous message
Eclipse UserFriend
Originally posted by: richkulp.us.NO_SPAM.ibm.com

Go ahead and open a request.
Thanks.

Alexey Kuznetsov wrote:
> Hi Rich!
>
>>> There is always something unexpected in code that shows up as time goes
>>> by. :-) We try to add them in, but we don't always get them all.
>
>
> So should I open feature request in bugzila?
>
> Alexey.
>
Previous Topic:buf or feature? empty window
Next Topic:ve plan
Goto Forum:
  


Current Time: Sat Apr 27 03:40:01 GMT 2024

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

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

Back to the top