Author: koen.aers(a)jboss.com
Date: 2011-11-10 03:44:44 -0500 (Thu, 10 Nov 2011)
New Revision: 36270
Modified:
trunk/forge/plugins/org.jboss.tools.forge.runtime.ext/src/org/jboss/tools/forge/runtime/ext/EventHandler.java
trunk/forge/plugins/org.jboss.tools.forge.ui/src/org/jboss/tools/forge/ui/console/ForgeCommandProcessor.java
trunk/forge/plugins/org.jboss.tools.forge.ui/src/org/jboss/tools/forge/ui/console/ForgeTextViewer.java
Log:
- fix opening of file after pick-up
- fix highlightingof newly added fields
Modified:
trunk/forge/plugins/org.jboss.tools.forge.runtime.ext/src/org/jboss/tools/forge/runtime/ext/EventHandler.java
===================================================================
---
trunk/forge/plugins/org.jboss.tools.forge.runtime.ext/src/org/jboss/tools/forge/runtime/ext/EventHandler.java 2011-11-10
08:08:12 UTC (rev 36269)
+++
trunk/forge/plugins/org.jboss.tools.forge.runtime.ext/src/org/jboss/tools/forge/runtime/ext/EventHandler.java 2011-11-10
08:44:44 UTC (rev 36270)
@@ -20,7 +20,8 @@
if (project != null) {
str = project.getProjectRoot().getName();
}
- sendEscaped("Executed Command: " + event.getCommand().getName() + "
Current Project Directory: " + str);
+ String command = event.getCommand().getParent().getName() + " " +
event.getCommand().getName();
+ sendEscaped("Executed Command: " + command + " Current Project
Directory: " + str);
}
private void sendEscaped(String str) {
Modified:
trunk/forge/plugins/org.jboss.tools.forge.ui/src/org/jboss/tools/forge/ui/console/ForgeCommandProcessor.java
===================================================================
---
trunk/forge/plugins/org.jboss.tools.forge.ui/src/org/jboss/tools/forge/ui/console/ForgeCommandProcessor.java 2011-11-10
08:08:12 UTC (rev 36269)
+++
trunk/forge/plugins/org.jboss.tools.forge.ui/src/org/jboss/tools/forge/ui/console/ForgeCommandProcessor.java 2011-11-10
08:44:44 UTC (rev 36270)
@@ -68,7 +68,7 @@
refreshWorkspace();
ForgeCommandPostProcessor postProcessor = getPostProcessors().get(mainCommand);
if (postProcessor != null) {
- postProcessor.postProcessCommand(mainCommand, output);
+ postProcessor.postProcessCommand(currentCommand, output);
}
showForgeConsole();
}
Modified:
trunk/forge/plugins/org.jboss.tools.forge.ui/src/org/jboss/tools/forge/ui/console/ForgeTextViewer.java
===================================================================
---
trunk/forge/plugins/org.jboss.tools.forge.ui/src/org/jboss/tools/forge/ui/console/ForgeTextViewer.java 2011-11-10
08:08:12 UTC (rev 36269)
+++
trunk/forge/plugins/org.jboss.tools.forge.ui/src/org/jboss/tools/forge/ui/console/ForgeTextViewer.java 2011-11-10
08:44:44 UTC (rev 36270)
@@ -181,13 +181,11 @@
outputListener = new ForgeHiddenOutputFilter(ansiCommandFilter) {
@Override
public void handleFilteredString(String str) {
-// System.out.println("handle filtered string: " + str);
+ System.out.println("handle filtered string: " + str);
if (str.startsWith("Intercepted Command: ")) {
commandProcessor.startCommand(str.substring(21));
} else if (str.startsWith("Executed Command: ")) {
commandProcessor.stopCurrentCommand();
-// } else {
-// System.out.println("unhandled hidden output: " + str);
} else if (str.startsWith("POM File Modified: ")) {
IProject project =
ResourcesPlugin.getWorkspace().getRoot().getProject(str.substring(19));
if (project != null) {