Hi Sergiu,
Sergiu Dumitriu wrote:
On 10/19/2009 03:37 PM, Marius Dumitru Florea wrote:
> Hi devs,
>
> I'd like to create a xwiki-gwt-user module in platform-web which will
> contain classes from the util and widget WYSIWYG packages. This module
> corresponds to the com.google.gwt.user package which contains utility
> and UI-related classed. The module will have this structure:
>
> org.xwiki.gwt.user.client.* (classes from the current util package)
> org.xwiki.gwt.user.client.widget.* (classes from the current widget package)
>
> Since I want this module to be generic (an extension of what GWT
> currently provides) I'd like to exclude the following class/packages
> which are XWiki specific:
>
> * util.Attachment
util.ResourceName too
*
widget.explorer.*
* widget.wizard.util.*
* widget.PageSelector
* widget.SpaceSelector
* widget.WikiSelector
These can remain in the WYSIWYG source tree for the moment but I'm
considering moving them to the gwt module which is XWiki specific.
You can see the current sources here
http://svn.xwiki.org/svnroot/xwiki/platform/web/trunk/wysiwyg/src/main/java…
Here's my +1. WDYT?
Why "user"? It doesn't look like a user thing to me, perhaps I'm wrong.
Can you explain what this code does in more details?
GWT has 3 main jars:
gwt-servlet-1.7.0.jar
gwt-user-1.7.0.jar
gwt-dev-1.7.0-linux.jar
Some of the main packages from the user jar are:
com.google.gwt.dom
com.google.gwt.emul
com.google.gwt.user
The dom package exposes, obviously, the JavaScript DOM API in Java code.
We have extended what this package offers and created the xwiki-gwt-dom
module.
The user package contains utility classes like Timer, Random or
DeferredCommand and basic widgets (ui.* package) like CheckBox or
RichTextArea. We have extended what this package offers with other
useful utility classes like Console, ShortcutKeyManager or
DeferredUpdater and other widgets (widget.* package) like
VerticalResizePanel, improved RichTextArea, generic dialog wizard.
In order to be consistent I proposed a xwiki-gwt-user module. I'm open
to your suggestions regarding the name.
Anyway, this module will be generic (reusable in any GWT application)
without any XWiki specific code.
Hope it's clear now,
Marius