Esempio n. 1
0
 @NotNull
 private static FileStorage getMainStorage(@NotNull Module module) {
   return (FileStorage)
       ComponentsPackage.getStateStore(module)
           .getStateStorageManager()
           .getStateStorage(StoragePathMacros.MODULE_FILE, RoamingType.DEFAULT);
 }
Esempio n. 2
0
 @Override
 @NotNull
 public String getModuleFilePath() {
   return ComponentsPackage.getStateStore(this)
       .getStateStorageManager()
       .expandMacros(StoragePathMacros.MODULE_FILE);
 }
Esempio n. 3
0
 @Override
 public void rename(String newName) {
   myName = newName;
   ComponentsPackage.getStateStore(this)
       .getStateStorageManager()
       .rename(StoragePathMacros.MODULE_FILE, newName + ModuleFileType.DOT_DEFAULT_EXTENSION);
 }
Esempio n. 4
0
 private void setModuleFilePath(String newFilePath) {
   ClasspathStorage.modulePathChanged(ModuleImpl.this, newFilePath);
   getMainStorage(ModuleImpl.this).setFile(null, new File(newFilePath));
   ComponentsPackage.getStateStore(ModuleImpl.this)
       .setPath(FileUtilRt.toSystemIndependentName(newFilePath));
 }