mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Don't show Xml Actions group in any context
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
<component xmlns:xi="http://www.w3.org/2001/XInclude">
|
||||
<actions>
|
||||
|
||||
<group id="ToolsXmlGroup" popup="true">
|
||||
<group id="ToolsXmlGroup" popup="true" class="com.intellij.xml.actions.XmlActionsGroup">
|
||||
<action id="ValidateXml" class="com.intellij.xml.actions.ValidateXmlAction"/>
|
||||
<action id="GenerateDTD" class="com.intellij.codeInsight.actions.GenerateDTDAction"/>
|
||||
<action id="XSD2Document" class="com.intellij.xml.actions.xmlbeans.GenerateSchemaFromInstanceDocumentAction" text="Generate XSD schema from XML file"/>
|
||||
|
||||
@@ -0,0 +1,35 @@
|
||||
/*
|
||||
* Copyright 2000-2011 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.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package com.intellij.xml.actions;
|
||||
|
||||
import com.intellij.openapi.actionSystem.ActionGroupUtil;
|
||||
import com.intellij.openapi.actionSystem.AnActionEvent;
|
||||
import com.intellij.openapi.actionSystem.DefaultActionGroup;
|
||||
|
||||
/**
|
||||
* @author Konstantin Bulenkov
|
||||
*/
|
||||
public class XmlActionsGroup extends DefaultActionGroup {
|
||||
public XmlActionsGroup() {
|
||||
super();
|
||||
getTemplatePresentation().setText("XML Actions");
|
||||
}
|
||||
|
||||
@Override
|
||||
public void update(AnActionEvent e) {
|
||||
e.getPresentation().setVisible(!ActionGroupUtil.isGroupEmpty(this, e));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user