<?xml version="1.0" encoding="UTF-8"?>
<editor id="editor.browser" openable="true" order="1000" text="openbrowser.1"
		title="openbrowser.2" iconClass="mdi mdi-tab-plus"
		className="PydioBrowserEditor" mimes="*,url" label="CONF_MESSAGE[External Window]" description="CONF_MESSAGE[Open file in a new browser window, thus using native browser capabilities.]"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="file:../core.ajaxplorer/ajxp_registry.xsd">
    <server_settings>
        <global_param name="OPEN_DOCS_IN_TAB" type="select" label="CONF_MESSAGE[Open documents in...]"
                      description="CONF_MESSAGE[Choose where the documents are opened]"
                      choices="application|CONF_MESSAGE[Application Tab],browser|CONF_MESSAGE[Browser Tab]" default="application" expose="true"/>
        <global_param name="OPEN_LINK_IN_TAB" type="select" label="CONF_MESSAGE[Open link in...]"
                      description="CONF_MESSAGE[Choose where the http links are opened]"
                      choices="application|CONF_MESSAGE[Application Tab],browser|CONF_MESSAGE[Browser Tab]" default="application" expose="true"/>
    </server_settings>
    <client_settings>
        <resources>
            <js file="plugins/editor.browser/res/build/PydioBrowserEditor.js" className="PydioBrowserEditor"/>
            <js file="plugins/editor.browser/res/build/PydioBrowserActions.js" className="PydioBrowserActions"/>
            <i18n namespace="openbrowser" path="plugins/editor.browser/res/i18n" />
        </resources>
    </client_settings>
    
	<dependencies>
		<!-- Stream Wrapper Access -->
		<activePlugin pluginName="access.AJXP_STREAM_PROVIDER"/>
	</dependencies>
    <class_definition filename="plugins/editor.browser/FileMimeSender.php"
        classname="Pydio\Editor\Mime\FileMimeSender" />
    <registry_contributions>
    	<actions>
    		<action name="open_file" skipSecureToken="true">
    			<processing>
    				<serverCallback methodName="switchAction"/>
    			</processing>
    		</action>
            <action name="mklink">
                <gui text="openbrowser.4" title="openbrowser.4" accessKey="file_access_key" iconClass="mdi mdi-link" hasAccessKey="false">
                    <context selection="false" dir="true" recycle="hidden" actionBar="true"
                             contextMenu="true" infoPanel="false" actionBarGroup="create" inZip="false"/>
                </gui>
                <rightsContext noUser="true" userLogged="only" read="true" write="true" adminOnly=""/>
                <processing>
                    <clientCallback module="PydioBrowserActions.Callbacks.createLink"/>
                </processing>
            </action>
    	</actions>
        <extensions>
            <extension font="link" messageId="openbrowser.7" mime="url"/>
            <extension font="web" messageId="openbrowser.7" mime="website"/>
        </extensions>
    </registry_contributions>
</editor>
