View Full Version : is there a plan to create 0.5.2 to 1.0 migration guide?
plitvak
05-01-2008, 11:20 AM
At a minimum I'd like to see the list of classes that were renamed as well as classes that significantly changed their behavior (e.g. certain initialization code is now required while it wasn't in 0.5.2).
dardison
05-01-2008, 03:11 PM
Yes, that would be grate.
I vote for that too.
dbettoni
05-06-2008, 05:05 PM
Essential!
I have tried to rebuild the code that runs on MyGWT 052 ... :(( a nightmare !!
which classes replace
net.mygwt.ui.client.widget.WidgetContainer;
net.mygwt.ui.client.widget.LoadingPanel;
net.mygwt.ui.client.data.HTTPProxy;
...
...
???
and a lot of others!
obender
05-06-2008, 05:16 PM
Will someone from EXT respond to this?
It is a bit discouraging for those who try to validate 1.0 with existing 0.5.2 code base.
In my case this precludes our organization from buying a commercial license of 1.0.
gslender
05-06-2008, 05:18 PM
net.mygwt.ui.client.widget.WidgetContainer;
net.mygwt.ui.client.widget.LoadingPanel;
net.mygwt.ui.client.data.HTTPProxy;
WidgetContainer is just Container
LoadingPanel is now MessageBox.wait
And many others are fairly easy figure out - took me a day to convert a fairly large project.
But yes, a migration guide would be nice ;-)
dbettoni
05-15-2008, 03:52 AM
how class replacing the class net.mygwt.ui.client.widget.Shell?
gslender
05-15-2008, 07:19 AM
com.extjs.gxt.ui.client.widget.Window
dbettoni
05-15-2008, 08:50 AM
I think that the method
Widget net.mygwt.ui.client.viewer.ViewerCell.getWidget()
is replaced by
Widget com.extjs.gxt.ui.client.viewer.ViewerCell.getItem().
is it right?
but, ...
how method replace
void net.mygwt.ui.client.viewer.ViewerCell.setWidget(Widget)?
gslender
05-15-2008, 04:56 PM
Beta3 has new viewer code so wait for the next release... api is changing in a few places.
There is no official guide for migration? :((
Has anybody written a tool for conversion? =P~
What are your experiences switching from mygwt to gxt? :s
gslender
07-25-2008, 06:05 PM
There is no official guide for migration? :((
No - and I guess that is becuase so much has changed that really a migration guide would almost be equiv to getting started guide (which does exist)
Has anybody written a tool for conversion? =P~
I started to, but quickly realised as per the previous comment.
What are your experiences switching from mygwt to gxt? :s
It is really easy and whilst a lot has changed (API and approach) the migration is not like going from .Net to Swing... (I did mine back in beta3)
adam.schwartz
07-30-2008, 12:46 PM
My experience converting a fair-sized project ... ~45,000 lines, using MyGWT RC2 and ExtGWT in Beta 3 ... was tedious, but not difficult. It took me about two days (20ish hours) to do it all myself - learn the new ExtGWT pieces and parts and get the app working 100%. I'd say the biggest time-sink for me personally was getting Trees working correctly....
Essentially nothing is hard to accomplish in the conversion process ... it's really just time-consuming, requires a lot of find/replacing then fine-tooth-combing. On that note, I compiled a document that contains some of the more basic changes, which is intended to help one of my colleagues convert his MyGWT-based app. This list is not organized well, not particularly comprehensive, and in some cases might be wrong with newer releases of ExtGWT, but I wanted to start some thread of cooperation here to make a good, readable list of changes for people who might still be converting, or thinking about doing so, as it seems silly for everyone to start in the dark every time.
Having said that, if someone knows about one that's already in the works/is pretty far along ignore me ^.^
MyGWT -> Ext GWT
Class Name Changes
- Shell == Window
- ShellManager == Window
- WidgetContainer == LayoutContainer
- Viewer == (ListStore<ModelData> || TreeStore<ModelData>)
- TableLayoutData == TableData
- implements Model == extends ModelData
- ListViewer == ListStore<ModelData>
-ViewerFilterTextBox == MyGWTUtils1_5.ViewerFilterTextBox<ModelData>
- ContentProvider (roughly equivalent to) StoreBinder --- subclasses are DataListBinder, TableBinder, TreeTableBinder, etc.
Method Name Changes, Other Find/Replace Candidates
- Shell.getContent() == NOTHING
- Shell.setText(...) == Shell.setHeading(...)
- *.close() == *.hide();
- *.open() == *.show();
- Dialog.setCloseOnButtonClick() == Dialog.setHideOnButtonClick()
- Viewer.applyFilters() == .applyFilters(String property)
- Window.open() == Window.show()
- new RowData(RowData.FILL_BOTH); == new RowData(1d, 1d);
- new RowData(RowData.FILL_HORIZONTAL); == new RowData(height, 1d);
- new RowData(RowData.FILL_VERTICAL); == new RowData(1d, width);
- *.setResize == .setResizable(boolean);
- *.setScrollable(boolean) == .setScrollMode(Scroll.*);
- *.setScrollEnabled == .setScrollMode(Scroll.*)
Other Changes
- If a style gets eaten by GXT, e.g. when you have a setIconStyle( <style> ), it must be followed by a !important,
e.g. .icon-start-here { background: url(../tango/places/start-here.png) no-repeat !important; }
- ButtonBar bar = new ButtonBar(<Alignment>) ==
bar = new ButtonBar();
bar.setButtonAlign(Style.HorizontalAlignment.RIGHT);
- *.getContent() == NOTHING
- *.getContainer() == NOTHING -- Things tend to extend Container, e.g. Window
- new List( Style.SINGLE|MULTI ); ==
list = new DataList();
list..setSelectionMode( SelectionMode.SINGLE|MULTI );
- new Layout().setType(Style.VERTICAL); ==
new Layout(Orientation.VERTICAL);
- layout(boolean force) -> layout()
- new BorderLayoutData(Style.*) == new BorderLayoutData(LayoutRegion.*)
- new ToolItem(Style.*) ... new ToolItem/TextToolItem/ToggleToolItem/SeparatorToolItem
- tree = new Tree( Style.CHECK); ==
tree = new Tree();
tree.setCheckable(true);
- TreeItem[] items = tree.getChecked() ==
TreeItem[] items = tree.getChecked().toArray( new TreeItem[0] );
-<T>.setToolTip( String title, String message ); ==
<T>.setToolTip( new ToolTipConfig( String title, String message ) );
- If center() is called on a Window before show() is called, an exception is thrown
- new MenuItem(Style.*) == new MenuItem();
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.