VE failed to parse public final static Dimention() const of base class [message #131192] |
Thu, 21 September 2006 06:01  |
Eclipse User |
|
|
|
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 #614643 is a reply to message #131192] |
Thu, 21 September 2006 10:25  |
Eclipse User |
|
|
|
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 #614652 is a reply to message #131288] |
Fri, 22 September 2006 10:40  |
Eclipse User |
|
|
|
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?
>
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.11074 seconds