mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Google App Engine: method renamed
This commit is contained in:
+1
-1
@@ -164,7 +164,7 @@ public class AppEngineSupportProvider extends FacetBasedFrameworkSupportProvider
|
||||
@NotNull
|
||||
private static Artifact findOrCreateArtifact(AppEngineFacet appEngineFacet) {
|
||||
Module module = appEngineFacet.getModule();
|
||||
List<ArtifactType> artifactTypes = AppEngineWebIntegration.getInstance().getAppEngineTargetArtifactType();
|
||||
List<ArtifactType> artifactTypes = AppEngineWebIntegration.getInstance().getAppEngineTargetArtifactTypes();
|
||||
final Collection<Artifact> artifacts = ArtifactUtil.getArtifactsContainingModuleOutput(module);
|
||||
for (ArtifactType type : artifactTypes) {
|
||||
for (Artifact artifact : artifacts) {
|
||||
|
||||
+1
-1
@@ -41,7 +41,7 @@ public abstract class AppEngineWebIntegration {
|
||||
public abstract VirtualFile suggestParentDirectoryForAppEngineWebXml(@NotNull Module module, @NotNull ModifiableRootModel rootModel);
|
||||
|
||||
@NotNull
|
||||
public abstract List<ArtifactType> getAppEngineTargetArtifactType();
|
||||
public abstract List<ArtifactType> getAppEngineTargetArtifactTypes();
|
||||
|
||||
public abstract void setupJpaSupport(@NotNull Module module, @NotNull VirtualFile persistenceXml);
|
||||
|
||||
|
||||
+1
-1
@@ -62,7 +62,7 @@ public class AppEngineCommunityWebIntegration extends AppEngineWebIntegration {
|
||||
|
||||
@NotNull
|
||||
@Override
|
||||
public List<ArtifactType> getAppEngineTargetArtifactType() {
|
||||
public List<ArtifactType> getAppEngineTargetArtifactTypes() {
|
||||
return Collections.<ArtifactType>singletonList(PlainArtifactType.getInstance());
|
||||
}
|
||||
|
||||
|
||||
@@ -70,7 +70,7 @@ public class AppEngineUtil {
|
||||
final List<Artifact> artifacts = new ArrayList<Artifact>();
|
||||
if (project.isDefault()) return artifacts;
|
||||
for (Artifact artifact : ArtifactManager.getInstance(project).getArtifacts()) {
|
||||
if (AppEngineWebIntegration.getInstance().getAppEngineTargetArtifactType().contains(artifact.getArtifactType()) &&
|
||||
if (AppEngineWebIntegration.getInstance().getAppEngineTargetArtifactTypes().contains(artifact.getArtifactType()) &&
|
||||
(!withAppEngineFacetOnly || findAppEngineFacet(project, artifact) != null)) {
|
||||
artifacts.add(artifact);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user