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 File: ProgramParametersConfigurator.java    From consulo with 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 File: ExternalSystemTestCase.java    From intellij-quarkus with 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 File: LocalFileSystem.java    From consulo with Apache License 2.0 4 votes vote down vote up
@Nonnull
@SystemIndependent String getRootPath();
 
Example #4
Source File: WorkingDirectoryProvider.java    From consulo with Apache License 2.0 4 votes vote down vote up
@Nullable
@SystemIndependent String getWorkingDirectoryPath(Module module);