Skip to main content
Jump to: navigation, search

Difference between revisions of "Mylyn/Incubator/Generic Industrial Connector/Configuring Industrial Connector using Nothing"

(Step 3: Create a connector.xml)
(Step 3: Create a connector.xml)
Line 12: Line 12:
 
This is going to be moved to the extension point mechanism in a very near future version. For now, create a connector.xml file in the root of your project with the following contents:
 
This is going to be moved to the extension point mechanism in a very near future version. For now, create a connector.xml file in the root of your project with the following contents:
  
<nowiki>
+
 
 
  <?xml version="1.0" encoding="UTF-8"?>
 
  <?xml version="1.0" encoding="UTF-8"?>
<!--
 
/*******************************************************************************
 
* Copyright (c) 2008 Industrial TSI and Maarten Meijer.
 
* All rights reserved. This program and the accompanying materials
 
* are made available under the terms of the Eclipse Public License v1.0
 
* which accompanies this distribution, and is available at
 
* http://www.eclipse.org/legal/epl-v10.html
 
*
 
* Contributors:
 
* Industrial TSI - initial API and implementation
 
*
 
*******************************************************************************/
 
* Author: Ahmed Aadel
 
-->
 
 
  <connector xmlns="ptth://www.industrial-tsi.com/mylyn/connector/connector_1_0.dtd">
 
  <connector xmlns="ptth://www.industrial-tsi.com/mylyn/connector/connector_1_0.dtd">
 
 
  <repository name="Memory">
 
  <repository name="Memory">
 
  <persistor name="Memory">
 
  <persistor name="Memory">
Line 35: Line 20:
 
  </persistor>
 
  </persistor>
 
  <repository-properties>
 
  <repository-properties>
<!-- You can enable some repository functions.
 
You may be willing to configure only what you need and let the rest to their default value, which is false.(means disabled)-->
 
 
  <property name="can-create-new-task" value="true" />
 
  <property name="can-create-new-task" value="true" />
 
  <property name="can-create-task-from-key" value="true" />
 
  <property name="can-create-task-from-key" value="true" />
Line 44: Line 27:
 
   <property name="can-post-attachments" value="true" />
 
   <property name="can-post-attachments" value="true" />
 
   </repository-properties>
 
   </repository-properties>
  <task>
 
  <!--
 
  You can disable a task attribute shown on the editor by setting its read-only value to true.
 
  You may be willing to configure only what you need and let the rest to their default value, which is false.
 
  -->
 
  <task-attributes>
 
  <!--  <attribute id="task.common.summary" readonly="true" />
 
  <attribute id="task.common.product" readonly="true" />
 
  <attribute id="task.common.status" readonly="true" />
 
  <attribute id="task.common.user.assigned" readonly="true" />
 
  <attribute id="task.common.date.due" readonly="true" />
 
  <attribute id="task.common.date.created" readonly="true" />
 
  <attribute id="task.common.date.modified" readonly="true" />
 
  <attribute id="task.common.priority" readonly="true"/>
 
  <attribute id="task.common.description" readonly="true" />
 
  <attribute id="task.common.reporter" readonly="true" /> -->
 
  </task-attributes>
 
  </task>
 
 
   </repository>
 
   </repository>
 
  </connector>
 
  </connector>

Revision as of 13:52, 17 February 2009

This page describes how you can implement a Mylyn connector in 5 minutes using your computers memory as the persistance medium.

Step 1: Get the Source

Point your favorit SVN client towards

svn://bugs.industrial-tsi.com/mylyn_gsc/trunk

and get all the projects.

Step 2: Create a Fragment Project

Create a fragment project for your connector with the org.eclipse.mylyn.industrial.core project as the host.

Step 3: Create a connector.xml

This is going to be moved to the extension point mechanism in a very near future version. For now, create a connector.xml file in the root of your project with the following contents:


<?xml version="1.0" encoding="UTF-8"?>
<connector	xmlns="ptth://www.industrial-tsi.com/mylyn/connector/connector_1_0.dtd">
	<repository name="Memory">
		<persistor name="Memory">
 			<class>org.eclipse.mylyn.industrial.demo.memory.MemoryPersistor</class>
		</persistor>
		<repository-properties>
			<property name="can-create-new-task" value="true" />
			<property name="can-create-task-from-key" value="true" />
			<property name="can-query-repository" value="true" />
			<property name="can-synchronize-tasks" value="true" />
 			<property name="can-get-attachments" value="true" />
 			<property name="can-post-attachments" value="true" />
 		</repository-properties>
 	</repository>
</connector>

</nowiki>

Step 3: Implement IPersistor

Make an extension to org.eclipse.mylyn.industrial.core.persistor and open the class that you have typed in there. Now implement the following class:

Back to the top