}
try {
final File tmpFile = File.createTempFile("wrangler_graph_", ".dot");
tmpFile.deleteOnExit();
final IErlSelection wranglerSelection = GlobalParameters
.getWranglerSelection();
if (actionId
.equals("org.erlide.wrangler.refactoring.codeinspection.cyclicdependencies")) {
final Boolean answer = MessageDialog.openQuestion(PlatformUI
.getWorkbench().getActiveWorkbenchWindow().getShell(), "Labels",
"Label edges with function names called?");
runInspection("Cyclic module dependency", CYCLYC_VIEW_ID,
"There is no cyclic dependent modules in the project!", tmpFile,
"cyclic_dependent_modules", "ssx", tmpFile.getAbsolutePath(),
wranglerSelection.getSearchPath(), new OtpErlangBoolean(answer));
} else if (actionId
.equals("org.erlide.wrangler.refactoring.codeinspection.generatefunctioncallgraph")) {
runInspection("Function callgraph", FUNCTION_CALL_GRAPH_VIEW_ID,
"There is no dependent functions in the module!", tmpFile,
"gen_function_callgraph", "sss", tmpFile.getAbsolutePath(),
wranglerSelection.getFilePath(),
wranglerSelection.getSearchPath());
} else if (actionId
.equals("org.erlide.wrangler.refactoring.codeinspection.generatemodulegraph")) {
final Boolean answer = MessageDialog.openQuestion(PlatformUI
.getWorkbench().getActiveWorkbenchWindow().getShell(), "Labels",
"Label edges with function names called?");
runInspection("Module dependency graph", MODULE_GRAPH_VIEW_ID,
"There is no dependent modules in the project!", tmpFile,
"gen_module_graph", "ssx", tmpFile.getAbsolutePath(),
wranglerSelection.getSearchPath(), new OtpErlangBoolean(answer));
} else if (actionId
.equals("org.erlide.wrangler.refactoring.codeinspection.improperdependecies")) {
runInspection("Improper module dependencies",
IMPROPER_DEPENDECIES_VIEW_ID,
"There is no improper module dependecies!", tmpFile,
"improper_inter_module_calls", "ss", tmpFile.getAbsolutePath(),
wranglerSelection.getSearchPath());
}
} catch (final Exception e) {
ErlLogger.error(e);