use of org.eclipse.debug.internal.ui.launchConfigurations.LaunchHistory in project tdi-studio-se by Talend.
the class TalendLaunchToolbarAction method getLastLaunch.
/*
* (non-Javadoc)
*
* @see org.eclipse.debug.ui.actions.AbstractLaunchHistoryAction#getLastLaunch()
*/
@Override
protected ILaunchConfiguration getLastLaunch() {
getLaunchConfigurationManager().removeLaunchHistoryListener(this);
LaunchHistory history = getLaunchConfigurationManager().getLaunchHistory(getLaunchGroupIdentifier());
getLaunchConfigurationManager().addLaunchHistoryListener(this);
if (history != null) {
try {
ILaunchConfiguration[] filterConfigs = history.getCompleteLaunchHistory();
for (ILaunchConfiguration launchConfiguration : filterConfigs) {
if (isCurrentProject(launchConfiguration) && checkItemExisted(launchConfiguration)) {
return launchConfiguration;
}
}
} catch (Exception e) {
ExceptionHandler.process(e);
}
}
return null;
}
Aggregations