Commit 6c14a018 authored by Kristof Szabados's avatar Kristof Szabados
Browse files

bugfix


Signed-off-by: Kristof Szabados's avatarkristof <Kristof.Szabados@ericsson.com>
parent cf93281f
...@@ -42,11 +42,11 @@ public final class Export_Debug_AST implements IEditorActionDelegate { ...@@ -42,11 +42,11 @@ public final class Export_Debug_AST implements IEditorActionDelegate {
if (targetEditor == null) return; if (targetEditor == null) return;
IFile file = (IFile) targetEditor.getEditorInput().getAdapter(IFile.class); IFile file = (IFile) targetEditor.getEditorInput().getAdapter(IFile.class);
ProjectSourceParser parser = GlobalParser.getProjectSourceParser(file.getProject()); ProjectSourceParser parser = GlobalParser.getProjectSourceParser(file.getProject());
String name = parser.containedModule(file); Module module = parser.containedModule(file);
if (name == null) { if (module == null) {
TITANDebugConsole.getConsole().newMessageStream().println("No module was found"); TITANDebugConsole.getConsole().newMessageStream().println("No module was found");
} }
Module module = parser.getModuleByName(name);
TITANDebugConsole.getConsole().newMessageStream().println("*************************"); TITANDebugConsole.getConsole().newMessageStream().println("*************************");
TITANDebugConsole.getConsole().newMessageStream().println("Printing DEBUG information for module `" + module.getName() + "':"); TITANDebugConsole.getConsole().newMessageStream().println("Printing DEBUG information for module `" + module.getName() + "':");
TITANDebugConsole.getConsole().newMessageStream().println("*************************"); TITANDebugConsole.getConsole().newMessageStream().println("*************************");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment