Skip to content

Commit

Permalink
Fix editors spawned from data explorer not getting focus.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mailaender committed Aug 13, 2021
1 parent d26ce45 commit fb7ed77
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2017, 2020 Lablicate GmbH.
* Copyright (c) 2017, 2021 Lablicate GmbH.
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
Expand Down Expand Up @@ -36,6 +36,7 @@
import org.eclipse.e4.ui.workbench.modeling.EModelService;
import org.eclipse.e4.ui.workbench.modeling.EPartService;
import org.eclipse.e4.ui.workbench.modeling.EPartService.PartState;
import org.eclipse.swt.widgets.Shell;

public interface ISupplierFileEditorSupport extends ISupplierFileIdentifier {

Expand Down Expand Up @@ -126,5 +127,6 @@ default void openEditor(File file, Object object, String elementId, String contr
*/
partStack.getChildren().add(part);
partService.showPart(part, PartState.ACTIVATE);
((Shell)window.getWidget()).forceFocus();
}
}

0 comments on commit fb7ed77

Please sign in to comment.