I was looking at writing an IntelliJ plugin. Downloaded the devkit, watched the flash tutorial, keyed it into 7.0M2, and it showed DataConstants as deprecated.
Editor editor = (Editor)event.getDataContext().getData( DataConstants.EDITOR );
The OpenAPI JavaDoc says to use DataKey instead. I would assume I need to make a series of calls like:
DataKey myDataKey = ???;
Editor editor = myDataKey.getData( event.getDataContext() );
Now DataKey has a static method that returns a DataKey, but it needs a String name parameter, and what is that supposed to be?
String editorDataKeyName = ???;
DataKey my DataKey = DataKey]]>.create( editorDataKeyName );
Is it supposed to be the FQN? Editor.class.getName() or "com.intellij.openapi.editor.Editor". If that were the case, then why not have the create method take the class object:, ie Editor.class, as a parameter?
A small code example in the JavaDoc would be extremely helpful. Thank you.