//System.out.println("Dictionaries initialized in " + (System.currentTimeMillis() - time) + " ms");
}
private static String getInitialDictVersion() {
CFMLPropertyManager propertyManager = new CFMLPropertyManager();
IWorkbench workbench = PlatformUI.getWorkbench();
if (workbench == null) {
return "";
}
IWorkbenchWindow window = workbench.getActiveWorkbenchWindow();
if (window == null) {
return "";
}
IWorkbenchPage page = window.getActivePage();
if (page == null) {
return "";
}
IEditorPart part = page.getActiveEditor();
if (part == null) {
return "";
}
IEditorInput input = part.getEditorInput();
if (input == null) {
return "";
}
if (input instanceof FileEditorInput) {
FileEditorInput fInput = (FileEditorInput)input;
return propertyManager.getCurrentDictionary(fInput.getFile().getProject());
}
return "";
}