2
* Created on 02-dic-2005
4
* TODO To change the template for this generated file go to
5
* Window - Preferences - Java - Code Style - Code Templates
7
package org.herac.tuxguitar.gui.items.tool;
9
import org.eclipse.swt.SWT;
10
import org.eclipse.swt.widgets.ToolBar;
11
import org.eclipse.swt.widgets.ToolItem;
12
import org.herac.tuxguitar.gui.SystemImages;
13
import org.herac.tuxguitar.gui.TuxGuitar;
14
import org.herac.tuxguitar.gui.actions.composition.ChangeInfoAction;
15
import org.herac.tuxguitar.gui.items.ToolItems;
20
* TODO To change the template for this generated type comment go to
21
* Window - Preferences - Java - Code Style - Code Templates
23
public class PropertiesToolItems extends ToolItems{
24
public static final String NAME = "property.items";
26
private ToolBar toolBar;
27
private ToolItem info;
29
public PropertiesToolItems(){
33
public void showItems(ToolBar toolBar){
34
this.toolBar = toolBar;
36
this.info = new ToolItem(toolBar, SWT.PUSH);
37
this.info.setImage(SystemImages.SONG_PROPERTIES);
38
this.info.addSelectionListener(TuxGuitar.instance().getAction(ChangeInfoAction.NAME));
40
this.loadProperties();
43
public void loadProperties(){
44
this.info.setToolTipText(TuxGuitar.getProperty("composition.properties"));