mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-10-01 19:02:13 +07:00
vcs: Refactor "ClearCommittedAction"
This commit is contained in:
@@ -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
|
||||
|
||||
+2
-4
@@ -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)!!
|
||||
|
||||
Reference in New Issue
Block a user