Examples of EvolizerException


Examples of org.evolizer.core.exceptions.EvolizerException

     */
    private boolean isJavaEnabled() throws EvolizerException {
        try {
            return fProject.hasNature("org.eclipse.jdt.core.javanature");
        } catch (CoreException e) {
            throw new EvolizerException(e);
        }
    }
View Full Code Here

Examples of org.evolizer.core.exceptions.EvolizerException

            lSession.clear();
            sLogger.debug("Model entry stored");
           
            progress.worked(45);
        } catch (EvolizerException e) {
            throw new EvolizerException(e);
        } finally {
            if (lSession != null) {
                lSession.endTransaction();
            }
        }
View Full Code Here

Examples of org.evolizer.core.exceptions.EvolizerException

                        + "/" + size + ").");

            } catch (IOException e) {
                sLogger.warn("IOException: Cannot save source of " + revision.getFile().getPath() + " - "
                        + revision.getNumber());
                throw new EvolizerException(e);
            } catch (EvolizerException e) {
                sLogger.warn("EvolizerException: Cannot save source of " + revision.getFile().getPath() + " - "
                        + revision.getNumber());
            }
            monitor.worked(1);
View Full Code Here

Examples of org.evolizer.core.exceptions.EvolizerException

            if (!evoTmp.exists()) {
                evoTmp.create(true /*force*/, true /*local*/, null);
            }
        } catch (CVSException e) {
            sLogger.error(e.getMessage(), e);
            throw new EvolizerException(e);
        } catch (CoreException e) {
            sLogger.error(e.getMessage(), e);
            throw new EvolizerException(e);
        }
    }
View Full Code Here

Examples of org.evolizer.core.exceptions.EvolizerException

                    monitor);

            fCVSSession.close();
        } catch (CVSException e) {
            sLogger.error(e.getMessage(), e);
            throw new EvolizerException(e);
        }
    }
View Full Code Here

Examples of org.evolizer.core.exceptions.EvolizerException

            InputStream inputStream = storage.getContents();

            return inputStream;
        } catch (CVSServerException e) {
            // Do not print stack trace
            throw new EvolizerException(e);
        } catch (CVSException e) {
            e.printStackTrace();
            throw new EvolizerException(e);
        } catch (TeamException e) {
            e.printStackTrace();
            throw new EvolizerException(e);
        } catch (CoreException e) {
            e.printStackTrace();
            throw new EvolizerException(e);
        }
    }
View Full Code Here

Examples of org.evolizer.core.exceptions.EvolizerException

    public void unshareResource(IResource resource) throws EvolizerException {
        ICVSResource cvsResource = CVSWorkspaceRoot.getCVSResourceFor(resource);
        try {
            cvsResource.unmanage(new NullProgressMonitor());
        } catch (CVSException e) {
            throw new EvolizerException("Cannot unshare resource", e);
        }
    }
View Full Code Here

Examples of org.evolizer.core.exceptions.EvolizerException

     */
    public void open() throws EvolizerException {
        try {
            fCVSSession.open(new NullProgressMonitor());
        } catch (CVSException e) {
            throw new EvolizerException("Cannot connect to repository", e);
        }
    }
View Full Code Here

Examples of org.evolizer.core.exceptions.EvolizerException

            project = ((IJavaElement) treeSelection.getFirstElement()).getJavaProject();
        } else if (selection instanceof IStructuredSelection) {
            IStructuredSelection structuredSelection = (IStructuredSelection) selection;
            project = ((IJavaElement) structuredSelection.getFirstElement()).getJavaProject();
        } else {
            throw new EvolizerException("Could not determine the project from the selection");
        }
       
        return project;
    }
View Full Code Here

Examples of org.evolizer.core.exceptions.EvolizerException

                if (root.getKind() == IPackageFragmentRoot.K_SOURCE) {
                    sourceRootPagckages.add(root);
                }
            }
        } catch (JavaModelException jme) {
            throw new EvolizerException(jme);
        }

        return sourceRootPagckages;
    }
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.