1) Added missing strings for italic, underline and strike through.
[phpeclipse.git] / archive / net.sourceforge.phpeclipse.wiki / src / net / sourceforge / phpeclipse / wiki / actions / mediawiki / connect / SiteState.java
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
4 //
5 //The modified sources are available under the "Common Public License"
6 //with permission from the original author: Daniel Wunsch
7
8 import java.util.IdentityHashMap;
9 import java.util.Map;
10
11 import net.sourceforge.phpeclipse.wiki.actions.mediawiki.config.IWikipedia;
12
13 public class SiteState {
14   String userName = null;
15
16   boolean loggedIn = false;
17
18   public SiteState() {
19
20   }
21
22   /** get or create a SiteState for a Site */
23   public static SiteState siteState(IWikipedia site) {
24     SiteState state = (SiteState) siteStates.get(site);
25     if (state == null) {
26       state = new SiteState();
27       siteStates.put(site, state);
28     }
29     return state;
30   }
31
32   // maps from Site to SiteState
33   private static Map siteStates = new IdentityHashMap();
34
35 }