/sdk/eclipse/plugins/com.android.ide.eclipse.tests/src/com/android/ide/eclipse/adt/internal/refactorings/renamepackage/ |
ApplicationPackageNameRefactoringTest.java | 124 ApplicationPackageNameRefactoring refactoring = local 126 checkRefactoring(refactoring, expected);
|
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/eclipse/adt/internal/refactorings/core/ |
AndroidTypeRenameParticipantTest.java | 24 import org.eclipse.jdt.internal.corext.refactoring.rename.RenameTypeProcessor; 25 import org.eclipse.ltk.core.refactoring.participants.RenameRefactoring; 157 RenameRefactoring refactoring = new RenameRefactoring(processor); local 158 checkRefactoring(refactoring, expected);
|
AndroidTypeMoveParticipantTest.java | 28 import org.eclipse.jdt.internal.corext.refactoring.reorg.IReorgPolicy.IMovePolicy; 29 import org.eclipse.jdt.internal.corext.refactoring.reorg.JavaMoveProcessor; 30 import org.eclipse.jdt.internal.corext.refactoring.reorg.ReorgDestinationFactory; 31 import org.eclipse.jdt.internal.corext.refactoring.reorg.ReorgPolicyFactory; 32 import org.eclipse.jdt.internal.ui.refactoring.reorg.CreateTargetQueries; 33 import org.eclipse.jdt.internal.ui.refactoring.reorg.ReorgQueries; 34 import org.eclipse.ltk.core.refactoring.participants.MoveRefactoring; 132 MoveRefactoring refactoring = new MoveRefactoring(processor); local 133 checkRefactoring(refactoring, expected);
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/refactoring/ |
ChangeLayoutWizard.java | 17 package com.android.ide.eclipse.adt.internal.editors.layout.refactoring; 173 ChangeLayoutRefactoring refactoring = local 175 refactoring.setType(type); 176 refactoring.setFlatten(mFlatten.getSelection()); 184 refactoring.setInitializedAttributes(initializedAttributes); 187 refactoring.setInitializedAttributes(null);
|
ChangeViewWizard.java | 17 package com.android.ide.eclipse.adt.internal.editors.layout.refactoring; 191 ChangeViewRefactoring refactoring = local 193 refactoring.setType(type);
|
ExtractIncludeWizard.java | 17 package com.android.ide.eclipse.adt.internal.editors.layout.refactoring; 116 ExtractIncludeRefactoring refactoring = local 118 refactoring.setLayoutName(text); 119 refactoring.setReplaceOccurrences(mReplaceAllOccurrences.getSelection());
|
RefactoringAssistant.java | 17 package com.android.ide.eclipse.adt.internal.editors.layout.refactoring; 43 import org.eclipse.ltk.core.refactoring.Refactoring; 44 import org.eclipse.ltk.core.refactoring.participants.RenameRefactoring; 45 import org.eclipse.ltk.ui.refactoring.RefactoringWizard; 46 import org.eclipse.ltk.ui.refactoring.RefactoringWizardOpenOperation; 64 * QuickAssistProcessor which helps invoke refactoring operations on text elements. 101 // Ensure that we are over a tag name (for element-based refactoring 102 // operations) or a value (for the extract include refactoring) 189 RenameRefactoring refactoring = new RenameRefactoring(processor) local 294 RenameRefactoring refactoring = (RenameRefactoring) mRefactoring; local [all...] |
UnwrapRefactoring.java | 16 package com.android.ide.eclipse.adt.internal.editors.layout.refactoring; 35 import org.eclipse.ltk.core.refactoring.Change; 36 import org.eclipse.ltk.core.refactoring.Refactoring; 37 import org.eclipse.ltk.core.refactoring.RefactoringStatus; 38 import org.eclipse.ltk.core.refactoring.TextFileChange; 61 * to replay a previous refactoring. 237 super("com.android.ide.eclipse.adt.refactoring.unwrap", //$NON-NLS-1$ 242 protected Refactoring createRefactoring(Map<String, String> args) {
|
WrapInWizard.java | 17 package com.android.ide.eclipse.adt.internal.editors.layout.refactoring; 144 WrapInRefactoring refactoring = local 146 refactoring.setId(id); 147 refactoring.setType(type); 154 refactoring.setInitializedAttributes(initializedAttributes); 156 refactoring.setInitializedAttributes(null);
|
VisualRefactoringAction.java | 16 package com.android.ide.eclipse.adt.internal.editors.layout.refactoring; 70 // This simply deals with the refactoring based on a non-empty selection. 100 * Create a new instance of our refactoring and a wizard to configure it. 110 * for the refactoring. This check is performed when the refactoring is invoked since
|
ExtractStyleWizard.java | 17 package com.android.ide.eclipse.adt.internal.editors.layout.refactoring; 373 ExtractStyleRefactoring refactoring = (ExtractStyleRefactoring) getRefactoring(); local 374 refactoring.setStyleName(text); 375 refactoring.setRemoveExtracted(mRemoveExtracted.getSelection()); 376 refactoring.setRemoveAll(mRemoveAll.getSelection()); 377 refactoring.setApplyStyle(mSetStyle.getSelection()); 379 refactoring.setParent(mParentStyle); 385 refactoring.setChosenAttributes(attributes);
|
ChangeViewRefactoring.java | 16 package com.android.ide.eclipse.adt.internal.editors.layout.refactoring; 39 import org.eclipse.ltk.core.refactoring.Change; 40 import org.eclipse.ltk.core.refactoring.Refactoring; 41 import org.eclipse.ltk.core.refactoring.RefactoringStatus; 42 import org.eclipse.ltk.core.refactoring.TextFileChange; 72 * to replay a previous refactoring. 289 super("com.android.ide.eclipse.adt.refactoring.changeview", //$NON-NLS-1$ 294 protected Refactoring createRefactoring(Map<String, String> args) {
|
UseCompoundDrawableRefactoring.java | 16 package com.android.ide.eclipse.adt.internal.editors.layout.refactoring; 60 import org.eclipse.ltk.core.refactoring.Change; 61 import org.eclipse.ltk.core.refactoring.Refactoring; 62 import org.eclipse.ltk.core.refactoring.RefactoringStatus; 63 import org.eclipse.ltk.core.refactoring.TextFileChange; 102 * previous refactoring. 443 super("com.android.ide.eclipse.adt.refactoring.usecompound", //$NON-NLS-1$ 448 protected Refactoring createRefactoring(Map<String, String> args) {
|
WrapInRefactoring.java | 16 package com.android.ide.eclipse.adt.internal.editors.layout.refactoring; 43 import org.eclipse.ltk.core.refactoring.Change; 44 import org.eclipse.ltk.core.refactoring.Refactoring; 45 import org.eclipse.ltk.core.refactoring.RefactoringStatus; 46 import org.eclipse.ltk.core.refactoring.TextFileChange; 77 * to replay a previous refactoring. 430 super("com.android.ide.eclipse.adt.refactoring.wrapin", //$NON-NLS-1$ 435 protected Refactoring createRefactoring(Map<String, String> args) {
|
ExtractIncludeRefactoring.java | 16 package com.android.ide.eclipse.adt.internal.editors.layout.refactoring; 65 import org.eclipse.ltk.core.refactoring.Change; 66 import org.eclipse.ltk.core.refactoring.NullChange; 67 import org.eclipse.ltk.core.refactoring.Refactoring; 68 import org.eclipse.ltk.core.refactoring.RefactoringStatus; 69 import org.eclipse.ltk.core.refactoring.TextFileChange; 109 * to replay a previous refactoring. 163 status.addWarning("No point in refactoring a single include tag"); 398 * than the given source layout where the refactoring was initiated. Never null [all...] |
ExtractStyleRefactoring.java | 16 package com.android.ide.eclipse.adt.internal.editors.layout.refactoring; 63 import org.eclipse.ltk.core.refactoring.Change; 64 import org.eclipse.ltk.core.refactoring.Refactoring; 65 import org.eclipse.ltk.core.refactoring.RefactoringStatus; 66 import org.eclipse.ltk.core.refactoring.TextFileChange; 127 /** The full list of available attributes in the refactoring */ 132 * to replay a previous refactoring. 516 super("com.android.ide.eclipse.adt.refactoring.extract.style", //$NON-NLS-1$ 521 protected Refactoring createRefactoring(Map<String, String> args) [all...] |
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/src/com/android/ide/eclipse/adt/internal/editors/layout/refactoring/ |
ExtractIncludeRefactoringTest.java | 16 package com.android.ide.eclipse.adt.internal.editors.layout.refactoring; 27 import org.eclipse.ltk.core.refactoring.Change; 28 import org.eclipse.ltk.core.refactoring.TextFileChange; 143 ExtractIncludeRefactoring refactoring = new ExtractIncludeRefactoring(selectedElements, local 145 refactoring.setLayoutName(layoutName); 146 refactoring.setReplaceOccurrences(replaceOccurrences); 147 List<Change> changes = refactoring.computeChanges(new NullProgressMonitor());
|
ExtractStyleRefactoringTest.java | 17 package com.android.ide.eclipse.adt.internal.editors.layout.refactoring; 26 import org.eclipse.ltk.core.refactoring.Change; 27 import org.eclipse.ltk.core.refactoring.TextFileChange; 89 // This test fails for some reason - not in the refactoring (checked manually) 148 ExtractStyleRefactoring refactoring = new ExtractStyleRefactoring(selectedElements, local 151 parentStyle, expectedModifiedFileCount, file, refactoring); 175 ExtractStyleRefactoring refactoring = new ExtractStyleRefactoring(file, local 178 parentStyle, expectedModifiedFileCount, file, refactoring); 185 ExtractStyleRefactoring refactoring) throws Exception { 186 refactoring.setStyleName(newStyleName) [all...] |
RefactoringAssistantTest.java | 17 package com.android.ide.eclipse.adt.internal.editors.layout.refactoring; 42 // Visual refactoring operations 51 // Check for resource rename refactoring (and don't offer extract string) 125 // No "apply" test on these assists since they are interactive. Refactoring
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/lint/ |
RemoveUselessViewFix.java | 20 import com.android.ide.eclipse.adt.internal.editors.layout.refactoring.UnwrapRefactoring; 28 import org.eclipse.ltk.ui.refactoring.RefactoringWizard; 29 import org.eclipse.ltk.ui.refactoring.RefactoringWizardOpenOperation; 65 // Invoke refactoring 73 UnwrapRefactoring refactoring = local 75 RefactoringWizard wizard = refactoring.createWizard();
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/refactorings/core/ |
RenameResourceWizard.java | 28 import org.eclipse.jdt.internal.ui.refactoring.reorg.RenameRefactoringWizard; 29 import org.eclipse.jdt.ui.refactoring.RefactoringSaveHelper; 31 import org.eclipse.ltk.core.refactoring.RefactoringStatus; 32 import org.eclipse.ltk.core.refactoring.participants.RenameRefactoring; 33 import org.eclipse.ltk.ui.refactoring.RefactoringWizardOpenOperation; 37 * Rename refactoring wizard for Android resources such as {@code @id/foo} 39 @SuppressWarnings("restriction") // JDT refactoring UI 47 * @param refactoring the refactoring 52 @NonNull RenameRefactoring refactoring, 66 RenameRefactoring refactoring = (RenameRefactoring) getRefactoring(); local 93 RenameRefactoring refactoring = new RenameRefactoring(processor); local [all...] |
RenameResourcePage.java | 24 import org.eclipse.jdt.internal.ui.refactoring.TextInputWizardPage; 26 import org.eclipse.ltk.core.refactoring.RefactoringStatus; 27 import org.eclipse.ltk.core.refactoring.participants.RenameRefactoring; 40 @SuppressWarnings("restriction") // JDT refactoring UI 133 RenameRefactoring refactoring = (RenameRefactoring) getRefactoring(); local 134 return (RenameResourceProcessor) refactoring.getProcessor();
|
RenameResourceXmlTextAction.java | 42 import org.eclipse.jdt.internal.corext.refactoring.rename.RenameTypeProcessor; 43 import org.eclipse.jdt.internal.ui.refactoring.reorg.RenameTypeWizard; 51 import org.eclipse.ltk.core.refactoring.participants.RenameRefactoring; 52 import org.eclipse.ltk.ui.refactoring.RefactoringWizardOpenOperation; 74 @SuppressWarnings("restriction") // Java rename refactoring 139 RenameRefactoring refactoring = new RenameRefactoring(processor); local 140 RenameTypeWizard wizard = new RenameTypeWizard(refactoring);
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/refactorings/extractstring/ |
ExtractStringProposal.java | 31 import org.eclipse.ltk.ui.refactoring.RefactoringWizard; 32 import org.eclipse.ltk.ui.refactoring.RefactoringWizardOpenOperation; 62 ExtractStringRefactoring refactoring = new ExtractStringRefactoring(file, editor, local 65 RefactoringWizard wizard = new ExtractStringWizard(refactoring, file.getProject()); 163 return "Initiates the Extract String refactoring operation";
|
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/src/com/android/ide/eclipse/adt/internal/refactorings/core/ |
RenameResourceParticipantTest.java | 29 import org.eclipse.jdt.internal.corext.refactoring.rename.RenameFieldProcessor; 30 import org.eclipse.ltk.core.refactoring.participants.RenameProcessor; 31 import org.eclipse.ltk.core.refactoring.participants.RenameRefactoring; 207 // Test refactoring initiated on a file rename 237 // Test refactoring initiated on a Java field rename 380 org.eclipse.ltk.internal.core.refactoring.resource.RenameResourceProcessor p; 381 p = new org.eclipse.ltk.internal.core.refactoring.resource.RenameResourceProcessor(r); 399 RenameRefactoring refactoring = new RenameRefactoring(processor); local 400 checkRefactoring(refactoring, expected, expectedWarnings);
|