mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Add mnemonic to PsiViewer action + rename class
This commit is contained in:
+8
-12
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2000-2009 JetBrains s.r.o.
|
||||
* Copyright 2000-2010 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -13,12 +13,6 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
/**
|
||||
* class ViewerAction
|
||||
* created Aug 27, 2001
|
||||
* @author Jeka
|
||||
*/
|
||||
package com.intellij.internal.psiView;
|
||||
|
||||
import com.intellij.openapi.actionSystem.AnAction;
|
||||
@@ -27,16 +21,18 @@ import com.intellij.openapi.actionSystem.PlatformDataKeys;
|
||||
import com.intellij.openapi.project.DumbAware;
|
||||
import com.intellij.openapi.project.Project;
|
||||
|
||||
public class ViewerAction extends AnAction implements DumbAware {
|
||||
/**
|
||||
* @author Konstantin Bulenkov
|
||||
*/
|
||||
public class PsiViewerAction extends AnAction implements DumbAware {
|
||||
public void actionPerformed(AnActionEvent e) {
|
||||
Project project = PlatformDataKeys.PROJECT.getData(e.getDataContext());
|
||||
PsiViewerDialog dialog = new PsiViewerDialog(project,false);
|
||||
dialog.show();
|
||||
final Project project = PlatformDataKeys.PROJECT.getData(e.getDataContext());
|
||||
new PsiViewerDialog(project, false).show();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void update(AnActionEvent e) {
|
||||
Project project = PlatformDataKeys.PROJECT.getData(e.getDataContext());
|
||||
final Project project = PlatformDataKeys.PROJECT.getData(e.getDataContext());
|
||||
e.getPresentation().setEnabled(project != null);
|
||||
}
|
||||
}
|
||||
@@ -652,7 +652,7 @@ action.ValidateXml.text=_Validate
|
||||
action.ValidateXml.description=Validate the current xml file
|
||||
action.GenerateDTD.text=Generate DTD from _XML file
|
||||
group.ExternalToolsGroup.text=External Tools
|
||||
action.PsiViewer.text=View PSI Structure
|
||||
action.PsiViewer.text=_View PSI Structure
|
||||
action.DebugListen.text=Throw Debug Exception
|
||||
action.VirtualFileInfo.text=Virtual File Info
|
||||
action.Merge3Files.text=Merge
|
||||
|
||||
@@ -208,7 +208,7 @@
|
||||
<separator/>
|
||||
<group id="PlaySavedMacroActions" class="com.intellij.ide.actionMacro.actions.MacrosGroup"/>
|
||||
</group>
|
||||
<action id="PsiViewer" class="com.intellij.internal.psiView.ViewerAction"/>
|
||||
<action id="PsiViewer" class="com.intellij.internal.psiView.PsiViewerAction"/>
|
||||
</group>
|
||||
|
||||
<group id="WindowMenu" popup="true">
|
||||
|
||||
Reference in New Issue
Block a user