Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Valenta2003-02-03 20:55:17 +0000
committerMichael Valenta2003-02-03 20:55:17 +0000
commite6104e4231ec6181ae64b44a37a9a1cd2517315e (patch)
tree6ad78414de3f56280c41bc3789f9f66f324e46ad /bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/actions/ShowEditorsAction.java
parent1d45a6b6666c843500e32dbfc1febd156e06a300 (diff)
downloadeclipse.platform.team-e6104e4231ec6181ae64b44a37a9a1cd2517315e.tar.gz
eclipse.platform.team-e6104e4231ec6181ae64b44a37a9a1cd2517315e.tar.xz
eclipse.platform.team-e6104e4231ec6181ae64b44a37a9a1cd2517315e.zip
21264: [CVS Sync View] Synchronize view opens in wrong window
Diffstat (limited to 'bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/actions/ShowEditorsAction.java')
-rw-r--r--bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/actions/ShowEditorsAction.java9
1 files changed, 3 insertions, 6 deletions
diff --git a/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/actions/ShowEditorsAction.java b/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/actions/ShowEditorsAction.java
index 889f693a0..2440b520d 100644
--- a/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/actions/ShowEditorsAction.java
+++ b/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/actions/ShowEditorsAction.java
@@ -29,19 +29,16 @@ import org.eclipse.ui.actions.WorkspaceModifyOperation;
*/
public class ShowEditorsAction extends WorkspaceAction {
- protected void execute(IAction action)
- throws InvocationTargetException, InterruptedException {
+ protected void execute(IAction action) throws InvocationTargetException, InterruptedException {
final EditorsAction editorsAction = new EditorsAction();
run(new WorkspaceModifyOperation() {
-
public void execute(IProgressMonitor monitor)
throws InvocationTargetException, InterruptedException {
executeProviderAction(editorsAction, monitor);
}
- }, true /* cancelable */
- , PROGRESS_DIALOG);
+ }, true /* cancelable */ , PROGRESS_DIALOG);
EditorsInfo[] infos = editorsAction.getEditorsInfo();
- EditorsView view = EditorsView.openInActivePerspective();
+ EditorsView view = (EditorsView)showView(EditorsView.VIEW_ID);
if (view != null) {
view.setInput(infos);
}

Back to the top