Examples of addMember()


Examples of org.openstreetmap.josm.data.osm.Relation.addMember()

                r.put(t.getKey(), t.getValue());
            }
            for (OsmPrimitive osm : Main.main.getCurrentDataSet().getSelected()) {
                String role = suggestRoleForOsmPrimitive(osm);
                RelationMember rm = new RelationMember(role == null ? "" : role, osm);
                r.addMember(rm);
                members.add(rm);
            }
            SwingUtilities.invokeLater(new Runnable() {
                @Override
                public void run() {
View Full Code Here

Examples of org.openstreetmap.josm.data.osm.history.HistoryRelation.addMember()

        public void visit(Relation r) {
            clone = new HistoryRelation(r.getId(), r.getVersion(), r.isVisible(), getCurrentUser(), 0, null, false);
            clone.setTags(r.getKeys());
            HistoryRelation hr = (HistoryRelation)clone;
            for (RelationMember rm : r.getMembers()) {
                hr.addMember(new RelationMemberData(rm.getRole(), rm.getType(), rm.getUniqueId()));
            }
        }

        @Override
        public void visit(Way w) {
View Full Code Here

Examples of org.opentripplanner.openstreetmap.model.OSMRelation.addMember()

                    if (element2.getNodeName().equals("member")) {
                        OSMRelationMember member = new OSMRelationMember();
                        member.setRole(element2.getAttribute("role"));
                        member.setType(element2.getAttribute("type"));
                        member.setRef(Long.parseLong(element2.getAttribute("ref")));
                        osmRelation.addMember(member);
                    }
                    node2 = node2.getNextSibling();
                }
                map.addRelation(osmRelation);
            }
View Full Code Here

Examples of org.osgi.service.useradmin.Group.addMember()

        m_latch = new CountDownLatch(1);
       
        new Thread(new Runnable() {
            public void run() {
                Role anyone = m_repository.getRoleByName(Role.USER_ANYONE);
                assertTrue(role.addMember(anyone));
            };
        }).start();

        assertTrue(m_latch.await(1, TimeUnit.SECONDS));
    }
View Full Code Here

Examples of org.ow2.easybeans.security.struct.JGroup.addMember()

        Principal principal = principals.keySet().iterator().next();
        this.runAsSubject.getPrincipals().add(principal);

        // Add roles for this principal
        Group roles = new JGroup("roles");
        roles.addMember(new JPrincipal(runAsRole));

        // Add list roles for this role
        for (Principal member : principals.get(principal)) {
            roles.addMember(member);
        }
View Full Code Here

Examples of org.picketlink.identity.federation.bindings.jboss.subject.PicketLinkGroup.addMember()

        String groupName = SecurityConstants.ROLES_IDENTIFIER;
        Group rolesGroup = new PicketLinkGroup(groupName);
        List<String> roles = AssertionUtil.getRoles(assertion, roleKeys);
        for (String role : roles) {
            rolesGroup.addMember(new SimplePrincipal(role));
        }

        return new Group[] { rolesGroup };
    }
View Full Code Here

Examples of org.python.pydev.core.resource_stubs.FolderMock.addMember()

        project.setNature(new PythonNatureStub());

        FolderMock mod1 = new FolderMock("mod1");
        FileMock initFromMod1 = new FileMock("__init__.py"); //visited

        mod1.addMember(initFromMod1);
        mod1.addMember(new FileMock("a.py")); //visited
        mod1.addMember(new FileMock("unrelated"));

        FolderMock mod2 = new FolderMock("mod2");
        mod1.addMember(mod2);
View Full Code Here

Examples of org.python.pydev.core.resource_stubs.ProjectMock.addMember()

        FolderMock mod3 = new FolderMock("mod3");
        mod1.addMember(mod3);
        mod3.addMember(new FileMock("c.py")); //not visited because mod3 has no __init__.

        project.addMember(mod1);

        visitor.memo = new HashMap<String, Object>();
        visitor.visitAddedResource(initFromMod1, null, null);

        //See comments above for visited.
View Full Code Here

Examples of org.rhq.coregui.client.util.enhanced.EnhancedHLayout.addMember()

            tagLayout.setHeight(20);

            HTMLFlow tagString = new HTMLFlow("<nobr><a href=\"" + LinkManager.getTagLink(tag.toString()) + "\">"
                + tag.toString() + "</a></nobr>");
            tagString.setAutoWidth();
            tagLayout.addMember(tagString);

            if (!readOnly) {
                final LayoutSpacer spacer = new LayoutSpacer();
                spacer.setHeight(16);
                spacer.setWidth(16);
View Full Code Here

Examples of org.rhq.coregui.client.util.enhanced.EnhancedToolStrip.addMember()

    private EnhancedToolStrip createButtonBar() {
        EnhancedToolStrip toolStrip = new EnhancedToolStrip();
        toolStrip.setWidth100();

        toolStrip.addMember(new LayoutSpacer());

        this.saveButton = new EnhancedIButton(MSG.common_button_save());
        this.saveButton.addClickHandler(new ClickHandler() {
            public void onClick(ClickEvent clickEvent) {
                save();
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.