Skip to content

Commit

Permalink
Merge pull request #7 from unv-unv/unv/localization
Browse files Browse the repository at this point in the history
GradleBundle → GradleLocalize
  • Loading branch information
VISTALL authored Aug 10, 2024
2 parents 5d5f79c + c6dcdf6 commit c27e189
Show file tree
Hide file tree
Showing 79 changed files with 1,876 additions and 1,745 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
* {@link AbstractProjectResolverExtension} provides dummy implementation of Gradle project resolver.
*
* @author Vladislav.Soroka
* @since 10/14/13
* @since 2013-10-14
*/
public abstract class AbstractProjectResolverExtension implements GradleProjectResolverExtension {

Expand Down
10 changes: 5 additions & 5 deletions maven-impl/src/main/java/module-info.java
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
/**
* @author VISTALL
* @since 01/04/2023
* @since 2023-04-01
*/
module org.jetbrains.plugins.gradle.maven.impl {
requires consulo.ide.api;
requires org.jetbrains.plugins.gradle.api;
requires org.jetbrains.idea.maven;
requires org.jetbrains.idea.maven.server.common;
requires consulo.ide.api;
requires org.jetbrains.plugins.gradle.api;
requires org.jetbrains.idea.maven;
requires org.jetbrains.idea.maven.server.common;
}
Original file line number Diff line number Diff line change
Expand Up @@ -29,18 +29,19 @@
* {@link GradleMavenProjectImportNotificationListener} listens for Gradle project import events.
*
* @author Vladislav.Soroka
* @since 10/28/13
* @since 2013-10-28
*/
@ExtensionImpl
public class GradleMavenProjectImportNotificationListener extends ExternalSystemTaskNotificationListenerAdapter {

@Override
public void onSuccess(@Nonnull ExternalSystemTaskId id) {
if (GradleConstants.SYSTEM_ID.getId().equals(id.getProjectSystemId().getId())
&& id.getType() == ExternalSystemTaskType.RESOLVE_PROJECT) {
final Project project = id.findProject();
if (project == null) return;
Application.get().invokeLater(new ImportMavenRepositoriesTask(project));
@Override
public void onSuccess(@Nonnull ExternalSystemTaskId id) {
if (GradleConstants.SYSTEM_ID.getId().equals(id.getProjectSystemId().getId())
&& id.getType() == ExternalSystemTaskType.RESOLVE_PROJECT) {
final Project project = id.findProject();
if (project == null) {
return;
}
Application.get().invokeLater(new ImportMavenRepositoriesTask(project));
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,13 @@

/**
* @author Vladislav.Soroka
* @since 10/25/13
* @since 2013-10-25
*/
@ExtensionImpl
public class GradleMavenRepositoryProvider implements MavenRepositoryProvider {

@Nonnull
@Override
public Set<MavenRemoteRepository> getRemoteRepositories(@Nonnull Project project) {
return MavenRepositoriesHolder.getInstance(project).getRemoteRepositories();
}
@Nonnull
@Override
public Set<MavenRemoteRepository> getRemoteRepositories(@Nonnull Project project) {
return MavenRepositoriesHolder.getInstance(project).getRemoteRepositories();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,12 @@

/**
* @author Vladislav.Soroka
* @since 10/28/13
* @since 2013-10-28
*/
@ExtensionImpl
public class GradleProjectStartupActivity implements PostStartupActivity {

@Override
public void runActivity(@Nonnull final Project project, @Nonnull UIAccess uiAccess) {
DumbService.getInstance(project).smartInvokeLater(new ImportMavenRepositoriesTask(project));
}
@Override
public void runActivity(@Nonnull final Project project, @Nonnull UIAccess uiAccess) {
DumbService.getInstance(project).smartInvokeLater(new ImportMavenRepositoriesTask(project));
}
}
Loading

0 comments on commit c27e189

Please sign in to comment.