9f24db82253f6134cf6f7594ad64e0a45254b06f
Files Diff
- Added: 9
- Removed: 0
- Renamed: 0
- Modified: 13
Refactorings reported:
Refactoring Name | Occurences | ||
---|---|---|---|
Merge Attribute | 1 | ||
Merge Attribute [preferencesManager : PreferencesManager, eventBus : EventBus, appContext : AppContext] to appStateService : AppStateServiceClient in class org.eclipse.che.ide.statepersistance.AppStateManagerTest | From | To | |
Move And Rename Method | 1 | ||
Move And Rename Method private writeStateToPreferences(state JsonObject) : Promise<Void> from class org.eclipse.che.ide.statepersistance.AppStateManager to private writeToPreferences(state JsonObject) : Promise<Void> from class org.eclipse.che.ide.statepersistance.AppStateBackwardCompatibility | From | To | |
Move And Inline Method | 1 | ||
Move And Inline Method public persistWorkspaceState() : Promise<Void> moved from class org.eclipse.che.ide.statepersistance.AppStateManager to class org.eclipse.che.ide.statepersistance.AppStateManagerTest & inlined to public shouldSaveStateInFile() : void | From | To | |
Move Method | 1 | ||
Move Method public onWorkspaceStopped(event WorkspaceStoppedEvent) : void from class org.eclipse.che.ide.context.AppContextImpl.WorkspaceStateHandler to public onWorkspaceStopped(event WorkspaceStoppedEvent) : void from class org.eclipse.che.ide.context.AppContextImpl | From | To | |
Move Attribute | 7 | ||
Move Attribute private preferencesManager : PreferencesManager from class org.eclipse.che.ide.statepersistance.AppStateManager to private preferencesManager : PreferencesManager from class org.eclipse.che.ide.statepersistance.AppStateBackwardCompatibility | From | To | |
Move Attribute private appContext : AppContext from class org.eclipse.che.ide.statepersistance.AppStateManagerTest to private appContext : AppContext from class org.eclipse.che.ide.statepersistance.AppStateTracker | From | To | |
Move Attribute private preferencesManager : PreferencesManager from class org.eclipse.che.ide.statepersistance.AppStateManagerTest to private preferencesManager : PreferencesManager from class org.eclipse.che.ide.statepersistance.AppStateBackwardCompatibility | From | To | |
Move Attribute private appContext : AppContext from class org.eclipse.che.ide.statepersistance.AppStateManager to private appContext : AppContext from class org.eclipse.che.ide.statepersistance.AppStateBackwardCompatibility | From | To | |
Move Attribute private eventBus : EventBus from class org.eclipse.che.ide.statepersistance.AppStateManager to private eventBus : EventBus from class org.eclipse.che.ide.statepersistance.AppStateTracker | From | To | |
Move Attribute private WORKSPACE : String from class org.eclipse.che.ide.statepersistance.AppStateManager to public WORKSPACE : String from class org.eclipse.che.ide.statepersistance.AppStateConstants | From | To | |
Move Attribute private eventBus : EventBus from class org.eclipse.che.ide.statepersistance.AppStateManagerTest to private eventBus : EventBus from class org.eclipse.che.ide.statepersistance.AppStateTracker | From | To | |
Extract Class | 2 | ||
Extract Class org.eclipse.che.ide.statepersistance.AppStateTracker from class org.eclipse.che.ide.statepersistance.AppStateManagerTest | From | To | |
Extract Class org.eclipse.che.ide.statepersistance.AppStateBackwardCompatibility from class org.eclipse.che.ide.statepersistance.AppStateManager | From | To | |
Extract Attribute | 2 | ||
Extract Attribute private COMPONENT_ONE_ID : String in class org.eclipse.che.ide.statepersistance.AppStateManagerTest | From | To | |
Extract Attribute private COMPONENT_TWO_ID : String in class org.eclipse.che.ide.statepersistance.AppStateManagerTest | From | To | |
Change Variable Type | 1 | ||
Change Variable Type workspace : WorkspaceImpl to getStatePromise : Promise<String> in method public setUp() : void in class org.eclipse.che.ide.statepersistance.AppStateManagerTest | From | To | |
Inline Variable | 1 | ||
Inline Variable project : String in method public injectVcsStatus(itemReferences List<ItemReference>) : List<ItemReference> from class org.eclipse.che.api.project.server.impl.ProjectServiceVcsStatusInjector | From | To | |
Extract Method | 3 | ||
Extract Method private getVcsStatusProvider(itemReference ItemReference) : Optional<VcsStatusProvider> extracted from public injectVcsStatus(itemReferences List<ItemReference>) : List<ItemReference> in class org.eclipse.che.api.project.server.impl.ProjectServiceVcsStatusInjector | From | To | |
Extract Method package restoreState() : Promise<Void> extracted from private restoreState(settings JsonObject) : Promise<Void> in class org.eclipse.che.ide.statepersistance.AppStateManager | From | To | |
Extract Method private getVcsStatusProvider(itemReference ItemReference) : Optional<VcsStatusProvider> extracted from public injectVcsStatusTreeElements(treeElements List<TreeElement>) : List<TreeElement> in class org.eclipse.che.api.project.server.impl.ProjectServiceVcsStatusInjector | From | To | |
Rename Variable | 3 | ||
Rename Variable object : JsonObject to firstComponentState : JsonObject in method public shouldSaveStateInFile() : void in class org.eclipse.che.ide.statepersistance.AppStateManagerTest | From | To | |
Rename Variable comp1 : JsonObject to firstComponent : JsonObject in method public restoreShouldCallLoadState() : void in class org.eclipse.che.ide.statepersistance.AppStateManagerTest | From | To | |
Rename Variable workspace : JsonObject to appState : JsonObject in method public restoreShouldCallLoadState() : void in class org.eclipse.che.ide.statepersistance.AppStateManagerTest | From | To | |
Replace Variable With Attribute | 1 | ||
Replace Variable With Attribute workspace : WorkspaceImpl to getStatePromise : Promise<String> in method public setUp() : void in class org.eclipse.che.ide.statepersistance.AppStateManagerTest | From | To | |
Rename Attribute | 3 | ||
Rename Attribute WS_ID : String to COMPONENT_TWO_ID : String in class org.eclipse.che.ide.statepersistance.AppStateManagerTest | From | To | |
Rename Attribute appContext : AppContext to appStateService : AppStateServiceClient in class org.eclipse.che.ide.statepersistance.AppStateManager | From | To | |
Rename Attribute jsonArgumentCaptor : ArgumentCaptor<String> to saveStateArgumentCaptor : ArgumentCaptor<String> in class org.eclipse.che.ide.statepersistance.AppStateManagerTest | From | To | |
Change Attribute Type | 1 | ||
Change Attribute Type appContext : AppContext to appStateService : AppStateServiceClient in class org.eclipse.che.ide.statepersistance.AppStateManager | From | To | |
Rename Parameter | 1 | ||
Rename Parameter settings : JsonObject to updatedState : JsonObject in method package restoreState(updatedState JsonObject) : Promise<Void> in class org.eclipse.che.ide.statepersistance.AppStateManager | From | To |