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

« back to all changes in this revision

Viewing changes to TuxGuitar/src/org/herac/tuxguitar/gui/system/plugins/TGPluginProperties.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
/*
 
2
 * Created on 09-ene-2006
 
3
 *
 
4
 * TODO To change the template for this generated file go to
 
5
 * Window - Preferences - Java - Code Style - Code Templates
 
6
 */
 
7
package org.herac.tuxguitar.gui.system.plugins;
 
8
 
 
9
import java.io.File;
 
10
import java.util.Properties;
 
11
 
 
12
import org.herac.tuxguitar.gui.system.config.TGConfigManager;
 
13
import org.herac.tuxguitar.gui.util.TGFileUtils;
 
14
 
 
15
/**
 
16
 * @author julian
 
17
 * 
 
18
 * TODO To change the template for this generated type comment go to Window - Preferences - Java - Code Style - Code Templates
 
19
 */
 
20
public class TGPluginProperties  extends TGConfigManager{
 
21
        
 
22
        private static TGPluginProperties instance;
 
23
        
 
24
        public static TGPluginProperties instance(){
 
25
                if(instance == null){
 
26
                        instance = new TGPluginProperties();
 
27
                        instance.init();
 
28
                }
 
29
                return instance;
 
30
        }
 
31
        
 
32
        private TGPluginProperties(){
 
33
                super();
 
34
        }
 
35
        
 
36
        public String getName() {
 
37
                return "TuxGuitar Plugin Properties";
 
38
        }
 
39
        
 
40
        public String getFileName(){
 
41
                return TGFileUtils.PATH_USER_CONFIG + File.separator + "plugin.properties";
 
42
        }
 
43
        
 
44
        public Properties getDefaults() {
 
45
                return new Properties();
 
46
        }
 
47
        
 
48
}
 
 
b'\\ No newline at end of file'