org.jetbrains.annotations.SystemIndependent Java Examples

The following examples show how to use org.jetbrains.annotations.SystemIndependent. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source Project: consulo   Author: consulo   File: ProgramParametersConfigurator.java    License: Apache License 2.0 5 votes vote down vote up
@Nullable
protected String getDefaultWorkingDir(@Nonnull Module module) {
  for (WorkingDirectoryProvider provider : WORKING_DIRECTORY_PROVIDER_EP_NAME.getExtensions()) {
    @SystemIndependent String path = provider.getWorkingDirectoryPath(module);
    if (path != null) return path;
  }
  VirtualFile[] roots = ModuleRootManager.getInstance(module).getContentRoots();
  if (roots.length > 0) {
    return PathUtil.getLocalPath(roots[0]);
  }
  return null;
}
 
Example #2
Source Project: intellij-quarkus   Author: redhat-developer   File: ExternalSystemTestCase.java    License: Eclipse Public License 2.0 4 votes vote down vote up
@SystemIndependent
protected String path(@NotNull String relativePath) {
  return PathUtil.toSystemIndependentName(file(relativePath).getPath());
}
 
Example #3
Source Project: consulo   Author: consulo   File: LocalFileSystem.java    License: Apache License 2.0 4 votes vote down vote up
@Nonnull
@SystemIndependent String getRootPath();
 
Example #4
Source Project: consulo   Author: consulo   File: WorkingDirectoryProvider.java    License: Apache License 2.0 4 votes vote down vote up
@Nullable
@SystemIndependent String getWorkingDirectoryPath(Module module);