diff --git a/platform/editor-ui-api/src/com/intellij/openapi/actionSystem/AnActionEvent.java b/platform/editor-ui-api/src/com/intellij/openapi/actionSystem/AnActionEvent.java index f394776a20ca..dfbb2ae08b2d 100644 --- a/platform/editor-ui-api/src/com/intellij/openapi/actionSystem/AnActionEvent.java +++ b/platform/editor-ui-api/src/com/intellij/openapi/actionSystem/AnActionEvent.java @@ -1,5 +1,5 @@ /* - * Copyright 2000-2013 JetBrains s.r.o. + * 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. @@ -141,12 +141,21 @@ public class AnActionEvent implements PlaceProvider { } @NotNull - public T getRequiredData(@NotNull DataKey key) { + public T getDataChecked(@NotNull DataKey key) { T data = getData(key); assert data != null; return data; } + /** + * @deprecated + * @use getDataChecked + */ + @NotNull + public T getRequiredData(@NotNull DataKey key) { + return getDataChecked(key); + } + /** * Returns the identifier of the place in the IDEA user interface from where the action is invoked * or updated.