mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
WI-2928: Open in browser action has no default text and description
This commit is contained in:
@@ -160,8 +160,6 @@ browser.path.not.specified=Please, set the path to the browser at Settings / Web
|
||||
browser.path.not.specified.title=Browser Path Was Not Specified
|
||||
browser.error=Browser Error
|
||||
web.editor.configuration.title=Web
|
||||
action.OpenInBrowser.text=Open in _Browser
|
||||
action.open.file.in.browser.description=Open a selected file in browser
|
||||
|
||||
|
||||
xml.split.tag.intention.action=Split current tag
|
||||
|
||||
@@ -64,6 +64,21 @@
|
||||
</action>
|
||||
</group>
|
||||
|
||||
<group id="NewXml" text="XML">
|
||||
<!--<action id="NewHtmlType" class="com.intellij.ide.actions.CreateHtmlAction" text="HTML File"/>-->
|
||||
<!--<action id="NewHtml5Type" class="com.intellij.ide.actions.CreateHtml5Action" text="HTML5 File"/>-->
|
||||
<!--<action id="NewXhtmlType" class="com.intellij.ide.actions.CreateXhtmlAction" text="XHTML File"/>-->
|
||||
<action id="NewHtmlFile" class="com.intellij.ide.actions.CreateHtmlFileAction"/>
|
||||
<add-to-group group-id="NewGroup" anchor="before" relative-to-action="NewFromTemplate"/>
|
||||
</group>
|
||||
|
||||
<action id="OpenInBrowser" class="com.intellij.ide.browsers.OpenFileInBrowserAction"
|
||||
text="Open in _Browser" description="Open a selected file in browser"
|
||||
icon="/nodes/ppWeb.png">
|
||||
<add-to-group group-id="ViewMenu" anchor="after" relative-to-action="ViewSource"/>
|
||||
<add-to-group group-id="EditorPopupMenu" anchor="after" relative-to-action="CutCopyPasteGroup"/>
|
||||
<add-to-group group-id="ProjectViewPopupMenu" anchor="after" relative-to-action="EditSource"/>
|
||||
</action>
|
||||
|
||||
</actions>
|
||||
</component>
|
||||
|
||||
@@ -328,21 +328,4 @@
|
||||
<renameInputValidator implementation="com.intellij.lang.xml.XmlElementRenameValidator"/>
|
||||
<renameInputValidator implementation="com.intellij.lang.xml.XmlAttributeValueRenameValidator"/>
|
||||
</extensions>
|
||||
|
||||
<actions>
|
||||
<group id="NewXml" text="XML">
|
||||
<!--<action id="NewHtmlType" class="com.intellij.ide.actions.CreateHtmlAction" text="HTML File"/>-->
|
||||
<!--<action id="NewHtml5Type" class="com.intellij.ide.actions.CreateHtml5Action" text="HTML5 File"/>-->
|
||||
<!--<action id="NewXhtmlType" class="com.intellij.ide.actions.CreateXhtmlAction" text="XHTML File"/>-->
|
||||
<action id="NewHtmlFile" class="com.intellij.ide.actions.CreateHtmlFileAction"/>
|
||||
<add-to-group group-id="NewGroup" anchor="before" relative-to-action="NewFromTemplate"/>
|
||||
</group>
|
||||
|
||||
<action id="OpenInBrowser" class="com.intellij.ide.browsers.OpenFileInBrowserAction"
|
||||
icon="/nodes/ppWeb.png">
|
||||
<add-to-group group-id="ViewMenu" anchor="after" relative-to-action="ViewSource"/>
|
||||
<add-to-group group-id="EditorPopupMenu" anchor="after" relative-to-action="CutCopyPasteGroup"/>
|
||||
<add-to-group group-id="ProjectViewPopupMenu" anchor="after" relative-to-action="EditSource"/>
|
||||
</action>
|
||||
</actions>
|
||||
</idea-plugin>
|
||||
|
||||
@@ -19,8 +19,6 @@ public class OpenFileInBrowserAction extends DumbAwareAction {
|
||||
|
||||
if (file != null) {
|
||||
presentation.setVisible(true);
|
||||
presentation.setText(XmlBundle.message("action.OpenInBrowser.text"));
|
||||
presentation.setDescription(XmlBundle.message("action.open.file.in.browser.description"));
|
||||
|
||||
final WebBrowserUrlProvider browserUrlProvider = WebBrowserUrlProviders.getProvider(file);
|
||||
presentation.setEnabled(browserUrlProvider != null);
|
||||
|
||||
Reference in New Issue
Block a user