@Nullable public static IFile getRealDescriptorFile(IModule module) { if (module.getDescriptorFile() != null && module.getModuleDescriptor() != null && module.getModuleDescriptor().getDeploymentDescriptor() != null) { return getRealDescriptorFile( module.getDescriptorFile().getPath(), module.getModuleDescriptor().getDeploymentDescriptor()); } return null; }
private static boolean renderingCondition_fl5ndt_a2b1b0( SNode node, EditorContext editorContext, IScope scope) { String path = null; IModule module = SNodeOperations.getModel(node).getModelDescriptor().getModule(); if (module != null) { path = MacrosFactory.forModuleFile(module.getDescriptorFile()) .expandPath(SPropertyOperations.getString(node, "icon")); } return path != null && FileSystem.getInstance().getFileByPath(path).exists(); }