package org.autojs.autojs.model.explorer;

import org.autojs.autojs.app.GlobalAppContext;

public class Explorers {

    private static final Explorer sWorkspaceExplorer = new Explorer(Providers.workspace(), 20);

    private static final Explorer sExternalExplorer = new Explorer(new ExplorerFileProvider(), 10);

    public static Explorer workspace() {
        return sWorkspaceExplorer;
    }

    public static Explorer external() {
        return sExternalExplorer;
    }

    public static class Providers {
        private static final WorkspaceFileProvider sWorkspaceFileProvider = new WorkspaceFileProvider(GlobalAppContext.get(), null);

        public static WorkspaceFileProvider workspace() {
            return sWorkspaceFileProvider;
        }
    }
}
