1 Description: file was removed in 2.9.1 but doesn't get generated either ...
3 Forwarded: info via mail
4 Author: gregor herrmann <gregoa@debian.org>
5 Last-Update: 2013-01-01
8 +++ b/src/java/net/sf/jabref/plugin/core/generated/_JabRefPlugin.java
10 +package net.sf.jabref.plugin.core.generated;
\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
21 +import org.apache.commons.logging.Log;
\r
22 +import org.apache.commons.logging.LogFactory;
\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
28 +public abstract class _JabRefPlugin extends Plugin {
\r
30 + public static String getId(){
\r
31 + return "net.sf.jabref.core";
\r
34 + static Log log = LogFactory.getLog(_JabRefPlugin.class);
\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
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
50 + public static class ExportFormatTemplateExtension extends RuntimeExtension {
\r
51 + public ExportFormatTemplateExtension(Plugin declaringPlugin, Extension wrapped){
\r
52 + super(declaringPlugin, wrapped);
\r
56 + public String getDisplayName(){
\r
57 + return getStringParameter("displayName");
\r
61 + public String getConsoleName(){
\r
62 + return getStringParameter("consoleName");
\r
66 + public String getLayoutFilename(){
\r
67 + return getStringParameter("layoutFilename");
\r
71 + public URL getDirAsUrl(){
\r
72 + return getResourceParameter("dir");
\r
75 + public URL getDirAsUrl(String relativePath){
\r
76 + return getResourceParameter("dir", relativePath);
\r
80 + public String getExtension(){
\r
81 + return getStringParameter("extension");
\r
85 + public String getEncoding(){
\r
86 + return getStringParameter("encoding");
\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
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
105 + public static class ExportFormatExtension extends RuntimeExtension {
\r
106 + public ExportFormatExtension(Plugin declaringPlugin, Extension wrapped){
\r
107 + super(declaringPlugin, wrapped);
\r
112 + * @return A singleton instance of the class parameter or null if the class could not be found!
\r
114 + public net.sf.jabref.export.IExportFormat getExportFormat(){
\r
115 + return (net.sf.jabref.export.IExportFormat)getClassParameter("exportFormat");
\r
119 + public String getDisplayName(){
\r
120 + return getStringParameter("displayName");
\r
124 + public String getConsoleName(){
\r
125 + return getStringParameter("consoleName");
\r
129 + public String getExtension(){
\r
130 + return getStringParameter("extension");
\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
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
149 + public static class SidePanePluginExtension extends RuntimeExtension {
\r
150 + public SidePanePluginExtension(Plugin declaringPlugin, Extension wrapped){
\r
151 + super(declaringPlugin, wrapped);
\r
156 + * @return A singleton instance of the class parameter or null if the class could not be found!
\r
158 + public net.sf.jabref.plugin.SidePanePlugin getSidePanePlugin(){
\r
159 + return (net.sf.jabref.plugin.SidePanePlugin)getClassParameter("sidePanePlugin");
\r
163 + public String getName(){
\r
164 + return getStringParameter("name");
\r
168 + public String getDescription(){
\r
169 + return getStringParameter("description");
\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
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
188 + public static class EntryFetcherExtension extends RuntimeExtension {
\r
189 + public EntryFetcherExtension(Plugin declaringPlugin, Extension wrapped){
\r
190 + super(declaringPlugin, wrapped);
\r
195 + * @return A singleton instance of the class parameter or null if the class could not be found!
\r
197 + public net.sf.jabref.imports.EntryFetcher getEntryFetcher(){
\r
198 + return (net.sf.jabref.imports.EntryFetcher)getClassParameter("entryFetcher");
\r
202 + public String getName(){
\r
203 + return getStringParameter("name");
\r
207 + public String getDescription(){
\r
208 + return getStringParameter("description");
\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
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
227 + public static class ExportFormatProviderExtension extends RuntimeExtension {
\r
228 + public ExportFormatProviderExtension(Plugin declaringPlugin, Extension wrapped){
\r
229 + super(declaringPlugin, wrapped);
\r
234 + * @return A singleton instance of the class parameter or null if the class could not be found!
\r
236 + public net.sf.jabref.export.IExportFormatProvider getFormatProvider(){
\r
237 + return (net.sf.jabref.export.IExportFormatProvider)getClassParameter("formatProvider");
\r
241 + public String getName(){
\r
242 + return getStringParameter("name");
\r
246 + public String getDescription(){
\r
247 + return getStringParameter("description");
\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
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
266 + public static class PushToApplicationExtension extends RuntimeExtension {
\r
267 + public PushToApplicationExtension(Plugin declaringPlugin, Extension wrapped){
\r
268 + super(declaringPlugin, wrapped);
\r
273 + * @return A singleton instance of the class parameter or null if the class could not be found!
\r
275 + public net.sf.jabref.external.PushToApplication getPushToApp(){
\r
276 + return (net.sf.jabref.external.PushToApplication)getClassParameter("pushToApp");
\r
280 + public String getName(){
\r
281 + return getStringParameter("name");
\r
285 + public String getDescription(){
\r
286 + return getStringParameter("description");
\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
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
305 + public static class LayoutFormatterExtension extends RuntimeExtension {
\r
306 + public LayoutFormatterExtension(Plugin declaringPlugin, Extension wrapped){
\r
307 + super(declaringPlugin, wrapped);
\r
312 + * @return A singleton instance of the class parameter or null if the class could not be found!
\r
314 + public net.sf.jabref.export.layout.LayoutFormatter getLayoutFormatter(){
\r
315 + return (net.sf.jabref.export.layout.LayoutFormatter)getClassParameter("layoutFormatter");
\r
319 + public String getDescription(){
\r
320 + return getStringParameter("description");
\r
324 + public String getName(){
\r
325 + return getStringParameter("name");
\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
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
344 + public static class ImportFormatExtension extends RuntimeExtension {
\r
345 + public ImportFormatExtension(Plugin declaringPlugin, Extension wrapped){
\r
346 + super(declaringPlugin, wrapped);
\r
351 + * @return A singleton instance of the class parameter or null if the class could not be found!
\r
353 + public net.sf.jabref.imports.ImportFormat getImportFormat(){
\r
354 + return (net.sf.jabref.imports.ImportFormat)getClassParameter("importFormat");
\r
358 + public String getName(){
\r
359 + return getStringParameter("name");
\r
363 + public String getDescription(){
\r
364 + return getStringParameter("description");
\r