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

« back to all changes in this revision

Viewing changes to TuxGuitar-gtp/src/org/herac/tuxguitar/io/gtp/GTPPluginList.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.gtp;
 
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.TGOutputStreamPlugin;
 
8
import org.herac.tuxguitar.gui.system.plugins.base.TGPluginList;
 
9
import org.herac.tuxguitar.io.base.TGInputStreamBase;
 
10
import org.herac.tuxguitar.io.base.TGOutputStreamBase;
 
11
 
 
12
public class GTPPluginList extends TGPluginList{
 
13
        
 
14
        protected List getPlugins() {
 
15
                List plugins = new ArrayList();
 
16
                plugins.add(new TGInputStreamPlugin() {
 
17
                        protected TGInputStreamBase getInputStream() {
 
18
                                return new GP5InputStream();
 
19
                        }
 
20
                });
 
21
                plugins.add(new TGInputStreamPlugin() {
 
22
                        protected TGInputStreamBase getInputStream() {
 
23
                                return new GP4InputStream();
 
24
                        }
 
25
                });
 
26
                plugins.add(new TGInputStreamPlugin() {
 
27
                        protected TGInputStreamBase getInputStream() {
 
28
                                return new GP3InputStream();
 
29
                        }
 
30
                });
 
31
                plugins.add(new TGInputStreamPlugin() {
 
32
                        protected TGInputStreamBase getInputStream() {
 
33
                                return new GP2InputStream();
 
34
                        }
 
35
                });
 
36
                plugins.add(new TGInputStreamPlugin() {
 
37
                        protected TGInputStreamBase getInputStream() {
 
38
                                return new GP1InputStream();
 
39
                        }
 
40
                });
 
41
                plugins.add(new TGOutputStreamPlugin() {
 
42
                        protected TGOutputStreamBase getOutputStream() {
 
43
                                return new GP5OutputStream();
 
44
                        }
 
45
                });
 
46
                plugins.add(new TGOutputStreamPlugin() {
 
47
                        protected TGOutputStreamBase getOutputStream() {
 
48
                                return new GP4OutputStream();
 
49
                        }
 
50
                });
 
51
                plugins.add(new TGOutputStreamPlugin() {
 
52
                        protected TGOutputStreamBase getOutputStream() {
 
53
                                return new GP3OutputStream();
 
54
                        }
 
55
                });
 
56
                return plugins;
 
57
        }
 
58
        
 
59
        public String getAuthor() {
 
60
                return "Julian Casadesus <julian@casadesus.com.ar>";
 
61
        }
 
62
        
 
63
        public String getName() {
 
64
                return "GPx File Format plugin";
 
65
        }
 
66
        
 
67
        public String getDescription() {
 
68
                return "GPx File Format plugin for TuxGuitar";
 
69
        }
 
70
        
 
71
        public String getVersion() {
 
72
                return "1.0";
 
73
        }
 
74
}