Search in sources :

Example 1 with ConsoleConfigurationDeleteJavaProjectChange

use of org.hibernate.eclipse.launch.core.refactoring.ConsoleConfigurationDeleteJavaProjectChange in project jbosstools-hibernate by jbosstools.

the class DeleteProjectParticipant method createChange.

@Override
public Change createChange(IProgressMonitor pm) throws CoreException, OperationCanceledException {
    ILaunchConfiguration[] configs = HibernateRefactoringUtil.getAffectedLaunchConfigurations(javaProject);
    List<Change> changes = new ArrayList<Change>();
    for (int i = 0; i < configs.length; i++) {
        changes.add(new ConsoleConfigurationDeleteJavaProjectChange(configs[i]));
    }
    return HibernateRefactoringUtil.createChangesFromList(changes, getName());
}
Also used : ILaunchConfiguration(org.eclipse.debug.core.ILaunchConfiguration) ArrayList(java.util.ArrayList) ConsoleConfigurationDeleteJavaProjectChange(org.hibernate.eclipse.launch.core.refactoring.ConsoleConfigurationDeleteJavaProjectChange) ConsoleConfigurationDeleteJavaProjectChange(org.hibernate.eclipse.launch.core.refactoring.ConsoleConfigurationDeleteJavaProjectChange) Change(org.eclipse.ltk.core.refactoring.Change)

Aggregations

ArrayList (java.util.ArrayList)1 ILaunchConfiguration (org.eclipse.debug.core.ILaunchConfiguration)1 Change (org.eclipse.ltk.core.refactoring.Change)1 ConsoleConfigurationDeleteJavaProjectChange (org.hibernate.eclipse.launch.core.refactoring.ConsoleConfigurationDeleteJavaProjectChange)1