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

Unified Diff: editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/internal/refactoring/descriptors/RefactoringSignatureDescriptorFactory.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.core/src/com/google/dart/tools/core/internal/refactoring/descriptors/RefactoringSignatureDescriptorFactory.java
diff --git a/editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/internal/refactoring/descriptors/RefactoringSignatureDescriptorFactory.java b/editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/internal/refactoring/descriptors/RefactoringSignatureDescriptorFactory.java
new file mode 100644
index 0000000000000000000000000000000000000000..893037a338a040b76b13b24efbe473e7b354dc16
--- /dev/null
+++ b/editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/internal/refactoring/descriptors/RefactoringSignatureDescriptorFactory.java
@@ -0,0 +1,274 @@
+package com.google.dart.tools.core.internal.refactoring.descriptors;
+
+import com.google.dart.tools.core.refactoring.descriptors.RenameDartElementDescriptor;
+
+import java.util.Map;
+
+/**
+ * Internal factory for Java refactoring signature descriptors.
+ */
+public class RefactoringSignatureDescriptorFactory {
+
+// public static ChangeMethodSignatureDescriptor createChangeMethodSignatureDescriptor() {
+// return new ChangeMethodSignatureDescriptor();
+// }
+//
+// public static ChangeMethodSignatureDescriptor createChangeMethodSignatureDescriptor(
+// String project, String description, String comment, Map arguments, int flags) {
+// return new ChangeMethodSignatureDescriptor(project, description, comment, arguments, flags);
+// }
+//
+// public static ConvertAnonymousDescriptor createConvertAnonymousDescriptor() {
+// return new ConvertAnonymousDescriptor();
+// }
+//
+// public static ConvertAnonymousDescriptor createConvertAnonymousDescriptor(String project,
+// String description, String comment, Map arguments, int flags) {
+// return new ConvertAnonymousDescriptor(project, description, comment, arguments, flags);
+// }
+//
+// public static ConvertLocalVariableDescriptor createConvertLocalVariableDescriptor() {
+// return new ConvertLocalVariableDescriptor();
+// }
+//
+// public static ConvertLocalVariableDescriptor createConvertLocalVariableDescriptor(String project,
+// String description, String comment, Map arguments, int flags) {
+// return new ConvertLocalVariableDescriptor(project, description, comment, arguments, flags);
+// }
+//
+// public static ConvertMemberTypeDescriptor createConvertMemberTypeDescriptor() {
+// return new ConvertMemberTypeDescriptor();
+// }
+//
+// public static ConvertMemberTypeDescriptor createConvertMemberTypeDescriptor(String project,
+// String description, String comment, Map arguments, int flags) {
+// return new ConvertMemberTypeDescriptor(project, description, comment, arguments, flags);
+// }
+//
+// public static CopyDescriptor createCopyDescriptor() {
+// return new CopyDescriptor();
+// }
+//
+// public static CopyDescriptor createCopyDescriptor(String project, String description,
+// String comment, Map arguments, int flags) {
+// return new CopyDescriptor(project, description, comment, arguments, flags);
+// }
+//
+// public static DeleteDescriptor createDeleteDescriptor() {
+// return new DeleteDescriptor();
+// }
+//
+// public static DeleteDescriptor createDeleteDescriptor(String project, String description,
+// String comment, Map arguments, int flags) {
+// return new DeleteDescriptor(project, description, comment, arguments, flags);
+// }
+//
+// public static EncapsulateFieldDescriptor createEncapsulateFieldDescriptor() {
+// return new EncapsulateFieldDescriptor();
+// }
+//
+// public static EncapsulateFieldDescriptor createEncapsulateFieldDescriptor(String project,
+// String description, String comment, Map arguments, int flags) {
+// return new EncapsulateFieldDescriptor(project, description, comment, arguments, flags);
+// }
+//
+// public static ExtractClassDescriptor createExtractClassDescriptor() {
+// return new ExtractClassDescriptor();
+// }
+//
+// public static ExtractClassDescriptor createExtractClassDescriptor(String project,
+// String description, String comment, Map arguments, int flags) throws IllegalArgumentException {
+// return new ExtractClassDescriptor(project, description, comment, arguments, flags);
+// }
+//
+// public static ExtractConstantDescriptor createExtractConstantDescriptor() {
+// return new ExtractConstantDescriptor();
+// }
+//
+// public static ExtractConstantDescriptor createExtractConstantDescriptor(String project,
+// String description, String comment, Map arguments, int flags) {
+// return new ExtractConstantDescriptor(project, description, comment, arguments, flags);
+// }
+//
+// public static ExtractInterfaceDescriptor createExtractInterfaceDescriptor() {
+// return new ExtractInterfaceDescriptor();
+// }
+//
+// public static ExtractInterfaceDescriptor createExtractInterfaceDescriptor(String project,
+// String description, String comment, Map arguments, int flags) {
+// return new ExtractInterfaceDescriptor(project, description, comment, arguments, flags);
+// }
+//
+// public static ExtractLocalDescriptor createExtractLocalDescriptor() {
+// return new ExtractLocalDescriptor();
+// }
+//
+// public static ExtractLocalDescriptor createExtractLocalDescriptor(String project,
+// String description, String comment, Map arguments, int flags) {
+// return new ExtractLocalDescriptor(project, description, comment, arguments, flags);
+// }
+//
+// public static ExtractMethodDescriptor createExtractMethodDescriptor() {
+// return new ExtractMethodDescriptor();
+// }
+//
+// public static ExtractMethodDescriptor createExtractMethodDescriptor(String project,
+// String description, String comment, Map arguments, int flags) {
+// return new ExtractMethodDescriptor(project, description, comment, arguments, flags);
+// }
+//
+// public static ExtractSuperclassDescriptor createExtractSuperclassDescriptor() {
+// return new ExtractSuperclassDescriptor();
+// }
+//
+// public static ExtractSuperclassDescriptor createExtractSuperclassDescriptor(String project,
+// String description, String comment, Map arguments, int flags) {
+// return new ExtractSuperclassDescriptor(project, description, comment, arguments, flags);
+// }
+//
+// public static GeneralizeTypeDescriptor createGeneralizeTypeDescriptor() {
+// return new GeneralizeTypeDescriptor();
+// }
+//
+// public static GeneralizeTypeDescriptor createGeneralizeTypeDescriptor(String project,
+// String description, String comment, Map arguments, int flags) {
+// return new GeneralizeTypeDescriptor(project, description, comment, arguments, flags);
+// }
+//
+// public static InferTypeArgumentsDescriptor createInferTypeArgumentsDescriptor() {
+// return new InferTypeArgumentsDescriptor();
+// }
+//
+// public static InferTypeArgumentsDescriptor createInferTypeArgumentsDescriptor(String project,
+// String description, String comment, Map arguments, int flags) {
+// return new InferTypeArgumentsDescriptor(project, description, comment, arguments, flags);
+// }
+//
+// public static InlineConstantDescriptor createInlineConstantDescriptor() {
+// return new InlineConstantDescriptor();
+// }
+//
+// public static InlineConstantDescriptor createInlineConstantDescriptor(String project,
+// String description, String comment, Map arguments, int flags) {
+// return new InlineConstantDescriptor(project, description, comment, arguments, flags);
+// }
+//
+// public static InlineLocalVariableDescriptor createInlineLocalVariableDescriptor() {
+// return new InlineLocalVariableDescriptor();
+// }
+//
+// public static InlineLocalVariableDescriptor createInlineLocalVariableDescriptor(String project,
+// String description, String comment, Map arguments, int flags) {
+// return new InlineLocalVariableDescriptor(project, description, comment, arguments, flags);
+// }
+//
+// public static InlineMethodDescriptor createInlineMethodDescriptor() {
+// return new InlineMethodDescriptor();
+// }
+//
+// public static InlineMethodDescriptor createInlineMethodDescriptor(String project,
+// String description, String comment, Map arguments, int flags) {
+// return new InlineMethodDescriptor(project, description, comment, arguments, flags);
+// }
+//
+// public static IntroduceFactoryDescriptor createIntroduceFactoryDescriptor() {
+// return new IntroduceFactoryDescriptor();
+// }
+//
+// public static IntroduceFactoryDescriptor createIntroduceFactoryDescriptor(String project,
+// String description, String comment, Map arguments, int flags) {
+// return new IntroduceFactoryDescriptor(project, description, comment, arguments, flags);
+// }
+//
+// public static IntroduceIndirectionDescriptor createIntroduceIndirectionDescriptor() {
+// return new IntroduceIndirectionDescriptor();
+// }
+//
+// public static IntroduceIndirectionDescriptor createIntroduceIndirectionDescriptor(String project,
+// String description, String comment, Map arguments, int flags) {
+// return new IntroduceIndirectionDescriptor(project, description, comment, arguments, flags);
+// }
+//
+// public static IntroduceParameterDescriptor createIntroduceParameterDescriptor() {
+// return new IntroduceParameterDescriptor();
+// }
+//
+// public static IntroduceParameterDescriptor createIntroduceParameterDescriptor(String project,
+// String description, String comment, Map arguments, int flags) {
+// return new IntroduceParameterDescriptor(project, description, comment, arguments, flags);
+// }
+//
+// public static IntroduceParameterObjectDescriptor createIntroduceParameterObjectDescriptor() {
+// return new IntroduceParameterObjectDescriptor();
+// }
+//
+// public static IntroduceParameterObjectDescriptor createIntroduceParameterObjectDescriptor(
+// String project, String description, String comment, Map arguments, int flags)
+// throws IllegalArgumentException {
+// return new IntroduceParameterObjectDescriptor(project, description, comment, arguments, flags);
+// }
+//
+// public static MoveDescriptor createMoveDescriptor() {
+// return new MoveDescriptor();
+// }
+//
+// public static MoveDescriptor createMoveDescriptor(String project, String description,
+// String comment, Map arguments, int flags) {
+// return new MoveDescriptor(project, description, comment, arguments, flags);
+// }
+//
+// public static MoveMethodDescriptor createMoveMethodDescriptor() {
+// return new MoveMethodDescriptor();
+// }
+//
+// public static MoveMethodDescriptor createMoveMethodDescriptor(String project, String description,
+// String comment, Map arguments, int flags) {
+// return new MoveMethodDescriptor(project, description, comment, arguments, flags);
+// }
+//
+// public static MoveStaticMembersDescriptor createMoveStaticMembersDescriptor() {
+// return new MoveStaticMembersDescriptor();
+// }
+//
+// public static MoveStaticMembersDescriptor createMoveStaticMembersDescriptor(String project,
+// String description, String comment, Map arguments, int flags) {
+// return new MoveStaticMembersDescriptor(project, description, comment, arguments, flags);
+// }
+//
+// public static PullUpDescriptor createPullUpDescriptor() {
+// return new PullUpDescriptor();
+// }
+//
+// public static PullUpDescriptor createPullUpDescriptor(String project, String description,
+// String comment, Map arguments, int flags) {
+// return new PullUpDescriptor(project, description, comment, arguments, flags);
+// }
+//
+// public static PushDownDescriptor createPushDownDescriptor() {
+// return new PushDownDescriptor();
+// }
+//
+// public static PushDownDescriptor createPushDownDescriptor(String project, String description,
+// String comment, Map arguments, int flags) {
+// return new PushDownDescriptor(project, description, comment, arguments, flags);
+// }
+
+ public static RenameDartElementDescriptor createRenameDartElementDescriptor(String id) {
+ return new RenameDartElementDescriptor(id);
+ }
+
+ public static RenameDartElementDescriptor createRenameDartElementDescriptor(String id,
+ String project, String description, String comment, Map<String, String> arguments, int flags) {
+ return new RenameDartElementDescriptor(id, project, description, comment, arguments, flags);
+ }
+
+// public static UseSupertypeDescriptor createUseSupertypeDescriptor() {
+// return new UseSupertypeDescriptor();
+// }
+//
+// public static UseSupertypeDescriptor createUseSupertypeDescriptor(String project,
+// String description, String comment, Map arguments, int flags) {
+// return new UseSupertypeDescriptor(project, description, comment, arguments, flags);
+// }
+
+}

Powered by Google App Engine
This is Rietveld 408576698