Exemplo n.º 1
0
 @NotNull
 private static FileStorage getMainStorage(@NotNull Module module) {
   return (FileStorage)
       ComponentsPackage.getStateStore(module)
           .getStateStorageManager()
           .getStateStorage(StoragePathMacros.MODULE_FILE, RoamingType.DEFAULT);
 }
Exemplo n.º 2
0
 @Override
 @NotNull
 public String getModuleFilePath() {
   return ComponentsPackage.getStateStore(this)
       .getStateStorageManager()
       .expandMacros(StoragePathMacros.MODULE_FILE);
 }
Exemplo n.º 3
0
 @Override
 public void rename(String newName) {
   myName = newName;
   ComponentsPackage.getStateStore(this)
       .getStateStorageManager()
       .rename(StoragePathMacros.MODULE_FILE, newName + ModuleFileType.DOT_DEFAULT_EXTENSION);
 }
Exemplo 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));
 }