-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- complete rewrite of plugin with EPL license #35 - [v2.0] new license: EPL - added table view to support adding, removing and change order of commands - new name space "de.anbos.eclipse.easyshell" Addressed enhancement requests: #9 - Editable / custom commands #11 - Change argument names #12 - Change order menue entries #14 - ability to select which of the 4 options to be visible #17 - add linux 'nemo' file browser #21 - add Xfce4 Terminal to linux presets #23 - add linux 'thunar' file browser #31 - add support of eclipse variables Bug fixes: #4 - "cd" cannot be used/called like a stand-alone program in configurations under #6 - gnome-terminal: change to working directory does not work in LMDE 201403 #29 - EasyShell v1.4.2 cannot be installed in Eclipse Neon(4.6.0M5) #30 - Compatibility Issue with Neon-M7 #45 - EasyShell not compatible with new Eclipse Neon Signed-off-by: Andre Bossert <anb0s@anbos.de>
- Loading branch information
Showing
45 changed files
with
2,926 additions
and
204 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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
51 changes: 51 additions & 0 deletions
51
plugin/src/de/anbos/eclipse/easyshell/plugin/DynamicVariableResolver.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,51 @@ | ||
/******************************************************************************* | ||
* Copyright (c) 2014 - 2016 Andre Bossert. | ||
* 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: | ||
* Andre Bossert - initial API and implementation and/or initial documentation | ||
*******************************************************************************/ | ||
|
||
package de.anbos.eclipse.easyshell.plugin; | ||
|
||
import org.eclipse.core.runtime.CoreException; | ||
import org.eclipse.core.variables.IDynamicVariable; | ||
import org.eclipse.core.variables.IDynamicVariableResolver; | ||
|
||
public class DynamicVariableResolver implements IDynamicVariableResolver { | ||
|
||
private static String[] args = new String[6]; | ||
|
||
@Override | ||
public String resolveValue(IDynamicVariable variable, String argument) | ||
throws CoreException { | ||
if (variable.getName().equals("easyshell")) { | ||
if (argument.equals("drive")) { | ||
return args[0]; | ||
} else if (argument.equals("container_loc")) { | ||
return args[1]; | ||
} else if (argument.equals("resource_loc")) { | ||
return args[2]; | ||
} else if (argument.equals("resource_name")) { | ||
return args[3]; | ||
} else if (argument.equals("project_name")) { | ||
return args[4]; | ||
} else if (argument.equals("line_separator")) { | ||
return args[5]; | ||
} | ||
} | ||
return null; | ||
} | ||
|
||
public String[] getArgs() { | ||
return args; | ||
} | ||
|
||
public static void setArgs(String[] args) { | ||
DynamicVariableResolver.args = args; | ||
} | ||
|
||
} |
44 changes: 44 additions & 0 deletions
44
plugin/src/de/anbos/eclipse/easyshell/plugin/EditorPropertyTester.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 - 2016 Andre Bossert. | ||
* 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: | ||
* Andre Bossert - initial API and implementation and/or initial documentation | ||
*******************************************************************************/ | ||
|
||
package de.anbos.eclipse.easyshell.plugin; | ||
|
||
import org.eclipse.core.expressions.PropertyTester; | ||
import org.eclipse.jface.viewers.ISelection; | ||
import org.eclipse.ui.IWorkbenchPart; | ||
|
||
import de.anbos.eclipse.easyshell.plugin.actions.ActionDelegate; | ||
|
||
public class EditorPropertyTester extends PropertyTester { | ||
|
||
public EditorPropertyTester() { | ||
super(); | ||
} | ||
|
||
public boolean test(Object receiver, String property, Object[] args, Object expectedValue) { | ||
if("hasResourceSelection".equals(property) && receiver instanceof IWorkbenchPart){ | ||
return hasResourceSelection((IWorkbenchPart)receiver) != null; | ||
} | ||
return false; | ||
} | ||
|
||
static public ActionDelegate hasResourceSelection(IWorkbenchPart part) { | ||
ISelection selection = ResourceUtils.getResourceSelection(part); | ||
if (selection != null) { | ||
ActionDelegate action = new ActionDelegate(); | ||
action.selectionChanged(null, selection); | ||
if (action.isEnabled()) | ||
return action; | ||
} | ||
return null; | ||
} | ||
|
||
} |
Oops, something went wrong.