a246437fc4672f9716f16302f4c5ccbefb375cee
[debian/jabref.git] / debian / patches / generated_JabRefPlugin.java.patch
1 Description: file was removed in 2.9.1 but doesn't get generated either ...
2 Origin: vendor
3 Forwarded: info via mail
4 Author: gregor herrmann <gregoa@debian.org>
5 Last-Update: 2013-01-01
6
7 --- /dev/null
8 +++ b/src/java/net/sf/jabref/plugin/core/generated/_JabRefPlugin.java
9 @@ -0,0 +1,360 @@
10 +package net.sf.jabref.plugin.core.generated;\r
11 +\r
12 +import java.net.URL;\r
13 +import java.util.ArrayList;\r
14 +import java.util.List;\r
15 +import net.sf.jabref.plugin.util.RuntimeExtension;\r
16 +import org.java.plugin.Plugin;\r
17 +import org.java.plugin.PluginLifecycleException;\r
18 +import org.java.plugin.registry.Extension;\r
19 +import org.java.plugin.registry.ExtensionPoint;\r
20 +\r
21 +import org.apache.commons.logging.Log;\r
22 +import org.apache.commons.logging.LogFactory;\r
23 +\r
24 +/**\r
25 + * Do not modify this file, as it was auto generated and will be overwritten!\r
26 + * User modifications should go in net.sf.jabref.plugin.core.JabRefPlugin.\r
27 + */\r
28 +public abstract class _JabRefPlugin extends Plugin {\r
29 +\r
30 +    public static String getId(){\r
31 +        return "net.sf.jabref.core";\r
32 +    }\r
33 +\r
34 +       static Log log = LogFactory.getLog(_JabRefPlugin.class);\r
35 +\r
36 +       public List<ExportFormatTemplateExtension> getExportFormatTemplateExtensions(){\r
37 +        ExtensionPoint extPoint = getManager().getRegistry().getExtensionPoint(getId(), "ExportFormatTemplate");\r
38 +        List<ExportFormatTemplateExtension> result = new ArrayList<ExportFormatTemplateExtension>();\r
39 +        for (Extension ext : extPoint.getConnectedExtensions()) {\r
40 +                       try {\r
41 +                               result.add(new ExportFormatTemplateExtension(getManager().getPlugin(\r
42 +                                               ext.getDeclaringPluginDescriptor().getId()), ext));\r
43 +                       } catch (PluginLifecycleException e) {\r
44 +                               log.error("Failed to activate plug-in " + ext.getDeclaringPluginDescriptor().getId(), e);\r
45 +                       }\r
46 +               }\r
47 +        return result;\r
48 +    }\r
49 +\r
50 +    public static class ExportFormatTemplateExtension extends RuntimeExtension {\r
51 +        public ExportFormatTemplateExtension(Plugin declaringPlugin, Extension wrapped){\r
52 +            super(declaringPlugin, wrapped);\r
53 +        }\r
54 +                \r
55 +            \r
56 +              public String getDisplayName(){\r
57 +            return getStringParameter("displayName");\r
58 +        }\r
59 +  \r
60 +            \r
61 +              public String getConsoleName(){\r
62 +            return getStringParameter("consoleName");\r
63 +        }\r
64 +  \r
65 +            \r
66 +              public String getLayoutFilename(){\r
67 +            return getStringParameter("layoutFilename");\r
68 +        }\r
69 +  \r
70 +            \r
71 +               public URL getDirAsUrl(){\r
72 +                   return getResourceParameter("dir");\r
73 +               }\r
74 +               \r
75 +               public URL getDirAsUrl(String relativePath){\r
76 +                   return getResourceParameter("dir", relativePath);\r
77 +               }\r
78 +  \r
79 +            \r
80 +              public String getExtension(){\r
81 +            return getStringParameter("extension");\r
82 +        }\r
83 +  \r
84 +            \r
85 +              public String getEncoding(){\r
86 +            return getStringParameter("encoding");\r
87 +        }\r
88 +  \r
89 +      }\r
90 +\r
91 +       public List<ExportFormatExtension> getExportFormatExtensions(){\r
92 +        ExtensionPoint extPoint = getManager().getRegistry().getExtensionPoint(getId(), "ExportFormat");\r
93 +        List<ExportFormatExtension> result = new ArrayList<ExportFormatExtension>();\r
94 +        for (Extension ext : extPoint.getConnectedExtensions()) {\r
95 +                       try {\r
96 +                               result.add(new ExportFormatExtension(getManager().getPlugin(\r
97 +                                               ext.getDeclaringPluginDescriptor().getId()), ext));\r
98 +                       } catch (PluginLifecycleException e) {\r
99 +                               log.error("Failed to activate plug-in " + ext.getDeclaringPluginDescriptor().getId(), e);\r
100 +                       }\r
101 +               }\r
102 +        return result;\r
103 +    }\r
104 +\r
105 +    public static class ExportFormatExtension extends RuntimeExtension {\r
106 +        public ExportFormatExtension(Plugin declaringPlugin, Extension wrapped){\r
107 +            super(declaringPlugin, wrapped);\r
108 +        }\r
109 +                \r
110 +            \r
111 +              /**\r
112 +         * @return A singleton instance of the class parameter or null if the class could not be found!\r
113 +         */\r
114 +        public net.sf.jabref.export.IExportFormat getExportFormat(){\r
115 +          return (net.sf.jabref.export.IExportFormat)getClassParameter("exportFormat");\r
116 +        }\r
117 +  \r
118 +            \r
119 +              public String getDisplayName(){\r
120 +            return getStringParameter("displayName");\r
121 +        }\r
122 +  \r
123 +            \r
124 +              public String getConsoleName(){\r
125 +            return getStringParameter("consoleName");\r
126 +        }\r
127 +  \r
128 +            \r
129 +              public String getExtension(){\r
130 +            return getStringParameter("extension");\r
131 +        }\r
132 +  \r
133 +      }\r
134 +\r
135 +       public List<SidePanePluginExtension> getSidePanePluginExtensions(){\r
136 +        ExtensionPoint extPoint = getManager().getRegistry().getExtensionPoint(getId(), "SidePanePlugin");\r
137 +        List<SidePanePluginExtension> result = new ArrayList<SidePanePluginExtension>();\r
138 +        for (Extension ext : extPoint.getConnectedExtensions()) {\r
139 +                       try {\r
140 +                               result.add(new SidePanePluginExtension(getManager().getPlugin(\r
141 +                                               ext.getDeclaringPluginDescriptor().getId()), ext));\r
142 +                       } catch (PluginLifecycleException e) {\r
143 +                               log.error("Failed to activate plug-in " + ext.getDeclaringPluginDescriptor().getId(), e);\r
144 +                       }\r
145 +               }\r
146 +        return result;\r
147 +    }\r
148 +\r
149 +    public static class SidePanePluginExtension extends RuntimeExtension {\r
150 +        public SidePanePluginExtension(Plugin declaringPlugin, Extension wrapped){\r
151 +            super(declaringPlugin, wrapped);\r
152 +        }\r
153 +                \r
154 +            \r
155 +              /**\r
156 +         * @return A singleton instance of the class parameter or null if the class could not be found!\r
157 +         */\r
158 +        public net.sf.jabref.plugin.SidePanePlugin getSidePanePlugin(){\r
159 +          return (net.sf.jabref.plugin.SidePanePlugin)getClassParameter("sidePanePlugin");\r
160 +        }\r
161 +  \r
162 +            \r
163 +              public String getName(){\r
164 +            return getStringParameter("name");\r
165 +        }\r
166 +  \r
167 +            \r
168 +              public String getDescription(){\r
169 +            return getStringParameter("description");\r
170 +        }\r
171 +  \r
172 +      }\r
173 +\r
174 +       public List<EntryFetcherExtension> getEntryFetcherExtensions(){\r
175 +        ExtensionPoint extPoint = getManager().getRegistry().getExtensionPoint(getId(), "EntryFetcher");\r
176 +        List<EntryFetcherExtension> result = new ArrayList<EntryFetcherExtension>();\r
177 +        for (Extension ext : extPoint.getConnectedExtensions()) {\r
178 +                       try {\r
179 +                               result.add(new EntryFetcherExtension(getManager().getPlugin(\r
180 +                                               ext.getDeclaringPluginDescriptor().getId()), ext));\r
181 +                       } catch (PluginLifecycleException e) {\r
182 +                               log.error("Failed to activate plug-in " + ext.getDeclaringPluginDescriptor().getId(), e);\r
183 +                       }\r
184 +               }\r
185 +        return result;\r
186 +    }\r
187 +\r
188 +    public static class EntryFetcherExtension extends RuntimeExtension {\r
189 +        public EntryFetcherExtension(Plugin declaringPlugin, Extension wrapped){\r
190 +            super(declaringPlugin, wrapped);\r
191 +        }\r
192 +                \r
193 +            \r
194 +              /**\r
195 +         * @return A singleton instance of the class parameter or null if the class could not be found!\r
196 +         */\r
197 +        public net.sf.jabref.imports.EntryFetcher getEntryFetcher(){\r
198 +          return (net.sf.jabref.imports.EntryFetcher)getClassParameter("entryFetcher");\r
199 +        }\r
200 +  \r
201 +            \r
202 +              public String getName(){\r
203 +            return getStringParameter("name");\r
204 +        }\r
205 +  \r
206 +            \r
207 +              public String getDescription(){\r
208 +            return getStringParameter("description");\r
209 +        }\r
210 +  \r
211 +      }\r
212 +\r
213 +       public List<ExportFormatProviderExtension> getExportFormatProviderExtensions(){\r
214 +        ExtensionPoint extPoint = getManager().getRegistry().getExtensionPoint(getId(), "ExportFormatProvider");\r
215 +        List<ExportFormatProviderExtension> result = new ArrayList<ExportFormatProviderExtension>();\r
216 +        for (Extension ext : extPoint.getConnectedExtensions()) {\r
217 +                       try {\r
218 +                               result.add(new ExportFormatProviderExtension(getManager().getPlugin(\r
219 +                                               ext.getDeclaringPluginDescriptor().getId()), ext));\r
220 +                       } catch (PluginLifecycleException e) {\r
221 +                               log.error("Failed to activate plug-in " + ext.getDeclaringPluginDescriptor().getId(), e);\r
222 +                       }\r
223 +               }\r
224 +        return result;\r
225 +    }\r
226 +\r
227 +    public static class ExportFormatProviderExtension extends RuntimeExtension {\r
228 +        public ExportFormatProviderExtension(Plugin declaringPlugin, Extension wrapped){\r
229 +            super(declaringPlugin, wrapped);\r
230 +        }\r
231 +                \r
232 +            \r
233 +              /**\r
234 +         * @return A singleton instance of the class parameter or null if the class could not be found!\r
235 +         */\r
236 +        public net.sf.jabref.export.IExportFormatProvider getFormatProvider(){\r
237 +          return (net.sf.jabref.export.IExportFormatProvider)getClassParameter("formatProvider");\r
238 +        }\r
239 +  \r
240 +            \r
241 +              public String getName(){\r
242 +            return getStringParameter("name");\r
243 +        }\r
244 +  \r
245 +            \r
246 +              public String getDescription(){\r
247 +            return getStringParameter("description");\r
248 +        }\r
249 +  \r
250 +      }\r
251 +\r
252 +       public List<PushToApplicationExtension> getPushToApplicationExtensions(){\r
253 +        ExtensionPoint extPoint = getManager().getRegistry().getExtensionPoint(getId(), "PushToApplication");\r
254 +        List<PushToApplicationExtension> result = new ArrayList<PushToApplicationExtension>();\r
255 +        for (Extension ext : extPoint.getConnectedExtensions()) {\r
256 +                       try {\r
257 +                               result.add(new PushToApplicationExtension(getManager().getPlugin(\r
258 +                                               ext.getDeclaringPluginDescriptor().getId()), ext));\r
259 +                       } catch (PluginLifecycleException e) {\r
260 +                               log.error("Failed to activate plug-in " + ext.getDeclaringPluginDescriptor().getId(), e);\r
261 +                       }\r
262 +               }\r
263 +        return result;\r
264 +    }\r
265 +\r
266 +    public static class PushToApplicationExtension extends RuntimeExtension {\r
267 +        public PushToApplicationExtension(Plugin declaringPlugin, Extension wrapped){\r
268 +            super(declaringPlugin, wrapped);\r
269 +        }\r
270 +                \r
271 +            \r
272 +              /**\r
273 +         * @return A singleton instance of the class parameter or null if the class could not be found!\r
274 +         */\r
275 +        public net.sf.jabref.external.PushToApplication getPushToApp(){\r
276 +          return (net.sf.jabref.external.PushToApplication)getClassParameter("pushToApp");\r
277 +        }\r
278 +  \r
279 +            \r
280 +              public String getName(){\r
281 +            return getStringParameter("name");\r
282 +        }\r
283 +  \r
284 +            \r
285 +              public String getDescription(){\r
286 +            return getStringParameter("description");\r
287 +        }\r
288 +  \r
289 +      }\r
290 +\r
291 +       public List<LayoutFormatterExtension> getLayoutFormatterExtensions(){\r
292 +        ExtensionPoint extPoint = getManager().getRegistry().getExtensionPoint(getId(), "LayoutFormatter");\r
293 +        List<LayoutFormatterExtension> result = new ArrayList<LayoutFormatterExtension>();\r
294 +        for (Extension ext : extPoint.getConnectedExtensions()) {\r
295 +                       try {\r
296 +                               result.add(new LayoutFormatterExtension(getManager().getPlugin(\r
297 +                                               ext.getDeclaringPluginDescriptor().getId()), ext));\r
298 +                       } catch (PluginLifecycleException e) {\r
299 +                               log.error("Failed to activate plug-in " + ext.getDeclaringPluginDescriptor().getId(), e);\r
300 +                       }\r
301 +               }\r
302 +        return result;\r
303 +    }\r
304 +\r
305 +    public static class LayoutFormatterExtension extends RuntimeExtension {\r
306 +        public LayoutFormatterExtension(Plugin declaringPlugin, Extension wrapped){\r
307 +            super(declaringPlugin, wrapped);\r
308 +        }\r
309 +                \r
310 +            \r
311 +              /**\r
312 +         * @return A singleton instance of the class parameter or null if the class could not be found!\r
313 +         */\r
314 +        public net.sf.jabref.export.layout.LayoutFormatter getLayoutFormatter(){\r
315 +          return (net.sf.jabref.export.layout.LayoutFormatter)getClassParameter("layoutFormatter");\r
316 +        }\r
317 +  \r
318 +            \r
319 +              public String getDescription(){\r
320 +            return getStringParameter("description");\r
321 +        }\r
322 +  \r
323 +            \r
324 +              public String getName(){\r
325 +            return getStringParameter("name");\r
326 +        }\r
327 +  \r
328 +      }\r
329 +\r
330 +       public List<ImportFormatExtension> getImportFormatExtensions(){\r
331 +        ExtensionPoint extPoint = getManager().getRegistry().getExtensionPoint(getId(), "ImportFormat");\r
332 +        List<ImportFormatExtension> result = new ArrayList<ImportFormatExtension>();\r
333 +        for (Extension ext : extPoint.getConnectedExtensions()) {\r
334 +                       try {\r
335 +                               result.add(new ImportFormatExtension(getManager().getPlugin(\r
336 +                                               ext.getDeclaringPluginDescriptor().getId()), ext));\r
337 +                       } catch (PluginLifecycleException e) {\r
338 +                               log.error("Failed to activate plug-in " + ext.getDeclaringPluginDescriptor().getId(), e);\r
339 +                       }\r
340 +               }\r
341 +        return result;\r
342 +    }\r
343 +\r
344 +    public static class ImportFormatExtension extends RuntimeExtension {\r
345 +        public ImportFormatExtension(Plugin declaringPlugin, Extension wrapped){\r
346 +            super(declaringPlugin, wrapped);\r
347 +        }\r
348 +                \r
349 +            \r
350 +              /**\r
351 +         * @return A singleton instance of the class parameter or null if the class could not be found!\r
352 +         */\r
353 +        public net.sf.jabref.imports.ImportFormat getImportFormat(){\r
354 +          return (net.sf.jabref.imports.ImportFormat)getClassParameter("importFormat");\r
355 +        }\r
356 +  \r
357 +            \r
358 +              public String getName(){\r
359 +            return getStringParameter("name");\r
360 +        }\r
361 +  \r
362 +            \r
363 +              public String getDescription(){\r
364 +            return getStringParameter("description");\r
365 +        }\r
366 +  \r
367 +      }\r
368 +\r
369 +}\r