Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(21)

Unified Diff: editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/internal/text/correction/ICommandAccess.java

Issue 9834028: Initial implementation of "Rename Local Variable" refactoring. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: LInked/inline mode for rename Created 8 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/internal/text/correction/ICommandAccess.java
diff --git a/editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/internal/text/correction/ICommandAccess.java b/editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/internal/text/correction/ICommandAccess.java
new file mode 100644
index 0000000000000000000000000000000000000000..10e55d2b9009caea815a97c0e178e0aedeaf8b92
--- /dev/null
+++ b/editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/internal/text/correction/ICommandAccess.java
@@ -0,0 +1,18 @@
+package com.google.dart.tools.ui.internal.text.correction;
+
+/**
+ * Correction proposals implement this interface to by invokable by a command. (e.g. keyboard
+ * shortcut)
+ */
+public interface ICommandAccess {
+
+ /**
+ * Returns the id of the command that should invoke this correction proposal
+ *
+ * @return the id of the command. This id must start with
+ * {@link CorrectionCommandInstaller#COMMAND_PREFIX} to be recognixes as correction
+ * command.
+ */
+ String getCommandId();
+
+}

Powered by Google App Engine
This is Rietveld 408576698