/* * 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.psi.codeStyle; public class JavaCodeStyleSettings extends CustomCodeStyleSettings { public JavaCodeStyleSettings(CodeStyleSettings container) { super("JavaCodeStyleSettings", container); } public boolean SPACES_WITHIN_ANGLE_BRACKETS; //Type arguments public boolean SPACE_AFTER_CLOSING_ANGLE_BRACKET_IN_TYPE_ARGUMENT; //Type parameters public boolean SPACE_BEFORE_OPENING_ANGLE_BRACKET_IN_TYPE_PARAMETER; public boolean SPACE_AROUND_TYPE_BOUNDS_IN_TYPE_PARAMETERS = true; public boolean DO_NOT_WRAP_AFTER_SINGLE_ANNOTATION; public int ANNOTATION_PARAMETER_WRAP = CommonCodeStyleSettings.DO_NOT_WRAP; public boolean ALIGN_MULTILINE_ANNOTATION_PARAMETERS; public int BLANK_LINES_AROUND_INITIALIZER = 1; public static final int FULLY_QUALIFY_NAMES_IF_NOT_IMPORTED = 1; public static final int FULLY_QUALIFY_NAMES_ALWAYS = 2; public static final int SHORTEN_NAMES_ALWAYS_AND_ADD_IMPORT = 3; public int CLASS_NAMES_IN_JAVADOC = FULLY_QUALIFY_NAMES_IF_NOT_IMPORTED; public boolean useFqNamesInJavadocAlways() { return CLASS_NAMES_IN_JAVADOC == FULLY_QUALIFY_NAMES_ALWAYS; } @Override protected void importLegacySettings() { CodeStyleSettings settings = getContainer(); boolean isDefaultValue = settings.USE_FQ_CLASS_NAMES_IN_JAVADOC; if (!isDefaultValue) { CLASS_NAMES_IN_JAVADOC = SHORTEN_NAMES_ALWAYS_AND_ADD_IMPORT; settings.USE_FQ_CLASS_NAMES_IN_JAVADOC = true; } } }