~ubuntu-branches/ubuntu/oneiric/tuxguitar/oneiric

« back to all changes in this revision

Viewing changes to TuxGuitar-compat/src/org/herac/tuxguitar/io/tg/TGPluginListImpl.java

  • Committer: Bazaar Package Importer
  • Author(s): Philippe Coval
  • Date: 2008-06-19 00:30:30 UTC
  • mto: (5.1.2 sid)
  • mto: This revision was merged to the branch mainline in revision 3.
  • Revision ID: james.westby@ubuntu.com-20080619003030-h719szrhsngou7c6
Tags: upstream-1.0
ImportĀ upstreamĀ versionĀ 1.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
package org.herac.tuxguitar.io.tg;
 
2
 
 
3
import java.util.ArrayList;
 
4
import java.util.List;
 
5
 
 
6
import org.herac.tuxguitar.gui.system.plugins.base.TGInputStreamPlugin;
 
7
import org.herac.tuxguitar.gui.system.plugins.base.TGPluginList;
 
8
import org.herac.tuxguitar.io.base.TGInputStreamBase;
 
9
 
 
10
public class TGPluginListImpl extends TGPluginList{
 
11
        
 
12
        protected List getPlugins() {
 
13
                List plugins = new ArrayList();
 
14
                plugins.add(new TGInputStreamPlugin() {
 
15
                        protected TGInputStreamBase getInputStream() {
 
16
                                return new org.herac.tuxguitar.io.tg.v09.TGInputStream();
 
17
                        }
 
18
                });
 
19
                plugins.add(new TGInputStreamPlugin() {
 
20
                        protected TGInputStreamBase getInputStream() {
 
21
                                return new org.herac.tuxguitar.io.tg.v08.TGInputStream();
 
22
                        }
 
23
                });
 
24
                plugins.add(new TGInputStreamPlugin() {
 
25
                        protected TGInputStreamBase getInputStream() {
 
26
                                return new org.herac.tuxguitar.io.tg.v07.TGInputStream();
 
27
                        }
 
28
                });
 
29
                return plugins;
 
30
        }
 
31
        
 
32
        public String getAuthor() {
 
33
                return "Julian Casadesus <julian@casadesus.com.ar>";
 
34
        }
 
35
        
 
36
        public String getName() {
 
37
                return "TuxGuitar file format compatibility";
 
38
        }
 
39
        
 
40
        public String getDescription() {
 
41
                return "This plugin, provides support for other tuxguitar file format versions.";
 
42
        }
 
43
        
 
44
        public String getVersion() {
 
45
                return "1.0";
 
46
        }
 
47
}