return createImportWizard(project, dialogParent, file, providers);
}
- /** @deprecated to be removed in IDEA 16 */
- public static String getFileChooserDescription(@Nullable final Project project) {
- return getFileChooserDescription(getProviders(project));
- }
-
private static String getFileChooserDescription(List<ProjectImportProvider> providers) {
StringBuilder builder = new StringBuilder("<html>Select ");
boolean first = true;
+++ /dev/null
-/*
- * Copyright 2000-2014 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.codeInsight;
-
-public class JavaCodeInsightSettingsFacadeImpl extends JavaCodeInsightSettingsFacade {
- @Override
- public boolean isShowStaticAfterInstance() {
- return CodeInsightSettings.getInstance().SHOW_STATIC_AFTER_INSTANCE;
- }
-}
import com.intellij.psi.meta.PsiMetaData;
import com.intellij.psi.util.PsiUtilCore;
import org.jetbrains.annotations.NotNull;
-import org.jetbrains.annotations.Nullable;
-
-import java.util.Collection;
/**
* Created by IntelliJ IDEA.
public class LookupItemUtil{
private static final Logger LOG = Logger.getInstance("#com.intellij.codeInsight.lookup.LookupItemUtil");
- /**
- * @deprecated to remove in IDEA 16
- */
- @Nullable
- public static LookupElement addLookupItem(Collection<LookupElement> set, @NotNull Object object) {
- if (object instanceof PsiType) {
- PsiType psiType = (PsiType)object;
- for (final LookupElement lookupItem : set) {
- Object o = lookupItem.getObject();
- if (o.equals(psiType)) {
- return lookupItem;
- }
- }
- }
-
- for (LookupElement lookupItem : set) {
- if(lookupItem.getObject().equals(lookupItem)) return null;
- }
- LookupElement item = objectToLookupItem(object);
- return set.add(item) ? item : null;
- }
-
/**
* @deprecated
* @see LookupElementBuilder
+++ /dev/null
-/*
- * Copyright 2000-2014 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.codeInsight;
-
-import com.intellij.openapi.components.ServiceManager;
-import com.intellij.openapi.project.Project;
-
-public abstract class JavaCodeInsightSettingsFacade {
- /** todo remove in IDEA 16 */
- @Deprecated
- public abstract boolean isShowStaticAfterInstance();
-
- public static JavaCodeInsightSettingsFacade getInstance(Project project) {
- return ServiceManager.getService(project, JavaCodeInsightSettingsFacade.class);
- }
-}
import com.intellij.psi.util.PsiUtilCore;
import com.intellij.util.IncorrectOperationException;
import com.intellij.util.PairFunction;
-import com.intellij.util.SmartList;
import com.intellij.util.containers.ContainerUtil;
import org.jetbrains.annotations.NonNls;
import org.jetbrains.annotations.NotNull;
for (int i = 0; i < typeParameters.length; i++) {
if (typeParameter.equals(typeParameters[i])) return i;
}
- LOG.assertTrue(false);
+ LOG.error(typeParameter + " in " + typeParameterList);
return -1;
}
}
}
- /** @deprecated use {@link #collectTypeUseAnnotations(PsiModifierList, List)} (to be removed in IDEA 16) */
- public static List<PsiAnnotation> getTypeUseAnnotations(@NotNull PsiModifierList modifierList) {
- SmartList<PsiAnnotation> result = null;
-
- for (PsiAnnotation annotation : modifierList.getAnnotations()) {
- if (isTypeAnnotation(annotation)) {
- if (result == null) result = new SmartList<PsiAnnotation>();
- result.add(annotation);
- }
- }
-
- return result;
- }
-
private static final Key<Boolean> TYPE_ANNO_MARK = Key.create("type.annotation.mark");
public static void markTypeAnnotations(@NotNull PsiTypeElement typeElement) {
public boolean AUTOCOMPLETE_ON_CODE_COMPLETION = true;
public boolean AUTOCOMPLETE_ON_SMART_TYPE_COMPLETION = true;
- /** todo remove in IDEA 16 */
- @Deprecated public boolean AUTOCOMPLETE_ON_CLASS_NAME_COMPLETION;
-
public boolean AUTOCOMPLETE_COMMON_PREFIX = true;
- /** todo remove in IDEA 16 */
- @Deprecated
- public boolean SHOW_STATIC_AFTER_INSTANCE;
-
public boolean SHOW_FULL_SIGNATURES_IN_PARAMETER_INFO;
public boolean SHOW_SOURCE_INFERRED_ANNOTATIONS = true;
}
registerHighlightingType(END_LINE_HIGHLIGHT_MARKER, new ExpectedHighlightingSet(HighlightSeverity.ERROR, true, true));
registerHighlightingType(END_LINE_WARNING_MARKER, new ExpectedHighlightingSet(HighlightSeverity.WARNING, true, false));
-
- initAdditionalHighlightingTypes();
}
public void init() {
return String.format("(%d:%d..%d:%d)", startLine + 1, endLine + 1, startCol + 1, endCol + 1);
}
- /** @deprecated use {@link #registerHighlightingType(String, ExpectedHighlightingSet)} (to be removed in IDEA 17) */
- protected final Map<String, ExpectedHighlightingSet> highlightingTypes = myHighlightingTypes;
-
- /** @deprecated use {@link #registerHighlightingType(String, ExpectedHighlightingSet)} (to be removed in IDEA 17) */
- protected void initAdditionalHighlightingTypes() { }
}
\ No newline at end of file
+++ /dev/null
-/*
- * Copyright 2000-2015 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.testFramework;
-
-/** @deprecated platform autodetection should work well enough, just use base class instead (to be removed in IDEA 16) */
-@SuppressWarnings("ALL")
-public abstract class LightPlatformLangTestCase extends LightPlatformTestCase {
-}
+++ /dev/null
-/*
- * Copyright 2000-2015 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.testFramework;
-
-/** @deprecated platform autodetection should work well enough, just use base class instead (to be removed in IDEA 16) */
-public abstract class PlatformLangTestCase extends PlatformTestCase {
-}
return name == null ? "" : PlatformTestUtil.getTestName(name, lowercaseFirstLetter);
}
- /** @deprecated use {@link PlatformTestUtil#lowercaseFirstLetter(String, boolean)} (to be removed in IDEA 17) */
- public static String lowercaseFirstLetter(String name, boolean lowercaseFirstLetter) {
- return PlatformTestUtil.lowercaseFirstLetter(name, lowercaseFirstLetter);
- }
-
- /** @deprecated use {@link PlatformTestUtil#isAllUppercaseName(String)} (to be removed in IDEA 17) */
- public static boolean isAllUppercaseName(String name) {
- return PlatformTestUtil.isAllUppercaseName(name);
- }
-
protected String getTestDirectoryName() {
final String testName = getTestName(true);
return testName.replaceAll("_.*", "");
public LightPlatformCodeInsightFixtureTestCase() { }
- /** @deprecated call {@link #LightPlatformCodeInsightFixtureTestCase()} instead (to be removed in IDEA 16) */
- protected LightPlatformCodeInsightFixtureTestCase(boolean autodetect) { }
-
protected CodeInsightTestFixture myFixture;
protected Module myModule;
return FileUtilRt.toSystemIndependentName(aFileName);
}
- /** @deprecated to be removed in IDEA 17 */
- @SuppressWarnings({"unused", "StringToUpperCaseOrToLowerCaseWithoutLocale"})
- public static String nameToCompare(@NotNull String name) {
- return (SystemInfo.isFileSystemCaseSensitive ? name : name.toLowerCase()).replace('\\', '/');
- }
-
/**
* Converts given path to canonical representation by eliminating '.'s, traversing '..'s, and omitting duplicate separators.
* Please note that this method is symlink-unfriendly (i.e. result of "/path/to/link/../next" most probably will differ from
+++ /dev/null
-/*
- * Copyright 2000-2015 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.openapi.util.io;
-
-import org.jetbrains.annotations.NotNull;
-
-import java.io.IOException;
-import java.util.Collection;
-import java.util.zip.ZipFile;
-
-/** @deprecated use {@link ZipFile#ZipFile(String)} and {@link ZipFile#close()} instead (to be removed in IDEA 17) */
-public class ZipFileCache {
- @NotNull
- public static ZipFile acquire(@NotNull String path) throws IOException {
- return new ZipFile(path);
- }
-
- public static void release(@NotNull ZipFile file) {
- try { file.close(); }
- catch (IOException ignored) { }
- }
-
- public static void reset(Collection<String> paths) { }
-
- public static void stopBackgroundThread() { }
-}
serviceImplementation="com.intellij.psi.impl.JavaPsiImplementationHelperImpl"/>
<projectService serviceInterface="com.intellij.psi.codeStyle.JavaCodeStyleSettingsFacade"
serviceImplementation="com.intellij.psi.codeStyle.JavaCodeStyleSettingsFacadeImpl"/>
- <projectService serviceInterface="com.intellij.codeInsight.JavaCodeInsightSettingsFacade"
- serviceImplementation="com.intellij.codeInsight.JavaCodeInsightSettingsFacadeImpl"/>
<projectService serviceInterface="com.intellij.psi.impl.migration.PsiMigrationManager"
serviceImplementation="com.intellij.psi.impl.migration.PsiMigrationManager"/>
<projectService serviceInterface="com.intellij.psi.PsiResolveHelper"