mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-14 18:05:27 +07:00
fix ClasspathElementChooser visibility
GitOrigin-RevId: 6cc1267abe84565a238f1023b5e0b76ad2cae066
This commit is contained in:
committed by
intellij-monorepo-bot
parent
4a60651c82
commit
ac17c98291
@@ -2,6 +2,7 @@
|
||||
package com.intellij.commandInterface.commandLine;
|
||||
|
||||
import com.intellij.openapi.fileTypes.LanguageFileType;
|
||||
import org.jetbrains.annotations.ApiStatus;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
import javax.swing.*;
|
||||
@@ -15,7 +16,8 @@ public final class CommandLineFileType extends LanguageFileType {
|
||||
/**
|
||||
* Command line extension
|
||||
*/
|
||||
static final String EXTENSION = "cmdline";
|
||||
@ApiStatus.Internal
|
||||
public static final String EXTENSION = "cmdline";
|
||||
|
||||
private CommandLineFileType() {
|
||||
super(CommandLineLanguage.INSTANCE);
|
||||
|
||||
@@ -1,26 +1,14 @@
|
||||
/*
|
||||
* Copyright 2000-2010 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
// Copyright 2000-2025 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
|
||||
package com.intellij.openapi.roots.ui.configuration.classpath;
|
||||
|
||||
import org.jetbrains.annotations.ApiStatus;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.annotations.Unmodifiable;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
interface ClasspathElementChooser<T> {
|
||||
@ApiStatus.Internal
|
||||
public interface ClasspathElementChooser<T> {
|
||||
@NotNull
|
||||
@Unmodifiable
|
||||
List<T> chooseElements();
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright 2000-2024 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
|
||||
// Copyright 2000-2025 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
|
||||
package com.intellij.openapi.roots.ui.configuration.classpath;
|
||||
|
||||
import com.intellij.openapi.actionSystem.LangDataKeys;
|
||||
@@ -31,7 +31,7 @@ import java.util.function.Function;
|
||||
import java.util.function.Predicate;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
public class CreateModuleLibraryChooser implements ClasspathElementChooser<Library> {
|
||||
public final class CreateModuleLibraryChooser implements ClasspathElementChooser<Library> {
|
||||
private final JComponent myParentComponent;
|
||||
private final Module myModule;
|
||||
private final LibraryTable.ModifiableModel myModuleLibrariesModel;
|
||||
|
||||
@@ -160,7 +160,7 @@ final class JavaServiceLineMarkerUtil {
|
||||
}
|
||||
}
|
||||
|
||||
private static class ServiceUsesNavigationHandler extends ServiceNavigationHandler {
|
||||
private static final class ServiceUsesNavigationHandler extends ServiceNavigationHandler {
|
||||
ServiceUsesNavigationHandler(String interfaceClassName) {
|
||||
super(interfaceClassName);
|
||||
}
|
||||
@@ -174,7 +174,7 @@ final class JavaServiceLineMarkerUtil {
|
||||
}
|
||||
}
|
||||
|
||||
private static class ServiceProvidesNavigationHandler extends ServiceNavigationHandler {
|
||||
private static final class ServiceProvidesNavigationHandler extends ServiceNavigationHandler {
|
||||
private final String myImplementerClassName;
|
||||
|
||||
ServiceProvidesNavigationHandler(@NotNull String interfaceClassName, @NotNull String implementerClassName) {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright 2000-2024 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
|
||||
// Copyright 2000-2025 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
|
||||
package com.jetbrains.python.refactoring.classes.extractSuperclass;
|
||||
|
||||
import com.intellij.openapi.util.NlsSafe;
|
||||
@@ -7,16 +7,16 @@ import com.intellij.refactoring.classMembers.MemberInfoModel;
|
||||
import com.jetbrains.python.psi.PyElement;
|
||||
import com.jetbrains.python.refactoring.classes.membersManager.PyMemberInfo;
|
||||
import com.jetbrains.python.refactoring.classes.membersManager.vp.MembersViewInitializationInfo;
|
||||
import org.jetbrains.annotations.ApiStatus;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
import java.util.Collection;
|
||||
|
||||
/**
|
||||
* View configuration for "extract superclass"
|
||||
*
|
||||
* @author Ilya.Kazakevich
|
||||
*/
|
||||
class PyExtractSuperclassInitializationInfo extends MembersViewInitializationInfo {
|
||||
@ApiStatus.Internal
|
||||
public final class PyExtractSuperclassInitializationInfo extends MembersViewInitializationInfo {
|
||||
|
||||
private final @NotNull String myDefaultFilePath;
|
||||
private final VirtualFile @NotNull [] myRoots;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright 2000-2024 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
|
||||
// Copyright 2000-2025 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
|
||||
package com.jetbrains.python.refactoring.classes.membersManager.vp;
|
||||
|
||||
import com.intellij.refactoring.RefactoringBundle;
|
||||
@@ -8,6 +8,7 @@ import com.jetbrains.python.psi.PyClass;
|
||||
import com.jetbrains.python.psi.PyElement;
|
||||
import com.jetbrains.python.refactoring.classes.PyMemberInfoStorage;
|
||||
import com.jetbrains.python.refactoring.classes.membersManager.PyMemberInfo;
|
||||
import org.jetbrains.annotations.ApiStatus;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
import java.util.ArrayList;
|
||||
@@ -23,7 +24,8 @@ import java.util.Collection;
|
||||
* @param <M> Type of model {@link #myModel}
|
||||
* @author Ilya.Kazakevich
|
||||
*/
|
||||
abstract class MembersBasedPresenterImpl<T extends MembersBasedView<?>,
|
||||
@ApiStatus.Internal
|
||||
public abstract class MembersBasedPresenterImpl<T extends MembersBasedView<?>,
|
||||
M extends MemberInfoModel<PyElement, PyMemberInfo<PyElement>>> implements MembersBasedPresenter {
|
||||
protected final @NotNull T myView;
|
||||
protected final @NotNull PyClass myClassUnderRefactoring;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright 2000-2024 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
|
||||
// Copyright 2000-2025 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
|
||||
package com.jetbrains.python.refactoring.classes.pullUp;
|
||||
|
||||
import com.intellij.refactoring.classMembers.MemberInfoModel;
|
||||
@@ -6,6 +6,7 @@ import com.jetbrains.python.psi.PyClass;
|
||||
import com.jetbrains.python.psi.PyElement;
|
||||
import com.jetbrains.python.refactoring.classes.membersManager.PyMemberInfo;
|
||||
import com.jetbrains.python.refactoring.classes.membersManager.vp.MembersViewInitializationInfo;
|
||||
import org.jetbrains.annotations.ApiStatus;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
import java.util.ArrayList;
|
||||
@@ -15,10 +16,9 @@ import java.util.List;
|
||||
|
||||
/**
|
||||
* Configuration for pull-up view
|
||||
*
|
||||
* @author Ilya.Kazakevich
|
||||
*/
|
||||
class PyPullUpViewInitializationInfo extends MembersViewInitializationInfo {
|
||||
@ApiStatus.Internal
|
||||
public final class PyPullUpViewInitializationInfo extends MembersViewInitializationInfo {
|
||||
private final @NotNull Collection<PyClass> myParents;
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user