info.setToolTipText(getResourceString("button.info.tooltip"));
info.setToolTipText(Resources.getString("button.info.tooltip"));
  public void createToolBar() {    ToolBar toolbar = new ToolBar(shell, SWT.FLAT);    GridData gridData = new GridData();    gridData.horizontalAlignment = GridData.FILL;    gridData.grabExcessHorizontalSpace = false;    gridData.horizontalSpan = 1;    toolbar.setLayoutData(gridData);    rateButtons = new ToolItem[ratingFunctions.length];     for (int i = 0; i < ratingFunctions.length; i++) {      RatingFunction rf = ratingFunctions[i];      ToolItem item = new ToolItem(toolbar, SWT.PUSH);      item.setToolTipText(getResourceString(rf.getName() + ".tooltip"));      final int value = rf.getValue();      item.addSelectionListener(new SelectionAdapter() {        public void widgetSelected(SelectionEvent e) {          setRating(getSelectedTrack(), value);        }      });      rateButtons[i] = item;    }    new ToolItem(toolbar, SWT.SEPARATOR);    pause = new ToolItem(toolbar, SWT.PUSH);    setPaused(false);    pause.addSelectionListener(new SelectionAdapter() {      public void widgetSelected(SelectionEvent e) {        setPaused(!isPaused());      }    });    previous = new ToolItem(toolbar, SWT.PUSH);    previous.setToolTipText(getResourceString("button.previous.tooltip"));    previous.addSelectionListener(new SelectionAdapter() {      public void widgetSelected(SelectionEvent e) {        skip(true);      }    });    previous.setEnabled(false);    next = new ToolItem(toolbar, SWT.PUSH);    next.setToolTipText(getResourceString("button.next.tooltip"));    next.addSelectionListener(new SelectionAdapter() {      public void widgetSelected(SelectionEvent e) {        skip();      }    });    new ToolItem(toolbar, SWT.SEPARATOR);    info = new ToolItem(toolbar, SWT.PUSH);    info.setToolTipText(getResourceString("button.info.tooltip"));    final Client clientToPass = this;    info.addSelectionListener(new SelectionAdapter() {      public void widgetSelected(SelectionEvent e) {        Track track = getSelectedTrack();        if (track == null)          return;                TrackInfoDialog trackInfoDialog = new TrackInfoDialog(display, shell);        trackInfoDialog.displayTrackInfo(track, clientToPass);         }    });    volumeScale = new Scale(shell, SWT.HORIZONTAL | SWT.FLAT);    volumeScale.setIncrement(1);    volumeScale.setPageIncrement(1);    volumeScale.setMaximum(VOLUME_SPAN / VOLUME_RESOLUTION);    volumeScale.setToolTipText(getResourceString("slider.volume.tooltip"));    volumeScale.addSelectionListener(new SelectionAdapter() {      public void widgetSelected(SelectionEvent e) {        setVolume(          volumeScale.getSelection() * VOLUME_RESOLUTION - VOLUME_OFFSET);      }    });    gridData = new GridData();    gridData.horizontalAlignment = GridData.FILL;    gridData.grabExcessHorizontalSpace = false;    volumeScale.setLayoutData(gridData);        songProgressBar = new TrackProgressBar(shell, SWT.NONE);    applySkin();  }