-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
valso fixes #164 open in Explorer from "Open Resource" window Signed-off-by: Andre Bossert <[email protected]>
- Loading branch information
Showing
11 changed files
with
158 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
44 changes: 44 additions & 0 deletions
44
plugin/src/de/anbos/eclipse/easyshell/plugin/editor/LauncherAll.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
/** | ||
* Copyright (c) 2014-2020 Andre Bossert <[email protected]>. | ||
* | ||
* See the NOTICE file(s) distributed with this work for additional | ||
* information regarding copyright ownership. | ||
* | ||
* This program and the accompanying materials are made available under the | ||
* terms of the Eclipse Public License 2.0 which is available at | ||
* http://www.eclipse.org/legal/epl-2.0 | ||
* | ||
* SPDX-License-Identifier: EPL-2.0 | ||
*/ | ||
|
||
package de.anbos.eclipse.easyshell.plugin.editor; | ||
|
||
import org.eclipse.core.commands.ExecutionException; | ||
import org.eclipse.core.commands.NotEnabledException; | ||
import org.eclipse.core.commands.NotHandledException; | ||
import org.eclipse.core.commands.common.NotDefinedException; | ||
import org.eclipse.core.runtime.IPath; | ||
import org.eclipse.swt.widgets.Event; | ||
import org.eclipse.ui.IEditorLauncher; | ||
import org.eclipse.ui.PlatformUI; | ||
import org.eclipse.ui.handlers.IHandlerService; | ||
|
||
public class LauncherAll implements IEditorLauncher { | ||
|
||
protected String getCommandId() { | ||
return "de.anbos.eclipse.easyshell.plugin.commands.all"; | ||
} | ||
|
||
@Override | ||
public void open(IPath file) { | ||
IHandlerService handlerService = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getService(IHandlerService.class); | ||
try { | ||
Event event = new Event(); | ||
event.data = file; | ||
handlerService.executeCommand(getCommandId(), event); | ||
} catch (ExecutionException | NotDefinedException | NotEnabledException | NotHandledException e) { | ||
e.printStackTrace(); | ||
} | ||
} | ||
|
||
} |
23 changes: 23 additions & 0 deletions
23
plugin/src/de/anbos/eclipse/easyshell/plugin/editor/LauncherAllMulti.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
/** | ||
* Copyright (c) 2014-2020 Andre Bossert <[email protected]>. | ||
* | ||
* See the NOTICE file(s) distributed with this work for additional | ||
* information regarding copyright ownership. | ||
* | ||
* This program and the accompanying materials are made available under the | ||
* terms of the Eclipse Public License 2.0 which is available at | ||
* http://www.eclipse.org/legal/epl-2.0 | ||
* | ||
* SPDX-License-Identifier: EPL-2.0 | ||
*/ | ||
|
||
package de.anbos.eclipse.easyshell.plugin.editor; | ||
|
||
public class LauncherAllMulti extends LauncherAll { | ||
|
||
@Override | ||
protected String getCommandId() { | ||
return "de.anbos.eclipse.easyshell.plugin.commands.allmulti"; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.