1 package net.sourceforge.phpeclipse.wiki.actions.mediawiki.config;
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 public abstract class AbstractWikipedia implements IWikipedia {
9 private WikiProperties fProperties;
11 protected AbstractWikipedia(WikiProperties properties) {
12 this.fProperties = properties;
16 * @return Returns the actionPath.
18 public String getActionPath() {
19 return fProperties.getString("actionPath");
23 * @return Returns the actionPath2.
25 public String getActionPath2() {
26 return fProperties.getString("actionPath2");
32 * @see net.sourceforge.phpeclipse.wiki.actions.mediawiki.config.IWikipedia#getActionUrl()
34 public String getActionUrl() {
35 return getBaseURL() + getActionPath();
39 * @return Returns the baseURL.
41 public String getBaseURL() {
42 return fProperties.getString("baseURL");
46 * @return Returns the charSet.
48 public String getCharSet() {
49 return fProperties.getString("charSet");
53 * @return Returns the loginNoUser.
55 public String getLoginNoUser() {
56 return fProperties.getString("loginNoUser");
60 * @return Returns the loginSuccess.
62 public String getLoginSuccess() {
63 return fProperties.getString("loginSuccess");
67 * @return Returns the loginTitle.
69 public String getLoginTitle() {
70 return fProperties.getString("specialNs")+ ":Userlogin";
74 * @return Returns the loginWrongPw.
76 public String getLoginWrongPw() {
77 return fProperties.getString("loginWrongPw");
81 * @return Returns the logoutSuccess.
83 public String getLogoutSuccess() {
84 return fProperties.getString("logoutSuccess");
88 * @return Returns the logoutTitle.
90 public String getLogoutTitle() {
91 return fProperties.getString("specialNs")+ ":Userlogout";
95 * @return Returns the metaNs.
97 public String getMetaNs() {
98 return fProperties.getString("metaNs");
102 * @return Returns the readPath.
104 public String getReadPath() {
105 return fProperties.getString("readPath");
109 * @return Returns the specialNs.
111 public String getSpecialNs() {
112 return fProperties.getString("specialNs");
116 * @return Returns the uploadNoLogin.
118 public String getUploadNoLogin() {
119 return fProperties.getString("uploadNoLogin");
123 * @return Returns the uploadSuccess.
125 public String getUploadSuccess() {
126 return fProperties.getString("uploadSuccess");
130 * @return Returns the uploadTitle.
132 public String getUploadTitle() {
133 return fProperties.getString("specialNs")+ ":Upload";