diff options
Diffstat (limited to 'plugins/org.eclipse.emf.cdo.ui.workspace/src/org/eclipse/emf/cdo/ui/internal/workspace/CheckoutAsAction.java')
-rw-r--r-- | plugins/org.eclipse.emf.cdo.ui.workspace/src/org/eclipse/emf/cdo/ui/internal/workspace/CheckoutAsAction.java | 74 |
1 files changed, 37 insertions, 37 deletions
diff --git a/plugins/org.eclipse.emf.cdo.ui.workspace/src/org/eclipse/emf/cdo/ui/internal/workspace/CheckoutAsAction.java b/plugins/org.eclipse.emf.cdo.ui.workspace/src/org/eclipse/emf/cdo/ui/internal/workspace/CheckoutAsAction.java index 239eb94a19..71713b2a99 100644 --- a/plugins/org.eclipse.emf.cdo.ui.workspace/src/org/eclipse/emf/cdo/ui/internal/workspace/CheckoutAsAction.java +++ b/plugins/org.eclipse.emf.cdo.ui.workspace/src/org/eclipse/emf/cdo/ui/internal/workspace/CheckoutAsAction.java @@ -1,37 +1,37 @@ -/*
- * Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Eike Stepper - initial API and implementation
- * Victor Roldan Betancort - maintenance
- */
-package org.eclipse.emf.cdo.ui.internal.workspace;
-
-import org.eclipse.emf.cdo.location.ICheckoutSource;
-
-import org.eclipse.swt.widgets.Shell;
-
-/**
- * @author Eike Stepper
- */
-public class CheckoutAsAction extends CheckoutAction
-{
- public CheckoutAsAction()
- {
- }
-
- @Override
- protected void checkout(ICheckoutSource checkoutSource, String projectName)
- {
- Shell shell = getPart().getSite().getShell();
- CheckoutDialog dialog = new CheckoutDialog(shell, projectName);
- if (dialog.open() == CheckoutDialog.OK)
- {
- super.checkout(checkoutSource, dialog.getProjectName());
- }
- }
-}
+/* + * Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Eike Stepper - initial API and implementation + * Victor Roldan Betancort - maintenance + */ +package org.eclipse.emf.cdo.ui.internal.workspace; + +import org.eclipse.emf.cdo.location.ICheckoutSource; + +import org.eclipse.swt.widgets.Shell; + +/** + * @author Eike Stepper + */ +public class CheckoutAsAction extends CheckoutAction +{ + public CheckoutAsAction() + { + } + + @Override + protected void checkout(ICheckoutSource checkoutSource, String projectName) + { + Shell shell = getPart().getSite().getShell(); + CheckoutDialog dialog = new CheckoutDialog(shell, projectName); + if (dialog.open() == CheckoutDialog.OK) + { + super.checkout(checkoutSource, dialog.getProjectName()); + } + } +} |