Object attribute = p
.getAttribute("org.eclipse.debug.ui.ATTR_CONSOLE_PROCESS");
if (attribute != null) {
IProcess pr = (IProcess) attribute;
ILaunch launch = pr.getLaunch();
ILaunchConfiguration launchConfiguration = launch
.getLaunchConfiguration();
Map<?, ?> attributes = null;
try {
attributes = launchConfiguration
.getAttributes();
} catch (CoreException e1) {
Activator.log(e1);
return;
}
final String project = (String) attributes
.get(ORG_ECLIPSE_JDT_LAUNCHING_PROJECT_ATTR);
try {
ILaunchConfigurationType type = launchConfiguration
.getType();
String identifier = type.getIdentifier();
if (identifier
.equals(COM_GOOGLE_GDT_ECLIPSE_SUITE_WEBAPP)) {
p.getDocument().addDocumentListener(