Examples of clearOptions()


Examples of org.eclipse.mylyn.tasks.core.data.TaskAttribute.clearOptions()

         
          for (Entry<RedmineAttribute, List<?extends Property>> entry : projectSpecific.entrySet()) {
            taskAttribute = root.getAttribute(entry.getKey().getTaskKey());
           
            if(taskAttribute!=null) {
              taskAttribute.clearOptions();
              if(!entry.getKey().isRequired()) {
                taskAttribute.putOption("", ""); //$NON-NLS-1$ //$NON-NLS-2$
              }
              for(Property property : entry.getValue()) {
                taskAttribute.putOption(""+property.getId(), property.getName()); //$NON-NLS-1$
View Full Code Here

Examples of org.internna.iwebmvc.model.Poll.clearOptions()

        BeanUtils.copyProperties(poll, old, new String[]{"id", "question", "options"});
        if (poll.getQuestion() != null)
            for (int index = 0; index < poll.getQuestion().getData().size(); index++)
                old.getQuestion().getData().get(index).setTranslation(poll.getQuestion().getData().get(index).getTranslation());
        else old.setQuestion(null);
        if (CollectionUtils.isEmpty(poll.getOptions())) old.clearOptions();
        else {
            for (PollOption option : poll.getOptions()) {
                if (option.getId() != null) {
                    for (PollOption oldPollOption : old.getOptions()) {
                        if (oldPollOption.getId().equals(option.getId())) {
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.