From c13bc3e0c2935aa4eef31d1330310dc1745cb33a Mon Sep 17 00:00:00 2001 From: Konstantin Bulenkov Date: Mon, 23 May 2016 19:42:10 +0200 Subject: [PATCH] deprecate key.getData(storage) approach --- .../src/com/intellij/openapi/actionSystem/DataKey.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/platform/editor-ui-api/src/com/intellij/openapi/actionSystem/DataKey.java b/platform/editor-ui-api/src/com/intellij/openapi/actionSystem/DataKey.java index 4066a8141789..565248fd379d 100644 --- a/platform/editor-ui-api/src/com/intellij/openapi/actionSystem/DataKey.java +++ b/platform/editor-ui-api/src/com/intellij/openapi/actionSystem/DataKey.java @@ -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. @@ -69,6 +69,9 @@ public class DataKey { return myName.equals(dataId); } + /** + * @deprecated use {@link DataContext#getData(DataKey)} + */ @Nullable public T getData(@NotNull DataContext dataContext) { //noinspection unchecked