IDEA-163863 Devkit: mark deprecated attributes in DOM

This commit is contained in:
Yann Cébron
2016-11-11 17:23:09 +01:00
parent d0dc20e70b
commit 756e7d697c
4 changed files with 30 additions and 14 deletions
+6 -1
View File
@@ -1,5 +1,5 @@
/*
* 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.
@@ -37,9 +37,14 @@ public interface Extensions extends DomElement {
@Stubbed
GenericAttributeValue<IdeaPlugin> getDefaultExtensionNs();
/**
* @deprecated use {@link #getDefaultExtensionNs()}
*/
@SuppressWarnings("DeprecatedIsStillUsed")
@NotNull
@Convert(value = ExtensionNsConverter.class, soft = true)
@Stubbed
@Deprecated
GenericAttributeValue<IdeaPlugin> getXmlns();
List<Extension> getExtensions();
+10 -1
View File
@@ -1,5 +1,5 @@
/*
* 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.
@@ -41,8 +41,13 @@ public interface IdeaPlugin extends DomElement {
@Stubbed
GenericDomValue<String> getId();
/**
* @deprecated Unused.
*/
@SuppressWarnings("DeprecatedIsStillUsed")
@NotNull
@Attribute("version")
@Deprecated
GenericAttributeValue<Integer> getIdeaPluginVersion();
@NotNull
@@ -88,6 +93,7 @@ public interface IdeaPlugin extends DomElement {
@Stubbed
@SubTagList("depends")
List<Dependency> getDependencies();
@SubTagList("depends")
Dependency addDependency();
@@ -100,12 +106,14 @@ public interface IdeaPlugin extends DomElement {
@SubTagList("extensions")
@Stubbed
List<Extensions> getExtensions();
Extensions addExtensions();
@NotNull
@Stubbed
@SubTagList("extensionPoints")
List<ExtensionPoints> getExtensionPoints();
ExtensionPoints addExtensionPoints();
@@ -132,6 +140,7 @@ public interface IdeaPlugin extends DomElement {
@SubTagList("actions")
@Stubbed
List<Actions> getActions();
Actions addActions();
+10
View File
@@ -25,7 +25,12 @@ import com.intellij.util.xml.Required;
import org.jetbrains.annotations.NotNull;
public interface IdeaVersion extends DomElement {
/**
* @deprecated Use {@link #getUntilBuild()}
*/
@SuppressWarnings("DeprecatedIsStillUsed")
@NotNull
@Deprecated
GenericAttributeValue<String> getMax();
@NotNull
@@ -36,6 +41,11 @@ public interface IdeaVersion extends DomElement {
GenericAttributeValue<String> getUntilBuild();
/**
* @deprecated Use {@link #getSinceBuild()}
*/
@SuppressWarnings("DeprecatedIsStillUsed")
@NotNull
@Deprecated
GenericAttributeValue<String> getMin();
}
+4 -12
View File
@@ -1,5 +1,5 @@
/*
* 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.
@@ -24,14 +24,6 @@ import com.intellij.util.xml.DomElement;
import com.intellij.util.xml.GenericAttributeValue;
import org.jetbrains.annotations.NotNull;
/**
* plugin.dtd:vendor interface.
* Type vendor documentation
* <pre>
* <vendor> tag now could have 'url', 'email' and 'logo' attributes;
* 'logo' should contain path to a 16 x 16 icon that will appear near the plugin name in the IDEA Welcome Screen
* </pre>
*/
public interface Vendor extends DomElement {
/**
@@ -69,12 +61,12 @@ public interface Vendor extends DomElement {
/**
* Returns the value of the logo child.
* Attribute logo
* @return the value of the logo child.
* @deprecated not used anymore
*/
@SuppressWarnings("DeprecatedIsStillUsed")
@NotNull
@NoSpellchecking
@Deprecated
GenericAttributeValue<String> getLogo();