Package uk.gov.nationalarchives.droid.gui.action

Examples of uk.gov.nationalarchives.droid.gui.action.LoadProfileWorker


        when(profileForm.getStatusProgressBar()).thenReturn(progressBar);
        when(profileForm.getStatusLabel()).thenReturn(label);
        when(profileForm.getProfileProgressBar()).thenReturn(profileProgressBar);

        LoadProfileWorker worker = new LoadProfileWorker(profileManager, context, tabbedPane);
        worker.init(profileForm);

        verify(profileForm).setName("Loading...");

        assertEquals(0.0D, progressBar.getPercentComplete());
View Full Code Here


        if (result == JFileChooser.APPROVE_OPTION) {
            final File selectedFile = profileFileChooser.getSelectedFile();

            if (!droidContext.selectProfileWithSource(selectedFile)) {
                // Give the tab with this profile the focus...
                LoadProfileWorker worker = new LoadProfileWorker(profileManager, droidContext, jProfilesTabbedPane);
                worker.setProfileFile(selectedFile);
                worker.init(new ProfileForm(this, droidContext, buttonManager));
                worker.execute();
            }
        }
    }
View Full Code Here

TOP

Related Classes of uk.gov.nationalarchives.droid.gui.action.LoadProfileWorker

Copyright © 2018 www.massapicom. 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.