29 lines
746 B
Java
29 lines
746 B
Java
|
package pyUML.actions;
|
||
|
|
||
|
import org.eclipse.core.commands.AbstractHandler;
|
||
|
import org.eclipse.core.commands.ExecutionEvent;
|
||
|
import org.eclipse.core.commands.ExecutionException;
|
||
|
import org.eclipse.core.resources.IProject;
|
||
|
|
||
|
import pyUML.backend.EclipseHelperMethods;
|
||
|
|
||
|
|
||
|
/**
|
||
|
* An action Handler that calls ManageViewsAction for a user-selected project
|
||
|
*/
|
||
|
public class ManageViewsHandler extends AbstractHandler{
|
||
|
public static IProject selectedProject = null;
|
||
|
|
||
|
@Override
|
||
|
public Object execute(ExecutionEvent arg0) throws ExecutionException {
|
||
|
EclipseHelperMethods.saveAllOpenEditors();
|
||
|
IProject project = EclipseHelperMethods.selectProject();
|
||
|
|
||
|
if (project == null)
|
||
|
return null;
|
||
|
|
||
|
ManageViewsAction.run(project);
|
||
|
return null;
|
||
|
}
|
||
|
}
|