1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
package org.herac.tuxguitar.gui.tools.custom;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
public class TGCustomToolManager {
private static TGCustomToolManager instance;
private List tools;
public TGCustomToolManager(){
this.tools = new ArrayList();
}
public static TGCustomToolManager instance(){
if(instance == null){
instance = new TGCustomToolManager();
}
return instance;
}
public void addCustomTool(TGCustomTool tool){
this.tools.add(tool);
}
public void removeCustomTool(TGCustomTool tool){
this.tools.remove(tool);
}
public Iterator getCustomTools(){
return this.tools.iterator();
}
}
|