Lines 35-40
Link Here
|
35 |
import org.eclipse.core.runtime.OperationCanceledException; |
35 |
import org.eclipse.core.runtime.OperationCanceledException; |
36 |
import org.eclipse.core.runtime.Platform; |
36 |
import org.eclipse.core.runtime.Platform; |
37 |
import org.eclipse.osgi.util.NLS; |
37 |
import org.eclipse.osgi.util.NLS; |
|
|
38 |
import org.eclipse.rse.core.IRSESystemType; |
38 |
import org.eclipse.rse.core.RSECorePlugin; |
39 |
import org.eclipse.rse.core.RSECorePlugin; |
39 |
import org.eclipse.rse.core.events.ISystemResourceChangeEvents; |
40 |
import org.eclipse.rse.core.events.ISystemResourceChangeEvents; |
40 |
import org.eclipse.rse.core.events.SystemResourceChangeEvent; |
41 |
import org.eclipse.rse.core.events.SystemResourceChangeEvent; |
Lines 69-74
Link Here
|
69 |
{ |
70 |
{ |
70 |
private static String COMMAND_SHELLS_MEMENTO = "commandshells"; //$NON-NLS-1$ |
71 |
private static String COMMAND_SHELLS_MEMENTO = "commandshells"; //$NON-NLS-1$ |
71 |
private static String ENVIRONMENT_VARS = "EnvironmentVariables"; //$NON-NLS-1$ |
72 |
private static String ENVIRONMENT_VARS = "EnvironmentVariables"; //$NON-NLS-1$ |
|
|
73 |
private static final String DEFAULT_PROMPT_COMMAND = "echo $PWD'>'"; //$NON-NLS-1$ |
72 |
|
74 |
|
73 |
protected ArrayList _cmdShells; |
75 |
protected ArrayList _cmdShells; |
74 |
|
76 |
|
Lines 1289-1292
Link Here
|
1289 |
throws InvocationTargetException, InterruptedException |
1291 |
throws InvocationTargetException, InterruptedException |
1290 |
{ |
1292 |
{ |
1291 |
} |
1293 |
} |
|
|
1294 |
|
1295 |
/** |
1296 |
* @since 3.0 |
1297 |
*/ |
1298 |
public String getPromptCommand(){ |
1299 |
String result = getHost().getSystemType().getProperty(IRSESystemType.PROPERTY_PROMPT_COMMAND); |
1300 |
if(result!=null && !result.trim().equals("")) //$NON-NLS-1$ |
1301 |
return result; |
1302 |
return DEFAULT_PROMPT_COMMAND; |
1303 |
|
1304 |
} |
1305 |
|
1306 |
/** |
1307 |
* @since 3.0 |
1308 |
*/ |
1309 |
public String getShellType(){ |
1310 |
String result = getHost().getSystemType().getProperty(IRSESystemType.PROPERTY_SHELL_TYPE); |
1311 |
if(result!=null) |
1312 |
return result; |
1313 |
return ""; //$NON-NLS-1$ |
1314 |
} |
1292 |
} |
1315 |
} |