blob: 91ab759e62440223b58c0826f5902fe0fca23763 [file] [log] [blame]
/*
*(c) Copyright QNX Software Systems Ltd. 2002.
* All Rights Reserved.
*
*/
package org.eclipse.cdt.debug.mi.core.command;
import org.eclipse.cdt.debug.mi.core.MIException;
import org.eclipse.cdt.debug.mi.core.output.MIEnvironmentPWDInfo;
import org.eclipse.cdt.debug.mi.core.output.MIInfo;
import org.eclipse.cdt.debug.mi.core.output.MIOutput;
/**
*
* -environment-pwd
*
* Show the current working directory.
*
*/
public class MIEnvironmentPWD extends MICommand
{
public MIEnvironmentPWD() {
super("-environment-pwd");
}
public MIInfo getMIInfo() throws MIException {
MIInfo info = null;
MIOutput out = getMIOutput();
if (out != null) {
info = new MIEnvironmentPWDInfo(out);
if (info.isError()) {
throwMIException(info, out);
}
}
return info;
}
}