Package org.evolizer.core.exceptions

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


            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

                        + "/" + 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

            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

                    monitor);

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

            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

    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

     */
    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

            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

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

        return sourceRootPagckages;
    }
View Full Code Here

TOP

Related Classes of org.evolizer.core.exceptions.EvolizerException

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.