vcs: Refactor "ClearCommittedAction"

This commit is contained in:
Konstantin Kolosovsky
2018-07-23 19:29:14 +03:00
parent 0ccb400472
commit 4fa5f9b71c
2 changed files with 4 additions and 4 deletions
@@ -1326,6 +1326,8 @@ action.CommittedChanges.Filter.text=Filter
action.CommittedChanges.Filter.description=Change filtering criteria
action.CommittedChanges.Details.text=Show Details
action.CommittedChanges.Details.description=View complete information about the selected changelist
action.CommittedChanges.Clear.text=Clear
action.CommittedChanges.Clear.description=Clears cached revisions
action.IncomingChanges.Refresh.text=Refresh
action.IncomingChanges.Refresh.description=Refresh the list of incoming changes
action.IncomingChanges.Get.text=Get Changelist
@@ -1,14 +1,12 @@
// Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.openapi.vcs.changes.committed
import com.intellij.icons.AllIcons
import com.intellij.openapi.actionSystem.AnAction
import com.intellij.openapi.actionSystem.AnActionEvent
import com.intellij.openapi.actionSystem.CommonDataKeys
import com.intellij.openapi.project.DumbAware
import com.intellij.openapi.project.DumbAwareAction
import com.intellij.openapi.vcs.changes.ui.ChangesViewContentManager
class ClearCommittedAction : AnAction("Clear", "Clears cached revisions", AllIcons.Vcs.Remove), DumbAware {
class ClearCommittedAction : DumbAwareAction() {
override fun actionPerformed(e: AnActionEvent) {
val project = e.getData(CommonDataKeys.PROJECT)!!
val panel = ChangesViewContentManager.getInstance(project).getActiveComponent(CommittedChangesPanel::class.java)!!