.correctLabel(language.getText("setEndDate"))));
*/
//GanttProject gp = Mediator.getGanttProjectSingleton();
final ZoomManager zoomManager = myUIfacade.getZoomManager();
final Action zoomOut = new ZoomOutAction(zoomManager, "16");
final Action zoomIn = new ZoomInAction(zoomManager, "16");
bZoomOut = new JButton((Icon) zoomOut.getValue(Action.SMALL_ICON));
bZoomIn = new JButton((Icon) zoomIn.getValue(Action.SMALL_ICON));
bZoomOut.setHorizontalTextPosition(SwingConstants.RIGHT);
bZoomOut.setText(language.getText("narrowChart"));
bZoomOut.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent arg0) {
run(new Runnable() {
public void run() {
zoomOut.actionPerformed(null);
updateSourceImage();
bZoomOut.setEnabled(zoomManager.canZoomOut());
bZoomIn.setEnabled(zoomManager.canZoomIn());
}
});
}
});
bZoomIn.setHorizontalTextPosition(SwingConstants.RIGHT);
bZoomIn.setText(language.getText("widenChart"));
bZoomIn.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent arg0) {
run(new Runnable() {
public void run() {
zoomIn.actionPerformed(null);
updateSourceImage();
bZoomOut.setEnabled(zoomManager.canZoomOut());
bZoomIn.setEnabled(zoomManager.canZoomIn());
}
});