Examples of GSFileBrowser


Examples of org.broad.igv.gs.GSFileBrowser

    @Override
    public void actionPerformed(ActionEvent e) {


        try {
            GSFileBrowser dlg = new GSFileBrowser(IGV.getMainFrame());
            dlg.setVisible(true);

            String url = dlg.getFileURL();
            if (url != null) {
                igv.loadGenome(url, null, true);
            }
        } catch (Exception e1) {
            log.error("Error fetching directory listing on GenomeSpace server.", e1);
View Full Code Here

Examples of org.broad.igv.gs.GSFileBrowser

            String currentSessionFilePath = mainFrame.getSession().getPath();
            String initFile = currentSessionFilePath == null ? UIConstants.DEFAULT_SESSION_FILE : currentSessionFilePath;
            String sessionName = (new File(initFile)).getName();

            GSFileBrowser gsFileBrowser = new GSFileBrowser(IGV.getMainFrame(), GSFileBrowser.Mode.SAVE);
            gsFileBrowser.setVisible(true);
            String gsPath = gsFileBrowser.getPath();
            if (gsPath == null) return;
            if (!gsPath.endsWith(".xml")) {
                gsPath += ".xml";
            }
View Full Code Here

Examples of org.broad.igv.gs.GSFileBrowser

    @Override
    public void actionPerformed(ActionEvent e) {


        try {
            GSFileBrowser dlg = new GSFileBrowser(IGV.getMainFrame());
            dlg.setVisible(true);

            String url = dlg.getFileURL();
            if (url != null) {
                igv.loadTracks(Arrays.asList(new ResourceLocator(url)));
            }
        } catch (Exception e1) {
            log.error("Error fetching directory listing on GenomeSpace server.", e1);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.