-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Provide command set for Mate. Closes #34.
- Loading branch information
Showing
4 changed files
with
103 additions
and
0 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
95 changes: 95 additions & 0 deletions
95
plugin/src/de/bastiankrol/startexplorer/crossplatform/RuntimeExecCallsMate.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,95 @@ | ||
package de.bastiankrol.startexplorer.crossplatform; | ||
|
||
import java.io.File; | ||
|
||
/** | ||
* Runtime exec calls for Mate. | ||
* | ||
* @author Bastian Krol | ||
*/ | ||
class RuntimeExecCallsMate extends AbstractRuntimeExecCalls | ||
{ | ||
/** | ||
* Creates a new instance and initializes the {@link RuntimeExecDelegate}. | ||
*/ | ||
RuntimeExecCallsMate() | ||
{ | ||
super(); | ||
} | ||
|
||
/** | ||
* Creates a new instance with the given {@link RuntimeExecDelegate}. | ||
* | ||
* @param delegate the RuntimeExecDelegate to use | ||
*/ | ||
RuntimeExecCallsMate(RuntimeExecDelegate delegate) | ||
{ | ||
super(delegate); | ||
} | ||
|
||
@Override | ||
String[] getCommandForStartFileManager(File file, boolean selectFile) | ||
{ | ||
return new String[] { "caja", getPath(file) }; | ||
} | ||
|
||
@Override | ||
File getWorkingDirectoryForStartFileManager(File file) | ||
{ | ||
return file; | ||
} | ||
|
||
@Override | ||
String[] getCommandForStartShell(File file) | ||
{ | ||
return new String[] { "mate-terminal" }; | ||
} | ||
|
||
@Override | ||
File getWorkingDirectoryForForStartShell(File file) | ||
{ | ||
return file; | ||
} | ||
|
||
@Override | ||
String[] getCommandForStartSystemApplication(File file) | ||
{ | ||
return new String[] { "mate-terminal", getPath(file) }; | ||
} | ||
|
||
@Override | ||
File getWorkingDirectoryForForStartSystemApplication(File file) | ||
{ | ||
return null; | ||
} | ||
|
||
@Override | ||
File getWorkingDirectoryForCustomCommand(File file) | ||
{ | ||
return null; | ||
} | ||
|
||
public boolean isFileSelectionSupportedByFileManager() | ||
{ | ||
return false; | ||
} | ||
|
||
@Override | ||
boolean doFilePartsWantWrapping() | ||
{ | ||
return true; | ||
} | ||
|
||
@Override | ||
boolean doFilePartsWantEscaping() | ||
{ | ||
// TODO doFilePartsWantEscaping() | ||
return false; | ||
} | ||
|
||
@Override | ||
boolean isWindows() | ||
{ | ||
return false; | ||
} | ||
} |