Examples of EvolizerSessionHandler


Examples of org.evolizer.core.hibernate.session.EvolizerSessionHandler

     */
    @Override
    protected IStatus run(IProgressMonitor monitor) {
        LOGGER.info("Starting import of project ");

        EvolizerSessionHandler handler = EvolizerSessionHandler.getHandler();
        try {
            handler.updateSchema(fProject);
            IEvolizerSession persistenceProvider = handler.getCurrentSession(fProject);
            EvolizerGitImporter importer =
                    new EvolizerGitImporter(
                            fProject.getLocation().toString(),
                            persistenceProvider,
                            fFileExtensionRegEx,
View Full Code Here

Examples of org.evolizer.core.hibernate.session.EvolizerSessionHandler

        IProject project = getProject(event);

        Shell activeShell = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell();
       
        //Before I even open the wizard, I check that some history was already imported, otherwise I won't proceed.
        EvolizerSessionHandler handler = EvolizerSessionHandler.getHandler();
        try {
            IEvolizerSession persistenceProvider = handler.getCurrentSession(project);
            Long res = persistenceProvider.uniqueResult("select count (*) from Release", Long.class);
            if (res == null || res <= 0) {
                MessageDialog.openError(activeShell, "Missing File Content Importer Error", "No history was imported yet.\nFile content cannot be imported if no history was imported beforehand.");
                return null;
            }
View Full Code Here

Examples of org.evolizer.core.hibernate.session.EvolizerSessionHandler

     * {@inheritDoc}
     */
    @Override
    protected IStatus run(IProgressMonitor monitor) {
        try {
            EvolizerSessionHandler handler = EvolizerSessionHandler.getHandler();
            handler.updateSchema(fProject);
            IEvolizerSession persistenceProvider = handler.getCurrentSession(fProject);
            TransactionReconstructor.calculateCouplings(persistenceProvider, 1000 * fTMax, 1000 * fDistMax, monitor);
            persistenceProvider.close();
            sLogger.debug("Transaction reconstruction finished");
        } catch (EvolizerException e) {
            sLogger.error("Transaction reconstruction failed:", e);
View Full Code Here

Examples of org.evolizer.core.hibernate.session.EvolizerSessionHandler

     * {@inheritDoc}
     */
    @Override
    protected IStatus run(IProgressMonitor monitor) {
        try {
            EvolizerSessionHandler handler = EvolizerSessionHandler.getHandler();
            handler.updateSchema(fProject);
            IEvolizerSession persistenceProvider = handler.getCurrentSession(fProject);

            EvolizerCVSImporter.importMissingFileContent(
                    fProject,
                    persistenceProvider,
                    fFileExtensionRegEx,
View Full Code Here

Examples of org.evolizer.core.hibernate.session.EvolizerSessionHandler

     * {@inheritDoc}
     */
    @Override
    protected IStatus run(IProgressMonitor monitor) {
        try {
            EvolizerSessionHandler handler = EvolizerSessionHandler.getHandler();
            handler.updateSchema(fProject);
            IEvolizerSession persistenceProvider = handler.getCurrentSession(fProject);

            EvolizerCVSImporter.importProject(
                    fProject,
                    persistenceProvider,
                    fFileExtensionRegEx,
View Full Code Here

Examples of org.evolizer.core.hibernate.session.EvolizerSessionHandler

                case 3:
                    this.selectRevisionLabel.setVisible(true);
                    if (!this.releaseNamesFetched) {
                        this.releaseNamesFetched = true;
                        try {
                            EvolizerSessionHandler handler = EvolizerSessionHandler.getHandler();
                            handler.updateSchema(this.project);
                            IEvolizerSession persistenceProvider = handler.getCurrentSession(this.project);
                            for (String r : persistenceProvider.query("select name from Release", String.class)) {
                                this.releasesScrollList.add(r + " ");
                            }

                        } catch (EvolizerException e) {
View Full Code Here

Examples of org.evolizer.core.hibernate.session.EvolizerSessionHandler

     */
    public Object execute(ExecutionEvent event) throws ExecutionException {
        IProject project = getProject(event);

        try {
            EvolizerSessionHandler handler = EvolizerSessionHandler.getHandler();
            handler.updateSchema(project);
        } catch (EvolizerException e) {
            e.printStackTrace();
        }
        return null;
    }
View Full Code Here

Examples of org.evolizer.core.hibernate.session.EvolizerSessionHandler

            if (this.update) {
                LOGGER.info("Starting update of project " + project.getName() + " history job");
            } else {
                LOGGER.info("Starting import of project " + project.getName() + " history job");
            }
            EvolizerSessionHandler handler = EvolizerSessionHandler.getHandler();
            handler.updateSchema(this.project);
            IEvolizerSession persistenceProvider = handler.getCurrentSession(this.project);

            String[] repositoryData = new String[3];
            repositoryData[0] = this.user;
            repositoryData[1] = this.pwd;
View Full Code Here

Examples of org.evolizer.core.hibernate.session.EvolizerSessionHandler

     * {@inheritDoc}
     */
    @Override
    protected IStatus run(IProgressMonitor monitor) {
        try {
            EvolizerSessionHandler handler = EvolizerSessionHandler.getHandler();
            handler.updateSchema(this.project);
            IEvolizerSession persistenceProvider = handler.getCurrentSession(this.project);

            String[] repositoryData = new String[3];
            repositoryData[0] = "";
            repositoryData[1] = "";

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.