Package com.intellij.openapi.application

Examples of com.intellij.openapi.application.AccessToken.finish()


        if (virtualFile != null) {
          virtualFile.rename(problemDescriptor, StringUtil.replace(module.getName(), "'", "") + "." + extension);
        }
      } catch (IOException ignored) {
      } finally {
        token.finish();
      }
    }
  }
}
View Full Code Here


      Library lib = table.getLibraryByName(ERLANG_LIBRARY_NAME);
      String[] urls = lib == null ? ArrayUtil.EMPTY_STRING_ARRAY : lib.getUrls(OrderRootType.CLASSES);
      return VfsUtilCore.urlToPath(ObjectUtils.notNull(ArrayUtil.getFirstElement(urls), ""));
    }
    finally {
      token.finish();
    }
  }
 
  private void setUpOrUpdateSdk(@NotNull final String path) {
    ApplicationManager.getApplication().runWriteAction(new Runnable() {
View Full Code Here

                        tempFiles.add(tempFile);
                        filesToElements.put(tempFile.getAbsolutePath(), psiFile);
                    }
                }
            } finally {
                readAccessToken.finish();
            }

            if (module == null || filesToElements.isEmpty()) {
                if (LOG.isDebugEnabled()) {
                    LOG.debug("No valid files were supplied");
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.