| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2012, the Dart project authors. | 2 * Copyright (c) 2012, 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 |
| (...skipping 542 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 553 * Removes recorded identifier reference. | 553 * Removes recorded identifier reference. |
| 554 */ | 554 */ |
| 555 public void removeReference(SimpleIdentifier identifier) { | 555 public void removeReference(SimpleIdentifier identifier) { |
| 556 IBinding binding = getNodeBinding(identifier); | 556 IBinding binding = getNodeBinding(identifier); |
| 557 List<SimpleIdentifier> identifiers = bindingToIdentifiers.get(binding); | 557 List<SimpleIdentifier> identifiers = bindingToIdentifiers.get(binding); |
| 558 if (identifiers != null) { | 558 if (identifiers != null) { |
| 559 identifiers.remove(identifier); | 559 identifiers.remove(identifier); |
| 560 } | 560 } |
| 561 } | 561 } |
| 562 | 562 |
| 563 /** |
| 564 * Specifies that all files in given folder should not be translated. |
| 565 */ |
| 566 public void removeSourceFiles(File folder) { |
| 567 Assert.isLegal(folder.exists(), "Folder '" + folder + "' does not exist."); |
| 568 Assert.isLegal(folder.isDirectory(), "Folder '" + folder + "' is not a folde
r."); |
| 569 folder = folder.getAbsoluteFile(); |
| 570 Collection<File> folderFiles = FileUtils.listFiles(folder, JAVA_EXTENSION, t
rue); |
| 571 sourceFiles.removeAll(folderFiles); |
| 572 } |
| 573 |
| 563 public void renameConstructor(ConstructorDeclaration node, String name) { | 574 public void renameConstructor(ConstructorDeclaration node, String name) { |
| 564 IMethodBinding binding = getConstructorBinding(node); | 575 IMethodBinding binding = getConstructorBinding(node); |
| 565 // | 576 // |
| 566 SimpleIdentifier newIdentifier; | 577 SimpleIdentifier newIdentifier; |
| 567 if (name == null) { | 578 if (name == null) { |
| 568 newIdentifier = null; | 579 newIdentifier = null; |
| 569 } else { | 580 } else { |
| 570 newIdentifier = identifier(name); | 581 newIdentifier = identifier(name); |
| 571 } | 582 } |
| 572 // rename constructor | 583 // rename constructor |
| (...skipping 485 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1058 } | 1069 } |
| 1059 } | 1070 } |
| 1060 } | 1071 } |
| 1061 } | 1072 } |
| 1062 } | 1073 } |
| 1063 } | 1074 } |
| 1064 } | 1075 } |
| 1065 }); | 1076 }); |
| 1066 } | 1077 } |
| 1067 } | 1078 } |
| OLD | NEW |