Package edu.umd.cs.findbugs.gui2

Examples of edu.umd.cs.findbugs.gui2.Driver


        }

        String[] all = key.getAll(bugSet.query(a));
        ArrayList<SortableValue> result = new ArrayList<SortableValue>(all.length);
        for (String i : all) {
            result.add(new SortableValue(key, i));
        }
        return result;

    }
View Full Code Here


        }

        for (int x = 0; x < order.size(); x++) {
            for (int y = 0; y <= x; y++) {
                Sortables s = order.get(y);
                toBug[x].add(new SortableValue(s, s.getFrom(b)));
            }
        }
        // Add this array as elements of the path
        TreePath pathToBug = new TreePath(root);
        for (int x = 0; x < order.size(); x++) {
View Full Code Here

        for (int x = 0; x < stringsToBranch.size(); x++) {
            toBug[x] = new BugAspects();

            for (int y = 0; y <= x; y++) {
                Sortables s = order.get(y);
                toBug[x].add(new SortableValue(s, stringsToBranch.get(y)));
            }
        }

        // Add this array as elements of the path
        TreePath pathToBranch = new TreePath(root);
View Full Code Here

                new NewFilterFromBug(new FilterFromBugPicker(currentSelectedBugLeaf.getBug(),
                        Arrays.asList(mainFrame.getAvailableSortables())),
                        new ApplyNewFilter(mainFrame.getProject().getSuppressionFilter(),
                                PreferencesFrame.getInstance(),
                                new FilterActivityNotifier()));

                mainFrame.setProjectChanged(true);
                mainFrame.getTree().setSelectionRow(0); // Selects the top of the Jtree so the CommentsArea syncs up.
            }
        });
View Full Code Here

        if (GraphicsEnvironment.isHeadless()) {
            throw new IllegalStateException("Running in GUI headless mode, can't open GUI");
        }
        GUISaveState.loadInstance();
        try {
            FindBugsLayoutManagerFactory factory = new FindBugsLayoutManagerFactory(SplitLayout.class.getName());
            MainFrame.makeInstance(factory);
            MainFrame instance = MainFrame.getInstance();
            instance.waitUntilReady();
            instance.openBugCollection(bugs);
        } catch (RuntimeException e) {
View Full Code Here

        }
        GUISaveState.loadInstance();
        try {
            FindBugsLayoutManagerFactory factory = new FindBugsLayoutManagerFactory(SplitLayout.class.getName());
            MainFrame.makeInstance(factory);
            MainFrame instance = MainFrame.getInstance();
            instance.waitUntilReady();
            instance.openBugCollection(bugs);
        } catch (RuntimeException e) {
            throw e;
        } catch (Exception e) {
            throw new RuntimeException(e);
        }
View Full Code Here

        assertEquals(1234, rs.getInt(2));
        conn.close();
    }

    private void testDriverObject() throws Exception {
        Driver instance = Driver.load();
        assertTrue(DriverManager.getDriver("jdbc:h2:~/test") == instance);
        Driver.unload();
        try {
            java.sql.Driver d = DriverManager.getDriver("jdbc:h2:~/test");
            fail(d.toString());
View Full Code Here

            }
        }

        if (_needH2Shutdown) {
            __log.info("Shutting down H2....");
            Driver driver = new Driver();
            try {
                driver.connect( h2Url + ";SHUTDOWN COMPACT", new Properties());
            } catch (SQLException ex) {
                // Shutdown will always return an exeption!
                if (ex.getErrorCode() != 45000) {
                    __log.error("Error shutting down H2: " + ex.getErrorCode(), ex);
                }
View Full Code Here

    private static final String PASSWORD = "";

    @Before
    public void setup() throws Exception
    {
        DataSource dataSource = new SimpleDriverDataSource(new Driver(), URL, USERNAME, PASSWORD);
        migrationManager = new DataSourceMigrationManager(dataSource);
        migrationManager.setMigrationResolver(new ResourceMigrationResolver("classpath:/test_migrations/h2/"));

        jdbcTemplate = new SimpleJdbcTemplate(dataSource);
    }
View Full Code Here

        String connectionUrl = "jdbc:h2:mem:test" + System.nanoTime();
        jdbcClient = new BaseJdbcClient(
                new JdbcConnectorId(CONNECTOR_ID),
                new BaseJdbcConfig().setConnectionUrl(connectionUrl),
                "\"",
                new Driver());

        connection = DriverManager.getConnection(connectionUrl);
        connection.createStatement().execute("CREATE SCHEMA example");

        connection.createStatement().execute("CREATE TABLE example.numbers(text varchar primary key, value bigint)");
View Full Code Here

TOP

Related Classes of edu.umd.cs.findbugs.gui2.Driver

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.