-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: debounce classpath/source change events (#916)
Fixes #916 Signed-off-by: azerr <[email protected]>
- Loading branch information
1 parent
ce55178
commit 6a64f58
Showing
9 changed files
with
443 additions
and
175 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
52 changes: 27 additions & 25 deletions
52
src/main/java/com/redhat/devtools/intellij/quarkus/QuarkusPostStartupActivity.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,27 @@ | ||
/******************************************************************************* | ||
* Copyright (c) 2019-2020 Red Hat, Inc. | ||
* Distributed under license by Red Hat, Inc. All rights reserved. | ||
* This program is made available under the terms of the | ||
* Eclipse Public License v2.0 which accompanies this distribution, | ||
* and is available at https://www.eclipse.org/legal/epl-v20.html | ||
* | ||
* Contributors: | ||
* Red Hat, Inc. - initial API and implementation | ||
******************************************************************************/ | ||
package com.redhat.devtools.intellij.quarkus; | ||
|
||
import com.intellij.openapi.module.Module; | ||
import com.intellij.openapi.module.ModuleManager; | ||
import com.intellij.openapi.project.DumbAware; | ||
import com.intellij.openapi.project.Project; | ||
import com.intellij.openapi.startup.StartupActivity; | ||
import org.jetbrains.annotations.NotNull; | ||
|
||
public class QuarkusPostStartupActivity implements StartupActivity, DumbAware { | ||
@Override | ||
public void runActivity(@NotNull Project project) { | ||
QuarkusProjectService.getInstance(project); | ||
} | ||
} | ||
/******************************************************************************* | ||
* Copyright (c) 2019-2020 Red Hat, Inc. | ||
* Distributed under license by Red Hat, Inc. All rights reserved. | ||
* This program is made available under the terms of the | ||
* Eclipse Public License v2.0 which accompanies this distribution, | ||
* and is available at https://www.eclipse.org/legal/epl-v20.html | ||
* | ||
* Contributors: | ||
* Red Hat, Inc. - initial API and implementation | ||
******************************************************************************/ | ||
package com.redhat.devtools.intellij.quarkus; | ||
|
||
import com.intellij.openapi.module.Module; | ||
import com.intellij.openapi.module.ModuleManager; | ||
import com.intellij.openapi.project.DumbAware; | ||
import com.intellij.openapi.project.Project; | ||
import com.intellij.openapi.startup.StartupActivity; | ||
import com.redhat.devtools.intellij.quarkus.classpath.ClasspathResourceChangeManager; | ||
import org.jetbrains.annotations.NotNull; | ||
|
||
public class QuarkusPostStartupActivity implements StartupActivity, DumbAware { | ||
@Override | ||
public void runActivity(@NotNull Project project) { | ||
ClasspathResourceChangeManager.getInstance(project); | ||
QuarkusProjectService.getInstance(project); | ||
} | ||
} |
Oops, something went wrong.