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

Side by Side Diff: editor/tools/plugins/com.google.dart.tools.ui_test/src-ui/editor/refactoring/ExtractLocalRefactoringTest.java

Issue 19670005: Rename JdtActionConstants -> DartActionConstants. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 5 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2013, the Dart project authors. 2 * Copyright (c) 2013, the Dart project authors.
3 * 3 *
4 * Licensed under the Eclipse Public License v1.0 (the "License"); you may not u se this file except 4 * Licensed under the Eclipse Public License v1.0 (the "License"); you may not u se this file except
5 * in compliance with the License. You may obtain a copy of the License at 5 * in compliance with the License. You may obtain a copy of the License at
6 * 6 *
7 * http://www.eclipse.org/legal/epl-v10.html 7 * http://www.eclipse.org/legal/epl-v10.html
8 * 8 *
9 * Unless required by applicable law or agreed to in writing, software distribut ed under the License 9 * Unless required by applicable law or agreed to in writing, software distribut ed under the License
10 * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY K IND, either express 10 * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY K IND, either express
11 * or implied. See the License for the specific language governing permissions a nd limitations under 11 * or implied. See the License for the specific language governing permissions a nd limitations under
12 * the License. 12 * the License.
13 */ 13 */
14 package editor.refactoring; 14 package editor.refactoring;
15 15
16 import com.google.dart.tools.ui.actions.JdtActionConstants; 16 import com.google.dart.tools.ui.actions.DartActionConstants;
17 import com.google.dart.ui.test.driver.Operation; 17 import com.google.dart.ui.test.driver.Operation;
18 import com.google.dart.ui.test.driver.ShellOperation; 18 import com.google.dart.ui.test.driver.ShellOperation;
19 import com.google.dart.ui.test.helpers.WizardDialogHelper; 19 import com.google.dart.ui.test.helpers.WizardDialogHelper;
20 import com.google.dart.ui.test.util.UiContext; 20 import com.google.dart.ui.test.util.UiContext;
21 21
22 import editor.AbstractDartEditorTabTest; 22 import editor.AbstractDartEditorTabTest;
23 23
24 import org.eclipse.jface.action.IAction; 24 import org.eclipse.jface.action.IAction;
25 25
26 import java.util.concurrent.TimeUnit; 26 import java.util.concurrent.TimeUnit;
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 "// filler filler filler filler filler filler filler filler filler fille r", 140 "// filler filler filler filler filler filler filler filler filler fille r",
141 "main() {", 141 "main() {",
142 " var res = 123;", 142 " var res = 123;",
143 " print(res);", 143 " print(res);",
144 "}"); 144 "}");
145 } 145 }
146 146
147 private void selectAndExtract(String pattern) throws Exception { 147 private void selectAndExtract(String pattern) throws Exception {
148 selectRange(pattern); 148 selectRange(pattern);
149 // run "Extract Local" action 149 // run "Extract Local" action
150 final IAction action = getEditorAction(JdtActionConstants.EXTRACT_LOCAL); 150 final IAction action = getEditorAction(DartActionConstants.EXTRACT_LOCAL);
151 addOperation(new Operation() { 151 addOperation(new Operation() {
152 @Override 152 @Override
153 public boolean isReady(UiContext context) throws Exception { 153 public boolean isReady(UiContext context) throws Exception {
154 return action.isEnabled(); 154 return action.isEnabled();
155 } 155 }
156 156
157 @Override 157 @Override
158 public void run(UiContext context) throws Exception { 158 public void run(UiContext context) throws Exception {
159 action.run(); 159 action.run();
160 } 160 }
161 }); 161 });
162 } 162 }
163 } 163 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698