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;
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.
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.
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.
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.
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.
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;
return "project.validation";
}
- public Runnable enableSearch(final String option) {
- return null;
- }
-
public String getDisplayName() {
return CompilerBundle.message("validation.display.name");
}
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.
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.
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.
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.
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.
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.
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.
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;
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.
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.
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.
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.
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.*;
public String getId() {
return "editor.preferences.completion";
}
-
- @Override
- @Nullable
- public Runnable enableSearch(String option) {
- return null;
- }
-
-
}
else {
revert();
}
-
-
}
@Override
return "preferences.sourceCode." + getDisplayName();
}
- @Override
- public Runnable enableSearch(final String option) {
- return null;
- }
-
@Override
public void disposeUIResources() {
if (myPanel != null) {
/*
- * 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.
return getClass().getName();
}
- @Override
- public Runnable enableSearch(String option) {
- return null;
- }
-
@NotNull
protected final Project getProject() {
return myProject;
return getHelpTopic();
}
- @Override
- @Nullable
- public Runnable enableSearch(final String option) {
- return null;
- }
-
@Nullable
public SearchableConfigurable findSubConfigurable(@NotNull Class pageClass) {
if (mySubPanelFactories == null) {
/*
- * 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.
public String getId() {
return "editor.preferences.import";
}
-
- @Override
- public Runnable enableSearch(final String option) {
- return null;
- }
}
/*
- * 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.
public String getId() {
return "editor.preferences.folding";
}
-
- @Override
- public Runnable enableSearch(final 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.
public String getId() {
return "editor.preferences.appearance";
}
-
- @Override
- public Runnable enableSearch(final String option) {
- return null;
- }
}
/*
- * 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.
return ID;
}
- @Override
- public Runnable enableSearch(final String option) {
- return null;
- }
-
@Override
public JComponent createComponent() {
myEditorOptionsPanel = new EditorOptionsPanel();
/*
- * 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.
return "Editor.Behavior";
}
- @Override
- public Runnable enableSearch(final String option) {
- return null;
- }
-
@Override
public String getDisplayName() {
return ApplicationBundle.message("tab.editor.settings.behavior");
public String getId() {
return "editor.preferences.smartKeys";
}
-
- @Override
- public Runnable enableSearch(final 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.
public String getId() {
return "editor.preferences.tabs";
}
-
- @Override
- public Runnable enableSearch(final String option) {
- return null;
- }
}
/*
- * 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.
myCheckboxTree = null;
}
- @Nullable
- @Override
- public Runnable enableSearch(String s) {
- return null;
- }
-
private void updateComponents() {
boolean pluginEnabled = myPostfixTemplatesEnabled.isSelected();
myCompletionEnabledCheckbox.setVisible(!LiveTemplateCompletionContributor.shouldShowAllTemplates());
+/*
+ * 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.execution.console;
import com.intellij.execution.impl.ConsoleBuffer;
return getDisplayName();
}
- @Override
- public Runnable enableSearch(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.
return "preferences.startup.tasks";
}
- @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.
return "fileTemplates";
}
- @Override
- @Nullable
- public Runnable enableSearch(String option) {
- return null;
- }
-
public static void editCodeTemplate(@NotNull final String templateId, Project project) {
final ShowSettingsUtil util = ShowSettingsUtil.getInstance();
final AllFileTemplatesConfigurable configurable = new AllFileTemplatesConfigurable(project);
return getHelpTopic();
}
- @Override
- @Nullable
- public Runnable enableSearch(String option) {
- return null;
- }
}
return getHelpTopic();
}
- @Override
- @Nullable
- public Runnable enableSearch(final String option) {
- return null;
- }
-
private class MyAddAction extends ActionGroup implements ActionGroupWithPreselection {
private AnAction[] myChildren;
+/*
+ * 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.lang.customFolding;
import com.intellij.openapi.options.ConfigurationException;
return getDisplayName();
}
- @Override
- public Runnable enableSearch(String option) {
- return null;
- }
-
@Nls
@Override
public String getDisplayName() {
public String getId() {
return getHelpTopic();
}
-
- @Override
- @Nullable
- 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.
import com.intellij.openapi.vfs.VirtualFile;
import com.intellij.ui.ScrollPaneFactory;
import com.intellij.ui.table.JBTable;
-import com.intellij.util.Function;
import org.jetbrains.annotations.Nls;
import org.jetbrains.annotations.NonNls;
import org.jetbrains.annotations.NotNull;
return "File.Encoding";
}
- @Override
- public Runnable enableSearch(final String option) {
- return null;
- }
-
@NotNull
private static ChooseFileEncodingAction installChooseEncodingCombo(@NotNull JPanel parentPanel, @NotNull final Ref<Charset> selected) {
ChooseFileEncodingAction myAction = new ChooseFileEncodingAction(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.
import com.intellij.openapi.options.ConfigurationException;
import com.intellij.openapi.options.SearchableConfigurable;
import org.jetbrains.annotations.NotNull;
-import org.jetbrains.annotations.Nullable;
import javax.swing.*;
public String getId() {
return "preferences.externalTools";
}
-
- @Override
- @Nullable
- public Runnable enableSearch(String option) {
- return null;
- }
}
/*
- * 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.
public String getId() {
return getHelpTopic();
}
-
- @Override
- public Runnable enableSearch(String option) {
- return null;
- }
}
/*
- * 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.
return getDisplayName();
}
- @Override
- public Runnable enableSearch(final String option) {
- return null;
- }
-
private class MyTreeTable extends AbstractFileTreeTable<T> {
public MyTreeTable() {
super(myProject, myValueClass, myTreeTableTitle, VirtualFileFilter.ALL, true);
/*
- * 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.
return helpTopic;
}
- @Nullable
- @Override
- public Runnable enableSearch(String option) {
- return null;
- }
-
@NotNull
protected abstract S getSettings();
/*
- * 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.
* @return an action to perform when this configurable is opened when a search filter query is entered by the user in setting dialog.
* This action, for example, can select something in a tree or a list embedded in this setting page that matches the query.
*/
- @Nullable Runnable enableSearch(String option);
+ default @Nullable Runnable enableSearch(String option) {
+ return null;
+ }
interface Parent extends SearchableConfigurable, Composite {
boolean hasOwnContent();
myKids = null;
}
- @Override
- public Runnable enableSearch(final String option) {
- return null;
- }
-
@Override
public boolean isVisible() {
return true;
+/*
+ * 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.util.net.ssl;
import com.intellij.openapi.fileChooser.FileChooser;
return "http.certificates";
}
- @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.
public String getId() {
return getHelpTopic();
}
-
- @Override
- @Nullable
- public Runnable enableSearch(String option) {
- return null;
- }
}
return null;
}
- @Nullable
- @Override
- public Runnable enableSearch(String option) {
- return null;
- }
-
@Nullable
@Override
public String getHelpTopic() {
return getHelpTopic();
}
- @Nullable
- public Runnable enableSearch(String option) {
- return null;
- }
-
protected List<SearchableConfigurable> createConfigurables() {
return ConfigurableWrapper.createConfigurables(EP_NAME);
}
import javax.swing.*;
-/**
- * A configurable for password safe
- */
public class PasswordSafeConfigurable implements SearchableConfigurable, Configurable.NoScroll {
- /**
- * The settings for the password safe
- */
final PasswordSafeSettings mySettings;
- /**
- * The option panel to use
- */
PasswordSafeOptionsPanel myPanel;
- /**
- * The constructor
- *
- * @param settings the password safe settings
- */
public PasswordSafeConfigurable(@NotNull PasswordSafeSettings settings) {
mySettings = settings;
}
- /**
- * {@inheritDoc}
- */
@Nls
public String getDisplayName() {
return "Passwords";
}
- /**
- * {@inheritDoc}
- */
public String getHelpTopic() {
return "reference.ide.settings.password.safe";
}
- /**
- * {@inheritDoc}
- */
public JComponent createComponent() {
myPanel = new PasswordSafeOptionsPanel();
myPanel.reset(mySettings);
return myPanel.getRoot();
}
- /**
- * {@inheritDoc}
- */
public boolean isModified() {
return myPanel != null && myPanel.isModified(mySettings);
}
- /**
- * {@inheritDoc}
- */
public void apply() throws ConfigurationException {
myPanel.apply(mySettings);
}
- /**
- * {@inheritDoc}
- */
public void reset() {
myPanel.reset(mySettings);
}
- /**
- * {@inheritDoc}
- */
public void disposeUIResources() {
myPanel = null;
}
- /**
- * {@inheritDoc}
- */
@NotNull
public String getId() {
return "application.passwordSafe";
}
-
- /**
- * {@inheritDoc}
- */
- public Runnable enableSearch(String option) {
- return null;
- }
}
<?xml version="1.0" encoding="UTF-8"?>
<form xmlns="http://www.intellij.com/uidesigner/form/" version="1" bind-to-class="com.intellij.ide.passwordSafe.config.PasswordSafeOptionsPanel">
- <grid id="27dc6" binding="myRoot" layout-manager="GridLayoutManager" row-count="2" column-count="2" same-size-horizontally="false" same-size-vertically="false" hgap="-1" vgap="-1">
+ <grid id="27dc6" binding="myRoot" layout-manager="GridLayoutManager" row-count="2" column-count="1" same-size-horizontally="false" same-size-vertically="false" hgap="-1" vgap="-1">
<margin top="0" left="0" bottom="0" right="0"/>
<constraints>
<xy x="20" y="20" width="509" height="269"/>
<properties/>
<border type="none"/>
<children>
- <hspacer id="f4ecf">
- <constraints>
- <grid row="0" column="1" row-span="1" col-span="1" vsize-policy="1" hsize-policy="6" anchor="0" fill="1" indent="0" use-parent-layout="false"/>
- </constraints>
- </hspacer>
<grid id="62956" layout-manager="GridLayoutManager" row-count="2" column-count="1" same-size-horizontally="false" same-size-vertically="false" hgap="-1" vgap="-1">
<margin top="0" left="0" bottom="0" right="0"/>
<constraints>
<children>
<component id="286da" class="javax.swing.JRadioButton" binding="myRememberPasswordsUntilClosingRadioButton" default-binding="true">
<constraints>
- <grid row="0" column="0" row-span="1" col-span="1" vsize-policy="0" hsize-policy="3" anchor="8" fill="0" indent="0" use-parent-layout="false"/>
+ <grid row="1" column="0" row-span="1" col-span="1" vsize-policy="0" hsize-policy="3" anchor="8" fill="0" indent="0" use-parent-layout="false"/>
</constraints>
<properties>
<text value="Remember passwords &until the application is closed"/>
</component>
<component id="4e7bb" class="javax.swing.JRadioButton" binding="mySaveOnDiskRadioButton" default-binding="true">
<constraints>
- <grid row="1" column="0" row-span="1" col-span="1" vsize-policy="0" hsize-policy="3" anchor="8" fill="0" indent="0" use-parent-layout="false"/>
+ <grid row="0" column="0" row-span="1" col-span="1" vsize-policy="0" hsize-policy="3" anchor="8" fill="0" indent="0" use-parent-layout="false"/>
</constraints>
<properties>
<selected value="true"/>
<text value="Save on &disk with master password protection"/>
- <toolTipText value="The passwords are saved on disk and after restart only master password will be asked."/>
</properties>
</component>
</children>
*/
package com.intellij.ide.passwordSafe.config;
+import org.jetbrains.annotations.NotNull;
+
import javax.swing.*;
-/**
- * The option panel for password safe
- */
-public class PasswordSafeOptionsPanel {
- /**
- * The password storage policy option
- */
+class PasswordSafeOptionsPanel {
private JRadioButton myRememberPasswordsUntilClosingRadioButton;
- /**
- * The password storage policy option
- */
private JRadioButton mySaveOnDiskRadioButton;
- /**
- * The root panel
- */
private JPanel myRoot;
- public PasswordSafeOptionsPanel() {
- }
-
- public void reset(PasswordSafeSettings settings) {
+ public void reset(@NotNull PasswordSafeSettings settings) {
PasswordSafeSettings.ProviderType t = settings.getProviderType();
switch (t) {
case MEMORY_ONLY:
}
}
+ @NotNull
private PasswordSafeSettings.ProviderType getProviderType() {
if (myRememberPasswordsUntilClosingRadioButton.isSelected()) {
return PasswordSafeSettings.ProviderType.MEMORY_ONLY;
}
}
- /**
- * Check if the option panel modified the settings
- *
- * @param settings the settings to compare with
- * @return true, if values were modified
- */
public boolean isModified(PasswordSafeSettings settings) {
return getProviderType() != settings.getProviderType();
}
- /**
- * Save UI state to the settings
- *
- * @param settings the settings to use
- */
public void apply(PasswordSafeSettings settings) {
settings.setProviderType(getProviderType());
}
- /**
- * @return the root panel
- */
public JComponent getRoot() {
return myRoot;
}
return getHelpTopic();
}
- @Override
- @Nullable
- public Runnable enableSearch(String option) {
- return null;
- }
-
@SuppressWarnings("unchecked")
@Override
public JComponent createComponent() {
/*
- * 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.
public String getId() {
return getHelpTopic();
}
-
- @Nullable
- public Runnable enableSearch(String option) {
- 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.
public String getId() {
return "usage.statistics";
}
-
- @Override
- public Runnable enableSearch(String option) {
- return null;
- }
}
return getHelpTopic();
}
- @Nullable
- @Override
- public Runnable enableSearch(String option) {
- return null;
- }
-
@Override
public void apply() throws ConfigurationException {
if (myPanel.myUseSecureConnection.isSelected() && !NetUtils.isSniEnabled()) {
/*
- * 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.
return "GeneralEncodingOptions";
}
- @Override
- public Runnable enableSearch(String option) {
- return null;
- }
-
@Override
@Nls
public String getDisplayName() {
/*
- * Copyright 2000-2010 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.
return "QuickAccess";
}
- public Runnable enableSearch(String option) {
- return null;
- }
-
public boolean isModified() {
return !myModifiers.equals(getModifierTexts())
|| myQuickAccessSettings.isEnabled() != myEnabled.isSelected()
/*
- * 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.
public String getId() {
return getHelpTopic();
}
-
- public Runnable enableSearch(String option) {
- return null;
- }
}
/*
- * 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.
return getHelpTopic();
}
- public Runnable enableSearch(String option) {
- return null;
- }
-
private static class MyCellRenderer extends ColoredListCellRenderer {
protected void customizeCellRenderer(@NotNull JList list, Object value, int index, boolean selected, boolean hasFocus) {
if (UIUtil.isUnderGTKLookAndFeel()) {
/*
- * 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.
return getHelpTopic();
}
- public Runnable enableSearch(String option) {
- return null;
- }
-
public JComponent createComponent() {
return this;
}
/*
- * 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.
return getHelpTopic();
}
- public Runnable enableSearch(String option) {
- return null;
- }
-
public JComponent createComponent() {
myPanel = new VcsBackgroundOperationsConfigurationPanel(myProject);
return myPanel.getPanel();
/*
- * 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.
public String getId() {
return getHelpTopic();
}
-
- public Runnable enableSearch(String option) {
- return null;
- }
-
}
/*
- * 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.
return "vcs." + getDisplayName();
}
- @Override
- public Runnable enableSearch(String option) {
- return null;
- }
-
@Override
public String toString() {
return "VcsConfigurable for "+vcs.getDisplayName();
return XBreakpointType.EXTENSION_POINT_NAME.getExtensions().length != 0;
}
- @Override
- public Runnable enableSearch(final String option) {
- return null;
- }
-
@Override
public JComponent createComponent() {
compute();
/*
- * 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.
return displayName;
}
- @Nullable
- @Override
- public Runnable enableSearch(String option) {
- return null;
- }
-
@Nullable
@Override
public String getHelpTopic() {
/*
- * 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.
return true;
}
- @Nullable
- @Override
- public Runnable enableSearch(String option) {
- return null;
- }
-
@Nullable
@Override
public String getHelpTopic() {
/*
- * 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.
return "IntelliLang.Advanced";
}
- @Nullable
- @Override
- public Runnable enableSearch(String option) {
- return null;
- }
-
private static class BrowseClassListener implements ActionListener {
private final Project myProject;
private final ReferenceEditorWithBrowseButton myField;
/*
- * 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.
return "template.copyright.formatting";
}
- public Runnable enableSearch(String option) {
- return null;
- }
-
@Nls
public String getDisplayName() {
return "Formatting";
public String getId() {
return getHelpTopic();
}
-
- @Override
- public Runnable enableSearch(String option) {
- return null;
- }
}
/*
- * 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.
public JComponent createComponent() {
myOptionsPanel = new ProjectSettingsPanel(project, myProfilesPanel);
- myProfilesPanel.setUpdate(() -> reloadProfiles());
+ myProfilesPanel.setUpdate(this::reloadProfiles);
return myOptionsPanel.getMainComponent();
}
return "copyright";
}
- public Runnable enableSearch(String option) {
- return null;
- }
-
protected Configurable[] buildConfigurables() {
return new Configurable[]{myProfilesPanel, new CopyrightFormattingConfigurable(project)};
}
/*
- * 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.
public String getId() {
return getHelpTopic() + "." + fileType.getName();
}
-
- 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.
return "coverage";
}
- @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 org.jetbrains.plugins.github.ui;
import com.intellij.openapi.options.Configurable;
return getHelpTopic();
}
- public Runnable enableSearch(String option) {
- return null;
- }
-
@Nullable
@Override
public Configurable getConfigurable(Project project) {
/*
- * 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.
return "reference.settings.project.gradle.running";
}
- @Nullable
- @Override
- public Runnable enableSearch(String option) {
- return null;
- }
-
private void createUIComponents() {
myPreferredTestRunner = new ComboBox(getItems());
}
/*
- * 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.
return "Groovy compiler";
}
- @Override
- public Runnable enableSearch(String option) {
- return null;
- }
-
@Override
@Nls
public String getDisplayName() {
/*
- * 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.
myPanel = null;
}
- @Override
- public Runnable enableSearch(String option) {
- return null;
- }
-
@Override
@NotNull
public String getId() {
public String getId() {
return "Mercurial.Project";
}
-
- public Runnable enableSearch(String option) {
- return null;
- }
}
return getHelpTopic();
}
- @Nullable
- @Override
- public Runnable enableSearch(String option) {
- return null;
- }
-
public static FileChooserDescriptor createSceneBuilderDescriptor() {
final FileChooserDescriptor descriptor = FileChooserDescriptorFactory.createSingleFileOrExecutableAppDescriptor();
descriptor.setTitle("SceneBuilder Configuration");
+/*
+ * 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 org.jetbrains.idea.maven.execution;
import com.intellij.openapi.options.Configurable;
return getHelpTopic();
}
- public Runnable enableSearch(String option) {
- return null;
- }
-
public void disposeUIResources() {
}
/*
- * 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.
return getHelpTopic();
}
- public Runnable enableSearch(String option) {
- return null;
- }
-
public JComponent createComponent() {
return myMainPanel;
}
+/*
+ * 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 org.jetbrains.idea.maven.project;
import com.intellij.openapi.options.SearchableConfigurable;
public String getId() {
return getHelpTopic();
}
-
- public Runnable enableSearch(String option) {
- return null;
- }
-
}
/*
- * 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.
public String getId() {
return getHelpTopic();
}
-
- public Runnable enableSearch(String option) {
- return null;
- }
}
/*
- * 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.
public String getId() {
return getHelpTopic();
}
-
- public Runnable enableSearch(String option) {
- return null;
- }
}
/*
- * 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.
public String getId() {
return "reference.settings.project.maven.testRunning";
}
-
- @Nullable
- @Override
- public Runnable enableSearch(String option) {
- return null;
- }
}
/*
- * 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.
return true;
}
- public Runnable enableSearch(String option) {
- return null;
- }
-
public JComponent createComponent() {
return myConfigurable.createComponent();
}
+/*
+ * 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.tasks.config;
import com.intellij.openapi.options.Configurable;
return "tasks";
}
- public Runnable enableSearch(String option) {
- return null;
- }
-
public boolean hasOwnContent() {
return true;
}
/*
- * 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.
return "terminal";
}
- @Override
- public Runnable enableSearch(String option) {
- return null;
- }
-
@Nls
@Override
public String getDisplayName() {
/*
- * 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.
public String getId() {
return getHelpTopic();
}
-
- @Nullable
- public Runnable enableSearch(String option) {
- return null;
- }
}
public String getId() {
return getHelpTopic();
}
-
- @Override
- public Runnable enableSearch(final String option) {
- return null;
- }
}
public String getId() {
return getHelpTopic();
}
-
- @Override
- public Runnable enableSearch(String option) {
- return null;
- }
}
}
return getHelpTopic();
}
- public Runnable enableSearch(String option) {
- return null;
- }
-
public JComponent createComponent() {
configUI = new ConfigUI(XPathAppComponent.getInstance().getConfig());
public String getId() {
return "IpnbConfigurable";
}
-
- @Override
- public Runnable enableSearch(String option) {
- return null;
- }
}
/*
- * 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.
public String getId() {
return "PyIntegratedToolsConfigurable";
}
-
- @Override
- public Runnable enableSearch(String option) {
- return null; //To change body of implemented methods use File | Settings | File Templates.
- }
}
/*
- * 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.
return "pyconsole";
}
- @Override
- public Runnable enableSearch(String option) {
- return null;
- }
-
@Override
protected Configurable[] buildConfigurables() {
List<Configurable> result = Lists.newArrayList();
return "PyConsoleConfigurable." + name;
}
- @Override
- public Runnable enableSearch(String option) {
- return null;
- }
-
@Nls
@Override
public String getDisplayName() {
/*
- * 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.
return getHelpTopic();
}
- public Runnable enableSearch(String option) {
- return null;
- }
-
public JComponent createComponent() {
myClearCacheButton.addActionListener(new ActionListener() {
@Override
/*
- * 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.
return ID;
}
- @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.
return getHelpTopic();
}
- public Runnable enableSearch(String option) {
- return null;
- }
-
-
public JComponent createComponent() {
if (settingsPane == null) {
settingsPane = new SpellCheckerSettingsPane(settings,project);
/*
- * 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.
public String getId() {
return "editor.preferences.webOptions";
}
-
- @Override
- public Runnable enableSearch(final String option) {
- return null;
- }
}
/*
- * 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.
return true;
}
- @Nullable
- @Override
- public Runnable enableSearch(String option) {
- return null;
- }
-
@Override
protected Configurable[] buildConfigurables() {
return myNestedConfigurables;
public String getId() {
return "reference.idesettings.emmet.xml";
}
-
- @Nullable
- @Override
- public Runnable enableSearch(String option) {
- return null;
- }
}
/*
- * 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.
return getHelpTopic();
}
- @Override
- public Runnable enableSearch(final String option) {
- return null;
- }
-
@Override
@Nls
public String getDisplayName() {