com.intellij.serviceContainer.NonInjectable Java Examples

The following examples show how to use com.intellij.serviceContainer.NonInjectable. 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: ProjectUnresolvedResourceStatsCollector.java    From intellij with Apache License 2.0 6 votes vote down vote up
@NonInjectable
ProjectUnresolvedResourceStatsCollector(
    Project project,
    WorkspacePathResolverProvider workspacePathResolverProvider,
    BlazeProjectDataManager blazeProjectDataManager,
    WorkspaceFileFinder.Provider workspaceFileFinderProvider,
    FileTypeRegistry fileTypeRegistry) {

  this.project = project;
  fileToHighlightStats = Collections.synchronizedMap(new HashMap<>());

  this.workspacePathResolverProvider = workspacePathResolverProvider;
  this.blazeProjectDataManager = blazeProjectDataManager;
  this.workspaceFileFinderProvider = workspaceFileFinderProvider;
  this.fileTypeRegistry = fileTypeRegistry;

  LowMemoryWatcher.register(this::clearMap, project);
}
 
Example #2
Source File: GogsUrlFactory.java    From GitLink with MIT License 5 votes vote down vote up
@NonInjectable
public GogsUrlFactory(@NotNull final URLTemplateProcessor processor) {
    super(
        processor,
        "{remote:url}/src/{branch}/{file:path}/{file:name}#L{line:start}-L{line:end}",
        "{remote:url}/src/{commit}/{file:path}/{file:name}#L{line:start}-L{line:end}",
        "{remote:url}/commit/{commit}"
    );
}
 
Example #3
Source File: BitbucketServerUrlFactory.java    From GitLink with MIT License 5 votes vote down vote up
@NonInjectable
public BitbucketServerUrlFactory(@NotNull final URLTemplateProcessor processor) {
    super(
        processor,
        "{remote:url:host}/projects/{remote:url:path:0}/repos/{remote:url:path:1}/browse/{file:path}/{file:name}?at=refs/heads/{branch}#{line:start}-{line:end}",
        "{remote:url:host}/projects/{remote:url:path:0}/repos/{remote:url:path:1}/browse/{file:path}/{file:name}?at={commit}#{line:start}-{line:end}",
        "{remote:url:host}/projects/{remote:url:path:0}/repos/{remote:url:path:1}/commits/{commit}"
    );
}
 
Example #4
Source File: GitLabUrlFactory.java    From GitLink with MIT License 5 votes vote down vote up
@NonInjectable
public GitLabUrlFactory(@NotNull final URLTemplateProcessor processor) {
    super(
        processor,
        "{remote:url}/blob/{branch}/{file:path}/{file:name}#L{line:start}-{line:end}",
        "{remote:url}/blob/{commit}/{file:path}/{file:name}#L{line:start}-{line:end}",
        "{remote:url}/commit/{commit}"
    );
}
 
Example #5
Source File: TemplatedUrlFactory.java    From GitLink with MIT License 5 votes vote down vote up
@NonInjectable
public TemplatedUrlFactory(
    @NotNull final URLTemplateProcessor processor,
    @NotNull final String fileAtBranchUrlTemplate,
    @NotNull final String fileAtCommitUrlTemplate,
    @NotNull final String commitUrlTemplate
) {
    this.urlTemplateProcessor    = processor;
    this.fileAtBranchUrlTemplate = fileAtBranchUrlTemplate;
    this.fileAtCommitUrlTemplate = fileAtCommitUrlTemplate;
    this.commitUrlTemplate       = commitUrlTemplate;
}
 
Example #6
Source File: BitbucketCloudUrlFactory.java    From GitLink with MIT License 5 votes vote down vote up
@NonInjectable
public BitbucketCloudUrlFactory(@NotNull final URLTemplateProcessor processor) {
    super(
        processor,
        "{remote:url}/src/HEAD/{file:path}/{file:name}?at={branch}#lines-{line:start}:{line:end}",
        "{remote:url}/src/{commit}/{file:path}/{file:name}#lines-{line:start}:{line:end}",
        "{remote:url}/commits/{commit}"
    );
}
 
Example #7
Source File: GitHubUrlFactory.java    From GitLink with MIT License 5 votes vote down vote up
@NonInjectable
public GitHubUrlFactory(@NotNull final URLTemplateProcessor processor) {
    super(
        processor,
        "{remote:url}/blob/{branch}/{file:path}/{file:name}#L{line:start}-L{line:end}",
        "{remote:url}/blob/{commit}/{file:path}/{file:name}#L{line:start}-L{line:end}",
        "{remote:url}/commit/{commit}"
    );
}
 
Example #8
Source File: VirtualFileRepoCacheImpl.java    From GitToolBox with Apache License 2.0 5 votes vote down vote up
@NonInjectable
VirtualFileRepoCacheImpl(@NotNull VirtualFileRepoCacheLocalGateway gateway) {
  this.gateway = gateway;
  gateway.rootsVFileCacheSizeGauge(rootsVFileCache::size);
  gateway.rootsFilePathCacheSizeGauge(rootsFilePathCache::size);
  gateway.exposeDirsCacheMetrics(dirsCache);
  gateway.disposeWithProject(this);
}
 
Example #9
Source File: FastBuildChangedFilesService.java    From intellij with Apache License 2.0 5 votes vote down vote up
@NonInjectable
private FastBuildChangedFilesService(
    Project project,
    BlazeProjectDataManager projectDataManager,
    ListeningExecutorService executor) {
  this.project = project;
  this.projectDataManager = projectDataManager;
  this.executor = executor;
}
 
Example #10
Source File: FastBuildCompilerFactoryImpl.java    From intellij with Apache License 2.0 5 votes vote down vote up
@NonInjectable
private FastBuildCompilerFactoryImpl(
    BlazeProjectDataManager projectDataManager,
    Supplier<EventLoggingService> eventLoggerSupplier,
    Supplier<File> fastBuildJavacJarSupplier) {
  this.projectDataManager = projectDataManager;
  this.eventLoggerSupplier = eventLoggerSupplier;
  this.fastBuildJavacJarSupplier = fastBuildJavacJarSupplier;
}
 
Example #11
Source File: StatusMessagesService.java    From GitToolBox with Apache License 2.0 5 votes vote down vote up
@NonInjectable
public StatusMessagesService(StatusMessagesServiceLocalGateway gateway) {
  commonStatuses.put(CANCEL, ResBundle.message("message.cancelled"));
  commonStatuses.put(FAILURE, ResBundle.message("message.failure"));
  commonStatuses.put(NO_REMOTE, ResBundle.message("message.no.remote"));
  this.gateway = gateway;
}
 
Example #12
Source File: ManualCodeStyleManagerDelegator.java    From EclipseCodeFormatter with Apache License 2.0 4 votes vote down vote up
@NonInjectable
public ManualCodeStyleManagerDelegator(@NotNull CodeStyleManager original, EclipseCodeStyleManager eclipseCodeStyleManager) {
	super(original);
	this.eclipseCodeStyleManager = eclipseCodeStyleManager;
}
 
Example #13
Source File: Plugin.java    From GitLink with MIT License 4 votes vote down vote up
@NonInjectable
public Plugin(IdeaPluginDescriptor descriptor) {
    this.pluginDescriptor = descriptor;
}
 
Example #14
Source File: CacheTaskScheduler.java    From GitToolBox with Apache License 2.0 4 votes vote down vote up
@NonInjectable
CacheTaskScheduler(@NotNull CacheTaskSchedulerLocalGateway gateway) {
  this.gateway = gateway;
  updateExecutor = new MemoizeSupplier<>(this::createExecutor);
  gateway.disposeWithProject(this);
}
 
Example #15
Source File: BehindTracker.java    From GitToolBox with Apache License 2.0 4 votes vote down vote up
@NonInjectable
BehindTracker(BehindTrackerLocalGateway gateway) {
  this.gateway = gateway;
  gateway.disposeWithProject(this);
}
 
Example #16
Source File: BrowserHandler.java    From GitLink with MIT License 4 votes vote down vote up
@NonInjectable
public BrowserHandler(@NotNull BrowserLauncher browserLauncher) {
    this.browserLauncher = browserLauncher;
}
 
Example #17
Source File: ClipboardHandler.java    From GitLink with MIT License 4 votes vote down vote up
@NonInjectable
public ClipboardHandler(@NotNull Toolkit toolkit) {
    this.toolkit = toolkit;
}
 
Example #18
Source File: CustomUrlFactory.java    From GitLink with MIT License 4 votes vote down vote up
@NonInjectable
public CustomUrlFactory(@NotNull final URLTemplateProcessor processor, @NotNull final Preferences preferences) {
    this.urlTemplateProcessor = processor;
    this.preferences = preferences;
}