[gwt-contrib] Re: scheglov pointed out a leak in compilation units in dev mode after a refresh (issue1490801)

2012-04-08 Thread scheglov
On 2012/04/05 19:39:54, rdayal wrote: Ping. Is this patch dead, or do we still want to get this in? I remember that we were not able to push it into release (2.4 ?). But this problem is still causing problems in GWT Designer. http://gwt-code-reviews.appspot.com/1490801/ -- http://groups.googl

[gwt-contrib] Re: Add assert for null provided fields, fixes #7024 (issue1604803)

2011-11-30 Thread scheglov
lgtm http://gwt-code-reviews.appspot.com/1604803/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors

[gwt-contrib] Re: Add assert for null provided fields, fixes #7024 (issue1604803)

2011-11-29 Thread scheglov
On 2011/11/29 20:47:56, stephenh wrote: > should "&& !designTime.isDesignTime()" be added to the test? Dunno, good question; I added Konstantin as a reviewer. Konstantin, do you think the assertion in this patch should be skipped during design time (the assertion is supposed to warn the u

[gwt-contrib] Generate unique class names in AbstractClientBundleGenerator at design time. (issue1565805)

2011-10-11 Thread scheglov
Reviewers: rjrjr, Description: Generate unique class names in AbstractClientBundleGenerator at design time. Please review this at http://gwt-code-reviews.appspot.com/1565805/ Affected files: M user/src/com/google/gwt/resources/rebind/context/AbstractClientBundleGenerator.java Index: u

[gwt-contrib] Re: Design Time Access to UiBinder Model

2011-10-03 Thread Konstantin Scheglov
Basically these hooks allow you get notification about bean object creation and provide result for @UiField(provided=true) and @UiFactory. That's all. See implementation here: http://www.google.com/codesearch#A1edwVHBClQ/user/src/com/google/gwt/uibinder/rebind/DesignTimeUtils.java&ct=rc&cd=1&q=De

[gwt-contrib] Tweak to allow parent ClassLoader at design time. (issue1529803)

2011-08-16 Thread scheglov
Reviewers: tobyr, Description: Tweak to allow parent ClassLoader at design time. Please review this at http://gwt-code-reviews.appspot.com/1529803/ Affected files: M dev/core/src/com/google/gwt/dev/shell/CompilingClassLoader.java Index: dev/core/src/com/google/gwt/dev/shell/CompilingClassL

[gwt-contrib] Notify DesignTimeUtils about all beans, not only about UIObjects. (issue1483801)

2011-07-14 Thread scheglov
Reviewers: zundel, Description: Notify DesignTimeUtils about all beans, not only about UIObjects. Please review this at http://gwt-code-reviews.appspot.com/1483801/ Affected files: M user/src/com/google/gwt/uibinder/elementparsers/BeanParser.java M user/src/com/google/gwt/uibinder/elementp

[gwt-contrib] Adds support for Beans.isDesignTime() for better support in GWT Designer. (issue1443802)

2011-05-16 Thread scheglov
Reviewers: fabbott, Description: Adds support for Beans.isDesignTime() for better support in GWT Designer. Please review this at http://gwt-code-reviews.appspot.com/1443802/ Affected files: A user/super/com/google/gwt/emul/java/beans/Beans.java Index: user/super/com/google/gwt/emul/java/be

[gwt-contrib] Prepares SAXParserFactory one time, so avoids expensive ClassLoader lokups. (issue1442806)

2011-05-16 Thread scheglov
Reviewers: scottb, Description: Prepares SAXParserFactory one time, so avoids expensive ClassLoader lokups. Please review this at http://gwt-code-reviews.appspot.com/1442806/ Affected files: M dev/core/src/com/google/gwt/dev/util/xml/ReflectiveParser.java Index: dev/core/src/com/google/gwt

[gwt-contrib] Re: Calculates result of getSourceName() one time, so reuse because of CU cache. (issue1438801)

2011-05-09 Thread scheglov
http://gwt-code-reviews.appspot.com/1438801/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors

[gwt-contrib] Re: Calculates result of getSourceName() one time, so reuse because of CU cache. (issue1438801)

2011-05-06 Thread scheglov
http://gwt-code-reviews.appspot.com/1438801/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors

[gwt-contrib] Calculates result of getSourceName() one time, so reuse because of CU cache. (issue1438801)

2011-05-06 Thread scheglov
Reviewers: scottb, Description: Calculates result of getSourceName() one time, so reuse because of CU cache. Prepares SAXParserFActory one time, so avoids expensive ClassLoader lookups. Please review this at http://gwt-code-reviews.appspot.com/1438801/ Affected files: M dev/core/src/com/goog

[gwt-contrib] Re: Adds cache of CollectClassData to make refresh faster. (issue1420809)

2011-04-27 Thread scheglov
http://gwt-code-reviews.appspot.com/1420809/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors

[gwt-contrib] Re: Adds cache of CollectClassData to make refresh faster. (issue1420809)

2011-04-27 Thread scheglov
http://gwt-code-reviews.appspot.com/1420809/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors

[gwt-contrib] Re: Adds cache of CollectClassData to make refresh faster. (issue1420809)

2011-04-26 Thread scheglov
Actually after initial cache filling all these units are used. I see preparing new TypeData only for changed units, when I modify them and hit Refresh in DevMode browser. I've added lazy TypeData into CompiledClass and filling TypeData information instead of cache. I'm not sure however if adding

[gwt-contrib] Re: Adds cache of CollectClassData to make refresh faster. (issue1420809)

2011-04-26 Thread scheglov
http://gwt-code-reviews.appspot.com/1420809/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors

[gwt-contrib] Adds cache of CollectClassData to make refresh faster. (issue1420809)

2011-04-26 Thread scheglov
Reviewers: zundel, Description: Adds cache of CollectClassData to make refresh faster. This gives about 10% performance gain on big projects. Please review this at http://gwt-code-reviews.appspot.com/1420809/ Affected files: M dev/core/src/com/google/gwt/dev/javac/TypeOracleMediator.java A

[gwt-contrib] Re: Better error handling when the cache is initialized with a directory (issue1380808)

2011-03-25 Thread scheglov
LGTM http://gwt-code-reviews.appspot.com/1380808/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors

[gwt-contrib] Re: Using cached ZipFileClassPathEntry objects. (issue1388803)

2011-03-23 Thread scheglov
http://gwt-code-reviews.appspot.com/1388803/diff/3004/dev/core/src/com/google/gwt/dev/resource/impl/ZipFileClassPathEntry.java File dev/core/src/com/google/gwt/dev/resource/impl/ZipFileClassPathEntry.java (right): http://gwt-code-reviews.appspot.com/1388803/diff/3004/dev/core/src/com/google/gwt/

[gwt-contrib] Re: Using cached ZipFileClassPathEntry objects. (issue1388803)

2011-03-23 Thread scheglov
http://gwt-code-reviews.appspot.com/1388803/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors

[gwt-contrib] Re: Using cached ZipFileClassPathEntry objects. (issue1388803)

2011-03-22 Thread scheglov
http://gwt-code-reviews.appspot.com/1388803/diff/4001/dev/core/src/com/google/gwt/dev/resource/impl/ZipFileClassPathEntry.java File dev/core/src/com/google/gwt/dev/resource/impl/ZipFileClassPathEntry.java (right): http://gwt-code-reviews.appspot.com/1388803/diff/4001/dev/core/src/com/google/gwt/

[gwt-contrib] Re: Using cached ZipFileClassPathEntry objects. (issue1388803)

2011-03-22 Thread scheglov
http://gwt-code-reviews.appspot.com/1388803/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors

[gwt-contrib] Re: Using cached ZipFileClassPathEntry objects. (issue1388803)

2011-03-22 Thread scheglov
http://gwt-code-reviews.appspot.com/1388803/diff/1/dev/core/src/com/google/gwt/dev/resource/impl/ZipFileClassPathEntry.java File dev/core/src/com/google/gwt/dev/resource/impl/ZipFileClassPathEntry.java (right): http://gwt-code-reviews.appspot.com/1388803/diff/1/dev/core/src/com/google/gwt/dev/re

[gwt-contrib] Re: Using cached ZipFileClassPathEntry objects. (issue1388803)

2011-03-22 Thread scheglov
http://gwt-code-reviews.appspot.com/1388803/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors

[gwt-contrib] Re: Using cached ZipFileClassPathEntry objects. (issue1388803)

2011-03-20 Thread scheglov
DevMode uses single top level ModuleDef with single set of jars. GWT Designer can open several editors with several top level ModuleDefs, which use several may be different sets of jars, but with many intersections. If only we could have hashCode() and equals() for PathPrefixSet... This would al

[gwt-contrib] Using cached ZipFileClassPathEntry objects. (issue1388803)

2011-03-20 Thread scheglov
Reviewers: conroy, Description: Using cached ZipFileClassPathEntry objects. While this does not give benefits for DevMode, which parses jar files only once, GWT Designer does this many times. This gives about 15% speed up in GWT Designer. Initial. - Parsing...done: 4775 refresh: 296

[gwt-contrib] Re: Small optimizations for hosted mode (issue1382801)

2011-03-17 Thread scheglov
http://gwt-code-reviews.appspot.com/1382801/diff/5008/dev/core/src/com/google/gwt/dev/resource/impl/DefaultFilters.java File dev/core/src/com/google/gwt/dev/resource/impl/DefaultFilters.java (right): http://gwt-code-reviews.appspot.com/1382801/diff/5008/dev/core/src/com/google/gwt/dev/resource/i

[gwt-contrib] Re: Small optimizations for hosted mode (issue1382801)

2011-03-17 Thread scheglov
http://gwt-code-reviews.appspot.com/1382801/diff/5008/dev/core/src/com/google/gwt/dev/resource/impl/DefaultFilters.java File dev/core/src/com/google/gwt/dev/resource/impl/DefaultFilters.java (right): http://gwt-code-reviews.appspot.com/1382801/diff/5008/dev/core/src/com/google/gwt/dev/resource/i

[gwt-contrib] Re: Small optimizations for hosted mode (issue1382801)

2011-03-17 Thread scheglov
http://gwt-code-reviews.appspot.com/1382801/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors

[gwt-contrib] Re: Small optimizations for hosted mode (issue1382801)

2011-03-17 Thread scheglov
http://gwt-code-reviews.appspot.com/1382801/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors

[gwt-contrib] Re: [GWT Designer] Don't cache rebind results while design time (issue1275801)

2011-01-11 Thread Konstantin . Scheglov
On 2011/01/11 18:00:42, jbrosenberg wrote: I'm not sure I understand the larger picture, but I think there are some issues with this approach. Perhaps we can connect up to discuss furtherHere are some of the main points to consider: 1. StandardRebindOracle should not know anything spe

[gwt-contrib] Re: [GWT Designer] Use per ClassLoader ModuleDef caching (issue1274801)

2011-01-11 Thread Konstantin . Scheglov
On 2011/01/11 16:21:50, scottb wrote: Generally, can you justify this scheme? I read the article, but I still don't understand the advantage of this approach over say, Map ?> where the key is weak. Problem happens when you have reference from "value" to "key". For example, if you try t

[gwt-contrib] UiBinder. Support for TreeItems. (issue1233803)

2011-01-04 Thread Konstantin . Scheglov
Reviewers: rjrjr, Description: For Java UI the GWT Designer support dropping TreeItem on Tree and other TreeItem. We need same feature for UiBinder too. This patch adds parsers for Tree and TreeItem which support this feature. Please review this at http://gwt-code-reviews.appspot.com/1233803/sho

Re: [gwt-contrib] Re: r9277 committed - Removing reference to designTime.getProvidedField()

2010-11-27 Thread Konstantin Scheglov
if (designTime.isDesignTime()) { >> > >> -String typeName = >> > >> ownerField.getType().getRawType().getQualifiedSourceName(); >> > >> -initializer = designTime.getProvidedField(typeName, >> > >> - ownerField.getName()); >

[gwt-contrib] Tweak for @UiChild javadoc (issue1132801)

2010-11-21 Thread Konstantin . Scheglov
Reviewers: rjrjr, rice, Description: JavaDoc does not show example. http://google-web-toolkit.googlecode.com/svn/javadoc/2.1/com/google/gwt/uibinder/client/UiChild.html Changes in this (trivial) patch. 1. Left angle bracket should be quoted. 2. Fix for indentation. Please review this at htt

[gwt-contrib] UiBinder. Using negative values in LayoutPanel. (issue1094801)

2010-11-09 Thread Konstantin . Scheglov
Reviewers: rjrjr, Description: http://groups.google.com/group/google-web-toolkit-contributors/browse_thread/thread/9832f30485ce48e2 This patch contains: 1. tweak for LengthAttributeParser to support +/- before value; 2. check for negative width/height in LayoutPanelParser; 3. tests for negative

[gwt-contrib] Re: UiBinder. Design time tweaks for @UiField(provided) and @UiFactory (issue1077802)

2010-11-09 Thread Konstantin . Scheglov
http://gwt-code-reviews.appspot.com/1077802/diff/1/3 File user/src/com/google/gwt/uibinder/rebind/DesignTimeUtilsImpl.java (right): http://gwt-code-reviews.appspot.com/1077802/diff/1/3#newcode52 user/src/com/google/gwt/uibinder/rebind/DesignTimeUtilsImpl.java:52: w.write(" void handle(String pa

[gwt-contrib] UiBinder. Design time tweaks for @UiField(provided) and @UiFactory (issue1077802)

2010-11-04 Thread Konstantin . Scheglov
Reviewers: rjrjr, Description: We need to provide at least some support for @UiField(provided) and @UiFactory in GWT Designer. At design time we pass "null" as "owner", so we need to use special design time hooks to create instances of widgets. Please review this at http://gwt-code-reviews.appsp

[gwt-contrib] Use @UiChild and @UiConstructor (issue865801)

2010-09-12 Thread Konstantin . Scheglov
Reviewers: rjrjr, Description: These annotations allow us use HorizontalSplitPanel, VerticalSplitPanel and NamedFrame in UiBinder. Please review this at http://gwt-code-reviews.appspot.com/865801/show Affected files: user/src/com/google/gwt/user/client/ui/HorizontalSplitPanel.java user/src/

[gwt-contrib] UiBinder. Design time tweaks for @UiField and @UiHandler (issue834802)

2010-09-07 Thread Konstantin . Scheglov
Reviewers: rjrjr, Description: It turns out that previous patch was not enough. In new one instead of preventing failing when no owner or field found, we disable assigning to fields and support for event handlers at all. However we can not disable them globally, for all UiBinder templates, we sho

[gwt-contrib] Re: UiBinder. Design time tweaks for @UiField (issue792801)

2010-08-30 Thread Konstantin . Scheglov
I don't see this patch in SVN yet. Was it committed? http://gwt-code-reviews.appspot.com/792801/show -- http://groups.google.com/group/Google-Web-Toolkit-Contributors

[gwt-contrib] UiBinder. Design time tweaks for @UiField (issue792801)

2010-08-23 Thread Konstantin . Scheglov
Reviewers: rjrjr, Description: This patch contains changes required for reliable editing of "ui:field" attribute in template and corresponding @UiField in Java. Solved problems: 1. When GWT Designer calls createAndBindUi(), it can not provide "owner", because we can not instantiate it, and it is

[gwt-contrib] Re: Fix memory leaks in DevMode (issue766803)

2010-08-19 Thread Konstantin . Scheglov
These caches contain types which have a circular reference pattern with the TypeOracle. If we make a hard reference to the cache here, we end up pinning the TypeOracle. You could break hard reference on TypeOracle for example by using weak reference on "method" from "ImageResourceGenera

[gwt-contrib] Allow to keep size of Widget on DeckPanel (issue732802)

2010-08-07 Thread Konstantin . Scheglov
Reviewers: jgw, Ray Ryan, Description: I probably already told about this couple years ago, but DeckPanel, as it is done now, is IMHO not reliable in area of size management. More precise - using DeckPanel in TabPanel. TabPanel uses VerticalPanel to host TabBar and DeckPanel, and it set panel.

[gwt-contrib] Tests and tweaks for DisclosurePanel and StackLayoutPanel parsers (issue736801)

2010-08-03 Thread Konstantin . Scheglov
Reviewers: Ray Ryan, Description: 1. Problems in assertFirstHeader(). 1.1. invalid condition; 1.2. invalid reference on second argument. 2. Use addStatement() instead of addInitStatement(), because same is done everywhere. 3. Small tweaks. 4. Set of tests, including all bad cases. Please review

[gwt-contrib] Support for custom MenuItem, MenuItemSeparator and MenuBar. (issue702803)

2010-08-01 Thread Konstantin . Scheglov
Reviewers: Ray Ryan, Description: See http://code.google.com/p/google-web-toolkit/issues/detail?id=4550 Please review this at http://gwt-code-reviews.appspot.com/702803/show Affected files: user/src/com/google/gwt/uibinder/elementparsers/MenuBarParser.java user/src/com/google/gwt/uibinder/e

[gwt-contrib] Re: UiBinder. Parser for AbsolutePanel. (issue715802)

2010-07-27 Thread Konstantin . Scheglov
1. Should I remove groups only from this AbsolutePanelParser test or from DesignTimeUtilsTest too? 2. I agree to use sorting methods with tests, however as with formatting I have one problem. I would like to do this automatically, i.e. just configure this in "Save Actions". And this means that t

[gwt-contrib] UiBinder. Parser for AbsolutePanel. (issue715802)

2010-07-27 Thread Konstantin . Scheglov
Reviewers: Ray Ryan, Please review this at http://gwt-code-reviews.appspot.com/715802/show Affected files: user/src/com/google/gwt/uibinder/elementparsers/AbsolutePanelParser.java user/src/com/google/gwt/uibinder/rebind/UiBinderWriter.java user/src/com/google/gwt/user/client/ui/AbsoluteP

[gwt-contrib] Re: UiBinder tweaks for GWT Designer (issue693801)

2010-07-20 Thread Konstantin Scheglov
values in XMLElement > > > http://gwt-code-reviews.appspot.com/693801/show > -- Konstantin Scheglov, Instantiations, Inc. -- http://groups.google.com/group/Google-Web-Toolkit-Contributors

[gwt-contrib] Re: UiBinder tweaks for GWT Designer (issue693801)

2010-07-15 Thread Konstantin Scheglov
inderWriter, should have done that a long >>> time ago. I'll probably tweak it's name while submitting. >>> >>> >>> >>> >>> http://gwt-code-reviews.appspot.com/693801/show >>> >> >> > -- Konstantin Scheglov, Instantiations, Inc. -- http://groups.google.com/group/Google-Web-Toolkit-Contributors

[gwt-contrib] UiBinder tweaks for GWT Designer (issue693801)

2010-07-14 Thread Konstantin . Scheglov
Reviewers: Ray Ryan, Description: It uses just "designTime" and "dt" names, nothing specific for GWT Designer. Please review this at http://gwt-code-reviews.appspot.com/693801/show Affected files: user/src/com/google/gwt/uibinder/elementparsers/BeanParser.java user/src/com/google/gwt/uibind

Re: [gwt-contrib] UiBinder tweaks for GWT Designer

2010-07-02 Thread Konstantin Scheglov
t;>> code always produce the same binary. Would appending an md5 sum to the class >>> name do the trick? >>> >> >> Well, I hope that now it is clear that nothing is going to be "produced" >> with such "design time" tweaks. >> At these modes generated code will be exactly same as it is now. >> > > But if we can avoid having alternative behavior at design time life is > simpler. Would check sums on the generated class names meet that need? > Probably yes. But I think that we should weight what is better/worse - quick check for design time or more-less time consuming calculation of check sum, plus having not-so-friendly class names in hosted mode. -- Konstantin Scheglov, Instantiations, Inc. -- http://groups.google.com/group/Google-Web-Toolkit-Contributors

Re: [gwt-contrib] UiBinder tweaks for GWT Designer

2010-07-01 Thread Konstantin Scheglov
> > We could not do this with a timestamp, as it's important that the same code > always produce the same binary. Would appending an md5 sum to the class name > do the trick? > Well, I hope that now it is clear that nothing is going to be "produced" with such "design time" tweaks. At these modes generated code will be exactly same as it is now. -- Konstantin Scheglov, Instantiations, Inc. -- http://groups.google.com/group/Google-Web-Toolkit-Contributors

Re: [gwt-contrib] Re: UiBinder. Code style for constant parsers.

2010-06-23 Thread Konstantin Scheglov
ensitive for enums, then enum-like constant parsers should do same. Right now I've posted TextAlignConstantParser with low-case-only names. I would be happy to contribute patch with these changes, if they look OK for both of you. Should I replace existing patch with TextAlignConstan

[gwt-contrib] UiBinder. Parser for TextAlignConstant (issue612803)

2010-06-22 Thread Konstantin . Scheglov
Reviewers: jgw, Description: It uses "friendly" names. I will post patch with adding support for names like this for horizontal/vertical alignments (in addition, not replace to keep compatibility with existing code) later. Please review this at http://gwt-code-reviews.appspot.com/612803/show A

[gwt-contrib] DockPanelParser and width/height attributes (issue633802)

2010-06-18 Thread Konstantin . Scheglov
Reviewers: jgw, Description: See discussion http://groups.google.com/group/google-web-toolkit-contributors/browse_thread/thread/99cc78172a6a9abd I've check that tests in com.google.gwt.uibinder.All are still green. Please review this at http://gwt-code-reviews.appspot.com/633802/show Affected

[gwt-contrib] UiBinder. Add tests for horizontal/vertical alignment parsers. (issue633801)

2010-06-17 Thread Konstantin . Scheglov
Reviewers: , Description: I would like to start contributing small changes into UiBinder, mostly to make it better for GWT Designer. For beginning I want to contribute two tests. BTW, why these parsers use so unfriendly names for alignments? "ALIGN_RIGHT" looks not very good in XML. Why not jus