diff options
author | Cristian Maglie <c.maglie@arduino.cc> | 2021-05-10 10:36:36 +0300 |
---|---|---|
committer | Cristian Maglie <c.maglie@arduino.cc> | 2021-05-10 10:38:31 +0300 |
commit | bf2f90dffff07a037ebe87265f898b648baa97ba (patch) | |
tree | f5b9e712ab4482771189619df793872e308a2465 /arduino-core | |
parent | b68d4b64e6bdfcc2d4a7de53001d68aae2392999 (diff) |
Added deprecated field in index parsing
Diffstat (limited to 'arduino-core')
-rw-r--r-- | arduino-core/src/cc/arduino/contributions/packages/ContributedPlatform.java | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/arduino-core/src/cc/arduino/contributions/packages/ContributedPlatform.java b/arduino-core/src/cc/arduino/contributions/packages/ContributedPlatform.java index 3c45b7325..6c11a4cc2 100644 --- a/arduino-core/src/cc/arduino/contributions/packages/ContributedPlatform.java +++ b/arduino-core/src/cc/arduino/contributions/packages/ContributedPlatform.java @@ -60,6 +60,7 @@ public class ContributedPlatform extends DownloadableContribution { private boolean builtIn; private Map<ContributedToolReference, ContributedTool> resolvedToolReferences; private ContributedPackage parentPackage; + private boolean deprecated; @Override public String getUrl() { return url; } @@ -157,6 +158,14 @@ public class ContributedPlatform extends DownloadableContribution { this.parentPackage = parentPackage; } + public boolean isDeprecated() { + return deprecated; + } + + public void setDeprecated(boolean deprecated) { + this.deprecated = deprecated; + } + @Override public String toString() { return getParsedVersion(); |