Commit a2189386 authored by Vladimir Krivosheev's avatar Vladimir Krivosheev
Browse files

default impl of enableSearch

parent 17ff2e69
Showing with 46 additions and 125 deletions
+46 -125
......@@ -24,7 +24,6 @@ import org.intellij.images.options.Options;
import org.intellij.images.options.OptionsManager;
import org.jetbrains.annotations.NonNls;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import javax.swing.*;
import java.beans.PropertyChangeEvent;
......@@ -100,9 +99,4 @@ public final class ImagesConfigurable extends BaseConfigurableWithChangeSupport
public String getId() {
return "Images";
}
@Nullable
public Runnable enableSearch(String option) {
return null;
}
}
/*
* Copyright 2000-2012 JetBrains s.r.o.
* 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.
......@@ -54,10 +54,6 @@ public class AnnotationProcessorsConfigurable implements SearchableConfigurable,
return getHelpTopic();
}
public Runnable enableSearch(String option) {
return null;
}
public JComponent createComponent() {
myMainPanel = new AnnotationProcessorsPanel(myProject);
return myMainPanel;
......
/*
* Copyright 2000-2009 JetBrains s.r.o.
* 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.
......@@ -53,11 +53,6 @@ public class CompilerConfigurable implements SearchableConfigurable.Parent, Conf
return getHelpTopic();
}
@Nullable
public Runnable enableSearch(String option) {
return null;
}
public JComponent createComponent() {
return myCompilerUIConfigurable.createComponent();
}
......
/*
* Copyright 2000-2014 JetBrains s.r.o.
* 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.
......@@ -315,10 +315,6 @@ public class CompilerUIConfigurable implements SearchableConfigurable, Configura
return "compiler.general";
}
public Runnable enableSearch(String option) {
return null;
}
public JComponent createComponent() {
return myPanel;
}
......
/*
* Copyright 2000-2014 JetBrains s.r.o.
* 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.
......@@ -108,10 +108,6 @@ public class JavaCompilersTab implements SearchableConfigurable, Configurable.No
return getHelpTopic();
}
public Runnable enableSearch(String option) {
return null;
}
public JComponent createComponent() {
return myPanel;
}
......
/*
* Copyright 2000-2009 JetBrains s.r.o.
* 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.
......@@ -74,10 +74,6 @@ public class RmicConfigurable implements SearchableConfigurable, Configurable.No
return getHelpTopic();
}
public Runnable enableSearch(String option) {
return null;
}
public JComponent createComponent() {
return myPanel;
}
......
/*
* 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.
*/
package com.intellij.compiler.options;
import com.intellij.ide.util.ElementsChooser;
......@@ -73,10 +88,6 @@ public class ValidationConfigurable implements SearchableConfigurable, Configura
return "project.validation";
}
public Runnable enableSearch(final String option) {
return null;
}
public String getDisplayName() {
return CompilerBundle.message("validation.display.name");
}
......
......@@ -323,9 +323,4 @@ public class DebuggerDataViewsConfigurable implements SearchableConfigurable {
public String getId() {
return getHelpTopic();
}
@Override
public Runnable enableSearch(String option) {
return null;
}
}
/*
* Copyright 2000-2015 JetBrains s.r.o.
* 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.
......@@ -152,12 +152,6 @@ public class ProjectStructureConfigurable extends BaseConfigurable implements Se
return "project.structure";
}
@Override
@Nullable
public Runnable enableSearch(final String option) {
return null;
}
@Override
@Nls
public String getDisplayName() {
......
/*
* Copyright 2000-2015 JetBrains s.r.o.
* 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.
......@@ -361,11 +361,6 @@ public class ArtifactsStructureConfigurable extends BaseStructureConfigurable {
return "project.artifacts";
}
@Override
public Runnable enableSearch(String option) {
return null;
}
@Override
public void dispose() {
}
......
/*
* Copyright 2000-2013 JetBrains s.r.o.
* 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.
......@@ -80,12 +80,6 @@ public abstract class BaseLibrariesConfigurable extends BaseStructureConfigurabl
return false;
}
@Override
@Nullable
public Runnable enableSearch(final String option) {
return null;
}
@Override
@Nullable
@NonNls
......
/*
* Copyright 2000-2014 JetBrains s.r.o.
* 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.
......@@ -389,11 +389,6 @@ public class FacetStructureConfigurable extends BaseStructureConfigurable {
return "project.facets";
}
@Override
public Runnable enableSearch(final String option) {
return null;
}
@Override
public void dispose() {
}
......
/*
* Copyright 2000-2009 JetBrains s.r.o.
* 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.
......@@ -112,12 +112,6 @@ public class JdkListConfigurable extends BaseStructureConfigurable {
return "jdk.list";
}
@Override
@Nullable
public Runnable enableSearch(final String option) {
return null;
}
@Override
protected void loadTree() {
final Map<Sdk,Sdk> sdks = myJdksTreeModel.getProjectSdks();
......
/*
* Copyright 2000-2014 JetBrains s.r.o.
* 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.
......@@ -588,13 +588,6 @@ public class ModuleStructureConfigurable extends BaseStructureConfigurable imple
return "project.structure";
}
@Override
@Nullable
public Runnable enableSearch(String option) {
return null;
}
@Nullable
public Module getModule(final String moduleName) {
if (moduleName == null) return null;
......
/*
* Copyright 2000-2011 JetBrains s.r.o.
* 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.
......@@ -39,11 +39,6 @@ public class JavadocOptionsProvider implements EditorOptionsProvider {
return "editor.preferences.javadocOptions";
}
@Override
public Runnable enableSearch(String option) {
return null;
}
@Nls
@Override
public String getDisplayName() {
......
/*
* 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.
*/
package com.jetbrains.jsonSchema;
import com.intellij.codeInsight.daemon.DaemonCodeAnalyzer;
......@@ -327,12 +342,6 @@ public class JsonSchemaMappingsConfigurable extends MasterDetailsComponent imple
return SETTINGS_JSON_SCHEMA;
}
@Nullable
@Override
public Runnable enableSearch(String option) {
return null;
}
public static class JsonSchemaChecker {
private static final int MAX_SCHEMA_LENGTH = FileUtil.MEGABYTE;
private final Project myProject;
......
/*
* Copyright 2000-2015 JetBrains s.r.o.
* 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.
......@@ -32,12 +32,6 @@ public class DiffSettingsConfigurable implements SearchableConfigurable {
return getHelpTopic();
}
@Nullable
@Override
public Runnable enableSearch(String option) {
return null;
}
@Nls
@Override
public String getDisplayName() {
......
/*
* Copyright 2000-2015 JetBrains s.r.o.
* 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.
......@@ -32,12 +32,6 @@ public class ExternalDiffSettingsConfigurable implements SearchableConfigurable
return getHelpTopic();
}
@Nullable
@Override
public Runnable enableSearch(String option) {
return null;
}
@Nls
@Override
public String getDisplayName() {
......
/*
* Copyright 2000-2013 JetBrains s.r.o.
* 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.
......@@ -88,12 +88,6 @@ public abstract class AbstractExternalSystemConfigurable<
return myProject;
}
@Nullable
@Override
public Runnable enableSearch(String option) {
return null;
}
@Nls
@Override
public String getDisplayName() {
......
/*
* Copyright 2000-2009 JetBrains s.r.o.
* 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.
......@@ -22,7 +22,6 @@ import com.intellij.openapi.options.BaseConfigurable;
import com.intellij.openapi.options.Configurable;
import com.intellij.openapi.options.SearchableConfigurable;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import javax.swing.*;
......@@ -70,12 +69,4 @@ public class CodeCompletionOptions extends BaseConfigurable implements Searchabl
public String getId() {
return "editor.preferences.completion";
}
@Override
@Nullable
public Runnable enableSearch(String option) {
return null;
}
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment