package net.sourceforge.phpeclipse.wiki.actions.mediawiki.config; //Parts of this sources are copied and modified from the jEdit Wikipedia plugin: //http://www.djini.de/software/wikipedia/index.html // //The modified sources are available under the "Common Public License" //with permission from the original author: Daniel Wunsch public abstract class AbstractWikipedia implements IWikipedia { private WikiProperties fProperties; protected AbstractWikipedia(WikiProperties properties) { this.fProperties = properties; } /** * @return Returns the actionPath. */ public String getActionPath() { return fProperties.getString("actionPath"); } /** * @return Returns the actionPath2. */ public String getActionPath2() { return fProperties.getString("actionPath2"); } /* * (non-Javadoc) * * @see net.sourceforge.phpeclipse.wiki.actions.mediawiki.config.IWikipedia#getActionUrl() */ public String getActionUrl() { return getBaseURL() + getActionPath(); } /** * @return Returns the baseURL. */ public String getBaseURL() { return fProperties.getString("baseURL"); } /** * @return Returns the charSet. */ public String getCharSet() { return fProperties.getString("charSet"); } /** * @return Returns the loginNoUser. */ public String getLoginNoUser() { return fProperties.getString("loginNoUser"); } /** * @return Returns the loginSuccess. */ public String getLoginSuccess() { return fProperties.getString("loginSuccess"); } /** * @return Returns the loginTitle. */ public String getLoginTitle() { return fProperties.getString("specialNs")+ ":Userlogin"; } /** * @return Returns the loginWrongPw. */ public String getLoginWrongPw() { return fProperties.getString("loginWrongPw"); } /** * @return Returns the logoutSuccess. */ public String getLogoutSuccess() { return fProperties.getString("logoutSuccess"); } /** * @return Returns the logoutTitle. */ public String getLogoutTitle() { return fProperties.getString("specialNs")+ ":Userlogout"; } /** * @return Returns the metaNs. */ public String getMetaNs() { return fProperties.getString("metaNs"); } /** * @return Returns the readPath. */ public String getReadPath() { return fProperties.getString("readPath"); } /** * @return Returns the specialNs. */ public String getSpecialNs() { return fProperties.getString("specialNs"); } /** * @return Returns the uploadNoLogin. */ public String getUploadNoLogin() { return fProperties.getString("uploadNoLogin"); } /** * @return Returns the uploadSuccess. */ public String getUploadSuccess() { return fProperties.getString("uploadSuccess"); } /** * @return Returns the uploadTitle. */ public String getUploadTitle() { return fProperties.getString("specialNs")+ ":Upload"; } }