type safe showSettingsDialog

This commit is contained in:
Vladimir Krivosheev
2018-09-30 08:58:50 +02:00
parent 6b43b10ca7
commit 16e39ec16b
2 changed files with 3 additions and 18 deletions
@@ -1,18 +1,4 @@
/*
* Copyright 2000-2016 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-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.openapi.options;
import com.intellij.openapi.components.ServiceManager;
@@ -33,7 +19,7 @@ public abstract class ShowSettingsUtil {
public abstract void showSettingsDialog(Project project, ConfigurableGroup... group);
public abstract void showSettingsDialog(@Nullable Project project, Class toSelect);
public abstract <T extends Configurable> void showSettingsDialog(@Nullable Project project, @NotNull Class<T> toSelect);
public abstract void showSettingsDialog(@Nullable Project project, @NotNull String nameToSelect);
@@ -89,8 +89,7 @@ public class ShowSettingsUtilImpl extends ShowSettingsUtil {
}
@Override
public void showSettingsDialog(@Nullable final Project project, final Class configurableClass) {
//noinspection unchecked
public <T extends Configurable> void showSettingsDialog(@Nullable Project project, @NotNull Class<T> configurableClass) {
showSettingsDialog(project, configurableClass, null);
}