本文整理汇总了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;
}
示例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;
}
}
示例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;
}
示例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;
}
示例5: getSession
import com.intellij.openapi.components.StateStorage; //导入方法依赖的package包/类
@Nullable
public StateStorage.SaveSession getSession() {
return mySession;
}
示例6: createSaveSession
import com.intellij.openapi.components.StateStorage; //导入方法依赖的package包/类
@Nullable
@Override
public StateStorage.SaveSession createSaveSession() {
return modifiedContent.isEmpty() && deletedContent.isEmpty() ? null : this;
}
示例7: save
import com.intellij.openapi.components.StateStorage; //导入方法依赖的package包/类
public void save() throws StateStorageException {
for (StateStorage.SaveSession saveSession : mySaveSessions.values()) {
saveSession.save();
}
}
示例8: getSaveSession
import com.intellij.openapi.components.StateStorage; //导入方法依赖的package包/类
public StateStorage.SaveSession getSaveSession(final StateStorage storage) {
return mySaveSessions.get(storage);
}
示例9: save
import com.intellij.openapi.components.StateStorage; //导入方法依赖的package包/类
@Override
public void save(@Nonnull List<Pair<StateStorage.SaveSession, VirtualFile>> readonlyFiles) {
throw new UnsupportedOperationException();
}
示例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;
}
示例11: save
import com.intellij.openapi.components.StateStorage; //导入方法依赖的package包/类
@Nonnull
ComponentSaveSession save(@Nonnull List<Pair<StateStorage.SaveSession, VirtualFile>> readonlyFiles);
示例12: save
import com.intellij.openapi.components.StateStorage; //导入方法依赖的package包/类
void save(@NotNull List<Pair<StateStorage.SaveSession, VirtualFile>> readonlyFiles);
示例13: save
import com.intellij.openapi.components.StateStorage; //导入方法依赖的package包/类
void save(@Nonnull List<Pair<StateStorage.SaveSession, VirtualFile>> readonlyFiles);