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

« back to all changes in this revision

Viewing changes to TuxGuitar/src/org/herac/tuxguitar/gui/items/ToolItems.java

  • Committer: Bazaar Package Importer
  • Author(s): Philippe Coval
  • Date: 2008-06-19 00:30:30 UTC
  • mfrom: (1.1.1 upstream) (2.1.3 hardy)
  • Revision ID: james.westby@ubuntu.com-20080619003030-agens2gvd5m4dacu
New upstream release (Closes: #481728) also (LP: #176979, #212207)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
package org.herac.tuxguitar.gui.items;
 
2
 
 
3
import org.eclipse.swt.widgets.ToolBar;
 
4
import org.herac.tuxguitar.gui.TuxGuitar;
 
5
import org.herac.tuxguitar.gui.editors.TablatureEditor;
 
6
 
 
7
public abstract class ToolItems implements ItemBase{
 
8
        
 
9
        private String name;
 
10
        private boolean enabled;
 
11
        
 
12
        public ToolItems(String name){
 
13
                this.name = name;
 
14
                this.enabled = true;
 
15
        }
 
16
        
 
17
        public String getName(){
 
18
                return this.name;
 
19
        }
 
20
        
 
21
        public boolean isEnabled() {
 
22
                return this.enabled;
 
23
        }
 
24
        
 
25
        public void setEnabled(boolean enabled) {
 
26
                this.enabled = enabled;
 
27
        }
 
28
        
 
29
        protected TablatureEditor getEditor(){
 
30
                return TuxGuitar.instance().getTablatureEditor();
 
31
        }
 
32
        
 
33
        public abstract void showItems(ToolBar toolBar);
 
34
        
 
35
}