/** * Provides a way to access this module extension for a module. * * @param module The module you want the Language Level extension for * * @return Instance of this class */ @Nullable public static MathematicaLanguageLevelModuleExtensionImpl getInstance(final Module module) { return ModuleRootManager.getInstance(module).getModuleExtension(MathematicaLanguageLevelModuleExtensionImpl.class); }
/** * Returns an instance of the extension for a module. Always use this and not the constructor of the implementing * class. * * @param module The module you want the extension for * * @return Instance that can be accessed and changed */ public static MathematicaLanguageLevelModuleExtension getInstance(Module module) { return ModuleRootManager.getInstance(module).getModuleExtension(MathematicaLanguageLevelModuleExtension.class); }
public static TargetDeviceModuleExtension getInstance(final Module module) { return ModuleRootManager.getInstance(module).getModuleExtension(TargetDeviceModuleExtension.class); }
public static PerlModuleExtension getInstance(@NotNull Module module) { return ModuleRootManager.getInstance(module).getModuleExtension(PerlModuleExtension.class); }
private static String getOutputDir(final Module module) { return ModuleRootManager.getInstance(module) .getModuleExtension(CompilerModuleExtension.class).getCompilerOutputUrl(); }
private String getOutputDir(final Module module) { return ModuleRootManager.getInstance(module).getModuleExtension(CompilerModuleExtension.class).getCompilerOutputUrl(); }
public String getExecutablePath() { final Module module = getConfigurationModule().getModule(); if (module != null) { final ModuleRootManager moduleRootManager = ModuleRootManager.getInstance(module); final String outputPath = moduleRootManager.getModuleExtension(CompilerModuleExtension.class).getCompilerOutputUrl(); String filename = module.getName(); if (SystemInfo.isWindows) { filename += ".exe"; } final File outputFile = new File(VfsUtilCore.urlToPath(outputPath), filename); return outputFile.getPath(); } else { return ""; } }