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.TuxGuitar;
13
import org.herac.tuxguitar.gui.actions.composition.ChangeInfoAction;
14
import org.herac.tuxguitar.gui.items.ToolItems;
19
* TODO To change the template for this generated type comment go to
20
* Window - Preferences - Java - Code Style - Code Templates
22
public class PropertiesToolItems extends ToolItems{
23
public static final String NAME = "property.items";
25
private ToolItem info;
27
public PropertiesToolItems(){
31
public void showItems(ToolBar toolBar){
32
this.info = new ToolItem(toolBar, SWT.PUSH);
33
this.info.addSelectionListener(TuxGuitar.instance().getAction(ChangeInfoAction.NAME));
36
this.loadProperties();
39
public void loadProperties(){
40
this.info.setToolTipText(TuxGuitar.getProperty("composition.properties"));
43
public void loadIcons(){
44
this.info.setImage(TuxGuitar.instance().getIconManager().getSongProperties());