Package net.sf.redmine_mylyn.core

Examples of net.sf.redmine_mylyn.core.RedmineRepositoryConnector


 
  @Override
  public void init(IEditorSite site, IEditorInput input) {
    super.init(site, input);
   
    RedmineRepositoryConnector connector = (RedmineRepositoryConnector) TasksUi.getRepositoryConnector(getModel().getTaskRepository().getConnectorKind());
    cfg = connector.getRepositoryConfiguration(getTaskRepository());
    validator = new TaskDataValidator(cfg);
   
    getModel().addModelListener(projectAttributeListener);
    getModel().addModelListener(trackerAttributeListener);
    getModel().addModelListener(validatorAttributeListener);
View Full Code Here


   
    RedmineUiPlugin.plugin = this;
   
    AbstractRepositoryConnector connector = TasksUi.getRepositoryConnector(RedmineCorePlugin.REPOSITORY_KIND);
    if(connector instanceof RedmineRepositoryConnector) {
      RedmineRepositoryConnector redmineConnector = (RedmineRepositoryConnector)connector;
     
      redmineConnector.setTaskRepositoryLocationFactory(new TaskRepositoryLocationUiFactory());
      TasksUi.getRepositoryManager().addListener(redmineConnector.getClientManager());
      TasksUi.getRepositoryManager().addListener(RedmineCorePlugin.getDefault().getExtensionManager());
     
      RedmineCorePlugin.getDefault().setConnector(redmineConnector);
    }
   
View Full Code Here

 
  @Before
  public void setUp() throws Exception {
    repository = new TaskRepository(RedmineCorePlugin.REPOSITORY_KIND, URL);
   
    taskDataHandler = new RedmineTaskDataHandler(new RedmineRepositoryConnector(){
      @Override
      public Configuration getRepositoryConfiguration(TaskRepository repository) {
        return IssueMapperTest.this.cfg;
      }
    });
View Full Code Here

        TaskData taskData = TasksUi.getTaskDataManager().getTaskData(task);
        product = taskData.getRoot().getMappedAttribute(RedmineAttribute.PROJECT.getTaskKey()).getValue();
       
        AbstractRepositoryConnector reposConn = TasksUi.getRepositoryConnector(taskRepository.getConnectorKind());
        if (reposConn instanceof RedmineRepositoryConnector) {
          RedmineRepositoryConnector redmineReposConnector = (RedmineRepositoryConnector)reposConn;
         
          IClient client = redmineReposConnector.getClientManager().getClient(taskRepository);
          Configuration conf = client.getConfiguration();
          if(conf != null) {
            Project project = conf.getProjects().getById(RedmineUtil.parseIntegerId(product));
            if(project != null) {
              product = ""+project.getIdentifier(); //$NON-NLS-1$
View Full Code Here

TOP

Related Classes of net.sf.redmine_mylyn.core.RedmineRepositoryConnector

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.