Package com.munian.ivy.module.facade

Examples of com.munian.ivy.module.facade.IvyFacade


    private Ivy getIvyInstance() {
        Ivy ivy = null;
        Project project = getProject();
        if (project != null) {
            IvyFacade facade = Lookup.getDefault().lookup(IvyFacade.class);
            try {
                ivy = facade.getIvy(project);
            } catch (IvyException ex) {
                Exceptions.printStackTrace(ex);
            }
        }else{
            ivy = Ivy.newInstance();
View Full Code Here


        return parsedArtifacts;
    }

    private Collection<ModuleId> getIvySubProjects(SubprojectProvider subprojectProvider) throws IvyException {
        Set<ModuleId> ivyProjects = new HashSet<ModuleId>();
        IvyFacade ivyFacade = Lookup.getDefault().lookup(IvyFacade.class);

        for (Project project : subprojectProvider.getSubprojects()) {
            ModuleDescriptor moduleDescriptor = ivyFacade.getModuleDescriptor(project);
            if (moduleDescriptor != null) {
                ivyProjects.add(moduleDescriptor.getModuleRevisionId().getModuleId());
            }
        }
        return ivyProjects;
View Full Code Here

        this.project=project;
    }

    @Override
    public void actionPerformed(ActionEvent ev) {
        IvyFacade resolver = Lookup.getDefault().lookup(IvyFacade.class);
        resolver.resolve(project);
    }   
View Full Code Here

            this.project = project;
        }

        @Override
        public void actionPerformed(ActionEvent e) {
            IvyFacade cleaner = Lookup.getDefault().lookup(IvyFacade.class);
            cleaner.cleanAllCache(project);
        }
View Full Code Here

            this.project = project;
        }

        @Override
        public void actionPerformed(ActionEvent e) {
            IvyFacade cleaner = Lookup.getDefault().lookup(IvyFacade.class);
            cleaner.cleanResolutionCache(project);
        }
View Full Code Here

            this.project = project;
        }

        @Override
        public void actionPerformed(ActionEvent e) {
            IvyFacade cleaner = Lookup.getDefault().lookup(IvyFacade.class);
            cleaner.cleanAllRepositoryCache(project);
        }
View Full Code Here

        }

        @Override
        public void actionPerformed(ActionEvent e) {
            String name = e.getActionCommand();
            IvyFacade cleaner = Lookup.getDefault().lookup(IvyFacade.class);
            cleaner.cleanRepositoryCache(project, name);
        }
View Full Code Here

            JMenu menu = new JMenu(NbBundle.getMessage(IvyAwareAction.class, "CTL_CleanRepositoryCacheAction"));
            List<? extends Action> actionsForPath = Utilities.actionsForPath(SUB_MENU_PATH_CLEAN_REPOSITORY);
            for (Action a : actionsForPath) {
                menu.add(a);
            }
            IvyFacade facade = Lookup.getDefault().lookup(IvyFacade.class);
            try {
                String[] resolutionCaches = facade.getResolutionCacheNames(project);
                for (String string : resolutionCaches) {
                    actionsForPath = Utilities.actionsForPath(SUB_MENU_PATH_CLEAN_REPOSITORY_ONE);
                    for (Action a : actionsForPath) {
                        menu.add(a);
                        a.putValue(NAME, string);
View Full Code Here

    @Override
    public void autoResolveProject() {
        if (ivyEnabled) {
            if (autoResolve) {
                IvyFacade facade = Lookup.getDefault().lookup(IvyFacade.class);
                facade.resolve(project);
            }
        }
    }
View Full Code Here

    @Override
    public JComponent createComponent(Category category, Lookup context) {
        Project project = context.lookup(Project.class);
        EditablePreferences projectPreferencesLookup = project.getLookup().lookup(EditablePreferences.class);
        IvyOptions optionsLookup = Lookup.getDefault().lookup(IvyOptions.class);
        IvyFacade ivyFacade = Lookup.getDefault().lookup(IvyFacade.class);
       
        CustomizerPanel panel = new CustomizerPanel(projectPreferencesLookup,optionsLookup,ivyFacade);
        category.setOkButtonListener(panel.getActionListener());
        return panel;
    }
View Full Code Here

TOP

Related Classes of com.munian.ivy.module.facade.IvyFacade

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.