1 package net.sourceforge.phpeclipse.wiki.actions.mediawiki.connect;
2 //Parts of this sources are copied and modified from the jEdit Wikipedia plugin:
3 //http://www.djini.de/software/wikipedia/index.html
5 //The modified sources are available under the "Common Public License"
6 //with permission from the original author: Daniel Wunsch
8 import java.util.IdentityHashMap;
11 import net.sourceforge.phpeclipse.wiki.actions.mediawiki.config.IWikipedia;
13 public class SiteState {
14 String userName = null;
16 boolean loggedIn = false;
22 /** get or create a SiteState for a Site */
23 public static SiteState siteState(IWikipedia site) {
24 SiteState state = (SiteState) siteStates.get(site);
26 state = new SiteState();
27 siteStates.put(site, state);
32 // maps from Site to SiteState
33 private static Map siteStates = new IdentityHashMap();