Package org.thechiselgroup.choosel.core.client.resources.command

Examples of org.thechiselgroup.choosel.core.client.resources.command.AddResourceSetToViewCommand


        final ResourceSet newResources = resourceSetFactory.createResourceSet();
        newResources.setLabel(resourceSetLabelFactory.nextLabel());
        newResources.addAll(resources);

        return new AddResourceSetToViewCommand(view.getResourceModel(),
                newResources, "Create set '" + newResources.getLabel()
                        + "' from selection") {

            @Override
            public void performExecute() {
View Full Code Here


        final ResourceSet newResources = resourceSetFactory.createResourceSet();
        newResources.setLabel(resourceSetLabelFactory.nextLabel());
        newResources.addAll(resources);

        return new AddResourceSetToViewCommand(view.getResourceModel(),
                newResources, "Create set '" + newResources.getLabel()
                        + "' from selection") {

            @Override
            public void performExecute() {
View Full Code Here

        // XXX Deactivated preventing the renaming of all/selection sets for now
        // if (dragAvatar.getType() != ResourceSetAvatarType.SET) {
        // addedResources = new UnmodifiableResourceSet(addedResources);
        // }

        return new AddResourceSetToViewCommand(getResourceModel(),
                addedResources);
    }
View Full Code Here

        when(dragAvatar.getType()).thenReturn(type);

        UndoableCommand result = underTest.createCommand(dragAvatar);

        assertEquals(true, result instanceof AddResourceSetToViewCommand);
        AddResourceSetToViewCommand result2 = (AddResourceSetToViewCommand) result;

        assertEquals(modifiable, result2.getResourceSet().isModifiable());
    }
View Full Code Here

TOP

Related Classes of org.thechiselgroup.choosel.core.client.resources.command.AddResourceSetToViewCommand

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.