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