浏览代码

Fixes issue 3413: go upload a better placeholder addonbrowser

Change-Id: I3c7575f90661c177bd5432cf0e961f1980980d3d
Reviewed-on: http://gerrit.dmdirc.com/313
Tested-by: Gregory Holmes <greboid@dmdirc.com>
Reviewed-by: Chris Smith <chris@dmdirc.com>
tags/0.6.3
Gregory Holmes 14 年前
父节点
当前提交
11bf641a28

+ 54
- 0
src/com/dmdirc/addons/addonbrowser/BrowserPlugin.java 查看文件

@@ -0,0 +1,54 @@
1
+/*
2
+ * 
3
+ * Copyright (c) 2006-2010 Chris Smith, Shane Mc Cormack, Gregory Holmes
4
+ * 
5
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ * of this software and associated documentation files (the "Software"), to deal
7
+ * in the Software without restriction, including without limitation the rights
8
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ * copies of the Software, and to permit persons to whom the Software is
10
+ * furnished to do so, subject to the following conditions:
11
+ * 
12
+ * The above copyright notice and this permission notice shall be included in
13
+ * all copies or substantial portions of the Software.
14
+ * 
15
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ * SOFTWARE.
22
+ */
23
+
24
+package com.dmdirc.addons.addonbrowser;
25
+
26
+import com.dmdirc.config.prefs.PreferencesCategory;
27
+import com.dmdirc.config.prefs.PreferencesManager;
28
+import com.dmdirc.plugins.Plugin;
29
+
30
+/**
31
+ * Placeholder addon browser plugin.
32
+ */
33
+public class BrowserPlugin extends Plugin {
34
+
35
+    /** {@inheritDoc} */
36
+    @Override
37
+    public void onLoad() {
38
+    }
39
+
40
+    /** {@inheritDoc} */
41
+    @Override
42
+    public void onUnload() {
43
+    }
44
+
45
+    /** {@inheritDoc} */
46
+    @Override
47
+    public void showConfig(final PreferencesManager manager) {
48
+        PreferencesCategory category = new PreferencesCategory("Addon Browser",
49
+                "This addon is now part of the Swing UI and is no longer " +
50
+                "required. The plugin may be manually deleted from your " +
51
+                "plugins directory.");
52
+        manager.getCategory("Plugins").addSubCategory(category);
53
+    }
54
+}

+ 22
- 0
src/com/dmdirc/addons/addonbrowser/plugin.config 查看文件

@@ -0,0 +1,22 @@
1
+# This is a DMDirc configuration file.
2
+
3
+# This section indicates which sections below take key/value
4
+# pairs, rather than a simple list. It should be placed above
5
+# any sections that take key/values.
6
+keysections:
7
+  metadata
8
+  updates
9
+  version
10
+
11
+metadata:
12
+  author=Greg <greg@dmdirc.com>
13
+  mainclass=com.dmdirc.addons.addonbrowser.BrowserPlugin
14
+  description=Defunct Addon Browser
15
+  name=addonbrowser
16
+  nicename=Addon Browser
17
+
18
+updates:
19
+  id=26
20
+
21
+version:
22
+  friendly=1.0

正在加载...
取消
保存