Package org.apache.felix.sigil.common.model

Examples of org.apache.felix.sigil.common.model.IModelWalker


    public IStatus run(final IProgressMonitor monitor)
    {
        final List<IPackageExport> exports = new ArrayList<IPackageExport>(
            ResourcesDialogHelper.UPDATE_BATCH_SIZE);
        final IModelWalker walker = new IModelWalker()
        {
            public boolean visit(IModelElement element)
            {
                if (element instanceof IPackageExport)
                {
View Full Code Here


    public static Collection<IPackageExport> findExportsForPackage(
        ISigilProjectModel project, final String packageName)
    {
        final LinkedList<IPackageExport> results = new LinkedList<IPackageExport>();

        project.getRepositoryManager().visit(new IModelWalker()
        {
            public boolean visit(IModelElement element)
            {
                if (element instanceof IPackageExport)
                {
View Full Code Here

        {
            if (!dependency.equals(packageName))
            {
                final boolean[] found = new boolean[1];

                projectModel.visit(new IModelWalker()
                {

                    public boolean visit(IModelElement element)
                    {
                        if (element instanceof IPackageImport)
View Full Code Here

        final LinkedList<IModelElement> unused = new LinkedList<IModelElement>();

        final Set<String> packages = findJavaImports(project, monitor);

        if (!monitor.isCanceled()) {
            project.visit(new IModelWalker()
            {
                public boolean visit(IModelElement element)
                {
                    if (element instanceof IPackageImport)
                    {
View Full Code Here

    private static void findUsers(IModelElement e, final LinkedList<IModelElement> users)
    {
        if (e instanceof ICapabilityModelElement)
        {
            final ICapabilityModelElement cap = (ICapabilityModelElement) e;
            SigilCore.getGlobalRepositoryManager().visit(new IModelWalker()
            {
                public boolean visit(IModelElement element)
                {
                    if (element instanceof IRequirementModelElement)
                    {
View Full Code Here

    public static IPackageExport findExport(ISigilProjectModel sigil,
        final String packageName)
    {
        final ArrayList<IPackageExport> found = new ArrayList<IPackageExport>(1);
        sigil.visit(new IModelWalker()
        {
            public boolean visit(IModelElement element)
            {
                if (element instanceof IPackageExport)
                {
View Full Code Here

            reqs.add((IRequirementModelElement) element);
        }
        else if (element instanceof ICompoundModelElement)
        {
            ICompoundModelElement compound = (ICompoundModelElement) element;
            compound.visit(new IModelWalker()
            {
                public boolean visit(IModelElement element)
                {
                    if (element instanceof IRequirementModelElement)
                    {
View Full Code Here

    private boolean findInContext(final IRequirementModelElement requirement,
        final ResolutionContext ctx)
    {
        for (final ISigilBundle b : ctx.resolution.providees.keySet())
        {
            b.visit(new IModelWalker()
            {
                public boolean visit(IModelElement element)
                {
                    if (element instanceof ICapabilityModelElement)
                    {
View Full Code Here

        {
            public IStatus run(final IProgressMonitor monitor)
            {
                final List<IBundleModelElement> bundles = new ArrayList<IBundleModelElement>(
                    UPDATE_BATCH_SIZE);
                final IModelWalker walker = new IModelWalker()
                {
                    //int count = 0;
                    public boolean visit(IModelElement element)
                    {
                        if (element instanceof IBundleModelElement)
View Full Code Here

        {
            for (final ICapabilityModelElement cap : caps)
            {
                final ISigilProjectModel sigil = cap.getAncestor(ISigilProjectModel.class);

                n.visit(new IModelWalker()
                {
                    public boolean visit(IModelElement element)
                    {
                        if (element instanceof IRequirementModelElement)
                        {
View Full Code Here

TOP

Related Classes of org.apache.felix.sigil.common.model.IModelWalker

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.