* An action to show the repositories view for a resource.
*/
public class ShowRepositoriesViewActionHandler extends RepositoryActionHandler {
public Object execute(ExecutionEvent event) throws ExecutionException {
RepositoriesView view;
try {
view = (RepositoriesView) PlatformUI.getWorkbench()
.getActiveWorkbenchWindow().getActivePage().showView(
RepositoriesView.VIEW_ID);
ShowInContext ctx = new ShowInContext(ResourcesPlugin.getWorkspace().getRoot(), getSelection(event));
view.show(ctx);
} catch (PartInitException e) {
throw new ExecutionException(e.getMessage(), e);
}
return null;
}