2 * Copyright 2000-2015 JetBrains s.r.o.
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
16 package com.intellij.application.options.codeStyle;
18 import com.intellij.application.options.CodeStyleAbstractConfigurable;
19 import com.intellij.application.options.CodeStyleAbstractPanel;
20 import com.intellij.openapi.application.ApplicationBundle;
21 import com.intellij.openapi.options.Configurable;
22 import com.intellij.psi.codeStyle.CodeStyleSettings;
23 import com.intellij.psi.codeStyle.CodeStyleSettingsProvider;
24 import com.intellij.psi.codeStyle.DisplayPriority;
25 import org.jetbrains.annotations.NotNull;
26 import org.jetbrains.annotations.Nullable;
29 * Contains settings for non-language options, for example, text files.
31 * @author Rustam Vishnyakov
33 public class OtherFileTypesCodeStyleOptionsProvider extends CodeStyleSettingsProvider {
37 public Configurable createSettingsPage(CodeStyleSettings settings, CodeStyleSettings originalSettings) {
38 return new CodeStyleAbstractConfigurable(settings, originalSettings, ApplicationBundle.message("code.style.other.file.types")) {
40 protected CodeStyleAbstractPanel createPanel(CodeStyleSettings settings) {
41 return new OtherFileTypesCodeStyleOptionsForm(settings);
46 public String getHelpTopic() {
47 return "settings.editor.codeStyle.other";
54 public String getConfigurableDisplayName() {
55 return ApplicationBundle.message("code.style.other.file.types");
59 public DisplayPriority getPriority() {
60 return DisplayPriority.OTHER_SETTINGS;