On 05/10/2011 23:53, Ray Cromwell wrote:
You could try making a split point which contains other split points,
something like this:
I = Initial Fragment
W - Split point from which all Widget using splitpoints exist
W1 - Widget using split point 1
W2 - Widget using split point 2
G - Split point from which all GQuery using code exists
G1 - GQuery split point page 1
I don't remember if this is so, but if all Widget using code ends up
exclusive to W, then it won't be in the leftovers fragment.
Yes this is how I would like it to work but unfortunately it puts all
the common code from W1 and W2 into the leftovers fragment and not the
common "parent" W
My test code below creates a Lable and a Button in different split
points that have a common parent split point:
public void onModuleLoad()
{
GWT.runAsync(Widget.class, new Callback()
{
@Override
public void onSuccess()
{
GWT.runAsync(Label.class, new Callback()
{
@Override
public void onSuccess()
{
RootPanel.get().add(new Label("Hello"));
}
});
GWT.runAsync(Button.class, new Callback()
{
@Override
public void onSuccess()
{
RootPanel.get().add(new Button("World"));
}
});
}
});
}
The left overs fragment contains 25K of code and each of the 3 split
points contain a trivial 1K or 2K
--
http://groups.google.com/group/Google-Web-Toolkit-Contributors