当前位置: 首页>>代码示例>>Java>>正文


Java StateStorage.SaveSession方法代码示例

本文整理汇总了Java中com.intellij.openapi.components.StateStorage.SaveSession方法的典型用法代码示例。如果您正苦于以下问题:Java StateStorage.SaveSession方法的具体用法?Java StateStorage.SaveSession怎么用?Java StateStorage.SaveSession使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在com.intellij.openapi.components.StateStorage的用法示例。


在下文中一共展示了StateStorage.SaveSession方法的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: getAllStorageFilesToSave

import com.intellij.openapi.components.StateStorage; //导入方法依赖的package包/类
public List<IFile> getAllStorageFilesToSave() throws StateStorageException {
  List<IFile> result = new ArrayList<IFile>();

  for (StateStorage stateStorage : mySaveSessions.keySet()) {
    final StateStorage.SaveSession saveSession = mySaveSessions.get(stateStorage);

    result.addAll(saveSession.getStorageFilesToSave());
  }

  return result;
}
 
开发者ID:lshain-android-source,项目名称:tools-idea,代码行数:12,代码来源:CompoundSaveSession.java

示例2: finishSave

import com.intellij.openapi.components.StateStorage; //导入方法依赖的package包/类
public void finishSave() {
  RuntimeException re = null;
  for (StateStorage stateStorage : mySaveSessions.keySet()) {
    final StateStorage.SaveSession saveSession = mySaveSessions.get(stateStorage);
    try {
      stateStorage.finishSave(saveSession);
    } catch(RuntimeException t) {
      re = t;
    }
  }

  if (re != null) {
    throw re;
  }
}
 
开发者ID:lshain-android-source,项目名称:tools-idea,代码行数:16,代码来源:CompoundSaveSession.java

示例3: getAllStorageFiles

import com.intellij.openapi.components.StateStorage; //导入方法依赖的package包/类
public List<IFile> getAllStorageFiles() {
  List<IFile> result = new ArrayList<IFile>();
  for (StateStorage.SaveSession saveSession : mySaveSessions.values()) {
    result.addAll(saveSession.getAllStorageFiles());
  }

  return result;
}
 
开发者ID:lshain-android-source,项目名称:tools-idea,代码行数:9,代码来源:CompoundSaveSession.java

示例4: ReadOnlyModificationException

import com.intellij.openapi.components.StateStorage; //导入方法依赖的package包/类
public ReadOnlyModificationException(@NotNull VirtualFile file, @Nullable Throwable cause, StateStorage.SaveSession session) {
  super(cause);

  myFile = file;
  mySession = session;
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:7,代码来源:ReadOnlyModificationException.java

示例5: getSession

import com.intellij.openapi.components.StateStorage; //导入方法依赖的package包/类
@Nullable
public StateStorage.SaveSession getSession() {
  return mySession;
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:5,代码来源:ReadOnlyModificationException.java

示例6: createSaveSession

import com.intellij.openapi.components.StateStorage; //导入方法依赖的package包/类
@Nullable
@Override
public StateStorage.SaveSession createSaveSession() {
  return modifiedContent.isEmpty() && deletedContent.isEmpty() ? null : this;
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:6,代码来源:ClasspathSaveSession.java

示例7: save

import com.intellij.openapi.components.StateStorage; //导入方法依赖的package包/类
public void save() throws StateStorageException {
  for (StateStorage.SaveSession saveSession : mySaveSessions.values()) {
    saveSession.save();
  }
}
 
开发者ID:lshain-android-source,项目名称:tools-idea,代码行数:6,代码来源:CompoundSaveSession.java

示例8: getSaveSession

import com.intellij.openapi.components.StateStorage; //导入方法依赖的package包/类
public StateStorage.SaveSession getSaveSession(final StateStorage storage) {
  return mySaveSessions.get(storage);
}
 
开发者ID:lshain-android-source,项目名称:tools-idea,代码行数:4,代码来源:CompoundSaveSession.java

示例9: save

import com.intellij.openapi.components.StateStorage; //导入方法依赖的package包/类
@Override
public void save(@Nonnull List<Pair<StateStorage.SaveSession, VirtualFile>> readonlyFiles) {
  throw new UnsupportedOperationException();
}
 
开发者ID:consulo,项目名称:consulo,代码行数:5,代码来源:MockProjectStore.java

示例10: isChangedByStorageOrSaveSession

import com.intellij.openapi.components.StateStorage; //导入方法依赖的package包/类
public static boolean isChangedByStorageOrSaveSession(@Nonnull VirtualFileEvent event) {
  return event.getRequestor() instanceof StateStorage.SaveSession || event.getRequestor() instanceof StateStorage;
}
 
开发者ID:consulo,项目名称:consulo,代码行数:4,代码来源:StorageUtil.java

示例11: save

import com.intellij.openapi.components.StateStorage; //导入方法依赖的package包/类
@Nonnull
ComponentSaveSession save(@Nonnull List<Pair<StateStorage.SaveSession, VirtualFile>> readonlyFiles);
 
开发者ID:consulo,项目名称:consulo,代码行数:3,代码来源:ComponentSaveSession.java

示例12: save

import com.intellij.openapi.components.StateStorage; //导入方法依赖的package包/类
void save(@NotNull List<Pair<StateStorage.SaveSession, VirtualFile>> readonlyFiles); 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:2,代码来源:IComponentStore.java

示例13: save

import com.intellij.openapi.components.StateStorage; //导入方法依赖的package包/类
void save(@Nonnull List<Pair<StateStorage.SaveSession, VirtualFile>> readonlyFiles); 
开发者ID:consulo,项目名称:consulo,代码行数:2,代码来源:IComponentStore.java


注:本文中的com.intellij.openapi.components.StateStorage.SaveSession方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。