Package net.sf.redmine_mylyn.api.model

Examples of net.sf.redmine_mylyn.api.model.TimeEntryActivity


          Integer projectId = taskAttributeMapper.getIntegerValue(taskData.getRoot().getAttribute(RedmineAttribute.PROJECT.getTaskKey()));
          Project project = conf.getProjects().getById(projectId.intValue());
         
          if(project!=null) {
            TimeEntryActivities activities = project.getTimeEntryActivities();
            TimeEntryActivity activity = activities.getDefault();
            if(activity==null && activities.getAll().size()>0) {
              activity = activities.getAll().get(0);
            }
            if(activity!=null) {
              value = Integer.toString(activity.getId());
            }
          }
        }
      } else {
        value = activityId.toString();
View Full Code Here


import org.eclipse.ui.forms.editor.IFormPage;

public class RedmineTasksUiUtil {

  public static TimeEntryActivity getDefaultTimeEntryActivity(ITask task, TaskData taskData) {
    TimeEntryActivity activity = null;
    AbstractRepositoryConnector connector = TasksUi.getRepositoryConnector(RedmineCorePlugin.REPOSITORY_KIND);
   
    if (connector!=null && connector instanceof RedmineRepositoryConnector){
     
      Configuration conf = ((RedmineRepositoryConnector) connector)
View Full Code Here

      child.getMetaData().setLabel(RedmineAttribute.TIME_ENTRY_ACTIVITY.getLabel());
      mapper.setIntegerValue(child, getActivityId());

      //Option for ActivityId
      if(project!=null) {
        TimeEntryActivity activity = project.getTimeEntryActivities().getById(getActivityId());
        if (activity!=null) {
          child.putOption(""+activity.getId(), activity.getName()); //$NON-NLS-1$
        }
      }
    }
    if (getUser() != null) {
      TaskAttribute child = taskAttribute.createMappedAttribute(IRedmineConstants.TASK_ATTRIBUTE_TIMEENTRY_AUTHOR);
View Full Code Here

TOP

Related Classes of net.sf.redmine_mylyn.api.model.TimeEntryActivity

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.