001package votorola.s.gwt.mediawiki; // Copyright 2012, Michael Allan.  Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Votorola Software"), to deal in the Votorola Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicence, and/or sell copies of the Votorola Software, and to permit persons to whom the Votorola Software is furnished to do so, subject to the following conditions: The preceding copyright notice and this permission notice shall be included in all copies or substantial portions of the Votorola Software. THE VOTOROLA SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE VOTOROLA SOFTWARE OR THE USE OR OTHER DEALINGS IN THE VOTOROLA SOFTWARE.
002
003import com.google.gwt.user.client.Window;
004import votorola.a.web.gwt.*;
005
006
007/** The GWT library module for embedding the Crossforum Theatre {@linkplain
008  * votorola.s.gwt.stage.Stage stage} in MediaWiki pages.  An instance of this class is
009  * automatically constructed and invoked per module definition <a
010  * href='../../../../../../s/gwt/mediawiki/MediaWikiMod.gwt.xml'>MediaWikiMod.gwt.xml</a>.
011  */
012public class MediaWikiMod implements EntryPointS
013{
014
015
016   // - E n t r y - P o i n t ------------------------------------------------------------
017
018
019    public final void onModuleLoad()
020    {
021        if( App.getServletContextLocation() == null )
022        {
023            Window.alert(
024              "no servlet context, does your gwt.js call a_web_gwt_App_setServletContextLocation?" );
025        }
026        EntryPointS.U.schedule( MediaWikiMod.this );
027    }
028
029
030
031   // - S c h e d u l e r . S c h e d u l e d - C o m m a n d ----------------------------
032
033
034    public void execute() { new DifferenceShadower(); }
035
036
037}