Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [ve-dev] Border Layout implementation not working


From what you have described and the snapshots... it sounds like your border layout is working successfully in the IDE (with regions showing correctly). But the problem might be in the remote vm where the actual layout is applied and components are added to the container. Are you sure you have your build path setup correctly to include the plugin with your special layout manager?

One of the ways we debug is to enable a debug option that adds a check box preference option ("Show Live Window") to the VE preferences page. When this option is checked, it shows the actual frame/panel you are working with in the Visual Editor.

To add this option to the preferences, create a debug options file (options.txt) and start Eclipse with the options file using the parameter:
   -DEBUG file:/c:/temp/options.txt
The options file should contain the following statement:
   org.eclipse.ve.java.core/debug/livewindow=true

Once Eclipse starts, go the VE preferences page and check the option "Show Live Window". Open VE on your class and the live window should show up in the upper left part of the your screen. As you make changes in VE you should see them in the live window. VE screen scrapes the images from the live window back into the IDE where you are working in the graph view. If the live window doesn't show the jButton component when you switch to your layout, this indicates the layout is not working in the remote vm and the first place to look is the classpath.

Hope this helps...

Peter Walker
-------------------------------------
Eclipse JVE Development
919-254-1558 - T/L 444, Fax 254-8169, HYSA/501/K107
IBM SWG at RTP, 3039 Cornwallis Rd, RTP, NC 27709
Lotus Notes: Peter Walker/Raleigh/IBM   Internet: walkerp@xxxxxxxxxx



"H Ramachandra, Rashmi" <rashmi.h.ramachandra@xxxxxxx>
Sent by: ve-dev-bounces@xxxxxxxxxxx

11/16/2005 12:10 AM

Please respond to
Discussions people developing code for the Visual Editor project

To
<ve-dev@xxxxxxxxxxx>
cc
Subject
[ve-dev] Border Layout implementation not working





Hi All,
   We are trying to implement a swing layout in VE 1.1.  We are trying to bring up the borderlayout in our project to learn the flow for implementing a Layout in V.E. I have extracted the source for all the layout support files such as Borderlayouteditpolicy, BorderLayoutSwitcher etc and the BorderLayout from jfc source. The code is compiling and it is able to pick up the layout support classes. But it is not executing properly. I am attaching few snap shots to explain.

In the first snap shot I have used the regular BorderLayout. You can see the panel being selected.
In the second snap shot I have selected a button on the same panel.

I am not able to duplicate the same in my borderlayout implementation.

Next I change the layout to CMyBorderLayout that is a copy implementation of the actual border layout.
You can see in the third snap shot that the component on the panel has vanished.
In the fourth snap I have selected the button from the 'Java Bean View'

In the Fifth I tried to drag another object from the component plaette on to the container. You can see the borderlayout grid helpers visible.

The button is not visible on the container . But it is placed somewhere at the edge (0,0) . Can anybody please tell me ,Where should I start debugging and what could be the problem. There are no error messages in the log.

Thanks in Advance.
Rashmi H.Ramachandra

<<Snapshot1.JPG>> <<Snapshot2.JPG>> <<Snapshot3.JPG>> <<Snapshot4.JPG>> <<Snapshot5.JPG>> [attachment "Snapshot1.JPG" deleted by Peter Walker/Raleigh/IBM] [attachment "Snapshot2.JPG" deleted by Peter Walker/Raleigh/IBM] [attachment "Snapshot3.JPG" deleted by Peter Walker/Raleigh/IBM] [attachment "Snapshot4.JPG" deleted by Peter Walker/Raleigh/IBM] [attachment "Snapshot5.JPG" deleted by Peter Walker/Raleigh/IBM]
_______________________________________________
ve-dev mailing list
ve-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/ve-dev


Back to the top