Action syncAction = new Action() {
public void run() {
if (MessageDialog.openConfirm(Display.getCurrent().getActiveShell(),
"Fix dependencies",
"Alter dependencies?\n\nAnything marked in green will be synchronized.")) {
Job job = new SyncIvyFilesJob(dependencies);
job.addJobChangeListener(new JobChangeAdapter() {
public void done(IJobChangeEvent arg0) {
refresh(true);
}
});
job.schedule();
}
}
};
syncAction.setToolTipText("Synchronize ivy dependencies");
syncAction.setImageDescriptor(IvyPlugin.getImageDescriptor("icons/synced.gif"));