summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiles Parker2012-12-04 19:21:41 (EST)
committerMiles Parker2012-12-18 14:24:43 (EST)
commitb0bc1e45a23c7e2e24ca9490f2a14b226625b490 (patch)
treeaeac5403dee7a932a244eb3c7d1ea854be1c91f3
parent6f637d3572c45c5e8a182a3a8005802a2e4cd1d3 (diff)
downloadorg.eclipse.mylyn.reviews.r4e-b0bc1e45a23c7e2e24ca9490f2a14b226625b490.zip
org.eclipse.mylyn.reviews.r4e-b0bc1e45a23c7e2e24ca9490f2a14b226625b490.tar.gz
org.eclipse.mylyn.reviews.r4e-b0bc1e45a23c7e2e24ca9490f2a14b226625b490.tar.bz2
392120: Implement Generic EMF Connector and UIrefs/changes/30/9030/16
Change-Id: If8b40674b45626c3902cd3ca7970d8f0cbed6520 Task-Url: https://bugs.eclipse.org/bugs/show_bug.cgi?id=392120
-rw-r--r--org.eclipse.mylyn.reviews.connector.feature/.project17
-rw-r--r--org.eclipse.mylyn.reviews.connector.feature/.settings/org.eclipse.core.runtime.prefs2
-rw-r--r--org.eclipse.mylyn.reviews.connector.feature/.settings/org.eclipse.mylyn.tasks.ui.prefs4
-rw-r--r--org.eclipse.mylyn.reviews.connector.feature/.settings/org.eclipse.mylyn.team.ui.prefs2
-rw-r--r--org.eclipse.mylyn.reviews.connector.feature/build.properties14
-rw-r--r--org.eclipse.mylyn.reviews.connector.feature/epl-v10.html328
-rw-r--r--org.eclipse.mylyn.reviews.connector.feature/feature.properties138
-rw-r--r--org.eclipse.mylyn.reviews.connector.feature/feature.xml45
-rw-r--r--org.eclipse.mylyn.reviews.connector.feature/license.html108
-rw-r--r--org.eclipse.mylyn.reviews.connector.feature/pom.xml13
-rw-r--r--org.eclipse.mylyn.reviews.connector.tests/.classpath14
-rw-r--r--org.eclipse.mylyn.reviews.connector.tests/.project34
-rw-r--r--org.eclipse.mylyn.reviews.connector.tests/.settings/org.eclipse.core.runtime.prefs2
-rw-r--r--org.eclipse.mylyn.reviews.connector.tests/.settings/org.eclipse.jdt.core.prefs357
-rw-r--r--org.eclipse.mylyn.reviews.connector.tests/.settings/org.eclipse.jdt.ui.prefs63
-rw-r--r--org.eclipse.mylyn.reviews.connector.tests/.settings/org.eclipse.ltk.core.refactoring.prefs3
-rw-r--r--org.eclipse.mylyn.reviews.connector.tests/.settings/org.eclipse.mylyn.tasks.ui.prefs4
-rw-r--r--org.eclipse.mylyn.reviews.connector.tests/.settings/org.eclipse.mylyn.team.ui.prefs2
-rw-r--r--org.eclipse.mylyn.reviews.connector.tests/.settings/org.eclipse.pde.prefs18
-rw-r--r--org.eclipse.mylyn.reviews.connector.tests/META-INF/MANIFEST.MF19
-rw-r--r--org.eclipse.mylyn.reviews.connector.tests/about.html27
-rw-r--r--org.eclipse.mylyn.reviews.connector.tests/build.properties7
-rw-r--r--org.eclipse.mylyn.reviews.connector.tests/pom.xml22
-rw-r--r--org.eclipse.mylyn.reviews.connector.tests/src/org/eclipse/mylyn/reviews/connector/EmfBasicConnectorTest.java117
-rw-r--r--org.eclipse.mylyn.reviews.connector.tests/src/org/eclipse/mylyn/reviews/connector/EmfTaskSchemaTest.java70
-rw-r--r--org.eclipse.mylyn.reviews.connector.tests/src/org/eclipse/mylyn/reviews/connector/query/QueryOperationTest.java29
-rw-r--r--org.eclipse.mylyn.reviews.connector.tests/src/org/eclipse/mylyn/reviews/connector/support/BasicTestTaskSchema.java29
-rw-r--r--org.eclipse.mylyn.reviews.connector.tests/src/org/eclipse/mylyn/reviews/connector/support/EmfTestConnector.java84
-rw-r--r--org.eclipse.mylyn.reviews.connector.tests/src/org/eclipse/mylyn/reviews/connector/support/MappedTestTaskSchema.java31
-rw-r--r--org.eclipse.mylyn.reviews.connector.tests/testdata/Ecore.ecore522
-rw-r--r--org.eclipse.mylyn.reviews.connector.tests/testdata/Example.emftasks6
-rw-r--r--org.eclipse.mylyn.reviews.connector.tests/testdata/ExampleCopy.emftasks6
-rw-r--r--org.eclipse.mylyn.reviews.connector.tests/testdata/ExampleEncoding.emftasks4
-rw-r--r--org.eclipse.mylyn.reviews.connector.tests/testdata/ExampleModified.emftasks6
-rw-r--r--org.eclipse.mylyn.reviews.connector.tests/testdata/ExampleWorkspace.emftasks9
-rw-r--r--org.eclipse.mylyn.reviews.connector.ui/.classpath7
-rw-r--r--org.eclipse.mylyn.reviews.connector.ui/.project34
-rw-r--r--org.eclipse.mylyn.reviews.connector.ui/.settings/.api_filters12
-rw-r--r--org.eclipse.mylyn.reviews.connector.ui/.settings/org.eclipse.core.runtime.prefs2
-rw-r--r--org.eclipse.mylyn.reviews.connector.ui/.settings/org.eclipse.jdt.core.prefs353
-rw-r--r--org.eclipse.mylyn.reviews.connector.ui/.settings/org.eclipse.jdt.ui.prefs63
-rw-r--r--org.eclipse.mylyn.reviews.connector.ui/.settings/org.eclipse.ltk.core.refactoring.prefs3
-rw-r--r--org.eclipse.mylyn.reviews.connector.ui/.settings/org.eclipse.mylyn.tasks.ui.prefs4
-rw-r--r--org.eclipse.mylyn.reviews.connector.ui/.settings/org.eclipse.mylyn.team.ui.prefs2
-rw-r--r--org.eclipse.mylyn.reviews.connector.ui/.settings/org.eclipse.pde.prefs18
-rw-r--r--org.eclipse.mylyn.reviews.connector.ui/META-INF/MANIFEST.MF30
-rw-r--r--org.eclipse.mylyn.reviews.connector.ui/about.html27
-rw-r--r--org.eclipse.mylyn.reviews.connector.ui/build.properties7
-rw-r--r--org.eclipse.mylyn.reviews.connector.ui/icons/obj16/Ecore.pngbin0 -> 207 bytes
-rw-r--r--org.eclipse.mylyn.reviews.connector.ui/icons/obj16/EcoreOverlay.pngbin0 -> 2164 bytes
-rw-r--r--org.eclipse.mylyn.reviews.connector.ui/pom.xml29
-rw-r--r--org.eclipse.mylyn.reviews.connector.ui/src/org/eclipse/mylyn/internal/reviews/connector/ui/EmfUiPlugin.java72
-rw-r--r--org.eclipse.mylyn.reviews.connector.ui/src/org/eclipse/mylyn/reviews/connector/ui/AbstractEmfConnectorUi.java76
-rw-r--r--org.eclipse.mylyn.reviews.connector.ui/src/org/eclipse/mylyn/reviews/connector/ui/EmfImages.java47
-rw-r--r--org.eclipse.mylyn.reviews.connector.ui/src/org/eclipse/mylyn/reviews/connector/ui/EmfRepositorySettingsPage.java410
-rw-r--r--org.eclipse.mylyn.reviews.connector.ui/src/org/eclipse/mylyn/reviews/connector/ui/EmfUrlHandler.java45
-rw-r--r--org.eclipse.mylyn.reviews.connector.ui/src/org/eclipse/mylyn/reviews/connector/ui/wizards/EmfRepositoryQueryPage.java598
-rw-r--r--org.eclipse.mylyn.reviews.connector.ui/src/org/eclipse/mylyn/reviews/connector/ui/wizards/Messages.java27
-rw-r--r--org.eclipse.mylyn.reviews.connector.ui/src/org/eclipse/mylyn/reviews/connector/ui/wizards/messages.properties12
-rw-r--r--org.eclipse.mylyn.reviews.connector/.classpath7
-rw-r--r--org.eclipse.mylyn.reviews.connector/.project34
-rw-r--r--org.eclipse.mylyn.reviews.connector/.settings/org.eclipse.core.runtime.prefs2
-rw-r--r--org.eclipse.mylyn.reviews.connector/.settings/org.eclipse.jdt.core.prefs353
-rw-r--r--org.eclipse.mylyn.reviews.connector/.settings/org.eclipse.jdt.ui.prefs63
-rw-r--r--org.eclipse.mylyn.reviews.connector/.settings/org.eclipse.ltk.core.refactoring.prefs3
-rw-r--r--org.eclipse.mylyn.reviews.connector/.settings/org.eclipse.mylyn.tasks.ui.prefs4
-rw-r--r--org.eclipse.mylyn.reviews.connector/.settings/org.eclipse.mylyn.team.ui.prefs2
-rw-r--r--org.eclipse.mylyn.reviews.connector/.settings/org.eclipse.pde.prefs18
-rw-r--r--org.eclipse.mylyn.reviews.connector/META-INF/MANIFEST.MF20
-rw-r--r--org.eclipse.mylyn.reviews.connector/about.html27
-rw-r--r--org.eclipse.mylyn.reviews.connector/build.properties16
-rw-r--r--org.eclipse.mylyn.reviews.connector/pom.xml29
-rw-r--r--org.eclipse.mylyn.reviews.connector/src/org/eclipse/mylyn/internal/reviews/connector/EmfCorePlugin.java69
-rw-r--r--org.eclipse.mylyn.reviews.connector/src/org/eclipse/mylyn/reviews/connector/AbstractEmfConnector.java573
-rw-r--r--org.eclipse.mylyn.reviews.connector/src/org/eclipse/mylyn/reviews/connector/EmfAttributeMapper.java148
-rw-r--r--org.eclipse.mylyn.reviews.connector/src/org/eclipse/mylyn/reviews/connector/EmfConfiguration.java37
-rw-r--r--org.eclipse.mylyn.reviews.connector/src/org/eclipse/mylyn/reviews/connector/EmfTaskSchema.java252
-rw-r--r--org.eclipse.mylyn.reviews.connector/src/org/eclipse/mylyn/reviews/connector/GenericEmfConnector.java47
-rw-r--r--org.eclipse.mylyn.reviews.connector/src/org/eclipse/mylyn/reviews/connector/client/EmfClient.java213
-rw-r--r--org.eclipse.mylyn.reviews.connector/src/org/eclipse/mylyn/reviews/connector/query/EmfQueryEngine.java106
-rw-r--r--org.eclipse.mylyn.reviews.connector/src/org/eclipse/mylyn/reviews/connector/query/Messages.java95
-rw-r--r--org.eclipse.mylyn.reviews.connector/src/org/eclipse/mylyn/reviews/connector/query/QueryClause.java48
-rw-r--r--org.eclipse.mylyn.reviews.connector/src/org/eclipse/mylyn/reviews/connector/query/QueryException.java21
-rw-r--r--org.eclipse.mylyn.reviews.connector/src/org/eclipse/mylyn/reviews/connector/query/QueryOperation.java97
-rw-r--r--org.eclipse.mylyn.reviews.connector/src/org/eclipse/mylyn/reviews/connector/query/SimpleQueryEngine.java141
-rw-r--r--org.eclipse.mylyn.reviews.connector/src/org/eclipse/mylyn/reviews/connector/query/messages.properties46
-rw-r--r--pom.xml9
87 files changed, 6509 insertions, 5 deletions
diff --git a/org.eclipse.mylyn.reviews.connector.feature/.project b/org.eclipse.mylyn.reviews.connector.feature/.project
new file mode 100644
index 0000000..fdcba13
--- /dev/null
+++ b/org.eclipse.mylyn.reviews.connector.feature/.project
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>org.eclipse.mylyn.reviews.connector-feature</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.pde.FeatureBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.pde.FeatureNature</nature>
+ </natures>
+</projectDescription>
diff --git a/org.eclipse.mylyn.reviews.connector.feature/.settings/org.eclipse.core.runtime.prefs b/org.eclipse.mylyn.reviews.connector.feature/.settings/org.eclipse.core.runtime.prefs
new file mode 100644
index 0000000..5a0ad22
--- /dev/null
+++ b/org.eclipse.mylyn.reviews.connector.feature/.settings/org.eclipse.core.runtime.prefs
@@ -0,0 +1,2 @@
+eclipse.preferences.version=1
+line.separator=\n
diff --git a/org.eclipse.mylyn.reviews.connector.feature/.settings/org.eclipse.mylyn.tasks.ui.prefs b/org.eclipse.mylyn.reviews.connector.feature/.settings/org.eclipse.mylyn.tasks.ui.prefs
new file mode 100644
index 0000000..47ada17
--- /dev/null
+++ b/org.eclipse.mylyn.reviews.connector.feature/.settings/org.eclipse.mylyn.tasks.ui.prefs
@@ -0,0 +1,4 @@
+#Thu Dec 20 14:12:59 PST 2007
+eclipse.preferences.version=1
+project.repository.kind=bugzilla
+project.repository.url=https\://bugs.eclipse.org/bugs
diff --git a/org.eclipse.mylyn.reviews.connector.feature/.settings/org.eclipse.mylyn.team.ui.prefs b/org.eclipse.mylyn.reviews.connector.feature/.settings/org.eclipse.mylyn.team.ui.prefs
new file mode 100644
index 0000000..10d0afb
--- /dev/null
+++ b/org.eclipse.mylyn.reviews.connector.feature/.settings/org.eclipse.mylyn.team.ui.prefs
@@ -0,0 +1,2 @@
+commit.comment.template=${task.key}\: ${task.description}\n\nTask-Url\: ${task.url}
+eclipse.preferences.version=1
diff --git a/org.eclipse.mylyn.reviews.connector.feature/build.properties b/org.eclipse.mylyn.reviews.connector.feature/build.properties
new file mode 100644
index 0000000..8e3732e
--- /dev/null
+++ b/org.eclipse.mylyn.reviews.connector.feature/build.properties
@@ -0,0 +1,14 @@
+###############################################################################
+# Copyright (c) 2009, 2010 Tasktop Technologies and others.
+# 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:
+# Tasktop Technologies - initial API and implementation
+###############################################################################
+bin.includes = feature.properties,\
+ feature.xml,\
+ epl-v10.html,\
+ license.html
diff --git a/org.eclipse.mylyn.reviews.connector.feature/epl-v10.html b/org.eclipse.mylyn.reviews.connector.feature/epl-v10.html
new file mode 100644
index 0000000..ed4b196
--- /dev/null
+++ b/org.eclipse.mylyn.reviews.connector.feature/epl-v10.html
@@ -0,0 +1,328 @@
+<html xmlns:o="urn:schemas-microsoft-com:office:office"
+xmlns:w="urn:schemas-microsoft-com:office:word"
+xmlns="http://www.w3.org/TR/REC-html40">
+
+<head>
+<meta http-equiv=Content-Type content="text/html; charset=windows-1252">
+<meta name=ProgId content=Word.Document>
+<meta name=Generator content="Microsoft Word 9">
+<meta name=Originator content="Microsoft Word 9">
+<link rel=File-List
+href="./Eclipse%20EPL%202003_11_10%20Final_files/filelist.xml">
+<title>Eclipse Public License - Version 1.0</title>
+<!--[if gte mso 9]><xml>
+ <o:DocumentProperties>
+ <o:Revision>2</o:Revision>
+ <o:TotalTime>3</o:TotalTime>
+ <o:Created>2004-03-05T23:03:00Z</o:Created>
+ <o:LastSaved>2004-03-05T23:03:00Z</o:LastSaved>
+ <o:Pages>4</o:Pages>
+ <o:Words>1626</o:Words>
+ <o:Characters>9270</o:Characters>
+ <o:Lines>77</o:Lines>
+ <o:Paragraphs>18</o:Paragraphs>
+ <o:CharactersWithSpaces>11384</o:CharactersWithSpaces>
+ <o:Version>9.4402</o:Version>
+ </o:DocumentProperties>
+</xml><![endif]--><!--[if gte mso 9]><xml>
+ <w:WordDocument>
+ <w:TrackRevisions/>
+ </w:WordDocument>
+</xml><![endif]-->
+<style>
+<!--
+ /* Font Definitions */
+@font-face
+ {font-family:Tahoma;
+ panose-1:2 11 6 4 3 5 4 4 2 4;
+ mso-font-charset:0;
+ mso-generic-font-family:swiss;
+ mso-font-pitch:variable;
+ mso-font-signature:553679495 -2147483648 8 0 66047 0;}
+ /* Style Definitions */
+p.MsoNormal, li.MsoNormal, div.MsoNormal
+ {mso-style-parent:"";
+ margin:0in;
+ margin-bottom:.0001pt;
+ mso-pagination:widow-orphan;
+ font-size:12.0pt;
+ font-family:"Times New Roman";
+ mso-fareast-font-family:"Times New Roman";}
+p
+ {margin-right:0in;
+ mso-margin-top-alt:auto;
+ mso-margin-bottom-alt:auto;
+ margin-left:0in;
+ mso-pagination:widow-orphan;
+ font-size:12.0pt;
+ font-family:"Times New Roman";
+ mso-fareast-font-family:"Times New Roman";}
+p.BalloonText, li.BalloonText, div.BalloonText
+ {mso-style-name:"Balloon Text";
+ margin:0in;
+ margin-bottom:.0001pt;
+ mso-pagination:widow-orphan;
+ font-size:8.0pt;
+ font-family:Tahoma;
+ mso-fareast-font-family:"Times New Roman";}
+@page Section1
+ {size:8.5in 11.0in;
+ margin:1.0in 1.25in 1.0in 1.25in;
+ mso-header-margin:.5in;
+ mso-footer-margin:.5in;
+ mso-paper-source:0;}
+div.Section1
+ {page:Section1;}
+-->
+</style>
+</head>
+
+<body lang=EN-US style='tab-interval:.5in'>
+
+<div class=Section1>
+
+<p align=center style='text-align:center'><b>Eclipse Public License - v 1.0</b>
+</p>
+
+<p><span style='font-size:10.0pt'>THE ACCOMPANYING PROGRAM IS PROVIDED UNDER
+THE TERMS OF THIS ECLIPSE PUBLIC LICENSE (&quot;AGREEMENT&quot;). ANY USE,
+REPRODUCTION OR DISTRIBUTION OF THE PROGRAM CONSTITUTES RECIPIENT'S ACCEPTANCE
+OF THIS AGREEMENT.</span> </p>
+
+<p><b><span style='font-size:10.0pt'>1. DEFINITIONS</span></b> </p>
+
+<p><span style='font-size:10.0pt'>&quot;Contribution&quot; means:</span> </p>
+
+<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>a)
+in the case of the initial Contributor, the initial code and documentation
+distributed under this Agreement, and<br clear=left>
+b) in the case of each subsequent Contributor:</span></p>
+
+<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>i)
+changes to the Program, and</span></p>
+
+<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>ii)
+additions to the Program;</span></p>
+
+<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>where
+such changes and/or additions to the Program originate from and are distributed
+by that particular Contributor. A Contribution 'originates' from a Contributor
+if it was added to the Program by such Contributor itself or anyone acting on
+such Contributor's behalf. Contributions do not include additions to the
+Program which: (i) are separate modules of software distributed in conjunction
+with the Program under their own license agreement, and (ii) are not derivative
+works of the Program. </span></p>
+
+<p><span style='font-size:10.0pt'>&quot;Contributor&quot; means any person or
+entity that distributes the Program.</span> </p>
+
+<p><span style='font-size:10.0pt'>&quot;Licensed Patents &quot; mean patent
+claims licensable by a Contributor which are necessarily infringed by the use
+or sale of its Contribution alone or when combined with the Program. </span></p>
+
+<p><span style='font-size:10.0pt'>&quot;Program&quot; means the Contributions
+distributed in accordance with this Agreement.</span> </p>
+
+<p><span style='font-size:10.0pt'>&quot;Recipient&quot; means anyone who
+receives the Program under this Agreement, including all Contributors.</span> </p>
+
+<p><b><span style='font-size:10.0pt'>2. GRANT OF RIGHTS</span></b> </p>
+
+<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>a)
+Subject to the terms of this Agreement, each Contributor hereby grants Recipient
+a non-exclusive, worldwide, royalty-free copyright license to<span
+style='color:red'> </span>reproduce, prepare derivative works of, publicly
+display, publicly perform, distribute and sublicense the Contribution of such
+Contributor, if any, and such derivative works, in source code and object code
+form.</span></p>
+
+<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>b)
+Subject to the terms of this Agreement, each Contributor hereby grants
+Recipient a non-exclusive, worldwide,<span style='color:green'> </span>royalty-free
+patent license under Licensed Patents to make, use, sell, offer to sell, import
+and otherwise transfer the Contribution of such Contributor, if any, in source
+code and object code form. This patent license shall apply to the combination
+of the Contribution and the Program if, at the time the Contribution is added
+by the Contributor, such addition of the Contribution causes such combination
+to be covered by the Licensed Patents. The patent license shall not apply to
+any other combinations which include the Contribution. No hardware per se is
+licensed hereunder. </span></p>
+
+<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>c)
+Recipient understands that although each Contributor grants the licenses to its
+Contributions set forth herein, no assurances are provided by any Contributor
+that the Program does not infringe the patent or other intellectual property
+rights of any other entity. Each Contributor disclaims any liability to Recipient
+for claims brought by any other entity based on infringement of intellectual
+property rights or otherwise. As a condition to exercising the rights and
+licenses granted hereunder, each Recipient hereby assumes sole responsibility
+to secure any other intellectual property rights needed, if any. For example,
+if a third party patent license is required to allow Recipient to distribute
+the Program, it is Recipient's responsibility to acquire that license before
+distributing the Program.</span></p>
+
+<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>d)
+Each Contributor represents that to its knowledge it has sufficient copyright
+rights in its Contribution, if any, to grant the copyright license set forth in
+this Agreement. </span></p>
+
+<p><b><span style='font-size:10.0pt'>3. REQUIREMENTS</span></b> </p>
+
+<p><span style='font-size:10.0pt'>A Contributor may choose to distribute the
+Program in object code form under its own license agreement, provided that:</span>
+</p>
+
+<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>a)
+it complies with the terms and conditions of this Agreement; and</span></p>
+
+<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>b)
+its license agreement:</span></p>
+
+<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>i)
+effectively disclaims on behalf of all Contributors all warranties and
+conditions, express and implied, including warranties or conditions of title
+and non-infringement, and implied warranties or conditions of merchantability
+and fitness for a particular purpose; </span></p>
+
+<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>ii)
+effectively excludes on behalf of all Contributors all liability for damages,
+including direct, indirect, special, incidental and consequential damages, such
+as lost profits; </span></p>
+
+<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>iii)
+states that any provisions which differ from this Agreement are offered by that
+Contributor alone and not by any other party; and</span></p>
+
+<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>iv)
+states that source code for the Program is available from such Contributor, and
+informs licensees how to obtain it in a reasonable manner on or through a
+medium customarily used for software exchange.<span style='color:blue'> </span></span></p>
+
+<p><span style='font-size:10.0pt'>When the Program is made available in source
+code form:</span> </p>
+
+<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>a)
+it must be made available under this Agreement; and </span></p>
+
+<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>b) a
+copy of this Agreement must be included with each copy of the Program. </span></p>
+
+<p><span style='font-size:10.0pt'>Contributors may not remove or alter any
+copyright notices contained within the Program. </span></p>
+
+<p><span style='font-size:10.0pt'>Each Contributor must identify itself as the
+originator of its Contribution, if any, in a manner that reasonably allows
+subsequent Recipients to identify the originator of the Contribution. </span></p>
+
+<p><b><span style='font-size:10.0pt'>4. COMMERCIAL DISTRIBUTION</span></b> </p>
+
+<p><span style='font-size:10.0pt'>Commercial distributors of software may
+accept certain responsibilities with respect to end users, business partners
+and the like. While this license is intended to facilitate the commercial use
+of the Program, the Contributor who includes the Program in a commercial
+product offering should do so in a manner which does not create potential
+liability for other Contributors. Therefore, if a Contributor includes the
+Program in a commercial product offering, such Contributor (&quot;Commercial
+Contributor&quot;) hereby agrees to defend and indemnify every other
+Contributor (&quot;Indemnified Contributor&quot;) against any losses, damages and
+costs (collectively &quot;Losses&quot;) arising from claims, lawsuits and other
+legal actions brought by a third party against the Indemnified Contributor to
+the extent caused by the acts or omissions of such Commercial Contributor in
+connection with its distribution of the Program in a commercial product
+offering. The obligations in this section do not apply to any claims or Losses
+relating to any actual or alleged intellectual property infringement. In order
+to qualify, an Indemnified Contributor must: a) promptly notify the Commercial
+Contributor in writing of such claim, and b) allow the Commercial Contributor
+to control, and cooperate with the Commercial Contributor in, the defense and
+any related settlement negotiations. The Indemnified Contributor may participate
+in any such claim at its own expense.</span> </p>
+
+<p><span style='font-size:10.0pt'>For example, a Contributor might include the
+Program in a commercial product offering, Product X. That Contributor is then a
+Commercial Contributor. If that Commercial Contributor then makes performance
+claims, or offers warranties related to Product X, those performance claims and
+warranties are such Commercial Contributor's responsibility alone. Under this
+section, the Commercial Contributor would have to defend claims against the
+other Contributors related to those performance claims and warranties, and if a
+court requires any other Contributor to pay any damages as a result, the
+Commercial Contributor must pay those damages.</span> </p>
+
+<p><b><span style='font-size:10.0pt'>5. NO WARRANTY</span></b> </p>
+
+<p><span style='font-size:10.0pt'>EXCEPT AS EXPRESSLY SET FORTH IN THIS
+AGREEMENT, THE PROGRAM IS PROVIDED ON AN &quot;AS IS&quot; BASIS, WITHOUT
+WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED INCLUDING,
+WITHOUT LIMITATION, ANY WARRANTIES OR CONDITIONS OF TITLE, NON-INFRINGEMENT,
+MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Each Recipient is solely
+responsible for determining the appropriateness of using and distributing the
+Program and assumes all risks associated with its exercise of rights under this
+Agreement , including but not limited to the risks and costs of program errors,
+compliance with applicable laws, damage to or loss of data, programs or
+equipment, and unavailability or interruption of operations. </span></p>
+
+<p><b><span style='font-size:10.0pt'>6. DISCLAIMER OF LIABILITY</span></b> </p>
+
+<p><span style='font-size:10.0pt'>EXCEPT AS EXPRESSLY SET FORTH IN THIS
+AGREEMENT, NEITHER RECIPIENT NOR ANY CONTRIBUTORS SHALL HAVE ANY LIABILITY FOR
+ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+(INCLUDING WITHOUT LIMITATION LOST PROFITS), HOWEVER CAUSED AND ON ANY THEORY
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OR DISTRIBUTION OF
+THE PROGRAM OR THE EXERCISE OF ANY RIGHTS GRANTED HEREUNDER, EVEN IF ADVISED OF
+THE POSSIBILITY OF SUCH DAMAGES.</span> </p>
+
+<p><b><span style='font-size:10.0pt'>7. GENERAL</span></b> </p>
+
+<p><span style='font-size:10.0pt'>If any provision of this Agreement is invalid
+or unenforceable under applicable law, it shall not affect the validity or
+enforceability of the remainder of the terms of this Agreement, and without
+further action by the parties hereto, such provision shall be reformed to the
+minimum extent necessary to make such provision valid and enforceable.</span> </p>
+
+<p><span style='font-size:10.0pt'>If Recipient institutes patent litigation
+against any entity (including a cross-claim or counterclaim in a lawsuit)
+alleging that the Program itself (excluding combinations of the Program with
+other software or hardware) infringes such Recipient's patent(s), then such
+Recipient's rights granted under Section 2(b) shall terminate as of the date
+such litigation is filed. </span></p>
+
+<p><span style='font-size:10.0pt'>All Recipient's rights under this Agreement
+shall terminate if it fails to comply with any of the material terms or
+conditions of this Agreement and does not cure such failure in a reasonable
+period of time after becoming aware of such noncompliance. If all Recipient's
+rights under this Agreement terminate, Recipient agrees to cease use and
+distribution of the Program as soon as reasonably practicable. However,
+Recipient's obligations under this Agreement and any licenses granted by
+Recipient relating to the Program shall continue and survive. </span></p>
+
+<p><span style='font-size:10.0pt'>Everyone is permitted to copy and distribute
+copies of this Agreement, but in order to avoid inconsistency the Agreement is
+copyrighted and may only be modified in the following manner. The Agreement
+Steward reserves the right to publish new versions (including revisions) of
+this Agreement from time to time. No one other than the Agreement Steward has
+the right to modify this Agreement. The Eclipse Foundation is the initial
+Agreement Steward. The Eclipse Foundation may assign the responsibility to
+serve as the Agreement Steward to a suitable separate entity. Each new version
+of the Agreement will be given a distinguishing version number. The Program
+(including Contributions) may always be distributed subject to the version of
+the Agreement under which it was received. In addition, after a new version of
+the Agreement is published, Contributor may elect to distribute the Program
+(including its Contributions) under the new version. Except as expressly stated
+in Sections 2(a) and 2(b) above, Recipient receives no rights or licenses to
+the intellectual property of any Contributor under this Agreement, whether
+expressly, by implication, estoppel or otherwise. All rights in the Program not
+expressly granted under this Agreement are reserved.</span> </p>
+
+<p><span style='font-size:10.0pt'>This Agreement is governed by the laws of the
+State of New York and the intellectual property laws of the United States of
+America. No party to this Agreement will bring a legal action under this
+Agreement more than one year after the cause of action arose. Each party waives
+its rights to a jury trial in any resulting litigation.</span> </p>
+
+<p class=MsoNormal><![if !supportEmptyParas]>&nbsp;<![endif]><o:p></o:p></p>
+
+</div>
+
+</body>
+
+</html> \ No newline at end of file
diff --git a/org.eclipse.mylyn.reviews.connector.feature/feature.properties b/org.eclipse.mylyn.reviews.connector.feature/feature.properties
new file mode 100644
index 0000000..18da9f5
--- /dev/null
+++ b/org.eclipse.mylyn.reviews.connector.feature/feature.properties
@@ -0,0 +1,138 @@
+###############################################################################
+# Copyright (c) 2011 Tasktop Technologies and others.
+# 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:
+# Tasktop Technologies - initial API and implementation
+###############################################################################
+featureName=Mylyn Emf Tasks Connector
+description=Provides core support for Emf model-based Mylyn connectors.
+providerName=Eclipse Mylyn
+copyright=Copyright (c) 2012 Tasktop Technologies and others. All rights reserved.
+license=\
+Eclipse Foundation Software User Agreement\n\
+February 1, 2011\n\
+\n\
+Usage Of Content\n\
+\n\
+THE ECLIPSE FOUNDATION MAKES AVAILABLE SOFTWARE, DOCUMENTATION, INFORMATION AND/OR\n\
+OTHER MATERIALS FOR OPEN SOURCE PROJECTS (COLLECTIVELY "CONTENT").\n\
+USE OF THE CONTENT IS GOVERNED BY THE TERMS AND CONDITIONS OF THIS\n\
+AGREEMENT AND/OR THE TERMS AND CONDITIONS OF LICENSE AGREEMENTS OR\n\
+NOTICES INDICATED OR REFERENCED BELOW. BY USING THE CONTENT, YOU\n\
+AGREE THAT YOUR USE OF THE CONTENT IS GOVERNED BY THIS AGREEMENT\n\
+AND/OR THE TERMS AND CONDITIONS OF ANY APPLICABLE LICENSE AGREEMENTS\n\
+OR NOTICES INDICATED OR REFERENCED BELOW. IF YOU DO NOT AGREE TO THE\n\
+TERMS AND CONDITIONS OF THIS AGREEMENT AND THE TERMS AND CONDITIONS\n\
+OF ANY APPLICABLE LICENSE AGREEMENTS OR NOTICES INDICATED OR REFERENCED\n\
+BELOW, THEN YOU MAY NOT USE THE CONTENT.\n\
+\n\
+Applicable Licenses\n\
+\n\
+Unless otherwise indicated, all Content made available by the\n\
+Eclipse Foundation is provided to you under the terms and conditions of\n\
+the Eclipse Public License Version 1.0 ("EPL"). A copy of the EPL is\n\
+provided with this Content and is also available at http://www.eclipse.org/legal/epl-v10.html.\n\
+For purposes of the EPL, "Program" will mean the Content.\n\
+\n\
+Content includes, but is not limited to, source code, object code,\n\
+documentation and other files maintained in the Eclipse Foundation source code\n\
+repository ("Repository") in software modules ("Modules") and made available\n\
+as downloadable archives ("Downloads").\n\
+\n\
+ - Content may be structured and packaged into modules to facilitate delivering,\n\
+ extending, and upgrading the Content. Typical modules may include plug-ins ("Plug-ins"),\n\
+ plug-in fragments ("Fragments"), and features ("Features").\n\
+ - Each Plug-in or Fragment may be packaged as a sub-directory or JAR (Java(TM) ARchive)\n\
+ in a directory named "plugins".\n\
+ - A Feature is a bundle of one or more Plug-ins and/or Fragments and associated material.\n\
+ Each Feature may be packaged as a sub-directory in a directory named "features".\n\
+ Within a Feature, files named "feature.xml" may contain a list of the names and version\n\
+ numbers of the Plug-ins and/or Fragments associated with that Feature.\n\
+ - Features may also include other Features ("Included Features"). Within a Feature, files\n\
+ named "feature.xml" may contain a list of the names and version numbers of Included Features.\n\
+\n\
+The terms and conditions governing Plug-ins and Fragments should be\n\
+contained in files named "about.html" ("Abouts"). The terms and\n\
+conditions governing Features and Included Features should be contained\n\
+in files named "license.html" ("Feature Licenses"). Abouts and Feature\n\
+Licenses may be located in any directory of a Download or Module\n\
+including, but not limited to the following locations:\n\
+\n\
+ - The top-level (root) directory\n\
+ - Plug-in and Fragment directories\n\
+ - Inside Plug-ins and Fragments packaged as JARs\n\
+ - Sub-directories of the directory named "src" of certain Plug-ins\n\
+ - Feature directories\n\
+\n\
+Note: if a Feature made available by the Eclipse Foundation is installed using the\n\
+Provisioning Technology (as defined below), you must agree to a license ("Feature \n\
+Update License") during the installation process. If the Feature contains\n\
+Included Features, the Feature Update License should either provide you\n\
+with the terms and conditions governing the Included Features or inform\n\
+you where you can locate them. Feature Update Licenses may be found in\n\
+the "license" property of files named "feature.properties" found within a Feature.\n\
+Such Abouts, Feature Licenses, and Feature Update Licenses contain the\n\
+terms and conditions (or references to such terms and conditions) that\n\
+govern your use of the associated Content in that directory.\n\
+\n\
+THE ABOUTS, FEATURE LICENSES, AND FEATURE UPDATE LICENSES MAY REFER\n\
+TO THE EPL OR OTHER LICENSE AGREEMENTS, NOTICES OR TERMS AND CONDITIONS.\n\
+SOME OF THESE OTHER LICENSE AGREEMENTS MAY INCLUDE (BUT ARE NOT LIMITED TO):\n\
+\n\
+ - Eclipse Distribution License Version 1.0 (available at http://www.eclipse.org/licenses/edl-v1.0.html)\n\
+ - Common Public License Version 1.0 (available at http://www.eclipse.org/legal/cpl-v10.html)\n\
+ - Apache Software License 1.1 (available at http://www.apache.org/licenses/LICENSE)\n\
+ - Apache Software License 2.0 (available at http://www.apache.org/licenses/LICENSE-2.0)\n\
+ - Metro Link Public License 1.00 (available at http://www.opengroup.org/openmotif/supporters/metrolink/license.html)\n\
+ - Mozilla Public License Version 1.1 (available at http://www.mozilla.org/MPL/MPL-1.1.html)\n\
+\n\
+IT IS YOUR OBLIGATION TO READ AND ACCEPT ALL SUCH TERMS AND CONDITIONS PRIOR\n\
+TO USE OF THE CONTENT. If no About, Feature License, or Feature Update License\n\
+is provided, please contact the Eclipse Foundation to determine what terms and conditions\n\
+govern that particular Content.\n\
+\n\
+\n\Use of Provisioning Technology\n\
+\n\
+The Eclipse Foundation makes available provisioning software, examples of which include,\n\
+but are not limited to, p2 and the Eclipse Update Manager ("Provisioning Technology") for\n\
+the purpose of allowing users to install software, documentation, information and/or\n\
+other materials (collectively "Installable Software"). This capability is provided with\n\
+the intent of allowing such users to install, extend and update Eclipse-based products.\n\
+Information about packaging Installable Software is available at\n\
+http://eclipse.org/equinox/p2/repository_packaging.html ("Specification").\n\
+\n\
+You may use Provisioning Technology to allow other parties to install Installable Software.\n\
+You shall be responsible for enabling the applicable license agreements relating to the\n\
+Installable Software to be presented to, and accepted by, the users of the Provisioning Technology\n\
+in accordance with the Specification. By using Provisioning Technology in such a manner and\n\
+making it available in accordance with the Specification, you further acknowledge your\n\
+agreement to, and the acquisition of all necessary rights to permit the following:\n\
+\n\
+ 1. A series of actions may occur ("Provisioning Process") in which a user may execute\n\
+ the Provisioning Technology on a machine ("Target Machine") with the intent of installing,\n\
+ extending or updating the functionality of an Eclipse-based product.\n\
+ 2. During the Provisioning Process, the Provisioning Technology may cause third party\n\
+ Installable Software or a portion thereof to be accessed and copied to the Target Machine.\n\
+ 3. Pursuant to the Specification, you will provide to the user the terms and conditions that\n\
+ govern the use of the Installable Software ("Installable Software Agreement") and such\n\
+ Installable Software Agreement shall be accessed from the Target Machine in accordance\n\
+ with the Specification. Such Installable Software Agreement must inform the user of the\n\
+ terms and conditions that govern the Installable Software and must solicit acceptance by\n\
+ the end user in the manner prescribed in such Installable Software Agreement. Upon such\n\
+ indication of agreement by the user, the provisioning Technology will complete installation\n\
+ of the Installable Software.\n\
+\n\
+Cryptography\n\
+\n\
+Content may contain encryption software. The country in which you are\n\
+currently may have restrictions on the import, possession, and use,\n\
+and/or re-export to another country, of encryption software. BEFORE\n\
+using any encryption software, please check the country's laws,\n\
+regulations and policies concerning the import, possession, or use, and\n\
+re-export of encryption software, to see if this is permitted.\n\
+\n\
+Java and all Java-based trademarks are trademarks of Oracle Corporation in the United States, other countries, or both.\n
diff --git a/org.eclipse.mylyn.reviews.connector.feature/feature.xml b/org.eclipse.mylyn.reviews.connector.feature/feature.xml
new file mode 100644
index 0000000..e2d0a60
--- /dev/null
+++ b/org.eclipse.mylyn.reviews.connector.feature/feature.xml
@@ -0,0 +1,45 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Copyright (c) 2011 Tasktop Technologies and others.
+ 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:
+ Tasktop Technologies - initial API and implementation
+ -->
+<feature
+ id="org.eclipse.mylyn.reviews.connector.feature"
+ label="%featureName"
+ version="0.13.0.qualifier"
+ provider-name="%providerName"
+ plugin="org.eclipse.mylyn.reviews.connector">
+
+ <description url="http://eclipse.org/mylyn/reviews">
+ %description
+ </description>
+
+ <copyright>
+ %copyright
+ </copyright>
+
+ <license url="license.html">
+ %license
+ </license>
+
+ <plugin
+ id="org.eclipse.mylyn.reviews.connector"
+ download-size="0"
+ install-size="0"
+ version="0.0.0"
+ unpack="false"/>
+
+ <plugin
+ id="org.eclipse.mylyn.reviews.connector.ui"
+ download-size="0"
+ install-size="0"
+ version="0.0.0"
+ unpack="false"/>
+
+</feature>
diff --git a/org.eclipse.mylyn.reviews.connector.feature/license.html b/org.eclipse.mylyn.reviews.connector.feature/license.html
new file mode 100644
index 0000000..f19c483
--- /dev/null
+++ b/org.eclipse.mylyn.reviews.connector.feature/license.html
@@ -0,0 +1,108 @@
+<?xml version="1.0" encoding="ISO-8859-1" ?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
+<title>Eclipse Foundation Software User Agreement</title>
+</head>
+
+<body lang="EN-US">
+<h2>Eclipse Foundation Software User Agreement</h2>
+<p>February 1, 2011</p>
+
+<h3>Usage Of Content</h3>
+
+<p>THE ECLIPSE FOUNDATION MAKES AVAILABLE SOFTWARE, DOCUMENTATION, INFORMATION AND/OR OTHER MATERIALS FOR OPEN SOURCE PROJECTS
+ (COLLECTIVELY &quot;CONTENT&quot;). USE OF THE CONTENT IS GOVERNED BY THE TERMS AND CONDITIONS OF THIS AGREEMENT AND/OR THE TERMS AND
+ CONDITIONS OF LICENSE AGREEMENTS OR NOTICES INDICATED OR REFERENCED BELOW. BY USING THE CONTENT, YOU AGREE THAT YOUR USE
+ OF THE CONTENT IS GOVERNED BY THIS AGREEMENT AND/OR THE TERMS AND CONDITIONS OF ANY APPLICABLE LICENSE AGREEMENTS OR
+ NOTICES INDICATED OR REFERENCED BELOW. IF YOU DO NOT AGREE TO THE TERMS AND CONDITIONS OF THIS AGREEMENT AND THE TERMS AND
+ CONDITIONS OF ANY APPLICABLE LICENSE AGREEMENTS OR NOTICES INDICATED OR REFERENCED BELOW, THEN YOU MAY NOT USE THE CONTENT.</p>
+
+<h3>Applicable Licenses</h3>
+
+<p>Unless otherwise indicated, all Content made available by the Eclipse Foundation is provided to you under the terms and conditions of the Eclipse Public License Version 1.0
+ (&quot;EPL&quot;). A copy of the EPL is provided with this Content and is also available at <a href="http://www.eclipse.org/legal/epl-v10.html">http://www.eclipse.org/legal/epl-v10.html</a>.
+ For purposes of the EPL, &quot;Program&quot; will mean the Content.</p>
+
+<p>Content includes, but is not limited to, source code, object code, documentation and other files maintained in the Eclipse Foundation source code
+ repository (&quot;Repository&quot;) in software modules (&quot;Modules&quot;) and made available as downloadable archives (&quot;Downloads&quot;).</p>
+
+<ul>
+ <li>Content may be structured and packaged into modules to facilitate delivering, extending, and upgrading the Content. Typical modules may include plug-ins (&quot;Plug-ins&quot;), plug-in fragments (&quot;Fragments&quot;), and features (&quot;Features&quot;).</li>
+ <li>Each Plug-in or Fragment may be packaged as a sub-directory or JAR (Java&trade; ARchive) in a directory named &quot;plugins&quot;.</li>
+ <li>A Feature is a bundle of one or more Plug-ins and/or Fragments and associated material. Each Feature may be packaged as a sub-directory in a directory named &quot;features&quot;. Within a Feature, files named &quot;feature.xml&quot; may contain a list of the names and version numbers of the Plug-ins
+ and/or Fragments associated with that Feature.</li>
+ <li>Features may also include other Features (&quot;Included Features&quot;). Within a Feature, files named &quot;feature.xml&quot; may contain a list of the names and version numbers of Included Features.</li>
+</ul>
+
+<p>The terms and conditions governing Plug-ins and Fragments should be contained in files named &quot;about.html&quot; (&quot;Abouts&quot;). The terms and conditions governing Features and
+Included Features should be contained in files named &quot;license.html&quot; (&quot;Feature Licenses&quot;). Abouts and Feature Licenses may be located in any directory of a Download or Module
+including, but not limited to the following locations:</p>
+
+<ul>
+ <li>The top-level (root) directory</li>
+ <li>Plug-in and Fragment directories</li>
+ <li>Inside Plug-ins and Fragments packaged as JARs</li>
+ <li>Sub-directories of the directory named &quot;src&quot; of certain Plug-ins</li>
+ <li>Feature directories</li>
+</ul>
+
+<p>Note: if a Feature made available by the Eclipse Foundation is installed using the Provisioning Technology (as defined below), you must agree to a license (&quot;Feature Update License&quot;) during the
+installation process. If the Feature contains Included Features, the Feature Update License should either provide you with the terms and conditions governing the Included Features or
+inform you where you can locate them. Feature Update Licenses may be found in the &quot;license&quot; property of files named &quot;feature.properties&quot; found within a Feature.
+Such Abouts, Feature Licenses, and Feature Update Licenses contain the terms and conditions (or references to such terms and conditions) that govern your use of the associated Content in
+that directory.</p>
+
+<p>THE ABOUTS, FEATURE LICENSES, AND FEATURE UPDATE LICENSES MAY REFER TO THE EPL OR OTHER LICENSE AGREEMENTS, NOTICES OR TERMS AND CONDITIONS. SOME OF THESE
+OTHER LICENSE AGREEMENTS MAY INCLUDE (BUT ARE NOT LIMITED TO):</p>
+
+<ul>
+ <li>Eclipse Distribution License Version 1.0 (available at <a href="http://www.eclipse.org/licenses/edl-v10.html">http://www.eclipse.org/licenses/edl-v1.0.html</a>)</li>
+ <li>Common Public License Version 1.0 (available at <a href="http://www.eclipse.org/legal/cpl-v10.html">http://www.eclipse.org/legal/cpl-v10.html</a>)</li>
+ <li>Apache Software License 1.1 (available at <a href="http://www.apache.org/licenses/LICENSE">http://www.apache.org/licenses/LICENSE</a>)</li>
+ <li>Apache Software License 2.0 (available at <a href="http://www.apache.org/licenses/LICENSE-2.0">http://www.apache.org/licenses/LICENSE-2.0</a>)</li>
+ <li>Metro Link Public License 1.00 (available at <a href="http://www.opengroup.org/openmotif/supporters/metrolink/license.html">http://www.opengroup.org/openmotif/supporters/metrolink/license.html</a>)</li>
+ <li>Mozilla Public License Version 1.1 (available at <a href="http://www.mozilla.org/MPL/MPL-1.1.html">http://www.mozilla.org/MPL/MPL-1.1.html</a>)</li>
+</ul>
+
+<p>IT IS YOUR OBLIGATION TO READ AND ACCEPT ALL SUCH TERMS AND CONDITIONS PRIOR TO USE OF THE CONTENT. If no About, Feature License, or Feature Update License is provided, please
+contact the Eclipse Foundation to determine what terms and conditions govern that particular Content.</p>
+
+
+<h3>Use of Provisioning Technology</h3>
+
+<p>The Eclipse Foundation makes available provisioning software, examples of which include, but are not limited to, p2 and the Eclipse
+ Update Manager (&quot;Provisioning Technology&quot;) for the purpose of allowing users to install software, documentation, information and/or
+ other materials (collectively &quot;Installable Software&quot;). This capability is provided with the intent of allowing such users to
+ install, extend and update Eclipse-based products. Information about packaging Installable Software is available at <a
+ href="http://eclipse.org/equinox/p2/repository_packaging.html">http://eclipse.org/equinox/p2/repository_packaging.html</a>
+ (&quot;Specification&quot;).</p>
+
+<p>You may use Provisioning Technology to allow other parties to install Installable Software. You shall be responsible for enabling the
+ applicable license agreements relating to the Installable Software to be presented to, and accepted by, the users of the Provisioning Technology
+ in accordance with the Specification. By using Provisioning Technology in such a manner and making it available in accordance with the
+ Specification, you further acknowledge your agreement to, and the acquisition of all necessary rights to permit the following:</p>
+
+<ol>
+ <li>A series of actions may occur (&quot;Provisioning Process&quot;) in which a user may execute the Provisioning Technology
+ on a machine (&quot;Target Machine&quot;) with the intent of installing, extending or updating the functionality of an Eclipse-based
+ product.</li>
+ <li>During the Provisioning Process, the Provisioning Technology may cause third party Installable Software or a portion thereof to be
+ accessed and copied to the Target Machine.</li>
+ <li>Pursuant to the Specification, you will provide to the user the terms and conditions that govern the use of the Installable
+ Software (&quot;Installable Software Agreement&quot;) and such Installable Software Agreement shall be accessed from the Target
+ Machine in accordance with the Specification. Such Installable Software Agreement must inform the user of the terms and conditions that govern
+ the Installable Software and must solicit acceptance by the end user in the manner prescribed in such Installable Software Agreement. Upon such
+ indication of agreement by the user, the provisioning Technology will complete installation of the Installable Software.</li>
+</ol>
+
+<h3>Cryptography</h3>
+
+<p>Content may contain encryption software. The country in which you are currently may have restrictions on the import, possession, and use, and/or re-export to
+ another country, of encryption software. BEFORE using any encryption software, please check the country's laws, regulations and policies concerning the import,
+ possession, or use, and re-export of encryption software, to see if this is permitted.</p>
+
+<p><small>Java and all Java-based trademarks are trademarks of Oracle Corporation in the United States, other countries, or both.</small></p>
+</body>
+</html>
diff --git a/org.eclipse.mylyn.reviews.connector.feature/pom.xml b/org.eclipse.mylyn.reviews.connector.feature/pom.xml
new file mode 100644
index 0000000..7756f71
--- /dev/null
+++ b/org.eclipse.mylyn.reviews.connector.feature/pom.xml
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
+ <modelVersion>4.0.0</modelVersion>
+ <parent>
+ <artifactId>org.eclipse.mylyn.reviews.r4e-parent</artifactId>
+ <groupId>org.eclipse.mylyn.reviews.r4e</groupId>
+ <version>0.13.0-SNAPSHOT</version>
+ </parent>
+ <artifactId>org.eclipse.mylyn.reviews.connector.feature</artifactId>
+ <version>0.13.0-SNAPSHOT</version>
+ <packaging>eclipse-feature</packaging>
+</project>
diff --git a/org.eclipse.mylyn.reviews.connector.tests/.classpath b/org.eclipse.mylyn.reviews.connector.tests/.classpath
new file mode 100644
index 0000000..a48380c
--- /dev/null
+++ b/org.eclipse.mylyn.reviews.connector.tests/.classpath
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/>
+ <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins">
+ <accessrules>
+ <accessrule kind="accessible" pattern="org/eclipse/mylyn/tasks/core/**"/>
+ <accessrule kind="accessible" pattern="org/eclipse/mylyn/tests/util/**"/>
+ <accessrule kind="accessible" pattern="org/eclipse/mylyn/internal/tasks/core/**"/>
+ <accessrule kind="accessible" pattern="org/eclipse/mylyn/internal/tasks/emf/connector/**"/>
+ </accessrules>
+ </classpathentry>
+ <classpathentry kind="src" path="src"/>
+ <classpathentry kind="output" path="bin"/>
+</classpath>
diff --git a/org.eclipse.mylyn.reviews.connector.tests/.project b/org.eclipse.mylyn.reviews.connector.tests/.project
new file mode 100644
index 0000000..a8e1484
--- /dev/null
+++ b/org.eclipse.mylyn.reviews.connector.tests/.project
@@ -0,0 +1,34 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>org.eclipse.mylyn.reviews.connector.tests</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.jdt.core.javabuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.pde.ManifestBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.pde.SchemaBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.pde.api.tools.apiAnalysisBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.pde.PluginNature</nature>
+ <nature>org.eclipse.jdt.core.javanature</nature>
+ <nature>org.eclipse.pde.api.tools.apiAnalysisNature</nature>
+ </natures>
+</projectDescription>
diff --git a/org.eclipse.mylyn.reviews.connector.tests/.settings/org.eclipse.core.runtime.prefs b/org.eclipse.mylyn.reviews.connector.tests/.settings/org.eclipse.core.runtime.prefs
new file mode 100644
index 0000000..5a0ad22
--- /dev/null
+++ b/org.eclipse.mylyn.reviews.connector.tests/.settings/org.eclipse.core.runtime.prefs
@@ -0,0 +1,2 @@
+eclipse.preferences.version=1
+line.separator=\n
diff --git a/org.eclipse.mylyn.reviews.connector.tests/.settings/org.eclipse.jdt.core.prefs b/org.eclipse.mylyn.reviews.connector.tests/.settings/org.eclipse.jdt.core.prefs
new file mode 100644
index 0000000..e6f2755
--- /dev/null
+++ b/org.eclipse.mylyn.reviews.connector.tests/.settings/org.eclipse.jdt.core.prefs
@@ -0,0 +1,357 @@
+#Wed Mar 30 23:08:12 CEST 2011
+eclipse.preferences.version=1
+org.eclipse.jdt.core.codeComplete.argumentPrefixes=
+org.eclipse.jdt.core.codeComplete.argumentSuffixes=
+org.eclipse.jdt.core.codeComplete.fieldPrefixes=
+org.eclipse.jdt.core.codeComplete.fieldSuffixes=
+org.eclipse.jdt.core.codeComplete.localPrefixes=
+org.eclipse.jdt.core.codeComplete.localSuffixes=
+org.eclipse.jdt.core.codeComplete.staticFieldPrefixes=
+org.eclipse.jdt.core.codeComplete.staticFieldSuffixes=
+org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6
+org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
+org.eclipse.jdt.core.compiler.compliance=1.6
+org.eclipse.jdt.core.compiler.debug.lineNumber=generate
+org.eclipse.jdt.core.compiler.debug.localVariable=generate
+org.eclipse.jdt.core.compiler.debug.sourceFile=generate
+org.eclipse.jdt.core.compiler.problem.annotationSuperInterface=warning
+org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
+org.eclipse.jdt.core.compiler.problem.autoboxing=ignore
+org.eclipse.jdt.core.compiler.problem.deprecation=warning
+org.eclipse.jdt.core.compiler.problem.deprecationInDeprecatedCode=disabled
+org.eclipse.jdt.core.compiler.problem.deprecationWhenOverridingDeprecatedMethod=enabled
+org.eclipse.jdt.core.compiler.problem.discouragedReference=warning
+org.eclipse.jdt.core.compiler.problem.emptyStatement=ignore
+org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
+org.eclipse.jdt.core.compiler.problem.fallthroughCase=ignore
+org.eclipse.jdt.core.compiler.problem.fatalOptionalError=enabled
+org.eclipse.jdt.core.compiler.problem.fieldHiding=ignore
+org.eclipse.jdt.core.compiler.problem.finalParameterBound=warning
+org.eclipse.jdt.core.compiler.problem.finallyBlockNotCompletingNormally=warning
+org.eclipse.jdt.core.compiler.problem.forbiddenReference=error
+org.eclipse.jdt.core.compiler.problem.hiddenCatchBlock=warning
+org.eclipse.jdt.core.compiler.problem.incompatibleNonInheritedInterfaceMethod=warning
+org.eclipse.jdt.core.compiler.problem.incompleteEnumSwitch=ignore
+org.eclipse.jdt.core.compiler.problem.indirectStaticAccess=ignore
+org.eclipse.jdt.core.compiler.problem.localVariableHiding=ignore
+org.eclipse.jdt.core.compiler.problem.methodWithConstructorName=warning
+org.eclipse.jdt.core.compiler.problem.missingDeprecatedAnnotation=ignore
+org.eclipse.jdt.core.compiler.problem.missingOverrideAnnotation=ignore
+org.eclipse.jdt.core.compiler.problem.missingSerialVersion=warning
+org.eclipse.jdt.core.compiler.problem.noEffectAssignment=warning
+org.eclipse.jdt.core.compiler.problem.noImplicitStringConversion=warning
+org.eclipse.jdt.core.compiler.problem.nonExternalizedStringLiteral=warning
+org.eclipse.jdt.core.compiler.problem.nullReference=error
+org.eclipse.jdt.core.compiler.problem.overridingPackageDefaultMethod=warning
+org.eclipse.jdt.core.compiler.problem.parameterAssignment=ignore
+org.eclipse.jdt.core.compiler.problem.possibleAccidentalBooleanAssignment=ignore
+org.eclipse.jdt.core.compiler.problem.potentialNullReference=warning
+org.eclipse.jdt.core.compiler.problem.rawTypeReference=warning
+org.eclipse.jdt.core.compiler.problem.redundantNullCheck=ignore
+org.eclipse.jdt.core.compiler.problem.redundantSuperinterface=ignore
+org.eclipse.jdt.core.compiler.problem.specialParameterHidingField=disabled
+org.eclipse.jdt.core.compiler.problem.staticAccessReceiver=warning
+org.eclipse.jdt.core.compiler.problem.suppressWarnings=enabled
+org.eclipse.jdt.core.compiler.problem.syntheticAccessEmulation=ignore
+org.eclipse.jdt.core.compiler.problem.typeParameterHiding=warning
+org.eclipse.jdt.core.compiler.problem.uncheckedTypeOperation=warning
+org.eclipse.jdt.core.compiler.problem.undocumentedEmptyBlock=ignore
+org.eclipse.jdt.core.compiler.problem.unhandledWarningToken=warning
+org.eclipse.jdt.core.compiler.problem.unnecessaryElse=ignore
+org.eclipse.jdt.core.compiler.problem.unnecessaryTypeCheck=ignore
+org.eclipse.jdt.core.compiler.problem.unqualifiedFieldAccess=ignore
+org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownException=ignore
+org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionExemptExceptionAndThrowable=enabled
+org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionIncludeDocCommentReference=enabled
+org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionWhenOverriding=disabled
+org.eclipse.jdt.core.compiler.problem.unusedImport=warning
+org.eclipse.jdt.core.compiler.problem.unusedLabel=warning
+org.eclipse.jdt.core.compiler.problem.unusedLocal=warning
+org.eclipse.jdt.core.compiler.problem.unusedParameter=ignore
+org.eclipse.jdt.core.compiler.problem.unusedParameterIncludeDocCommentReference=enabled
+org.eclipse.jdt.core.compiler.problem.unusedParameterWhenImplementingAbstract=disabled
+org.eclipse.jdt.core.compiler.problem.unusedParameterWhenOverridingConcrete=disabled
+org.eclipse.jdt.core.compiler.problem.unusedPrivateMember=warning
+org.eclipse.jdt.core.compiler.problem.unusedWarningToken=warning
+org.eclipse.jdt.core.compiler.problem.varargsArgumentNeedCast=warning
+org.eclipse.jdt.core.compiler.source=1.6
+org.eclipse.jdt.core.compiler.taskCaseSensitive=enabled
+org.eclipse.jdt.core.compiler.taskPriorities=NORMAL,HIGH,NORMAL
+org.eclipse.jdt.core.compiler.taskTags=TODO,FIXME,XXX
+org.eclipse.jdt.core.formatter.align_type_members_on_columns=false
+org.eclipse.jdt.core.formatter.alignment_for_arguments_in_allocation_expression=16
+org.eclipse.jdt.core.formatter.alignment_for_arguments_in_annotation=0
+org.eclipse.jdt.core.formatter.alignment_for_arguments_in_enum_constant=16
+org.eclipse.jdt.core.formatter.alignment_for_arguments_in_explicit_constructor_call=16
+org.eclipse.jdt.core.formatter.alignment_for_arguments_in_method_invocation=16
+org.eclipse.jdt.core.formatter.alignment_for_arguments_in_qualified_allocation_expression=16
+org.eclipse.jdt.core.formatter.alignment_for_assignment=0
+org.eclipse.jdt.core.formatter.alignment_for_binary_expression=16
+org.eclipse.jdt.core.formatter.alignment_for_compact_if=16
+org.eclipse.jdt.core.formatter.alignment_for_conditional_expression=48
+org.eclipse.jdt.core.formatter.alignment_for_enum_constants=0
+org.eclipse.jdt.core.formatter.alignment_for_expressions_in_array_initializer=16
+org.eclipse.jdt.core.formatter.alignment_for_method_declaration=0
+org.eclipse.jdt.core.formatter.alignment_for_multiple_fields=16
+org.eclipse.jdt.core.formatter.alignment_for_parameters_in_constructor_declaration=16
+org.eclipse.jdt.core.formatter.alignment_for_parameters_in_method_declaration=16
+org.eclipse.jdt.core.formatter.alignment_for_selector_in_method_invocation=80
+org.eclipse.jdt.core.formatter.alignment_for_superclass_in_type_declaration=16
+org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_enum_declaration=16
+org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_type_declaration=16
+org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_constructor_declaration=16
+org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_method_declaration=16
+org.eclipse.jdt.core.formatter.blank_lines_after_imports=1
+org.eclipse.jdt.core.formatter.blank_lines_after_package=1
+org.eclipse.jdt.core.formatter.blank_lines_before_field=1
+org.eclipse.jdt.core.formatter.blank_lines_before_first_class_body_declaration=0
+org.eclipse.jdt.core.formatter.blank_lines_before_imports=1
+org.eclipse.jdt.core.formatter.blank_lines_before_member_type=1
+org.eclipse.jdt.core.formatter.blank_lines_before_method=1
+org.eclipse.jdt.core.formatter.blank_lines_before_new_chunk=1
+org.eclipse.jdt.core.formatter.blank_lines_before_package=0
+org.eclipse.jdt.core.formatter.blank_lines_between_import_groups=1
+org.eclipse.jdt.core.formatter.blank_lines_between_type_declarations=1
+org.eclipse.jdt.core.formatter.brace_position_for_annotation_type_declaration=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_anonymous_type_declaration=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_array_initializer=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_block=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_block_in_case=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_constructor_declaration=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_enum_constant=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_enum_declaration=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_method_declaration=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_switch=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_type_declaration=end_of_line
+org.eclipse.jdt.core.formatter.comment.clear_blank_lines=false
+org.eclipse.jdt.core.formatter.comment.clear_blank_lines_in_block_comment=false
+org.eclipse.jdt.core.formatter.comment.clear_blank_lines_in_javadoc_comment=true
+org.eclipse.jdt.core.formatter.comment.format_block_comments=false
+org.eclipse.jdt.core.formatter.comment.format_comments=true
+org.eclipse.jdt.core.formatter.comment.format_header=false
+org.eclipse.jdt.core.formatter.comment.format_html=true
+org.eclipse.jdt.core.formatter.comment.format_javadoc_comments=true
+org.eclipse.jdt.core.formatter.comment.format_line_comments=false
+org.eclipse.jdt.core.formatter.comment.format_source_code=true
+org.eclipse.jdt.core.formatter.comment.indent_parameter_description=true
+org.eclipse.jdt.core.formatter.comment.indent_root_tags=true
+org.eclipse.jdt.core.formatter.comment.insert_new_line_before_root_tags=insert
+org.eclipse.jdt.core.formatter.comment.insert_new_line_for_parameter=insert
+org.eclipse.jdt.core.formatter.comment.line_length=120
+org.eclipse.jdt.core.formatter.comment.new_lines_at_block_boundaries=true
+org.eclipse.jdt.core.formatter.comment.new_lines_at_javadoc_boundaries=true
+org.eclipse.jdt.core.formatter.comment.preserve_white_space_between_code_and_line_comments=false
+org.eclipse.jdt.core.formatter.compact_else_if=true
+org.eclipse.jdt.core.formatter.continuation_indentation=2
+org.eclipse.jdt.core.formatter.continuation_indentation_for_array_initializer=2
+org.eclipse.jdt.core.formatter.disabling_tag=@formatter\:off
+org.eclipse.jdt.core.formatter.enabling_tag=@formatter\:on
+org.eclipse.jdt.core.formatter.format_guardian_clause_on_one_line=false
+org.eclipse.jdt.core.formatter.format_line_comment_starting_on_first_column=true
+org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_annotation_declaration_header=true
+org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_constant_header=true
+org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_declaration_header=true
+org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_type_header=true
+org.eclipse.jdt.core.formatter.indent_breaks_compare_to_cases=true
+org.eclipse.jdt.core.formatter.indent_empty_lines=false
+org.eclipse.jdt.core.formatter.indent_statements_compare_to_block=true
+org.eclipse.jdt.core.formatter.indent_statements_compare_to_body=true
+org.eclipse.jdt.core.formatter.indent_switchstatements_compare_to_cases=true
+org.eclipse.jdt.core.formatter.indent_switchstatements_compare_to_switch=false
+org.eclipse.jdt.core.formatter.indentation.size=4
+org.eclipse.jdt.core.formatter.insert_new_line_after_annotation=insert
+org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_field=insert
+org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_local_variable=insert
+org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_member=insert
+org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_method=insert
+org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_package=insert
+org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_parameter=insert
+org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_type=insert
+org.eclipse.jdt.core.formatter.insert_new_line_after_label=do not insert
+org.eclipse.jdt.core.formatter.insert_new_line_after_opening_brace_in_array_initializer=do not insert
+org.eclipse.jdt.core.formatter.insert_new_line_at_end_of_file_if_missing=do not insert
+org.eclipse.jdt.core.formatter.insert_new_line_before_catch_in_try_statement=do not insert
+org.eclipse.jdt.core.formatter.insert_new_line_before_closing_brace_in_array_initializer=do not insert
+org.eclipse.jdt.core.formatter.insert_new_line_before_else_in_if_statement=do not insert
+org.eclipse.jdt.core.formatter.insert_new_line_before_finally_in_try_statement=do not insert
+org.eclipse.jdt.core.formatter.insert_new_line_before_while_in_do_statement=do not insert
+org.eclipse.jdt.core.formatter.insert_new_line_in_empty_annotation_declaration=insert
+org.eclipse.jdt.core.formatter.insert_new_line_in_empty_anonymous_type_declaration=insert
+org.eclipse.jdt.core.formatter.insert_new_line_in_empty_block=insert
+org.eclipse.jdt.core.formatter.insert_new_line_in_empty_enum_constant=insert
+org.eclipse.jdt.core.formatter.insert_new_line_in_empty_enum_declaration=insert
+org.eclipse.jdt.core.formatter.insert_new_line_in_empty_method_body=insert
+org.eclipse.jdt.core.formatter.insert_new_line_in_empty_type_declaration=insert
+org.eclipse.jdt.core.formatter.insert_space_after_and_in_type_parameter=insert
+org.eclipse.jdt.core.formatter.insert_space_after_assignment_operator=insert
+org.eclipse.jdt.core.formatter.insert_space_after_at_in_annotation=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_at_in_annotation_type_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_binary_operator=insert
+org.eclipse.jdt.core.formatter.insert_space_after_closing_angle_bracket_in_type_arguments=insert
+org.eclipse.jdt.core.formatter.insert_space_after_closing_angle_bracket_in_type_parameters=insert
+org.eclipse.jdt.core.formatter.insert_space_after_closing_brace_in_block=insert
+org.eclipse.jdt.core.formatter.insert_space_after_closing_paren_in_cast=insert
+org.eclipse.jdt.core.formatter.insert_space_after_colon_in_assert=insert
+org.eclipse.jdt.core.formatter.insert_space_after_colon_in_case=insert
+org.eclipse.jdt.core.formatter.insert_space_after_colon_in_conditional=insert
+org.eclipse.jdt.core.formatter.insert_space_after_colon_in_for=insert
+org.eclipse.jdt.core.formatter.insert_space_after_colon_in_labeled_statement=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_allocation_expression=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_annotation=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_array_initializer=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_constructor_declaration_parameters=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_constructor_declaration_throws=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_enum_constant_arguments=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_enum_declarations=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_explicitconstructorcall_arguments=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_for_increments=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_for_inits=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_declaration_parameters=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_declaration_throws=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_invocation_arguments=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_multiple_field_declarations=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_multiple_local_declarations=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_parameterized_type_reference=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_superinterfaces=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_type_arguments=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_type_parameters=insert
+org.eclipse.jdt.core.formatter.insert_space_after_ellipsis=insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_parameterized_type_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_type_arguments=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_type_parameters=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_brace_in_array_initializer=insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_bracket_in_array_allocation_expression=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_bracket_in_array_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_annotation=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_cast=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_catch=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_constructor_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_enum_constant=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_for=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_if=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_invocation=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_parenthesized_expression=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_switch=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_synchronized=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_while=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_postfix_operator=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_prefix_operator=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_question_in_conditional=insert
+org.eclipse.jdt.core.formatter.insert_space_after_question_in_wildcard=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_semicolon_in_for=insert
+org.eclipse.jdt.core.formatter.insert_space_after_unary_operator=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_and_in_type_parameter=insert
+org.eclipse.jdt.core.formatter.insert_space_before_assignment_operator=insert
+org.eclipse.jdt.core.formatter.insert_space_before_at_in_annotation_type_declaration=insert
+org.eclipse.jdt.core.formatter.insert_space_before_binary_operator=insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_parameterized_type_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_type_arguments=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_type_parameters=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_brace_in_array_initializer=insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_bracket_in_array_allocation_expression=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_bracket_in_array_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_annotation=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_cast=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_catch=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_constructor_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_enum_constant=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_for=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_if=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_method_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_method_invocation=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_parenthesized_expression=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_switch=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_synchronized=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_while=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_colon_in_assert=insert
+org.eclipse.jdt.core.formatter.insert_space_before_colon_in_case=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_colon_in_conditional=insert
+org.eclipse.jdt.core.formatter.insert_space_before_colon_in_default=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_colon_in_for=insert
+org.eclipse.jdt.core.formatter.insert_space_before_colon_in_labeled_statement=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_allocation_expression=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_annotation=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_array_initializer=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_parameters=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_throws=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_constant_arguments=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_declarations=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_explicitconstructorcall_arguments=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_for_increments=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_for_inits=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_parameters=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_throws=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_invocation_arguments=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_field_declarations=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_local_declarations=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_parameterized_type_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_superinterfaces=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_arguments=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_parameters=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_ellipsis=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_parameterized_type_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_arguments=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_parameters=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_annotation_type_declaration=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_anonymous_type_declaration=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_array_initializer=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_block=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_constructor_declaration=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_enum_constant=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_enum_declaration=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_method_declaration=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_switch=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_type_declaration=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_allocation_expression=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_type_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_annotation=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_annotation_type_member_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_catch=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_constructor_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_enum_constant=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_for=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_if=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_invocation=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_parenthesized_expression=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_switch=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_synchronized=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_while=insert
+org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_return=insert
+org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_throw=insert
+org.eclipse.jdt.core.formatter.insert_space_before_postfix_operator=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_prefix_operator=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_question_in_conditional=insert
+org.eclipse.jdt.core.formatter.insert_space_before_question_in_wildcard=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_semicolon=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_semicolon_in_for=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_unary_operator=do not insert
+org.eclipse.jdt.core.formatter.insert_space_between_brackets_in_array_type_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_between_empty_braces_in_array_initializer=do not insert
+org.eclipse.jdt.core.formatter.insert_space_between_empty_brackets_in_array_allocation_expression=do not insert
+org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_annotation_type_member_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_constructor_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_enum_constant=do not insert
+org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_invocation=do not insert
+org.eclipse.jdt.core.formatter.join_lines_in_comments=true
+org.eclipse.jdt.core.formatter.join_wrapped_lines=true
+org.eclipse.jdt.core.formatter.keep_else_statement_on_same_line=false
+org.eclipse.jdt.core.formatter.keep_empty_array_initializer_on_one_line=false
+org.eclipse.jdt.core.formatter.keep_imple_if_on_one_line=false
+org.eclipse.jdt.core.formatter.keep_then_statement_on_same_line=false
+org.eclipse.jdt.core.formatter.lineSplit=120
+org.eclipse.jdt.core.formatter.never_indent_block_comments_on_first_column=true
+org.eclipse.jdt.core.formatter.never_indent_line_comments_on_first_column=true
+org.eclipse.jdt.core.formatter.number_of_blank_lines_at_beginning_of_method_body=0
+org.eclipse.jdt.core.formatter.number_of_empty_lines_to_preserve=1
+org.eclipse.jdt.core.formatter.put_empty_statement_on_new_line=true
+org.eclipse.jdt.core.formatter.tabulation.char=tab
+org.eclipse.jdt.core.formatter.tabulation.size=4
+org.eclipse.jdt.core.formatter.use_on_off_tags=false
+org.eclipse.jdt.core.formatter.use_tabs_only_for_leading_indentations=false
+org.eclipse.jdt.core.formatter.wrap_before_binary_operator=true
+org.eclipse.jdt.core.formatter.wrap_outer_expressions_when_nested=true
diff --git a/org.eclipse.mylyn.reviews.connector.tests/.settings/org.eclipse.jdt.ui.prefs b/org.eclipse.mylyn.reviews.connector.tests/.settings/org.eclipse.jdt.ui.prefs
new file mode 100644
index 0000000..f6c0a16
--- /dev/null
+++ b/org.eclipse.mylyn.reviews.connector.tests/.settings/org.eclipse.jdt.ui.prefs
@@ -0,0 +1,63 @@
+#Wed Mar 02 16:00:06 PST 2011
+cleanup_settings_version=2
+eclipse.preferences.version=1
+editor_save_participant_org.eclipse.jdt.ui.postsavelistener.cleanup=true
+formatter_profile=_Mylyn based on Eclipse
+formatter_settings_version=12
+internal.default.compliance=default
+org.eclipse.jdt.ui.exception.name=e
+org.eclipse.jdt.ui.gettersetter.use.is=true
+org.eclipse.jdt.ui.javadoc=false
+org.eclipse.jdt.ui.keywordthis=false
+org.eclipse.jdt.ui.overrideannotation=true
+org.eclipse.jdt.ui.text.custom_code_templates=<?xml version\="1.0" encoding\="UTF-8" standalone\="no"?><templates><template autoinsert\="true" context\="gettercomment_context" deleted\="false" description\="Comment for getter method" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.gettercomment" name\="gettercomment">/**\r\n * @return the ${bare_field_name}\r\n */</template><template autoinsert\="true" context\="settercomment_context" deleted\="false" description\="Comment for setter method" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.settercomment" name\="settercomment">/**\r\n * @param ${param} the ${bare_field_name} to set\r\n */</template><template autoinsert\="true" context\="constructorcomment_context" deleted\="false" description\="Comment for created constructors" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.constructorcomment" name\="constructorcomment">/**\r\n * ${tags}\r\n */</template><template autoinsert\="true" context\="filecomment_context" deleted\="false" description\="Comment for created Java files" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.filecomment" name\="filecomment">/**\r\n * \r\n */</template><template autoinsert\="false" context\="typecomment_context" deleted\="false" description\="Comment for created types" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.typecomment" name\="typecomment">/**\r\n * @author ${user}\r\n */</template><template autoinsert\="true" context\="fieldcomment_context" deleted\="false" description\="Comment for fields" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.fieldcomment" name\="fieldcomment">/**\r\n * \r\n */</template><template autoinsert\="true" context\="methodcomment_context" deleted\="false" description\="Comment for non-overriding methods" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.methodcomment" name\="methodcomment">/**\r\n * ${tags}\r\n */</template><template autoinsert\="false" context\="overridecomment_context" deleted\="false" description\="Comment for overriding methods" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.overridecomment" name\="overridecomment"/><template autoinsert\="false" context\="newtype_context" deleted\="false" description\="Newly created files" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.newtype" name\="newtype">/*******************************************************************************\r\n * Copyright (c) ${year} Tasktop Technologies and others.\r\n * All rights reserved. This program and the accompanying materials\r\n * are made available under the terms of the Eclipse Public License v1.0\r\n * which accompanies this distribution, and is available at\r\n * http\://www.eclipse.org/legal/epl-v10.html\r\n *\r\n * Contributors\:\r\n * Tasktop Technologies - initial API and implementation\r\n *******************************************************************************/\r\n\r\n${package_declaration}\r\n\r\n${typecomment}\r\n${type_declaration}</template><template autoinsert\="true" context\="classbody_context" deleted\="false" description\="Code in new class type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.classbody" name\="classbody">\r\n</template><template autoinsert\="true" context\="interfacebody_context" deleted\="false" description\="Code in new interface type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.interfacebody" name\="interfacebody">\r\n</template><template autoinsert\="true" context\="enumbody_context" deleted\="false" description\="Code in new enum type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.enumbody" name\="enumbody">\r\n</template><template autoinsert\="true" context\="annotationbody_context" deleted\="false" description\="Code in new annotation type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.annotationbody" name\="annotationbody">\r\n</template><template autoinsert\="false" context\="catchblock_context" deleted\="false" description\="Code in new catch blocks" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.catchblock" name\="catchblock">// ${todo} Auto-generated catch block\r\n${exception_var}.printStackTrace();</template><template autoinsert\="false" context\="methodbody_context" deleted\="false" description\="Code in created method stubs" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.methodbody" name\="methodbody">// ignore\r\n${body_statement}</template><template autoinsert\="false" context\="constructorbody_context" deleted\="false" description\="Code in created constructor stubs" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.constructorbody" name\="constructorbody">${body_statement}\r\n// ignore</template><template autoinsert\="true" context\="getterbody_context" deleted\="false" description\="Code in created getters" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.getterbody" name\="getterbody">return ${field};</template><template autoinsert\="true" context\="setterbody_context" deleted\="false" description\="Code in created setters" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.setterbody" name\="setterbody">${field} \= ${param};</template><template autoinsert\="true" context\="delegatecomment_context" deleted\="false" description\="Comment for delegate methods" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.delegatecomment" name\="delegatecomment">/**\r\n * ${tags}\r\n * ${see_to_target}\r\n */</template><template autoinsert\="true" context\="gettercomment_context" deleted\="false" description\="Comment for getter function" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.gettercomment" name\="gettercomment">/**\r\n * @return the ${bare_field_name}\r\n */</template><template autoinsert\="true" context\="settercomment_context" deleted\="false" description\="Comment for setter function" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.settercomment" name\="settercomment">/**\r\n * @param ${param} the ${bare_field_name} to set\r\n */</template><template autoinsert\="true" context\="constructorcomment_context" deleted\="false" description\="Comment for created constructors" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.constructorcomment" name\="constructorcomment">/**\r\n * ${tags}\r\n */</template><template autoinsert\="true" context\="filecomment_context" deleted\="false" description\="Comment for created JavaScript files" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.filecomment" name\="filecomment">/**\r\n * \r\n */</template><template autoinsert\="true" context\="typecomment_context" deleted\="false" description\="Comment for created types" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.typecomment" name\="typecomment">/**\r\n * @author ${user}\r\n *\r\n * ${tags}\r\n */</template><template autoinsert\="true" context\="fieldcomment_context" deleted\="false" description\="Comment for vars" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.fieldcomment" name\="fieldcomment">/**\r\n * \r\n */</template><template autoinsert\="true" context\="methodcomment_context" deleted\="false" description\="Comment for non-overriding function" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.methodcomment" name\="methodcomment">/**\r\n * ${tags}\r\n */</template><template autoinsert\="true" context\="overridecomment_context" deleted\="false" description\="Comment for overriding functions" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.overridecomment" name\="overridecomment">/* (non-Jsdoc)\r\n * ${see_to_overridden}\r\n */</template><template autoinsert\="true" context\="delegatecomment_context" deleted\="false" description\="Comment for delegate functions" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.delegatecomment" name\="delegatecomment">/**\r\n * ${tags}\r\n * ${see_to_target}\r\n */</template><template autoinsert\="true" context\="newtype_context" deleted\="false" description\="Newly created files" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.newtype" name\="newtype">${filecomment}\r\n${package_declaration}\r\n\r\n${typecomment}\r\n${type_declaration}</template><template autoinsert\="true" context\="classbody_context" deleted\="false" description\="Code in new class type bodies" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.classbody" name\="classbody">\r\n</template><template autoinsert\="true" context\="interfacebody_context" deleted\="false" description\="Code in new interface type bodies" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.interfacebody" name\="interfacebody">\r\n</template><template autoinsert\="true" context\="enumbody_context" deleted\="false" description\="Code in new enum type bodies" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.enumbody" name\="enumbody">\r\n</template><template autoinsert\="true" context\="annotationbody_context" deleted\="false" description\="Code in new annotation type bodies" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.annotationbody" name\="annotationbody">\r\n</template><template autoinsert\="true" context\="catchblock_context" deleted\="false" description\="Code in new catch blocks" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.catchblock" name\="catchblock">// ${todo} Auto-generated catch block\r\n${exception_var}.printStackTrace();</template><template autoinsert\="true" context\="methodbody_context" deleted\="false" description\="Code in created function stubs" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.methodbody" name\="methodbody">// ${todo} Auto-generated function stub\r\n${body_statement}</template><template autoinsert\="true" context\="constructorbody_context" deleted\="false" description\="Code in created constructor stubs" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.constructorbody" name\="constructorbody">${body_statement}\r\n// ${todo} Auto-generated constructor stub</template><template autoinsert\="true" context\="getterbody_context" deleted\="false" description\="Code in created getters" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.getterbody" name\="getterbody">return ${field};</template><template autoinsert\="true" context\="setterbody_context" deleted\="false" description\="Code in created setters" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.setterbody" name\="setterbody">${field} \= ${param};</template></templates>
+sp_cleanup.add_default_serial_version_id=true
+sp_cleanup.add_generated_serial_version_id=false
+sp_cleanup.add_missing_annotations=true
+sp_cleanup.add_missing_deprecated_annotations=true
+sp_cleanup.add_missing_methods=false
+sp_cleanup.add_missing_nls_tags=false
+sp_cleanup.add_missing_override_annotations=true
+sp_cleanup.add_serial_version_id=false
+sp_cleanup.always_use_blocks=true
+sp_cleanup.always_use_parentheses_in_expressions=false
+sp_cleanup.always_use_this_for_non_static_field_access=false
+sp_cleanup.always_use_this_for_non_static_method_access=false
+sp_cleanup.convert_to_enhanced_for_loop=true
+sp_cleanup.correct_indentation=true
+sp_cleanup.format_source_code=true
+sp_cleanup.format_source_code_changes_only=false
+sp_cleanup.make_local_variable_final=false
+sp_cleanup.make_parameters_final=false
+sp_cleanup.make_private_fields_final=true
+sp_cleanup.make_variable_declarations_final=true
+sp_cleanup.never_use_blocks=false
+sp_cleanup.never_use_parentheses_in_expressions=true
+sp_cleanup.on_save_use_additional_actions=true
+sp_cleanup.organize_imports=true
+sp_cleanup.qualify_static_field_accesses_with_declaring_class=false
+sp_cleanup.qualify_static_member_accesses_through_instances_with_declaring_class=true
+sp_cleanup.qualify_static_member_accesses_through_subtypes_with_declaring_class=true
+sp_cleanup.qualify_static_member_accesses_with_declaring_class=true
+sp_cleanup.qualify_static_method_accesses_with_declaring_class=false
+sp_cleanup.remove_private_constructors=true
+sp_cleanup.remove_trailing_whitespaces=true
+sp_cleanup.remove_trailing_whitespaces_all=true
+sp_cleanup.remove_trailing_whitespaces_ignore_empty=false
+sp_cleanup.remove_unnecessary_casts=true
+sp_cleanup.remove_unnecessary_nls_tags=true
+sp_cleanup.remove_unused_imports=false
+sp_cleanup.remove_unused_local_variables=false
+sp_cleanup.remove_unused_private_fields=true
+sp_cleanup.remove_unused_private_members=false
+sp_cleanup.remove_unused_private_methods=true
+sp_cleanup.remove_unused_private_types=true
+sp_cleanup.sort_members=false
+sp_cleanup.sort_members_all=false
+sp_cleanup.use_blocks=true
+sp_cleanup.use_blocks_only_for_return_and_throw=false
+sp_cleanup.use_parentheses_in_expressions=false
+sp_cleanup.use_this_for_non_static_field_access=false
+sp_cleanup.use_this_for_non_static_field_access_only_if_necessary=true
+sp_cleanup.use_this_for_non_static_method_access=false
+sp_cleanup.use_this_for_non_static_method_access_only_if_necessary=true
diff --git a/org.eclipse.mylyn.reviews.connector.tests/.settings/org.eclipse.ltk.core.refactoring.prefs b/org.eclipse.mylyn.reviews.connector.tests/.settings/org.eclipse.ltk.core.refactoring.prefs
new file mode 100644
index 0000000..5e7f2bd
--- /dev/null
+++ b/org.eclipse.mylyn.reviews.connector.tests/.settings/org.eclipse.ltk.core.refactoring.prefs
@@ -0,0 +1,3 @@
+#Tue Aug 18 22:42:26 PDT 2009
+eclipse.preferences.version=1
+org.eclipse.ltk.core.refactoring.enable.project.refactoring.history=false
diff --git a/org.eclipse.mylyn.reviews.connector.tests/.settings/org.eclipse.mylyn.tasks.ui.prefs b/org.eclipse.mylyn.reviews.connector.tests/.settings/org.eclipse.mylyn.tasks.ui.prefs
new file mode 100644
index 0000000..d8c6d26
--- /dev/null
+++ b/org.eclipse.mylyn.reviews.connector.tests/.settings/org.eclipse.mylyn.tasks.ui.prefs
@@ -0,0 +1,4 @@
+#Mon Jun 25 03:02:37 GMT 2007
+eclipse.preferences.version=1
+project.repository.kind=bugzilla
+project.repository.url=https\://bugs.eclipse.org/bugs
diff --git a/org.eclipse.mylyn.reviews.connector.tests/.settings/org.eclipse.mylyn.team.ui.prefs b/org.eclipse.mylyn.reviews.connector.tests/.settings/org.eclipse.mylyn.team.ui.prefs
new file mode 100644
index 0000000..10d0afb
--- /dev/null
+++ b/org.eclipse.mylyn.reviews.connector.tests/.settings/org.eclipse.mylyn.team.ui.prefs
@@ -0,0 +1,2 @@
+commit.comment.template=${task.key}\: ${task.description}\n\nTask-Url\: ${task.url}
+eclipse.preferences.version=1
diff --git a/org.eclipse.mylyn.reviews.connector.tests/.settings/org.eclipse.pde.prefs b/org.eclipse.mylyn.reviews.connector.tests/.settings/org.eclipse.pde.prefs
new file mode 100644
index 0000000..e8f2d56
--- /dev/null
+++ b/org.eclipse.mylyn.reviews.connector.tests/.settings/org.eclipse.pde.prefs
@@ -0,0 +1,18 @@
+#Tue Apr 15 11:07:59 PDT 2008
+compilers.incompatible-environment=1
+compilers.p.build=1
+compilers.p.deprecated=1
+compilers.p.discouraged-class=2
+compilers.p.missing-bundle-classpath-entries=1
+compilers.p.missing-packages=1
+compilers.p.no-required-att=0
+compilers.p.not-externalized-att=2
+compilers.p.unknown-attribute=0
+compilers.p.unknown-class=0
+compilers.p.unknown-element=0
+compilers.p.unknown-identifier=1
+compilers.p.unknown-resource=0
+compilers.p.unresolved-ex-points=0
+compilers.p.unresolved-import=0
+compilers.use-project=true
+eclipse.preferences.version=1
diff --git a/org.eclipse.mylyn.reviews.connector.tests/META-INF/MANIFEST.MF b/org.eclipse.mylyn.reviews.connector.tests/META-INF/MANIFEST.MF
new file mode 100644
index 0000000..79a0fc6
--- /dev/null
+++ b/org.eclipse.mylyn.reviews.connector.tests/META-INF/MANIFEST.MF
@@ -0,0 +1,19 @@
+Manifest-Version: 1.0
+Bundle-ManifestVersion: 2
+Bundle-Name: Mylyn Emf Connector Tests
+Bundle-SymbolicName: org.eclipse.mylyn.reviews.connector.tests;singleton:=true
+Bundle-Version: 0.13.0.qualifier
+Bundle-Vendor: Eclipse Mylyn
+Fragment-Host: org.eclipse.mylyn.reviews.connector
+Bundle-RequiredExecutionEnvironment: JavaSE-1.6
+Require-Bundle: org.junit;bundle-version="4.5.0",
+ org.hamcrest;bundle-version="[1.0.0,2.0.0)",
+ org.eclipse.mylyn.commons.net,
+ org.eclipse.core.net,
+ org.eclipse.mylyn.tasks.ui,
+ org.apache.commons.io,
+ org.eclipse.emf.ecore.xmi
+Export-Package: org.eclipse.mylyn.reviews.connector;x-internal:=true,
+ org.eclipse.mylyn.reviews.connector.client;x-internal:=true,
+ org.eclipse.mylyn.reviews.connector.query;x-internal:=true,
+ org.eclipse.mylyn.reviews.connector.support;x-internal:=true
diff --git a/org.eclipse.mylyn.reviews.connector.tests/about.html b/org.eclipse.mylyn.reviews.connector.tests/about.html
new file mode 100644
index 0000000..d774b07
--- /dev/null
+++ b/org.eclipse.mylyn.reviews.connector.tests/about.html
@@ -0,0 +1,27 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
+<html>
+<head>
+<title>About</title>
+<meta http-equiv=Content-Type content="text/html; charset=ISO-8859-1">
+</head>
+<body lang="EN-US">
+<h2>About This Content</h2>
+
+<p>June 25, 2008</p>
+<h3>License</h3>
+
+<p>The Eclipse Foundation makes available all content in this plug-in (&quot;Content&quot;). Unless otherwise
+indicated below, the Content is provided to you under the terms and conditions of the
+Eclipse Public License Version 1.0 (&quot;EPL&quot;). A copy of the EPL is available
+at <a href="http://www.eclipse.org/legal/epl-v10.html">http://www.eclipse.org/legal/epl-v10.html</a>.
+For purposes of the EPL, &quot;Program&quot; will mean the Content.</p>
+
+<p>If you did not receive this Content directly from the Eclipse Foundation, the Content is
+being redistributed by another party (&quot;Redistributor&quot;) and different terms and conditions may
+apply to your use of any object code in the Content. Check the Redistributor's license that was
+provided with the Content. If no such license exists, contact the Redistributor. Unless otherwise
+indicated below, the terms and conditions of the EPL still apply to any source code in the Content
+and such source code may be obtained at <a href="/">http://www.eclipse.org</a>.</p>
+
+</body>
+</html> \ No newline at end of file
diff --git a/org.eclipse.mylyn.reviews.connector.tests/build.properties b/org.eclipse.mylyn.reviews.connector.tests/build.properties
new file mode 100644
index 0000000..86837b8
--- /dev/null
+++ b/org.eclipse.mylyn.reviews.connector.tests/build.properties
@@ -0,0 +1,7 @@
+source.. = src/
+output.. = bin/
+bin.includes = META-INF/,\
+ .,\
+ about.html,\
+ testdata/
+src.includes = about.html
diff --git a/org.eclipse.mylyn.reviews.connector.tests/pom.xml b/org.eclipse.mylyn.reviews.connector.tests/pom.xml
new file mode 100644
index 0000000..a9e6d60
--- /dev/null
+++ b/org.eclipse.mylyn.reviews.connector.tests/pom.xml
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
+ xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
+ <modelVersion>4.0.0</modelVersion>
+ <parent>
+ <artifactId>org.eclipse.mylyn.reviews.r4e-parent</artifactId>
+ <groupId>org.eclipse.mylyn.reviews.r4e</groupId>
+ <version>0.13.0-SNAPSHOT</version>
+ </parent>
+ <artifactId>org.eclipse.mylyn.reviews.connector.tests</artifactId>
+ <version>0.13.0-SNAPSHOT</version>
+ <packaging>eclipse-test-plugin</packaging>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.eclipse.tycho</groupId>
+ <artifactId>tycho-source-plugin</artifactId>
+ </plugin>
+ </plugins>
+ </build>
+</project>
diff --git a/org.eclipse.mylyn.reviews.connector.tests/src/org/eclipse/mylyn/reviews/connector/EmfBasicConnectorTest.java b/org.eclipse.mylyn.reviews.connector.tests/src/org/eclipse/mylyn/reviews/connector/EmfBasicConnectorTest.java
new file mode 100644
index 0000000..51f12ab
--- /dev/null
+++ b/org.eclipse.mylyn.reviews.connector.tests/src/org/eclipse/mylyn/reviews/connector/EmfBasicConnectorTest.java
@@ -0,0 +1,117 @@
+/*******************************************************************************
+ * Copyright (c) 2012 Tasktop Technologies and others.
+ * 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:
+ * Tasktop Technologies - initial API and implementation
+ *******************************************************************************/
+
+package org.eclipse.mylyn.reviews.connector;
+
+import static org.hamcrest.Matchers.is;
+import static org.hamcrest.Matchers.not;
+import static org.junit.Assert.assertThat;
+import junit.framework.TestCase;
+
+import org.eclipse.mylyn.reviews.connector.support.EmfTestConnector;
+import org.junit.Before;
+import org.junit.Test;
+
+/**
+ * Excercises connector issues that don't require a client.
+ *
+ * @author milesparker
+ */
+@SuppressWarnings("nls")
+public class EmfBasicConnectorTest extends TestCase {
+
+ static AbstractEmfConnector connector;
+
+ @Override
+ @Before
+ public void setUp() {
+ connector = new EmfTestConnector();
+ }
+
+ @Test
+ public void testCanCreateNewTask() {
+ assertTrue(connector.canCreateNewTask(null));
+ }
+
+ @Test
+ public void testGetConnectorKind() {
+ assertEquals("emftasks", connector.getConnectorKind());
+ }
+
+ @Test
+ public void testGetRepositoryUrlFromTaskUrl() {
+ assertNull(connector.getRepositoryUrlFromTaskUrl(null));
+ assertNull(connector.getRepositoryUrlFromTaskUrl("")); //$NON-NLS-1$
+ assertNull(connector.getRepositoryUrlFromTaskUrl("invalid repository url")); //$NON-NLS-1$
+ assertNull(connector.getRepositoryUrlFromTaskUrl("http://invalid.repository.url")); //$NON-NLS-1$
+ assertNull(connector.getRepositoryUrlFromTaskUrl("file://invalid.repository.url")); //$NON-NLS-1$
+ assertNull(connector.getRepositoryUrlFromTaskUrl("platform:/resource/invalid.plugin/etc")); //$NON-NLS-1$
+ assertNull(connector.getRepositoryUrlFromTaskUrl("platform:/resource/invalid.plugin/etc")); //$NON-NLS-1$
+ assertEquals("file:///somewhere", connector.getRepositoryUrlFromTaskUrl("file:///somewhere#MyTest")); //$NON-NLS-1$
+ }
+
+ @Test
+ public void testGetTaskIdFromTaskUrl() {
+ assertNull(connector.getTaskIdFromTaskUrl(null));
+ assertNull(connector.getTaskIdFromTaskUrl("")); //$NON-NLS-1$
+ assertNull(connector.getTaskIdFromTaskUrl("invalid repository url")); //$NON-NLS-1$
+ assertNull(connector.getTaskIdFromTaskUrl("http://invalid.repository.url")); //$NON-NLS-1$
+ assertEquals("MyTest", connector.getTaskIdFromTaskUrl("file:///somewhere" + "#MyTest")); //$NON-NLS-1$
+ }
+
+ @Test
+ public void testGetTaskUrl() {
+ assertEquals("file:///somewhere" + "#MyTest", //$NON-NLS-1$
+ connector.getTaskUrl("file:///somewhere", "MyTest")); //$NON-NLS-1$
+ }
+
+ @Test
+ public void testGetTasKeyFromTaskId() {
+ String enDashString = "This is a test \u2013 of hyphens.";
+ String hyphenString = "This is a test - of hyphens.";
+ assertThat(enDashString, is(not(hyphenString)));
+ assertThat(enDashString, is(connector.encodeTaskKey(hyphenString)));
+ }
+
+ @Test
+ /**
+ * Since emf ids can be arbitrary strings, we have to be careful to handle delimiters, spaces and other stray characters in the key itself
+ */
+ public void testGetRepositoryUrlFromTaskUrl_UrlEncode() {
+ assertEquals(
+ "file:///somewhere", connector.getRepositoryUrlFromTaskUrl("file:///somewhere#MyTest 3 @ http://something.com")); //$NON-NLS-1$
+ assertEquals(
+ "file:///somewhere", connector.getRepositoryUrlFromTaskUrl("file:///somewhere#MyTest <breakme>\"broken\"</breakme>")); //$NON-NLS-1$
+ assertEquals(
+ "file:///somewhere", connector.getRepositoryUrlFromTaskUrl("file:///somewhere#MyTest &lt;breakme/&gt;&quot;broken&quot;&lt;breakme/&gt;")); //$NON-NLS-1$
+ }
+
+ @Test
+ public void testGetTaskIdFromTaskUrl_UrlEncode() {
+ assertEquals(
+ "MyTest 3 @ http://something.com", connector.getTaskIdFromTaskUrl("file:///somewhere#MyTest 3 @ http://something.com")); //$NON-NLS-1$
+ assertEquals(
+ "MyTest <breakme>\"broken\"</breakme>", connector.getTaskIdFromTaskUrl("file:///somewhere#MyTest%20<breakme>\"broken\"</breakme>")); //$NON-NLS-1$
+ assertEquals(
+ "MyTest &lt;breakme/&gt;&quot;broken&quot;&lt;breakme/&gt;", connector.getTaskIdFromTaskUrl("file:///somewhere#MyTest &lt;breakme/&gt;&quot;broken&quot;&lt;breakme/&gt;")); //$NON-NLS-1$
+ }
+
+ @Test
+ public void testGetTaskUrl_UrlEncode() {
+ assertEquals("file:///somewhere#MyTest+3+%40+http%3A%2F%2Fsomething.com", //$NON-NLS-1$
+ connector.getTaskUrl("file:///somewhere", "MyTest 3 @ http://something.com")); //$NON-NLS-1$
+ assertEquals("file:///somewhere#MyTest+%3Cbreakme%3E%22broken%22%3C%2Fbreakme%3E", //$NON-NLS-1$
+ connector.getTaskUrl("file:///somewhere", "MyTest <breakme>\"broken\"</breakme>")); //$NON-NLS-1$
+ assertEquals(
+ "file:///somewhere#MyTest+%26lt%3Bbreakme%2F%26gt%3B%26quot%3Bbroken%26quot%3B%26lt%3Bbreakme%2F%26gt%3B", //$NON-NLS-1$
+ connector.getTaskUrl("file:///somewhere", "MyTest &lt;breakme/&gt;&quot;broken&quot;&lt;breakme/&gt;")); //$NON-NLS-1$
+ }
+}
diff --git a/org.eclipse.mylyn.reviews.connector.tests/src/org/eclipse/mylyn/reviews/connector/EmfTaskSchemaTest.java b/org.eclipse.mylyn.reviews.connector.tests/src/org/eclipse/mylyn/reviews/connector/EmfTaskSchemaTest.java
new file mode 100644
index 0000000..0ed18cd
--- /dev/null
+++ b/org.eclipse.mylyn.reviews.connector.tests/src/org/eclipse/mylyn/reviews/connector/EmfTaskSchemaTest.java
@@ -0,0 +1,70 @@
+/*******************************************************************************
+ * Copyright (c) 2012 Tasktop Technologies and others.
+ * 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:
+ * Tasktop Technologies - initial API and implementation
+ *******************************************************************************/
+
+package org.eclipse.mylyn.reviews.connector;
+
+import junit.framework.TestCase;
+
+import org.eclipse.emf.ecore.EcorePackage;
+import org.eclipse.mylyn.tasks.core.data.AbstractTaskSchema.Field;
+import org.eclipse.mylyn.tasks.core.data.TaskAttribute;
+import org.eclipse.mylyn.reviews.connector.support.BasicTestTaskSchema;
+import org.eclipse.mylyn.reviews.connector.support.MappedTestTaskSchema;
+import org.junit.Before;
+import org.junit.Test;
+
+@SuppressWarnings("nls")
+public class EmfTaskSchemaTest extends TestCase {
+
+ @Override
+ @Before
+ protected void setUp() throws Exception {
+ // ignore
+ super.setUp();
+ }
+
+ @Test
+ public void testBasicSchema() {
+ BasicTestTaskSchema schema = new BasicTestTaskSchema();
+ schema.initialize();
+ Field field = schema.getFieldByFeature(EcorePackage.Literals.EANNOTATION__SOURCE);
+ assertNotNull(field);
+ assertEquals("emf.ecore.eannotation.source", field.getKey());
+ assertEquals(TaskAttribute.KIND_DEFAULT, field.getKind());
+ assertEquals("Source", field.getLabel());
+ assertEquals("emf.ecore.eannotation.source", field.getIndexKey());
+ }
+
+ @Test
+ public void testTypes() {
+ BasicTestTaskSchema schema = new BasicTestTaskSchema();
+ schema.initialize();
+ Field field = schema.getFieldByFeature(EcorePackage.Literals.EANNOTATION__SOURCE);
+ assertEquals(TaskAttribute.TYPE_LONG_RICH_TEXT, field.getType());
+// field = schema.getFieldByFeature(EcorePackage.Literals.EANNOTATION__CONTENTS);
+// assertEquals(EmfTaskSchema.TYPE_EMF_REFERENCE, field.getType());
+ field = schema.getFieldByFeature(EcorePackage.Literals.ETYPED_ELEMENT__LOWER_BOUND);
+ assertEquals(TaskAttribute.TYPE_INTEGER, field.getType());
+ field = schema.getFieldByFeature(EcorePackage.Literals.ETYPED_ELEMENT__REQUIRED);
+ assertEquals(TaskAttribute.TYPE_BOOLEAN, field.getType());
+ //TODO check more types
+ }
+
+ @Test
+ public void testMappedTaskData() {
+ MappedTestTaskSchema schema = new MappedTestTaskSchema();
+ schema.initialize();
+ String featureKey = schema.getKey(schema.getFeature(TaskAttribute.TASK_KEY));
+ assertEquals("emf.ecore.epackage.nsuri", featureKey);
+ featureKey = schema.getKey(schema.getFeature(TaskAttribute.SUMMARY));
+ assertEquals("emf.ecore.epackage.nsprefix", featureKey);
+ }
+}
diff --git a/org.eclipse.mylyn.reviews.connector.tests/src/org/eclipse/mylyn/reviews/connector/query/QueryOperationTest.java b/org.eclipse.mylyn.reviews.connector.tests/src/org/eclipse/mylyn/reviews/connector/query/QueryOperationTest.java
new file mode 100644
index 0000000..13c1dee
--- /dev/null
+++ b/org.eclipse.mylyn.reviews.connector.tests/src/org/eclipse/mylyn/reviews/connector/query/QueryOperationTest.java
@@ -0,0 +1,29 @@
+/*******************************************************************************
+ * Copyright (c) 2012 Tasktop Technologies and others.
+ * 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:
+ * Tasktop Technologies - initial API and implementation
+ *******************************************************************************/
+
+package org.eclipse.mylyn.reviews.connector.query;
+
+import static org.hamcrest.Matchers.is;
+import static org.junit.Assert.assertThat;
+import junit.framework.TestCase;
+
+import org.eclipse.mylyn.reviews.connector.query.QueryOperation;
+import org.junit.Test;
+
+@SuppressWarnings("nls")
+public class QueryOperationTest extends TestCase {
+
+ @Test
+ public void testDescriptions() {
+ String[] description = QueryOperation.toDescription(QueryOperation.ALL_OPERATIONS);
+ assertThat(description[0], is("contains"));
+ }
+}
diff --git a/org.eclipse.mylyn.reviews.connector.tests/src/org/eclipse/mylyn/reviews/connector/support/BasicTestTaskSchema.java b/org.eclipse.mylyn.reviews.connector.tests/src/org/eclipse/mylyn/reviews/connector/support/BasicTestTaskSchema.java
new file mode 100644
index 0000000..dcd20e1
--- /dev/null
+++ b/org.eclipse.mylyn.reviews.connector.tests/src/org/eclipse/mylyn/reviews/connector/support/BasicTestTaskSchema.java
@@ -0,0 +1,29 @@
+/*******************************************************************************
+ * Copyright (c) 2012 Tasktop Technologies and others.
+ * 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:
+ * Tasktop Technologies - initial API and implementation
+ *******************************************************************************/
+
+package org.eclipse.mylyn.reviews.connector.support;
+
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EcorePackage;
+import org.eclipse.mylyn.reviews.connector.EmfTaskSchema;
+
+public class BasicTestTaskSchema extends EmfTaskSchema {
+
+ @Override
+ protected EClass[] getSchemaEClasses() {
+ return new EClass[] { EcorePackage.Literals.EANNOTATION, EcorePackage.Literals.ETYPED_ELEMENT };
+ }
+
+ @Override
+ protected FieldFeature[] getSchemaPairs() {
+ return new FieldFeature[] {};
+ }
+} \ No newline at end of file
diff --git a/org.eclipse.mylyn.reviews.connector.tests/src/org/eclipse/mylyn/reviews/connector/support/EmfTestConnector.java b/org.eclipse.mylyn.reviews.connector.tests/src/org/eclipse/mylyn/reviews/connector/support/EmfTestConnector.java
new file mode 100644
index 0000000..64c71fe
--- /dev/null
+++ b/org.eclipse.mylyn.reviews.connector.tests/src/org/eclipse/mylyn/reviews/connector/support/EmfTestConnector.java
@@ -0,0 +1,84 @@
+/*******************************************************************************
+ * Copyright (c) 2012 Tasktop Technologies and others.
+ * 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:
+ * Tasktop Technologies - initial API and implementation
+ *******************************************************************************/
+
+package org.eclipse.mylyn.reviews.connector.support;
+
+import org.eclipse.emf.ecore.EAttribute;
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EReference;
+import org.eclipse.emf.ecore.EcorePackage;
+import org.eclipse.mylyn.internal.reviews.connector.EmfCorePlugin;
+import org.eclipse.mylyn.tasks.core.data.DefaultTaskSchema;
+import org.eclipse.mylyn.reviews.connector.EmfTaskSchema.FieldFeature;
+import org.eclipse.mylyn.reviews.connector.GenericEmfConnector;
+import org.osgi.framework.Bundle;
+
+public class EmfTestConnector extends GenericEmfConnector {
+
+ public static final String CONNECTOR_KIND = "emftasks"; //$NON-NLS-1$
+
+ public class TestTaskSchema extends BasicTestTaskSchema {
+
+ }
+
+ BasicTestTaskSchema testSchema = new MappedTestTaskSchema();
+
+ public EmfTestConnector() {
+ }
+
+ @Override
+ public String getConnectorKind() {
+ return CONNECTOR_KIND;
+ }
+
+ @Override
+ public String getLabel() {
+ return "EMF Test"; //$NON-NLS-1$
+ }
+
+ @Override
+ public EReference getContainmentReference() {
+ return EcorePackage.Literals.EPACKAGE__ECLASSIFIERS;
+ }
+
+ @Override
+ public EClass[] getTaskClasses() {
+ return new EClass[] { EcorePackage.Literals.ECLASSIFIER };
+ }
+
+ @Override
+ public FieldFeature[] getTaskFeatures() {
+ DefaultTaskSchema parent = DefaultTaskSchema.getInstance();
+ return new FieldFeature[] { new FieldFeature(parent.TASK_KEY, EcorePackage.Literals.ENAMED_ELEMENT__NAME),
+ new FieldFeature(parent.SUMMARY, EcorePackage.Literals.ECLASSIFIER__INSTANCE_TYPE_NAME) };
+ }
+
+ @Override
+ public Bundle getConnectorBundle() {
+ return EmfCorePlugin.getDefault().getBundle();
+ }
+
+ @Override
+ public EAttribute getContentsNameAttribute() {
+ return null;
+ }
+
+ @Override
+ public EAttribute[] getSearchAttributes() {
+ // ignore
+ return null;
+ }
+
+ @Override
+ public EAttribute getTaskKeySequenceAttribute() {
+ return null;
+ }
+} \ No newline at end of file
diff --git a/org.eclipse.mylyn.reviews.connector.tests/src/org/eclipse/mylyn/reviews/connector/support/MappedTestTaskSchema.java b/org.eclipse.mylyn.reviews.connector.tests/src/org/eclipse/mylyn/reviews/connector/support/MappedTestTaskSchema.java
new file mode 100644
index 0000000..9488c21
--- /dev/null
+++ b/org.eclipse.mylyn.reviews.connector.tests/src/org/eclipse/mylyn/reviews/connector/support/MappedTestTaskSchema.java
@@ -0,0 +1,31 @@
+/*******************************************************************************
+ * Copyright (c) 2012 Tasktop Technologies and others.
+ * 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:
+ * Tasktop Technologies - initial API and implementation
+ *******************************************************************************/
+
+package org.eclipse.mylyn.reviews.connector.support;
+
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EcorePackage;
+import org.eclipse.mylyn.tasks.core.data.DefaultTaskSchema;
+
+public class MappedTestTaskSchema extends BasicTestTaskSchema {
+
+ @Override
+ protected EClass[] getSchemaEClasses() {
+ return new EClass[] { EcorePackage.Literals.EPACKAGE };
+ }
+
+ @Override
+ protected FieldFeature[] getSchemaPairs() {
+ DefaultTaskSchema parent = DefaultTaskSchema.getInstance();
+ return new FieldFeature[] { new FieldFeature(parent.TASK_KEY, EcorePackage.Literals.EPACKAGE__NS_URI),
+ new FieldFeature(parent.SUMMARY, EcorePackage.Literals.EPACKAGE__NS_PREFIX) };
+ }
+} \ No newline at end of file
diff --git a/org.eclipse.mylyn.reviews.connector.tests/testdata/Ecore.ecore b/org.eclipse.mylyn.reviews.connector.tests/testdata/Ecore.ecore
new file mode 100644
index 0000000..8a63316
--- /dev/null
+++ b/org.eclipse.mylyn.reviews.connector.tests/testdata/Ecore.ecore
@@ -0,0 +1,522 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<ecore:EPackage xmi:version="2.0"
+ xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" name="ecore"
+ nsURI="http://www.eclipse.org/emf/2002/Ecore" nsPrefix="ecore">
+ <eClassifiers xsi:type="ecore:EClass" name="EAttribute" eSuperTypes="#//EStructuralFeature">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/Ecore">
+ <details key="constraints" value="ConsistentTransient"/>
+ </eAnnotations>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="iD" eType="#//EBoolean"/>
+ <eStructuralFeatures xsi:type="ecore:EReference" name="eAttributeType" lowerBound="1"
+ eType="#//EDataType" changeable="false" volatile="true" transient="true" derived="true"/>
+ </eClassifiers>
+ <eClassifiers xsi:type="ecore:EClass" name="EAnnotation" eSuperTypes="#//EModelElement">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/Ecore">
+ <details key="constraints" value="WellFormedSourceURI"/>
+ </eAnnotations>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="source" eType="#//EString"/>
+ <eStructuralFeatures xsi:type="ecore:EReference" name="details" upperBound="-1"
+ eType="#//EStringToStringMapEntry" containment="true" resolveProxies="false"/>
+ <eStructuralFeatures xsi:type="ecore:EReference" name="eModelElement" eType="#//EModelElement"
+ transient="true" resolveProxies="false" eOpposite="#//EModelElement/eAnnotations"/>
+ <eStructuralFeatures xsi:type="ecore:EReference" name="contents" upperBound="-1"
+ eType="#//EObject" containment="true" resolveProxies="false"/>
+ <eStructuralFeatures xsi:type="ecore:EReference" name="references" upperBound="-1"
+ eType="#//EObject"/>
+ </eClassifiers>
+ <eClassifiers xsi:type="ecore:EClass" name="EClass" eSuperTypes="#//EClassifier">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/Ecore">
+ <details key="constraints" value="InterfaceIsAbstract AtMostOneID UniqueFeatureNames UniqueOperationSignatures NoCircularSuperTypes WellFormedMapEntryClass ConsistentSuperTypes DisjointFeatureAndOperationSignatures"/>
+ </eAnnotations>
+ <eOperations name="isSuperTypeOf" eType="#//EBoolean">
+ <eParameters name="someClass" eType="#//EClass"/>
+ </eOperations>
+ <eOperations name="getFeatureCount" eType="#//EInt"/>
+ <eOperations name="getEStructuralFeature" eType="#//EStructuralFeature">
+ <eParameters name="featureID" eType="#//EInt"/>
+ </eOperations>
+ <eOperations name="getFeatureID" eType="#//EInt">
+ <eParameters name="feature" eType="#//EStructuralFeature"/>
+ </eOperations>
+ <eOperations name="getEStructuralFeature" eType="#//EStructuralFeature">
+ <eParameters name="featureName" eType="#//EString"/>
+ </eOperations>
+ <eOperations name="getOperationCount" eType="#//EInt"/>
+ <eOperations name="getEOperation" eType="#//EOperation">
+ <eParameters name="operationID" eType="#//EInt"/>
+ </eOperations>
+ <eOperations name="getOperationID" eType="#//EInt">
+ <eParameters name="operation" eType="#//EOperation"/>
+ </eOperations>
+ <eOperations name="getOverride" eType="#//EOperation">
+ <eParameters name="operation" eType="#//EOperation"/>
+ </eOperations>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="abstract" eType="#//EBoolean"/>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="interface" eType="#//EBoolean"/>
+ <eStructuralFeatures xsi:type="ecore:EReference" name="eSuperTypes" upperBound="-1"
+ eType="#//EClass" unsettable="true">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="suppressedIsSetVisibility" value="true"/>
+ <details key="suppressedUnsetVisibility" value="true"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EReference" name="eOperations" upperBound="-1"
+ eType="#//EOperation" containment="true" resolveProxies="false" eOpposite="#//EOperation/eContainingClass"/>
+ <eStructuralFeatures xsi:type="ecore:EReference" name="eAllAttributes" upperBound="-1"
+ eType="#//EAttribute" changeable="false" volatile="true" transient="true"
+ derived="true"/>
+ <eStructuralFeatures xsi:type="ecore:EReference" name="eAllReferences" upperBound="-1"
+ eType="#//EReference" changeable="false" volatile="true" transient="true"
+ derived="true"/>
+ <eStructuralFeatures xsi:type="ecore:EReference" name="eReferences" upperBound="-1"
+ eType="#//EReference" changeable="false" volatile="true" transient="true"
+ derived="true"/>
+ <eStructuralFeatures xsi:type="ecore:EReference" name="eAttributes" upperBound="-1"
+ eType="#//EAttribute" changeable="false" volatile="true" transient="true"
+ derived="true"/>
+ <eStructuralFeatures xsi:type="ecore:EReference" name="eAllContainments" upperBound="-1"
+ eType="#//EReference" changeable="false" volatile="true" transient="true"
+ derived="true"/>
+ <eStructuralFeatures xsi:type="ecore:EReference" name="eAllOperations" upperBound="-1"
+ eType="#//EOperation" changeable="false" volatile="true" transient="true"
+ derived="true"/>
+ <eStructuralFeatures xsi:type="ecore:EReference" name="eAllStructuralFeatures"
+ upperBound="-1" eType="#//EStructuralFeature" changeable="false" volatile="true"
+ transient="true" derived="true"/>
+ <eStructuralFeatures xsi:type="ecore:EReference" name="eAllSuperTypes" upperBound="-1"
+ eType="#//EClass" changeable="false" volatile="true" transient="true" derived="true"/>
+ <eStructuralFeatures xsi:type="ecore:EReference" name="eIDAttribute" eType="#//EAttribute"
+ changeable="false" volatile="true" transient="true" derived="true" resolveProxies="false"/>
+ <eStructuralFeatures xsi:type="ecore:EReference" name="eStructuralFeatures" upperBound="-1"
+ eType="#//EStructuralFeature" containment="true" resolveProxies="false" eOpposite="#//EStructuralFeature/eContainingClass"/>
+ <eStructuralFeatures xsi:type="ecore:EReference" name="eGenericSuperTypes" upperBound="-1"
+ eType="#//EGenericType" unsettable="true" containment="true" resolveProxies="false">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="suppressedIsSetVisibility" value="true"/>
+ <details key="suppressedUnsetVisibility" value="true"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EReference" name="eAllGenericSuperTypes"
+ upperBound="-1" eType="#//EGenericType" changeable="false" volatile="true"
+ transient="true" derived="true"/>
+ </eClassifiers>
+ <eClassifiers xsi:type="ecore:EClass" name="EClassifier" abstract="true" eSuperTypes="#//ENamedElement">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/Ecore">
+ <details key="constraints" value="WellFormedInstanceTypeName UniqueTypeParameterNames"/>
+ </eAnnotations>
+ <eOperations name="isInstance" eType="#//EBoolean">
+ <eParameters name="object" eType="#//EJavaObject"/>
+ </eOperations>
+ <eOperations name="getClassifierID" eType="#//EInt"/>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="instanceClassName" eType="#//EString"
+ volatile="true" unsettable="true">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="suppressedIsSetVisibility" value="true"/>
+ <details key="suppressedUnsetVisibility" value="true"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="instanceClass" changeable="false"
+ volatile="true" transient="true" derived="true">
+ <eGenericType eClassifier="#//EJavaClass">
+ <eTypeArguments/>
+ </eGenericType>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="defaultValue" eType="#//EJavaObject"
+ changeable="false" volatile="true" transient="true" derived="true"/>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="instanceTypeName" eType="#//EString"
+ volatile="true" unsettable="true">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="suppressedIsSetVisibility" value="true"/>
+ <details key="suppressedUnsetVisibility" value="true"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EReference" name="ePackage" eType="#//EPackage"
+ changeable="false" transient="true" eOpposite="#//EPackage/eClassifiers"/>
+ <eStructuralFeatures xsi:type="ecore:EReference" name="eTypeParameters" upperBound="-1"
+ eType="#//ETypeParameter" containment="true"/>
+ </eClassifiers>
+ <eClassifiers xsi:type="ecore:EClass" name="EDataType" eSuperTypes="#//EClassifier">
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="serializable" eType="#//EBoolean"
+ defaultValueLiteral="true"/>
+ </eClassifiers>
+ <eClassifiers xsi:type="ecore:EClass" name="EEnum" eSuperTypes="#//EDataType">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/Ecore">
+ <details key="constraints" value="UniqueEnumeratorNames UniqueEnumeratorLiterals"/>
+ </eAnnotations>
+ <eOperations name="getEEnumLiteral" eType="#//EEnumLiteral">
+ <eParameters name="name" eType="#//EString"/>
+ </eOperations>
+ <eOperations name="getEEnumLiteral" eType="#//EEnumLiteral">
+ <eParameters name="value" eType="#//EInt"/>
+ </eOperations>
+ <eOperations name="getEEnumLiteralByLiteral" eType="#//EEnumLiteral">
+ <eParameters name="literal" eType="#//EString"/>
+ </eOperations>
+ <eStructuralFeatures xsi:type="ecore:EReference" name="eLiterals" upperBound="-1"
+ eType="#//EEnumLiteral" containment="true" resolveProxies="false" eOpposite="#//EEnumLiteral/eEnum"/>
+ </eClassifiers>
+ <eClassifiers xsi:type="ecore:EClass" name="EEnumLiteral" eSuperTypes="#//ENamedElement">
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="value" eType="#//EInt"/>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="instance" eType="#//EEnumerator"
+ transient="true"/>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="literal" eType="#//EString"/>
+ <eStructuralFeatures xsi:type="ecore:EReference" name="eEnum" eType="#//EEnum"
+ changeable="false" transient="true" resolveProxies="false" eOpposite="#//EEnum/eLiterals"/>
+ </eClassifiers>
+ <eClassifiers xsi:type="ecore:EClass" name="EFactory" eSuperTypes="#//EModelElement">
+ <eOperations name="create" eType="#//EObject">
+ <eParameters name="eClass" eType="#//EClass"/>
+ </eOperations>
+ <eOperations name="createFromString" eType="#//EJavaObject">
+ <eParameters name="eDataType" eType="#//EDataType"/>
+ <eParameters name="literalValue" eType="#//EString"/>
+ </eOperations>
+ <eOperations name="convertToString" eType="#//EString">
+ <eParameters name="eDataType" eType="#//EDataType"/>
+ <eParameters name="instanceValue" eType="#//EJavaObject"/>
+ </eOperations>
+ <eStructuralFeatures xsi:type="ecore:EReference" name="ePackage" lowerBound="1"
+ eType="#//EPackage" transient="true" resolveProxies="false" eOpposite="#//EPackage/eFactoryInstance"/>
+ </eClassifiers>
+ <eClassifiers xsi:type="ecore:EClass" name="EModelElement" abstract="true">
+ <eOperations name="getEAnnotation" eType="#//EAnnotation">
+ <eParameters name="source" eType="#//EString"/>
+ </eOperations>
+ <eStructuralFeatures xsi:type="ecore:EReference" name="eAnnotations" upperBound="-1"
+ eType="#//EAnnotation" containment="true" resolveProxies="false" eOpposite="#//EAnnotation/eModelElement"/>
+ </eClassifiers>
+ <eClassifiers xsi:type="ecore:EClass" name="ENamedElement" abstract="true" eSuperTypes="#//EModelElement">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/Ecore">
+ <details key="constraints" value="WellFormedName"/>
+ </eAnnotations>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="#//EString"/>
+ </eClassifiers>
+ <eClassifiers xsi:type="ecore:EClass" name="EObject">
+ <eOperations name="eClass" eType="#//EClass"/>
+ <eOperations name="eIsProxy" eType="#//EBoolean"/>
+ <eOperations name="eResource" eType="#//EResource"/>
+ <eOperations name="eContainer" eType="#//EObject"/>
+ <eOperations name="eContainingFeature" eType="#//EStructuralFeature"/>
+ <eOperations name="eContainmentFeature" eType="#//EReference"/>
+ <eOperations name="eContents">
+ <eGenericType eClassifier="#//EEList">
+ <eTypeArguments eClassifier="#//EObject"/>
+ </eGenericType>
+ </eOperations>
+ <eOperations name="eAllContents">
+ <eGenericType eClassifier="#//ETreeIterator">
+ <eTypeArguments eClassifier="#//EObject"/>
+ </eGenericType>
+ </eOperations>
+ <eOperations name="eCrossReferences">
+ <eGenericType eClassifier="#//EEList">
+ <eTypeArguments eClassifier="#//EObject"/>
+ </eGenericType>
+ </eOperations>
+ <eOperations name="eGet" eType="#//EJavaObject">
+ <eParameters name="feature" eType="#//EStructuralFeature"/>
+ </eOperations>
+ <eOperations name="eGet" eType="#//EJavaObject">
+ <eParameters name="feature" eType="#//EStructuralFeature"/>
+ <eParameters name="resolve" eType="#//EBoolean"/>
+ </eOperations>
+ <eOperations name="eSet">
+ <eParameters name="feature" eType="#//EStructuralFeature"/>
+ <eParameters name="newValue" eType="#//EJavaObject"/>
+ </eOperations>
+ <eOperations name="eIsSet" eType="#//EBoolean">
+ <eParameters name="feature" eType="#//EStructuralFeature"/>
+ </eOperations>
+ <eOperations name="eUnset">
+ <eParameters name="feature" eType="#//EStructuralFeature"/>
+ </eOperations>
+ <eOperations name="eInvoke" eType="#//EJavaObject" eExceptions="#//EInvocationTargetException">
+ <eParameters name="operation" eType="#//EOperation"/>
+ <eParameters name="arguments">
+ <eGenericType eClassifier="#//EEList">
+ <eTypeArguments/>
+ </eGenericType>
+ </eParameters>
+ </eOperations>
+ </eClassifiers>
+ <eClassifiers xsi:type="ecore:EClass" name="EOperation" eSuperTypes="#//ETypedElement">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/Ecore">
+ <details key="constraints" value="UniqueParameterNames UniqueTypeParameterNames NoRepeatingVoid"/>
+ </eAnnotations>
+ <eOperations name="getOperationID" eType="#//EInt"/>
+ <eOperations name="isOverrideOf" eType="#//EBoolean">
+ <eParameters name="someOperation" eType="#//EOperation"/>
+ </eOperations>
+ <eStructuralFeatures xsi:type="ecore:EReference" name="eContainingClass" eType="#//EClass"
+ changeable="false" transient="true" resolveProxies="false" eOpposite="#//EClass/eOperations"/>
+ <eStructuralFeatures xsi:type="ecore:EReference" name="eTypeParameters" upperBound="-1"
+ eType="#//ETypeParameter" containment="true"/>
+ <eStructuralFeatures xsi:type="ecore:EReference" name="eParameters" upperBound="-1"
+ eType="#//EParameter" containment="true" resolveProxies="false" eOpposite="#//EParameter/eOperation"/>
+ <eStructuralFeatures xsi:type="ecore:EReference" name="eExceptions" upperBound="-1"
+ eType="#//EClassifier" unsettable="true">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="suppressedIsSetVisibility" value="true"/>
+ <details key="suppressedUnsetVisibility" value="true"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EReference" name="eGenericExceptions" upperBound="-1"
+ eType="#//EGenericType" unsettable="true" containment="true" resolveProxies="false">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="suppressedIsSetVisibility" value="true"/>
+ <details key="suppressedUnsetVisibility" value="true"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ </eClassifiers>
+ <eClassifiers xsi:type="ecore:EClass" name="EPackage" eSuperTypes="#//ENamedElement">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/Ecore">
+ <details key="constraints" value="WellFormedNsURI WellFormedNsPrefix UniqueSubpackageNames UniqueClassifierNames UniqueNsURIs"/>
+ </eAnnotations>
+ <eOperations name="getEClassifier" eType="#//EClassifier">
+ <eParameters name="name" eType="#//EString"/>
+ </eOperations>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="nsURI" eType="#//EString"/>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="nsPrefix" eType="#//EString"/>
+ <eStructuralFeatures xsi:type="ecore:EReference" name="eFactoryInstance" lowerBound="1"
+ eType="#//EFactory" transient="true" resolveProxies="false" eOpposite="#//EFactory/ePackage"/>
+ <eStructuralFeatures xsi:type="ecore:EReference" name="eClassifiers" upperBound="-1"
+ eType="#//EClassifier" containment="true" eOpposite="#//EClassifier/ePackage"/>
+ <eStructuralFeatures xsi:type="ecore:EReference" name="eSubpackages" upperBound="-1"
+ eType="#//EPackage" containment="true" eOpposite="#//EPackage/eSuperPackage"/>
+ <eStructuralFeatures xsi:type="ecore:EReference" name="eSuperPackage" eType="#//EPackage"
+ changeable="false" transient="true" eOpposite="#//EPackage/eSubpackages"/>
+ </eClassifiers>
+ <eClassifiers xsi:type="ecore:EClass" name="EParameter" eSuperTypes="#//ETypedElement">
+ <eStructuralFeatures xsi:type="ecore:EReference" name="eOperation" eType="#//EOperation"
+ changeable="false" transient="true" resolveProxies="false" eOpposite="#//EOperation/eParameters"/>
+ </eClassifiers>
+ <eClassifiers xsi:type="ecore:EClass" name="EReference" eSuperTypes="#//EStructuralFeature">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/Ecore">
+ <details key="constraints" value="ConsistentOpposite SingleContainer ConsistentKeys ConsistentUnique ConsistentContainer"/>
+ </eAnnotations>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="containment" eType="#//EBoolean"/>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="container" eType="#//EBoolean"
+ changeable="false" volatile="true" transient="true" derived="true"/>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="resolveProxies" eType="#//EBoolean"
+ defaultValueLiteral="true"/>
+ <eStructuralFeatures xsi:type="ecore:EReference" name="eOpposite" eType="#//EReference"/>
+ <eStructuralFeatures xsi:type="ecore:EReference" name="eReferenceType" lowerBound="1"
+ eType="#//EClass" changeable="false" volatile="true" transient="true" derived="true"/>
+ <eStructuralFeatures xsi:type="ecore:EReference" name="eKeys" upperBound="-1"
+ eType="#//EAttribute"/>
+ </eClassifiers>
+ <eClassifiers xsi:type="ecore:EClass" name="EStructuralFeature" abstract="true"
+ eSuperTypes="#//ETypedElement">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/Ecore">
+ <details key="constraints" value="ValidDefaultValueLiteral"/>
+ </eAnnotations>
+ <eOperations name="getFeatureID" eType="#//EInt"/>
+ <eOperations name="getContainerClass">
+ <eGenericType eClassifier="#//EJavaClass">
+ <eTypeArguments/>
+ </eGenericType>
+ </eOperations>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="changeable" eType="#//EBoolean"
+ defaultValueLiteral="true"/>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="volatile" eType="#//EBoolean"/>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="transient" eType="#//EBoolean"/>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="defaultValueLiteral" eType="#//EString"/>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="defaultValue" eType="#//EJavaObject"
+ changeable="false" volatile="true" transient="true" derived="true"/>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="unsettable" eType="#//EBoolean"/>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="derived" eType="#//EBoolean"/>
+ <eStructuralFeatures xsi:type="ecore:EReference" name="eContainingClass" eType="#//EClass"
+ changeable="false" transient="true" resolveProxies="false" eOpposite="#//EClass/eStructuralFeatures"/>
+ </eClassifiers>
+ <eClassifiers xsi:type="ecore:EClass" name="ETypedElement" abstract="true" eSuperTypes="#//ENamedElement">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/Ecore">
+ <details key="constraints" value="ValidLowerBound ValidUpperBound ConsistentBounds ValidType"/>
+ </eAnnotations>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="ordered" eType="#//EBoolean"
+ defaultValueLiteral="true"/>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="unique" eType="#//EBoolean"
+ defaultValueLiteral="true"/>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="lowerBound" eType="#//EInt"/>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="upperBound" eType="#//EInt"
+ defaultValueLiteral="1"/>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="many" eType="#//EBoolean"
+ changeable="false" volatile="true" transient="true" derived="true"/>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="required" eType="#//EBoolean"
+ changeable="false" volatile="true" transient="true" derived="true"/>
+ <eStructuralFeatures xsi:type="ecore:EReference" name="eType" eType="#//EClassifier"
+ volatile="true" unsettable="true">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="suppressedIsSetVisibility" value="true"/>
+ <details key="suppressedUnsetVisibility" value="true"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EReference" name="eGenericType" eType="#//EGenericType"
+ volatile="true" unsettable="true" containment="true" resolveProxies="false">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="suppressedIsSetVisibility" value="true"/>
+ <details key="suppressedUnsetVisibility" value="true"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ </eClassifiers>
+ <eClassifiers xsi:type="ecore:EDataType" name="EBigDecimal" instanceClassName="java.math.BigDecimal">
+ <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="baseType" value="http://www.w3.org/2001/XMLSchema#decimal"/>
+ </eAnnotations>
+ </eClassifiers>
+ <eClassifiers xsi:type="ecore:EDataType" name="EBigInteger" instanceClassName="java.math.BigInteger">
+ <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="baseType" value="http://www.w3.org/2001/XMLSchema#integer"/>
+ </eAnnotations>
+ </eClassifiers>
+ <eClassifiers xsi:type="ecore:EDataType" name="EBoolean" instanceClassName="boolean">
+ <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="baseType" value="http://www.w3.org/2001/XMLSchema#boolean"/>
+ </eAnnotations>
+ </eClassifiers>
+ <eClassifiers xsi:type="ecore:EDataType" name="EBooleanObject" instanceClassName="java.lang.Boolean">
+ <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="baseType" value="EBoolean"/>
+ <details key="name" value="EBoolean:Object"/>
+ </eAnnotations>
+ </eClassifiers>
+ <eClassifiers xsi:type="ecore:EDataType" name="EByte" instanceClassName="byte">
+ <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="baseType" value="http://www.w3.org/2001/XMLSchema#byte"/>
+ </eAnnotations>
+ </eClassifiers>
+ <eClassifiers xsi:type="ecore:EDataType" name="EByteArray" instanceClassName="byte[]">
+ <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="baseType" value="http://www.w3.org/2001/XMLSchema#hexBinary"/>
+ </eAnnotations>
+ </eClassifiers>
+ <eClassifiers xsi:type="ecore:EDataType" name="EByteObject" instanceClassName="java.lang.Byte">
+ <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="baseType" value="EByte"/>
+ <details key="name" value="EByte:Object"/>
+ </eAnnotations>
+ </eClassifiers>
+ <eClassifiers xsi:type="ecore:EDataType" name="EChar" instanceClassName="char"/>
+ <eClassifiers xsi:type="ecore:EDataType" name="ECharacterObject" instanceClassName="java.lang.Character">
+ <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="baseType" value="EChar"/>
+ <details key="name" value="EChar:Object"/>
+ </eAnnotations>
+ </eClassifiers>
+ <eClassifiers xsi:type="ecore:EDataType" name="EDate" instanceClassName="java.util.Date"/>
+ <eClassifiers xsi:type="ecore:EDataType" name="EDiagnosticChain" instanceClassName="org.eclipse.emf.common.util.DiagnosticChain"
+ serializable="false"/>
+ <eClassifiers xsi:type="ecore:EDataType" name="EDouble" instanceClassName="double">
+ <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="baseType" value="http://www.w3.org/2001/XMLSchema#double"/>
+ </eAnnotations>
+ </eClassifiers>
+ <eClassifiers xsi:type="ecore:EDataType" name="EDoubleObject" instanceClassName="java.lang.Double">
+ <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="baseType" value="EDouble"/>
+ <details key="name" value="EDouble:Object"/>
+ </eAnnotations>
+ </eClassifiers>
+ <eClassifiers xsi:type="ecore:EDataType" name="EEList" instanceClassName="org.eclipse.emf.common.util.EList"
+ serializable="false">
+ <eTypeParameters name="E"/>
+ </eClassifiers>
+ <eClassifiers xsi:type="ecore:EDataType" name="EEnumerator" instanceClassName="org.eclipse.emf.common.util.Enumerator"
+ serializable="false"/>
+ <eClassifiers xsi:type="ecore:EDataType" name="EFeatureMap" instanceClassName="org.eclipse.emf.ecore.util.FeatureMap"
+ serializable="false"/>
+ <eClassifiers xsi:type="ecore:EDataType" name="EFeatureMapEntry" instanceClassName="org.eclipse.emf.ecore.util.FeatureMap$Entry"
+ serializable="false"/>
+ <eClassifiers xsi:type="ecore:EDataType" name="EFloat" instanceClassName="float">
+ <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="baseType" value="http://www.w3.org/2001/XMLSchema#float"/>
+ </eAnnotations>
+ </eClassifiers>
+ <eClassifiers xsi:type="ecore:EDataType" name="EFloatObject" instanceClassName="java.lang.Float">
+ <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="baseType" value="EFloat"/>
+ <details key="name" value="EFloat:Object"/>
+ </eAnnotations>
+ </eClassifiers>
+ <eClassifiers xsi:type="ecore:EDataType" name="EInt" instanceClassName="int">
+ <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="baseType" value="http://www.w3.org/2001/XMLSchema#int"/>
+ </eAnnotations>
+ </eClassifiers>
+ <eClassifiers xsi:type="ecore:EDataType" name="EIntegerObject" instanceClassName="java.lang.Integer">
+ <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="baseType" value="EInt"/>
+ <details key="name" value="EInt:Object"/>
+ </eAnnotations>
+ </eClassifiers>
+ <eClassifiers xsi:type="ecore:EDataType" name="EJavaClass" instanceClassName="java.lang.Class">
+ <eTypeParameters name="T"/>
+ </eClassifiers>
+ <eClassifiers xsi:type="ecore:EDataType" name="EJavaObject" instanceClassName="java.lang.Object"/>
+ <eClassifiers xsi:type="ecore:EDataType" name="ELong" instanceClassName="long">
+ <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="baseType" value="http://www.w3.org/2001/XMLSchema#long"/>
+ </eAnnotations>
+ </eClassifiers>
+ <eClassifiers xsi:type="ecore:EDataType" name="ELongObject" instanceClassName="java.lang.Long">
+ <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="baseType" value="ELong"/>
+ <details key="name" value="ELong:Object"/>
+ </eAnnotations>
+ </eClassifiers>
+ <eClassifiers xsi:type="ecore:EDataType" name="EMap" instanceClassName="java.util.Map"
+ serializable="false">
+ <eTypeParameters name="K"/>
+ <eTypeParameters name="V"/>
+ </eClassifiers>
+ <eClassifiers xsi:type="ecore:EDataType" name="EResource" instanceClassName="org.eclipse.emf.ecore.resource.Resource"
+ serializable="false"/>
+ <eClassifiers xsi:type="ecore:EDataType" name="EResourceSet" instanceClassName="org.eclipse.emf.ecore.resource.ResourceSet"
+ serializable="false"/>
+ <eClassifiers xsi:type="ecore:EDataType" name="EShort" instanceClassName="short">
+ <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="baseType" value="http://www.w3.org/2001/XMLSchema#short"/>
+ </eAnnotations>
+ </eClassifiers>
+ <eClassifiers xsi:type="ecore:EDataType" name="EShortObject" instanceClassName="java.lang.Short">
+ <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="baseType" value="EShort"/>
+ <details key="name" value="EShort:Object"/>
+ </eAnnotations>
+ </eClassifiers>
+ <eClassifiers xsi:type="ecore:EDataType" name="EString" instanceClassName="java.lang.String">
+ <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="baseType" value="http://www.w3.org/2001/XMLSchema#string"/>
+ </eAnnotations>
+ </eClassifiers>
+ <eClassifiers xsi:type="ecore:EClass" name="EStringToStringMapEntry" instanceClassName="java.util.Map$Entry">
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="key" eType="#//EString"/>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="value" eType="#//EString"/>
+ </eClassifiers>
+ <eClassifiers xsi:type="ecore:EDataType" name="ETreeIterator" instanceClassName="org.eclipse.emf.common.util.TreeIterator"
+ serializable="false">
+ <eTypeParameters name="E"/>
+ </eClassifiers>
+ <eClassifiers xsi:type="ecore:EClass" name="EGenericType">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/Ecore">
+ <details key="constraints" value="ConsistentType ConsistentBounds ConsistentArguments"/>
+ </eAnnotations>
+ <eStructuralFeatures xsi:type="ecore:EReference" name="eUpperBound" eType="#//EGenericType"
+ containment="true" resolveProxies="false"/>
+ <eStructuralFeatures xsi:type="ecore:EReference" name="eTypeArguments" upperBound="-1"
+ eType="#//EGenericType" containment="true" resolveProxies="false"/>
+ <eStructuralFeatures xsi:type="ecore:EReference" name="eRawType" lowerBound="1"
+ eType="#//EClassifier" changeable="false" transient="true" derived="true"/>
+ <eStructuralFeatures xsi:type="ecore:EReference" name="eLowerBound" eType="#//EGenericType"
+ containment="true" resolveProxies="false"/>
+ <eStructuralFeatures xsi:type="ecore:EReference" name="eTypeParameter" eType="#//ETypeParameter"
+ resolveProxies="false"/>
+ <eStructuralFeatures xsi:type="ecore:EReference" name="eClassifier" eType="#//EClassifier"/>
+ </eClassifiers>
+ <eClassifiers xsi:type="ecore:EClass" name="ETypeParameter" eSuperTypes="#//ENamedElement">
+ <eStructuralFeatures xsi:type="ecore:EReference" name="eBounds" upperBound="-1"
+ eType="#//EGenericType" containment="true" resolveProxies="false"/>
+ </eClassifiers>
+ <eClassifiers xsi:type="ecore:EDataType" name="EInvocationTargetException" instanceClassName="java.lang.reflect.InvocationTargetException"
+ serializable="false"/>
+</ecore:EPackage>
diff --git a/org.eclipse.mylyn.reviews.connector.tests/testdata/Example.emftasks b/org.eclipse.mylyn.reviews.connector.tests/testdata/Example.emftasks
new file mode 100644
index 0000000..2499f8c
--- /dev/null
+++ b/org.eclipse.mylyn.reviews.connector.tests/testdata/Example.emftasks
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<emftasks:TaskCollection xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:emftasks="http://eclipse.org/mylyn/tasks/emftasks/1.0" label="Test Tasks" lastTaskId="100">
+ <tasks id="1" summary="Test Task 1" description="This is test task 1." priority="STANDARD" dueDate="2012-10-28T00:00:00.000-0700" creationDate="2012-10-21T00:00:00.000-0700"/>
+ <tasks id="2" summary="Test Task 2" description="This is test task 2." priority="IMPORTANT" dueDate="2012-10-29T00:00:00.000-0700" creationDate="2012-10-22T00:00:00.000-0700"/>
+ <tasks id="3" summary="Test Task 3" description="This is test task 3." priority="URGENT" dueDate="2012-10-30T00:00:00.000-0700" creationDate="2012-10-23T00:00:00.000-0700"/>
+</emftasks:TaskCollection>
diff --git a/org.eclipse.mylyn.reviews.connector.tests/testdata/ExampleCopy.emftasks b/org.eclipse.mylyn.reviews.connector.tests/testdata/ExampleCopy.emftasks
new file mode 100644
index 0000000..1e98eaa
--- /dev/null
+++ b/org.eclipse.mylyn.reviews.connector.tests/testdata/ExampleCopy.emftasks
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<emftasks:TaskCollection xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:emftasks="http://eclipse.org/mylyn/tasks/emftasks/1.0" label="Test Tasks">
+ <tasks id="1" summary="Test Task 1" description="This is test task 1." priority="STANDARD" dueDate="2012-10-28T00:00:00.000-0700" creationDate="2012-10-21T00:00:00.000-0700"/>
+ <tasks id="2" summary="Test Task 2" description="This is test task 2." priority="IMPORTANT" dueDate="2012-10-29T00:00:00.000-0700" creationDate="2012-10-22T00:00:00.000-0700"/>
+ <tasks id="3" summary="Test Task 3" description="This is test task 3." priority="URGENT" dueDate="2012-10-30T00:00:00.000-0700" creationDate="2012-10-23T00:00:00.000-0700"/>
+</emftasks:TaskCollection>
diff --git a/org.eclipse.mylyn.reviews.connector.tests/testdata/ExampleEncoding.emftasks b/org.eclipse.mylyn.reviews.connector.tests/testdata/ExampleEncoding.emftasks
new file mode 100644
index 0000000..9828c36
--- /dev/null
+++ b/org.eclipse.mylyn.reviews.connector.tests/testdata/ExampleEncoding.emftasks
@@ -0,0 +1,4 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<emftasks:TaskCollection xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:emftasks="http://eclipse.org/mylyn/tasks/emftasks/1.0" label="Test Tasks">
+ <tasks id="0" summary="Encoded Task" description="3-Alpha" priority="URGENT" dueDate="2012-10-30T00:00:00.000-0700" creationDate="2012-10-23T00:00:00.000-0700"/>
+</emftasks:TaskCollection>
diff --git a/org.eclipse.mylyn.reviews.connector.tests/testdata/ExampleModified.emftasks b/org.eclipse.mylyn.reviews.connector.tests/testdata/ExampleModified.emftasks
new file mode 100644
index 0000000..e6fcce9
--- /dev/null
+++ b/org.eclipse.mylyn.reviews.connector.tests/testdata/ExampleModified.emftasks
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<emftasks:TaskCollection xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:emftasks="http://eclipse.org/mylyn/tasks/emftasks/1.0" label="Modified Test Tasks">
+ <tasks id="1" summary="Modified Test Task 1" description="This is test task 1." priority="STANDARD" dueDate="2012-10-28T00:00:00.000-0700" creationDate="2012-10-21T00:00:00.000-0700"/>
+ <tasks id="2" summary="Test Task 2" description="This is test task 2." priority="IMPORTANT" dueDate="2012-10-29T00:00:00.000-0700" creationDate="2012-10-22T00:00:00.000-0700"/>
+ <tasks id="3" summary="Test Task 3" description="This is test task 3." priority="URGENT" dueDate="2012-10-30T00:00:00.000-0700" creationDate="2012-10-23T00:00:00.000-0700"/>
+</emftasks:TaskCollection>
diff --git a/org.eclipse.mylyn.reviews.connector.tests/testdata/ExampleWorkspace.emftasks b/org.eclipse.mylyn.reviews.connector.tests/testdata/ExampleWorkspace.emftasks
new file mode 100644
index 0000000..6dc0844
--- /dev/null
+++ b/org.eclipse.mylyn.reviews.connector.tests/testdata/ExampleWorkspace.emftasks
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<emftasks:TaskCollection xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:emftasks="http://eclipse.org/mylyn/tasks/emftasks/1.0" label="Test Tasks">
+ <tasks id="1" summary="Test Task 1 4" description="This is test task 1." priority="STANDARD" dueDate="2012-10-28T00:00:00.000-0700" completionDate="2012-10-31T00:00:00.000-0700" creationDate="2012-10-21T00:00:00.000-0700">
+ <collaborators>Melvin</collaborators>
+ <collaborators>Dincus</collaborators>
+ </tasks>
+ <tasks id="2" summary="Test Task 2 Unmodified 3" description="This is test task 2. I think. Really. For sure." priority="IMPORTANT" dueDate="2012-10-29T00:00:00.000-0700" creationDate="2012-10-22T00:00:00.000-0700"/>
+ <tasks id="3" summary="Test Task 3 Hey" description="This is test task 3." priority="URGENT" dueDate="2012-10-30T00:00:00.000-0700" creationDate="2012-10-23T00:00:00.000-0700"/>
+</emftasks:TaskCollection>
diff --git a/org.eclipse.mylyn.reviews.connector.ui/.classpath b/org.eclipse.mylyn.reviews.connector.ui/.classpath
new file mode 100644
index 0000000..ad32c83
--- /dev/null
+++ b/org.eclipse.mylyn.reviews.connector.ui/.classpath
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/>
+ <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
+ <classpathentry kind="src" path="src"/>
+ <classpathentry kind="output" path="bin"/>
+</classpath>
diff --git a/org.eclipse.mylyn.reviews.connector.ui/.project b/org.eclipse.mylyn.reviews.connector.ui/.project
new file mode 100644
index 0000000..edf3afa
--- /dev/null
+++ b/org.eclipse.mylyn.reviews.connector.ui/.project
@@ -0,0 +1,34 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>org.eclipse.mylyn.reviews.connector.ui</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.jdt.core.javabuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.pde.ManifestBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.pde.SchemaBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.pde.api.tools.apiAnalysisBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.pde.PluginNature</nature>
+ <nature>org.eclipse.jdt.core.javanature</nature>
+ <nature>org.eclipse.pde.api.tools.apiAnalysisNature</nature>
+ </natures>
+</projectDescription>
diff --git a/org.eclipse.mylyn.reviews.connector.ui/.settings/.api_filters b/org.eclipse.mylyn.reviews.connector.ui/.settings/.api_filters
new file mode 100644
index 0000000..09e014b
--- /dev/null
+++ b/org.eclipse.mylyn.reviews.connector.ui/.settings/.api_filters
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<component id="org.eclipse.mylyn.reviews.connector.ui" version="2">
+ <resource path="src/org/eclipse/mylyn/tasks/emf/connector/ui/AbstractEmfConnectorUi.java" type="org.eclipse.mylyn.reviews.connector.ui.AbstractEmfConnectorUi">
+ <filter id="643842064">
+ <message_arguments>
+ <message_argument value="AbstractEmfConnector"/>
+ <message_argument value="AbstractEmfConnectorUi"/>
+ <message_argument value="getConnector()"/>
+ </message_arguments>
+ </filter>
+ </resource>
+</component>
diff --git a/org.eclipse.mylyn.reviews.connector.ui/.settings/org.eclipse.core.runtime.prefs b/org.eclipse.mylyn.reviews.connector.ui/.settings/org.eclipse.core.runtime.prefs
new file mode 100644
index 0000000..5a0ad22
--- /dev/null
+++ b/org.eclipse.mylyn.reviews.connector.ui/.settings/org.eclipse.core.runtime.prefs
@@ -0,0 +1,2 @@
+eclipse.preferences.version=1
+line.separator=\n
diff --git a/org.eclipse.mylyn.reviews.connector.ui/.settings/org.eclipse.jdt.core.prefs b/org.eclipse.mylyn.reviews.connector.ui/.settings/org.eclipse.jdt.core.prefs
new file mode 100644
index 0000000..3b0b4b0
--- /dev/null
+++ b/org.eclipse.mylyn.reviews.connector.ui/.settings/org.eclipse.jdt.core.prefs
@@ -0,0 +1,353 @@
+#Thu Mar 10 01:21:05 PST 2011
+eclipse.preferences.version=1
+org.eclipse.jdt.core.codeComplete.argumentPrefixes=
+org.eclipse.jdt.core.codeComplete.argumentSuffixes=
+org.eclipse.jdt.core.codeComplete.fieldPrefixes=
+org.eclipse.jdt.core.codeComplete.fieldSuffixes=
+org.eclipse.jdt.core.codeComplete.localPrefixes=
+org.eclipse.jdt.core.codeComplete.localSuffixes=
+org.eclipse.jdt.core.codeComplete.staticFieldPrefixes=
+org.eclipse.jdt.core.codeComplete.staticFieldSuffixes=
+org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6
+org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
+org.eclipse.jdt.core.compiler.compliance=1.6
+org.eclipse.jdt.core.compiler.debug.lineNumber=generate
+org.eclipse.jdt.core.compiler.debug.localVariable=generate
+org.eclipse.jdt.core.compiler.debug.sourceFile=generate
+org.eclipse.jdt.core.compiler.problem.annotationSuperInterface=warning
+org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
+org.eclipse.jdt.core.compiler.problem.autoboxing=ignore
+org.eclipse.jdt.core.compiler.problem.deprecation=warning
+org.eclipse.jdt.core.compiler.problem.deprecationInDeprecatedCode=disabled
+org.eclipse.jdt.core.compiler.problem.deprecationWhenOverridingDeprecatedMethod=enabled
+org.eclipse.jdt.core.compiler.problem.discouragedReference=warning
+org.eclipse.jdt.core.compiler.problem.emptyStatement=ignore
+org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
+org.eclipse.jdt.core.compiler.problem.fallthroughCase=ignore
+org.eclipse.jdt.core.compiler.problem.fatalOptionalError=enabled
+org.eclipse.jdt.core.compiler.problem.fieldHiding=ignore
+org.eclipse.jdt.core.compiler.problem.finalParameterBound=warning
+org.eclipse.jdt.core.compiler.problem.finallyBlockNotCompletingNormally=warning
+org.eclipse.jdt.core.compiler.problem.forbiddenReference=error
+org.eclipse.jdt.core.compiler.problem.hiddenCatchBlock=warning
+org.eclipse.jdt.core.compiler.problem.incompatibleNonInheritedInterfaceMethod=warning
+org.eclipse.jdt.core.compiler.problem.incompleteEnumSwitch=ignore
+org.eclipse.jdt.core.compiler.problem.indirectStaticAccess=ignore
+org.eclipse.jdt.core.compiler.problem.localVariableHiding=ignore
+org.eclipse.jdt.core.compiler.problem.methodWithConstructorName=warning
+org.eclipse.jdt.core.compiler.problem.missingDeprecatedAnnotation=ignore
+org.eclipse.jdt.core.compiler.problem.missingOverrideAnnotation=ignore
+org.eclipse.jdt.core.compiler.problem.missingSerialVersion=warning
+org.eclipse.jdt.core.compiler.problem.noEffectAssignment=warning
+org.eclipse.jdt.core.compiler.problem.noImplicitStringConversion=warning
+org.eclipse.jdt.core.compiler.problem.nonExternalizedStringLiteral=warning
+org.eclipse.jdt.core.compiler.problem.nullReference=error
+org.eclipse.jdt.core.compiler.problem.overridingPackageDefaultMethod=warning
+org.eclipse.jdt.core.compiler.problem.parameterAssignment=ignore
+org.eclipse.jdt.core.compiler.problem.possibleAccidentalBooleanAssignment=ignore
+org.eclipse.jdt.core.compiler.problem.potentialNullReference=warning
+org.eclipse.jdt.core.compiler.problem.rawTypeReference=warning
+org.eclipse.jdt.core.compiler.problem.redundantNullCheck=ignore
+org.eclipse.jdt.core.compiler.problem.redundantSuperinterface=ignore
+org.eclipse.jdt.core.compiler.problem.specialParameterHidingField=disabled
+org.eclipse.jdt.core.compiler.problem.staticAccessReceiver=warning
+org.eclipse.jdt.core.compiler.problem.suppressWarnings=enabled
+org.eclipse.jdt.core.compiler.problem.syntheticAccessEmulation=ignore
+org.eclipse.jdt.core.compiler.problem.typeParameterHiding=warning
+org.eclipse.jdt.core.compiler.problem.uncheckedTypeOperation=warning
+org.eclipse.jdt.core.compiler.problem.undocumentedEmptyBlock=ignore
+org.eclipse.jdt.core.compiler.problem.unhandledWarningToken=warning
+org.eclipse.jdt.core.compiler.problem.unnecessaryElse=ignore
+org.eclipse.jdt.core.compiler.problem.unnecessaryTypeCheck=ignore
+org.eclipse.jdt.core.compiler.problem.unqualifiedFieldAccess=ignore
+org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownException=ignore
+org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionExemptExceptionAndThrowable=enabled
+org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionIncludeDocCommentReference=enabled
+org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionWhenOverriding=disabled
+org.eclipse.jdt.core.compiler.problem.unusedImport=warning
+org.eclipse.jdt.core.compiler.problem.unusedLabel=warning
+org.eclipse.jdt.core.compiler.problem.unusedLocal=warning
+org.eclipse.jdt.core.compiler.problem.unusedParameter=ignore
+org.eclipse.jdt.core.compiler.problem.unusedParameterIncludeDocCommentReference=enabled
+org.eclipse.jdt.core.compiler.problem.unusedParameterWhenImplementingAbstract=disabled
+org.eclipse.jdt.core.compiler.problem.unusedParameterWhenOverridingConcrete=disabled
+org.eclipse.jdt.core.compiler.problem.unusedPrivateMember=warning
+org.eclipse.jdt.core.compiler.problem.unusedWarningToken=warning
+org.eclipse.jdt.core.compiler.problem.varargsArgumentNeedCast=warning
+org.eclipse.jdt.core.compiler.source=1.6
+org.eclipse.jdt.core.compiler.taskCaseSensitive=enabled
+org.eclipse.jdt.core.compiler.taskPriorities=NORMAL,HIGH,NORMAL
+org.eclipse.jdt.core.compiler.taskTags=TODO,FIXME,XXX
+org.eclipse.jdt.core.formatter.align_type_members_on_columns=false
+org.eclipse.jdt.core.formatter.alignment_for_arguments_in_allocation_expression=16
+org.eclipse.jdt.core.formatter.alignment_for_arguments_in_annotation=0
+org.eclipse.jdt.core.formatter.alignment_for_arguments_in_enum_constant=16
+org.eclipse.jdt.core.formatter.alignment_for_arguments_in_explicit_constructor_call=16
+org.eclipse.jdt.core.formatter.alignment_for_arguments_in_method_invocation=16
+org.eclipse.jdt.core.formatter.alignment_for_arguments_in_qualified_allocation_expression=16
+org.eclipse.jdt.core.formatter.alignment_for_assignment=0
+org.eclipse.jdt.core.formatter.alignment_for_binary_expression=16
+org.eclipse.jdt.core.formatter.alignment_for_compact_if=16
+org.eclipse.jdt.core.formatter.alignment_for_conditional_expression=48
+org.eclipse.jdt.core.formatter.alignment_for_enum_constants=0
+org.eclipse.jdt.core.formatter.alignment_for_expressions_in_array_initializer=16
+org.eclipse.jdt.core.formatter.alignment_for_method_declaration=0
+org.eclipse.jdt.core.formatter.alignment_for_multiple_fields=16
+org.eclipse.jdt.core.formatter.alignment_for_parameters_in_constructor_declaration=16
+org.eclipse.jdt.core.formatter.alignment_for_parameters_in_method_declaration=16
+org.eclipse.jdt.core.formatter.alignment_for_selector_in_method_invocation=80
+org.eclipse.jdt.core.formatter.alignment_for_superclass_in_type_declaration=16
+org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_enum_declaration=16
+org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_type_declaration=16
+org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_constructor_declaration=16
+org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_method_declaration=16
+org.eclipse.jdt.core.formatter.blank_lines_after_imports=1
+org.eclipse.jdt.core.formatter.blank_lines_after_package=1
+org.eclipse.jdt.core.formatter.blank_lines_before_field=1
+org.eclipse.jdt.core.formatter.blank_lines_before_first_class_body_declaration=0
+org.eclipse.jdt.core.formatter.blank_lines_before_imports=1
+org.eclipse.jdt.core.formatter.blank_lines_before_member_type=1
+org.eclipse.jdt.core.formatter.blank_lines_before_method=1
+org.eclipse.jdt.core.formatter.blank_lines_before_new_chunk=1
+org.eclipse.jdt.core.formatter.blank_lines_before_package=0
+org.eclipse.jdt.core.formatter.blank_lines_between_import_groups=1
+org.eclipse.jdt.core.formatter.blank_lines_between_type_declarations=1
+org.eclipse.jdt.core.formatter.brace_position_for_annotation_type_declaration=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_anonymous_type_declaration=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_array_initializer=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_block=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_block_in_case=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_constructor_declaration=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_enum_constant=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_enum_declaration=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_method_declaration=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_switch=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_type_declaration=end_of_line
+org.eclipse.jdt.core.formatter.comment.clear_blank_lines_in_block_comment=false
+org.eclipse.jdt.core.formatter.comment.clear_blank_lines_in_javadoc_comment=true
+org.eclipse.jdt.core.formatter.comment.format_block_comments=false
+org.eclipse.jdt.core.formatter.comment.format_header=false
+org.eclipse.jdt.core.formatter.comment.format_html=true
+org.eclipse.jdt.core.formatter.comment.format_javadoc_comments=true
+org.eclipse.jdt.core.formatter.comment.format_line_comments=false
+org.eclipse.jdt.core.formatter.comment.format_source_code=true
+org.eclipse.jdt.core.formatter.comment.indent_parameter_description=true
+org.eclipse.jdt.core.formatter.comment.indent_root_tags=true
+org.eclipse.jdt.core.formatter.comment.insert_new_line_before_root_tags=insert
+org.eclipse.jdt.core.formatter.comment.insert_new_line_for_parameter=insert
+org.eclipse.jdt.core.formatter.comment.line_length=120
+org.eclipse.jdt.core.formatter.comment.new_lines_at_block_boundaries=true
+org.eclipse.jdt.core.formatter.comment.new_lines_at_javadoc_boundaries=true
+org.eclipse.jdt.core.formatter.comment.preserve_white_space_between_code_and_line_comments=false
+org.eclipse.jdt.core.formatter.compact_else_if=true
+org.eclipse.jdt.core.formatter.continuation_indentation=2
+org.eclipse.jdt.core.formatter.continuation_indentation_for_array_initializer=2
+org.eclipse.jdt.core.formatter.disabling_tag=@formatter\:off
+org.eclipse.jdt.core.formatter.enabling_tag=@formatter\:on
+org.eclipse.jdt.core.formatter.format_guardian_clause_on_one_line=false
+org.eclipse.jdt.core.formatter.format_line_comment_starting_on_first_column=true
+org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_annotation_declaration_header=true
+org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_constant_header=true
+org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_declaration_header=true
+org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_type_header=true
+org.eclipse.jdt.core.formatter.indent_breaks_compare_to_cases=true
+org.eclipse.jdt.core.formatter.indent_empty_lines=false
+org.eclipse.jdt.core.formatter.indent_statements_compare_to_block=true
+org.eclipse.jdt.core.formatter.indent_statements_compare_to_body=true
+org.eclipse.jdt.core.formatter.indent_switchstatements_compare_to_cases=true
+org.eclipse.jdt.core.formatter.indent_switchstatements_compare_to_switch=false
+org.eclipse.jdt.core.formatter.indentation.size=4
+org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_field=insert
+org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_local_variable=insert
+org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_method=insert
+org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_package=insert
+org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_parameter=insert
+org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_type=insert
+org.eclipse.jdt.core.formatter.insert_new_line_after_label=do not insert
+org.eclipse.jdt.core.formatter.insert_new_line_after_opening_brace_in_array_initializer=do not insert
+org.eclipse.jdt.core.formatter.insert_new_line_at_end_of_file_if_missing=do not insert
+org.eclipse.jdt.core.formatter.insert_new_line_before_catch_in_try_statement=do not insert
+org.eclipse.jdt.core.formatter.insert_new_line_before_closing_brace_in_array_initializer=do not insert
+org.eclipse.jdt.core.formatter.insert_new_line_before_else_in_if_statement=do not insert
+org.eclipse.jdt.core.formatter.insert_new_line_before_finally_in_try_statement=do not insert
+org.eclipse.jdt.core.formatter.insert_new_line_before_while_in_do_statement=do not insert
+org.eclipse.jdt.core.formatter.insert_new_line_in_empty_annotation_declaration=insert
+org.eclipse.jdt.core.formatter.insert_new_line_in_empty_anonymous_type_declaration=insert
+org.eclipse.jdt.core.formatter.insert_new_line_in_empty_block=insert
+org.eclipse.jdt.core.formatter.insert_new_line_in_empty_enum_constant=insert
+org.eclipse.jdt.core.formatter.insert_new_line_in_empty_enum_declaration=insert
+org.eclipse.jdt.core.formatter.insert_new_line_in_empty_method_body=insert
+org.eclipse.jdt.core.formatter.insert_new_line_in_empty_type_declaration=insert
+org.eclipse.jdt.core.formatter.insert_space_after_and_in_type_parameter=insert
+org.eclipse.jdt.core.formatter.insert_space_after_assignment_operator=insert
+org.eclipse.jdt.core.formatter.insert_space_after_at_in_annotation=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_at_in_annotation_type_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_binary_operator=insert
+org.eclipse.jdt.core.formatter.insert_space_after_closing_angle_bracket_in_type_arguments=insert
+org.eclipse.jdt.core.formatter.insert_space_after_closing_angle_bracket_in_type_parameters=insert
+org.eclipse.jdt.core.formatter.insert_space_after_closing_brace_in_block=insert
+org.eclipse.jdt.core.formatter.insert_space_after_closing_paren_in_cast=insert
+org.eclipse.jdt.core.formatter.insert_space_after_colon_in_assert=insert
+org.eclipse.jdt.core.formatter.insert_space_after_colon_in_case=insert
+org.eclipse.jdt.core.formatter.insert_space_after_colon_in_conditional=insert
+org.eclipse.jdt.core.formatter.insert_space_after_colon_in_for=insert
+org.eclipse.jdt.core.formatter.insert_space_after_colon_in_labeled_statement=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_allocation_expression=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_annotation=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_array_initializer=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_constructor_declaration_parameters=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_constructor_declaration_throws=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_enum_constant_arguments=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_enum_declarations=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_explicitconstructorcall_arguments=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_for_increments=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_for_inits=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_declaration_parameters=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_declaration_throws=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_invocation_arguments=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_multiple_field_declarations=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_multiple_local_declarations=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_parameterized_type_reference=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_superinterfaces=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_type_arguments=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_type_parameters=insert
+org.eclipse.jdt.core.formatter.insert_space_after_ellipsis=insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_parameterized_type_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_type_arguments=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_type_parameters=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_brace_in_array_initializer=insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_bracket_in_array_allocation_expression=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_bracket_in_array_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_annotation=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_cast=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_catch=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_constructor_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_enum_constant=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_for=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_if=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_invocation=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_parenthesized_expression=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_switch=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_synchronized=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_while=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_postfix_operator=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_prefix_operator=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_question_in_conditional=insert
+org.eclipse.jdt.core.formatter.insert_space_after_question_in_wildcard=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_semicolon_in_for=insert
+org.eclipse.jdt.core.formatter.insert_space_after_unary_operator=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_and_in_type_parameter=insert
+org.eclipse.jdt.core.formatter.insert_space_before_assignment_operator=insert
+org.eclipse.jdt.core.formatter.insert_space_before_at_in_annotation_type_declaration=insert
+org.eclipse.jdt.core.formatter.insert_space_before_binary_operator=insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_parameterized_type_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_type_arguments=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_type_parameters=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_brace_in_array_initializer=insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_bracket_in_array_allocation_expression=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_bracket_in_array_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_annotation=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_cast=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_catch=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_constructor_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_enum_constant=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_for=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_if=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_method_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_method_invocation=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_parenthesized_expression=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_switch=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_synchronized=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_while=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_colon_in_assert=insert
+org.eclipse.jdt.core.formatter.insert_space_before_colon_in_case=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_colon_in_conditional=insert
+org.eclipse.jdt.core.formatter.insert_space_before_colon_in_default=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_colon_in_for=insert
+org.eclipse.jdt.core.formatter.insert_space_before_colon_in_labeled_statement=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_allocation_expression=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_annotation=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_array_initializer=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_parameters=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_throws=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_constant_arguments=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_declarations=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_explicitconstructorcall_arguments=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_for_increments=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_for_inits=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_parameters=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_throws=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_invocation_arguments=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_field_declarations=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_local_declarations=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_parameterized_type_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_superinterfaces=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_arguments=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_parameters=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_ellipsis=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_parameterized_type_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_arguments=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_parameters=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_annotation_type_declaration=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_anonymous_type_declaration=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_array_initializer=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_block=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_constructor_declaration=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_enum_constant=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_enum_declaration=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_method_declaration=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_switch=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_type_declaration=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_allocation_expression=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_type_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_annotation=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_annotation_type_member_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_catch=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_constructor_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_enum_constant=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_for=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_if=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_invocation=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_parenthesized_expression=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_switch=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_synchronized=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_while=insert
+org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_return=insert
+org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_throw=insert
+org.eclipse.jdt.core.formatter.insert_space_before_postfix_operator=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_prefix_operator=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_question_in_conditional=insert
+org.eclipse.jdt.core.formatter.insert_space_before_question_in_wildcard=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_semicolon=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_semicolon_in_for=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_unary_operator=do not insert
+org.eclipse.jdt.core.formatter.insert_space_between_brackets_in_array_type_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_between_empty_braces_in_array_initializer=do not insert
+org.eclipse.jdt.core.formatter.insert_space_between_empty_brackets_in_array_allocation_expression=do not insert
+org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_annotation_type_member_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_constructor_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_enum_constant=do not insert
+org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_invocation=do not insert
+org.eclipse.jdt.core.formatter.join_lines_in_comments=true
+org.eclipse.jdt.core.formatter.join_wrapped_lines=true
+org.eclipse.jdt.core.formatter.keep_else_statement_on_same_line=false
+org.eclipse.jdt.core.formatter.keep_empty_array_initializer_on_one_line=false
+org.eclipse.jdt.core.formatter.keep_imple_if_on_one_line=false
+org.eclipse.jdt.core.formatter.keep_then_statement_on_same_line=false
+org.eclipse.jdt.core.formatter.lineSplit=120
+org.eclipse.jdt.core.formatter.never_indent_block_comments_on_first_column=true
+org.eclipse.jdt.core.formatter.never_indent_line_comments_on_first_column=true
+org.eclipse.jdt.core.formatter.number_of_blank_lines_at_beginning_of_method_body=0
+org.eclipse.jdt.core.formatter.number_of_empty_lines_to_preserve=1
+org.eclipse.jdt.core.formatter.put_empty_statement_on_new_line=true
+org.eclipse.jdt.core.formatter.tabulation.char=tab
+org.eclipse.jdt.core.formatter.tabulation.size=4
+org.eclipse.jdt.core.formatter.use_on_off_tags=false
+org.eclipse.jdt.core.formatter.use_tabs_only_for_leading_indentations=false
+org.eclipse.jdt.core.formatter.wrap_before_binary_operator=true
+org.eclipse.jdt.core.formatter.wrap_outer_expressions_when_nested=true
diff --git a/org.eclipse.mylyn.reviews.connector.ui/.settings/org.eclipse.jdt.ui.prefs b/org.eclipse.mylyn.reviews.connector.ui/.settings/org.eclipse.jdt.ui.prefs
new file mode 100644
index 0000000..d92dfc1
--- /dev/null
+++ b/org.eclipse.mylyn.reviews.connector.ui/.settings/org.eclipse.jdt.ui.prefs
@@ -0,0 +1,63 @@
+#Wed Mar 02 16:00:08 PST 2011
+cleanup_settings_version=2
+eclipse.preferences.version=1
+editor_save_participant_org.eclipse.jdt.ui.postsavelistener.cleanup=true
+formatter_profile=_Mylyn based on Eclipse
+formatter_settings_version=12
+internal.default.compliance=default
+org.eclipse.jdt.ui.exception.name=e
+org.eclipse.jdt.ui.gettersetter.use.is=true
+org.eclipse.jdt.ui.javadoc=false
+org.eclipse.jdt.ui.keywordthis=false
+org.eclipse.jdt.ui.overrideannotation=true
+org.eclipse.jdt.ui.text.custom_code_templates=<?xml version\="1.0" encoding\="UTF-8" standalone\="no"?><templates><template autoinsert\="true" context\="gettercomment_context" deleted\="false" description\="Comment for getter method" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.gettercomment" name\="gettercomment">/**\r\n * @return the ${bare_field_name}\r\n */</template><template autoinsert\="true" context\="settercomment_context" deleted\="false" description\="Comment for setter method" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.settercomment" name\="settercomment">/**\r\n * @param ${param} the ${bare_field_name} to set\r\n */</template><template autoinsert\="true" context\="constructorcomment_context" deleted\="false" description\="Comment for created constructors" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.constructorcomment" name\="constructorcomment">/**\r\n * ${tags}\r\n */</template><template autoinsert\="true" context\="filecomment_context" deleted\="false" description\="Comment for created Java files" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.filecomment" name\="filecomment">/**\r\n * \r\n */</template><template autoinsert\="false" context\="typecomment_context" deleted\="false" description\="Comment for created types" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.typecomment" name\="typecomment">/**\r\n * @author ${user}\r\n */</template><template autoinsert\="true" context\="fieldcomment_context" deleted\="false" description\="Comment for fields" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.fieldcomment" name\="fieldcomment">/**\r\n * \r\n */</template><template autoinsert\="true" context\="methodcomment_context" deleted\="false" description\="Comment for non-overriding methods" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.methodcomment" name\="methodcomment">/**\r\n * ${tags}\r\n */</template><template autoinsert\="false" context\="overridecomment_context" deleted\="false" description\="Comment for overriding methods" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.overridecomment" name\="overridecomment"/><template autoinsert\="false" context\="newtype_context" deleted\="false" description\="Newly created files" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.newtype" name\="newtype">/*******************************************************************************\r\n * Copyright (c) ${year} Tasktop Technologies and others.\r\n * All rights reserved. This program and the accompanying materials\r\n * are made available under the terms of the Eclipse Public License v1.0\r\n * which accompanies this distribution, and is available at\r\n * http\://www.eclipse.org/legal/epl-v10.html\r\n *\r\n * Contributors\:\r\n * Tasktop Technologies - initial API and implementation\r\n *******************************************************************************/\r\n\r\n${package_declaration}\r\n\r\n${typecomment}\r\n${type_declaration}</template><template autoinsert\="true" context\="classbody_context" deleted\="false" description\="Code in new class type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.classbody" name\="classbody">\r\n</template><template autoinsert\="true" context\="interfacebody_context" deleted\="false" description\="Code in new interface type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.interfacebody" name\="interfacebody">\r\n</template><template autoinsert\="true" context\="enumbody_context" deleted\="false" description\="Code in new enum type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.enumbody" name\="enumbody">\r\n</template><template autoinsert\="true" context\="annotationbody_context" deleted\="false" description\="Code in new annotation type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.annotationbody" name\="annotationbody">\r\n</template><template autoinsert\="false" context\="catchblock_context" deleted\="false" description\="Code in new catch blocks" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.catchblock" name\="catchblock">// ${todo} Auto-generated catch block\r\n${exception_var}.printStackTrace();</template><template autoinsert\="false" context\="methodbody_context" deleted\="false" description\="Code in created method stubs" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.methodbody" name\="methodbody">// ignore\r\n${body_statement}</template><template autoinsert\="false" context\="constructorbody_context" deleted\="false" description\="Code in created constructor stubs" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.constructorbody" name\="constructorbody">${body_statement}\r\n// ignore</template><template autoinsert\="true" context\="getterbody_context" deleted\="false" description\="Code in created getters" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.getterbody" name\="getterbody">return ${field};</template><template autoinsert\="true" context\="setterbody_context" deleted\="false" description\="Code in created setters" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.setterbody" name\="setterbody">${field} \= ${param};</template><template autoinsert\="true" context\="delegatecomment_context" deleted\="false" description\="Comment for delegate methods" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.delegatecomment" name\="delegatecomment">/**\r\n * ${tags}\r\n * ${see_to_target}\r\n */</template><template autoinsert\="true" context\="gettercomment_context" deleted\="false" description\="Comment for getter function" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.gettercomment" name\="gettercomment">/**\r\n * @return the ${bare_field_name}\r\n */</template><template autoinsert\="true" context\="settercomment_context" deleted\="false" description\="Comment for setter function" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.settercomment" name\="settercomment">/**\r\n * @param ${param} the ${bare_field_name} to set\r\n */</template><template autoinsert\="true" context\="constructorcomment_context" deleted\="false" description\="Comment for created constructors" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.constructorcomment" name\="constructorcomment">/**\r\n * ${tags}\r\n */</template><template autoinsert\="true" context\="filecomment_context" deleted\="false" description\="Comment for created JavaScript files" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.filecomment" name\="filecomment">/**\r\n * \r\n */</template><template autoinsert\="true" context\="typecomment_context" deleted\="false" description\="Comment for created types" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.typecomment" name\="typecomment">/**\r\n * @author ${user}\r\n *\r\n * ${tags}\r\n */</template><template autoinsert\="true" context\="fieldcomment_context" deleted\="false" description\="Comment for vars" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.fieldcomment" name\="fieldcomment">/**\r\n * \r\n */</template><template autoinsert\="true" context\="methodcomment_context" deleted\="false" description\="Comment for non-overriding function" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.methodcomment" name\="methodcomment">/**\r\n * ${tags}\r\n */</template><template autoinsert\="true" context\="overridecomment_context" deleted\="false" description\="Comment for overriding functions" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.overridecomment" name\="overridecomment">/* (non-Jsdoc)\r\n * ${see_to_overridden}\r\n */</template><template autoinsert\="true" context\="delegatecomment_context" deleted\="false" description\="Comment for delegate functions" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.delegatecomment" name\="delegatecomment">/**\r\n * ${tags}\r\n * ${see_to_target}\r\n */</template><template autoinsert\="true" context\="newtype_context" deleted\="false" description\="Newly created files" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.newtype" name\="newtype">${filecomment}\r\n${package_declaration}\r\n\r\n${typecomment}\r\n${type_declaration}</template><template autoinsert\="true" context\="classbody_context" deleted\="false" description\="Code in new class type bodies" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.classbody" name\="classbody">\r\n</template><template autoinsert\="true" context\="interfacebody_context" deleted\="false" description\="Code in new interface type bodies" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.interfacebody" name\="interfacebody">\r\n</template><template autoinsert\="true" context\="enumbody_context" deleted\="false" description\="Code in new enum type bodies" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.enumbody" name\="enumbody">\r\n</template><template autoinsert\="true" context\="annotationbody_context" deleted\="false" description\="Code in new annotation type bodies" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.annotationbody" name\="annotationbody">\r\n</template><template autoinsert\="true" context\="catchblock_context" deleted\="false" description\="Code in new catch blocks" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.catchblock" name\="catchblock">// ${todo} Auto-generated catch block\r\n${exception_var}.printStackTrace();</template><template autoinsert\="true" context\="methodbody_context" deleted\="false" description\="Code in created function stubs" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.methodbody" name\="methodbody">// ${todo} Auto-generated function stub\r\n${body_statement}</template><template autoinsert\="true" context\="constructorbody_context" deleted\="false" description\="Code in created constructor stubs" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.constructorbody" name\="constructorbody">${body_statement}\r\n// ${todo} Auto-generated constructor stub</template><template autoinsert\="true" context\="getterbody_context" deleted\="false" description\="Code in created getters" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.getterbody" name\="getterbody">return ${field};</template><template autoinsert\="true" context\="setterbody_context" deleted\="false" description\="Code in created setters" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.setterbody" name\="setterbody">${field} \= ${param};</template></templates>
+sp_cleanup.add_default_serial_version_id=true
+sp_cleanup.add_generated_serial_version_id=false
+sp_cleanup.add_missing_annotations=true
+sp_cleanup.add_missing_deprecated_annotations=true
+sp_cleanup.add_missing_methods=false
+sp_cleanup.add_missing_nls_tags=false
+sp_cleanup.add_missing_override_annotations=true
+sp_cleanup.add_serial_version_id=false
+sp_cleanup.always_use_blocks=true
+sp_cleanup.always_use_parentheses_in_expressions=false
+sp_cleanup.always_use_this_for_non_static_field_access=false
+sp_cleanup.always_use_this_for_non_static_method_access=false
+sp_cleanup.convert_to_enhanced_for_loop=true
+sp_cleanup.correct_indentation=true
+sp_cleanup.format_source_code=true
+sp_cleanup.format_source_code_changes_only=false
+sp_cleanup.make_local_variable_final=false
+sp_cleanup.make_parameters_final=false
+sp_cleanup.make_private_fields_final=true
+sp_cleanup.make_variable_declarations_final=true
+sp_cleanup.never_use_blocks=false
+sp_cleanup.never_use_parentheses_in_expressions=true
+sp_cleanup.on_save_use_additional_actions=true
+sp_cleanup.organize_imports=true
+sp_cleanup.qualify_static_field_accesses_with_declaring_class=false
+sp_cleanup.qualify_static_member_accesses_through_instances_with_declaring_class=true
+sp_cleanup.qualify_static_member_accesses_through_subtypes_with_declaring_class=true
+sp_cleanup.qualify_static_member_accesses_with_declaring_class=true
+sp_cleanup.qualify_static_method_accesses_with_declaring_class=false
+sp_cleanup.remove_private_constructors=true
+sp_cleanup.remove_trailing_whitespaces=true
+sp_cleanup.remove_trailing_whitespaces_all=true
+sp_cleanup.remove_trailing_whitespaces_ignore_empty=false
+sp_cleanup.remove_unnecessary_casts=true
+sp_cleanup.remove_unnecessary_nls_tags=true
+sp_cleanup.remove_unused_imports=false
+sp_cleanup.remove_unused_local_variables=false
+sp_cleanup.remove_unused_private_fields=true
+sp_cleanup.remove_unused_private_members=false
+sp_cleanup.remove_unused_private_methods=true
+sp_cleanup.remove_unused_private_types=true
+sp_cleanup.sort_members=false
+sp_cleanup.sort_members_all=false
+sp_cleanup.use_blocks=true
+sp_cleanup.use_blocks_only_for_return_and_throw=false
+sp_cleanup.use_parentheses_in_expressions=false
+sp_cleanup.use_this_for_non_static_field_access=false
+sp_cleanup.use_this_for_non_static_field_access_only_if_necessary=true
+sp_cleanup.use_this_for_non_static_method_access=false
+sp_cleanup.use_this_for_non_static_method_access_only_if_necessary=true
diff --git a/org.eclipse.mylyn.reviews.connector.ui/.settings/org.eclipse.ltk.core.refactoring.prefs b/org.eclipse.mylyn.reviews.connector.ui/.settings/org.eclipse.ltk.core.refactoring.prefs
new file mode 100644
index 0000000..5e7f2bd
--- /dev/null
+++ b/org.eclipse.mylyn.reviews.connector.ui/.settings/org.eclipse.ltk.core.refactoring.prefs
@@ -0,0 +1,3 @@
+#Tue Aug 18 22:42:26 PDT 2009
+eclipse.preferences.version=1
+org.eclipse.ltk.core.refactoring.enable.project.refactoring.history=false
diff --git a/org.eclipse.mylyn.reviews.connector.ui/.settings/org.eclipse.mylyn.tasks.ui.prefs b/org.eclipse.mylyn.reviews.connector.ui/.settings/org.eclipse.mylyn.tasks.ui.prefs
new file mode 100644
index 0000000..d8c6d26
--- /dev/null
+++ b/org.eclipse.mylyn.reviews.connector.ui/.settings/org.eclipse.mylyn.tasks.ui.prefs
@@ -0,0 +1,4 @@
+#Mon Jun 25 03:02:37 GMT 2007
+eclipse.preferences.version=1
+project.repository.kind=bugzilla
+project.repository.url=https\://bugs.eclipse.org/bugs
diff --git a/org.eclipse.mylyn.reviews.connector.ui/.settings/org.eclipse.mylyn.team.ui.prefs b/org.eclipse.mylyn.reviews.connector.ui/.settings/org.eclipse.mylyn.team.ui.prefs
new file mode 100644
index 0000000..10d0afb
--- /dev/null
+++ b/org.eclipse.mylyn.reviews.connector.ui/.settings/org.eclipse.mylyn.team.ui.prefs
@@ -0,0 +1,2 @@
+commit.comment.template=${task.key}\: ${task.description}\n\nTask-Url\: ${task.url}
+eclipse.preferences.version=1
diff --git a/org.eclipse.mylyn.reviews.connector.ui/.settings/org.eclipse.pde.prefs b/org.eclipse.mylyn.reviews.connector.ui/.settings/org.eclipse.pde.prefs
new file mode 100644
index 0000000..e8f2d56
--- /dev/null
+++ b/org.eclipse.mylyn.reviews.connector.ui/.settings/org.eclipse.pde.prefs
@@ -0,0 +1,18 @@
+#Tue Apr 15 11:07:59 PDT 2008
+compilers.incompatible-environment=1
+compilers.p.build=1
+compilers.p.deprecated=1
+compilers.p.discouraged-class=2
+compilers.p.missing-bundle-classpath-entries=1
+compilers.p.missing-packages=1
+compilers.p.no-required-att=0
+compilers.p.not-externalized-att=2
+compilers.p.unknown-attribute=0
+compilers.p.unknown-class=0
+compilers.p.unknown-element=0
+compilers.p.unknown-identifier=1
+compilers.p.unknown-resource=0
+compilers.p.unresolved-ex-points=0
+compilers.p.unresolved-import=0
+compilers.use-project=true
+eclipse.preferences.version=1
diff --git a/org.eclipse.mylyn.reviews.connector.ui/META-INF/MANIFEST.MF b/org.eclipse.mylyn.reviews.connector.ui/META-INF/MANIFEST.MF
new file mode 100644
index 0000000..7925d46
--- /dev/null
+++ b/org.eclipse.mylyn.reviews.connector.ui/META-INF/MANIFEST.MF
@@ -0,0 +1,30 @@
+Manifest-Version: 1.0
+Bundle-ManifestVersion: 2
+Bundle-Name: Mylyn EMF Connector Ui
+Bundle-SymbolicName: org.eclipse.mylyn.reviews.connector.ui;singleton:=true
+Bundle-Version: 0.13.0.qualifier
+Require-Bundle: org.eclipse.core.runtime,
+ org.eclipse.core.resources,
+ org.eclipse.jface,
+ org.eclipse.jface.text,
+ org.eclipse.ui.ide,
+ org.eclipse.compare,
+ org.eclipse.ui,
+ org.eclipse.ui.editors,
+ org.eclipse.ui.forms,
+ org.eclipse.ui.workbench.texteditor,
+ org.eclipse.emf.ecore,
+ org.eclipse.mylyn.commons.core;bundle-version="3.9.0",
+ org.eclipse.mylyn.commons.net;bundle-version="3.9.0",
+ org.eclipse.mylyn.commons.ui;bundle-version="3.9.0",
+ org.eclipse.mylyn.commons.workbench,
+ org.eclipse.mylyn.tasks.core;bundle-version="3.9.0",
+ org.eclipse.mylyn.tasks.ui;bundle-version="3.9.0",
+ org.eclipse.mylyn.reviews.connector
+Bundle-ActivationPolicy: lazy
+Bundle-RequiredExecutionEnvironment: JavaSE-1.6
+Bundle-Vendor: Eclipse Mylyn
+Export-Package: org.eclipse.mylyn.internal.reviews.connector.ui,
+ org.eclipse.mylyn.reviews.connector.ui,
+ org.eclipse.mylyn.reviews.connector.ui.wizards
+Import-Package: org.apache.commons.io
diff --git a/org.eclipse.mylyn.reviews.connector.ui/about.html b/org.eclipse.mylyn.reviews.connector.ui/about.html
new file mode 100644
index 0000000..d774b07
--- /dev/null
+++ b/org.eclipse.mylyn.reviews.connector.ui/about.html
@@ -0,0 +1,27 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
+<html>
+<head>
+<title>About</title>
+<meta http-equiv=Content-Type content="text/html; charset=ISO-8859-1">
+</head>
+<body lang="EN-US">
+<h2>About This Content</h2>
+
+<p>June 25, 2008</p>
+<h3>License</h3>
+
+<p>The Eclipse Foundation makes available all content in this plug-in (&quot;Content&quot;). Unless otherwise
+indicated below, the Content is provided to you under the terms and conditions of the
+Eclipse Public License Version 1.0 (&quot;EPL&quot;). A copy of the EPL is available
+at <a href="http://www.eclipse.org/legal/epl-v10.html">http://www.eclipse.org/legal/epl-v10.html</a>.
+For purposes of the EPL, &quot;Program&quot; will mean the Content.</p>
+
+<p>If you did not receive this Content directly from the Eclipse Foundation, the Content is
+being redistributed by another party (&quot;Redistributor&quot;) and different terms and conditions may
+apply to your use of any object code in the Content. Check the Redistributor's license that was
+provided with the Content. If no such license exists, contact the Redistributor. Unless otherwise
+indicated below, the terms and conditions of the EPL still apply to any source code in the Content
+and such source code may be obtained at <a href="/">http://www.eclipse.org</a>.</p>
+
+</body>
+</html> \ No newline at end of file
diff --git a/org.eclipse.mylyn.reviews.connector.ui/build.properties b/org.eclipse.mylyn.reviews.connector.ui/build.properties
new file mode 100644
index 0000000..6e6e1b3
--- /dev/null
+++ b/org.eclipse.mylyn.reviews.connector.ui/build.properties
@@ -0,0 +1,7 @@
+source.. = src/
+output.. = bin/
+bin.includes = META-INF/,\
+ .,\
+ about.html,\
+ icons/
+src.includes = about.html
diff --git a/org.eclipse.mylyn.reviews.connector.ui/icons/obj16/Ecore.png b/org.eclipse.mylyn.reviews.connector.ui/icons/obj16/Ecore.png
new file mode 100644
index 0000000..30c5c10
--- /dev/null
+++ b/org.eclipse.mylyn.reviews.connector.ui/icons/obj16/Ecore.png
Binary files differ
diff --git a/org.eclipse.mylyn.reviews.connector.ui/icons/obj16/EcoreOverlay.png b/org.eclipse.mylyn.reviews.connector.ui/icons/obj16/EcoreOverlay.png
new file mode 100644
index 0000000..b520987
--- /dev/null
+++ b/org.eclipse.mylyn.reviews.connector.ui/icons/obj16/EcoreOverlay.png
Binary files differ
diff --git a/org.eclipse.mylyn.reviews.connector.ui/pom.xml b/org.eclipse.mylyn.reviews.connector.ui/pom.xml
new file mode 100644
index 0000000..d9ade6f
--- /dev/null
+++ b/org.eclipse.mylyn.reviews.connector.ui/pom.xml
@@ -0,0 +1,29 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
+ <modelVersion>4.0.0</modelVersion>
+ <parent>
+ <artifactId>org.eclipse.mylyn.reviews.r4e-parent</artifactId>
+ <groupId>org.eclipse.mylyn.reviews.r4e</groupId>
+ <version>0.13.0-SNAPSHOT</version>
+ </parent>
+ <artifactId>org.eclipse.mylyn.reviews.connector.ui</artifactId>
+ <version>0.13.0-SNAPSHOT</version>
+ <packaging>eclipse-plugin</packaging>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.eclipse.tycho</groupId>
+ <artifactId>tycho-source-plugin</artifactId>
+ </plugin>
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>findbugs-maven-plugin</artifactId>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-pmd-plugin</artifactId>
+ </plugin>
+ </plugins>
+ </build>
+</project>
diff --git a/org.eclipse.mylyn.reviews.connector.ui/src/org/eclipse/mylyn/internal/reviews/connector/ui/EmfUiPlugin.java b/org.eclipse.mylyn.reviews.connector.ui/src/org/eclipse/mylyn/internal/reviews/connector/ui/EmfUiPlugin.java
new file mode 100644
index 0000000..36c7f39
--- /dev/null
+++ b/org.eclipse.mylyn.reviews.connector.ui/src/org/eclipse/mylyn/internal/reviews/connector/ui/EmfUiPlugin.java
@@ -0,0 +1,72 @@
+/*******************************************************************************
+ * Copyright (c) 2012 Ericsson AB and others.
+ *
+ * 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
+ *
+ * Description:
+ *
+ * Contributors:
+ * Miles Parker, Tasktop Technologies - Initial API and Implementation
+ *******************************************************************************/
+package org.eclipse.mylyn.internal.reviews.connector.ui;
+
+import java.io.File;
+
+import org.eclipse.core.runtime.CoreException;
+import org.eclipse.core.runtime.IPath;
+import org.eclipse.core.runtime.IStatus;
+import org.eclipse.core.runtime.Platform;
+import org.eclipse.core.runtime.Plugin;
+import org.eclipse.core.runtime.Status;
+import org.osgi.framework.BundleContext;
+
+/**
+ * Controls the Emf UI plug-in life cycle.
+ *
+ * @author Miles Parker
+ */
+public class EmfUiPlugin extends Plugin {
+
+ public static final String PLUGIN_ID = "org.eclipse.mylyn.reviews.connector.ui"; //$NON-NLS-1$
+
+ private static EmfUiPlugin plugin;
+
+ public EmfUiPlugin() {
+ }
+
+ @Override
+ public void start(BundleContext context) throws Exception {
+ super.start(context);
+ plugin = this;
+ }
+
+ @Override
+ public void stop(BundleContext context) throws Exception {
+ plugin = null;
+ super.stop(context);
+ }
+
+ /**
+ * Returns the shared instance.
+ */
+ public static EmfUiPlugin getDefault() {
+ return plugin;
+ }
+
+ protected File getRepositoryConfigurationCache() {
+ IPath stateLocation = Platform.getStateLocation(getBundle());
+ IPath cache = stateLocation.append("repositoryConfigurations"); //$NON-NLS-1$
+ return cache.toFile();
+ }
+
+ public static void logError(final String message, final Throwable throwable) {
+ getDefault().getLog().log(new Status(IStatus.ERROR, PLUGIN_ID, 0, message, throwable));
+ }
+
+ public static void handleCoreException(String message, Throwable e) throws CoreException {
+ throw new CoreException(new Status(IStatus.ERROR, EmfUiPlugin.PLUGIN_ID, message, e));
+ }
+}
diff --git a/org.eclipse.mylyn.reviews.connector.ui/src/org/eclipse/mylyn/reviews/connector/ui/AbstractEmfConnectorUi.java b/org.eclipse.mylyn.reviews.connector.ui/src/org/eclipse/mylyn/reviews/connector/ui/AbstractEmfConnectorUi.java
new file mode 100644
index 0000000..6705bfd
--- /dev/null
+++ b/org.eclipse.mylyn.reviews.connector.ui/src/org/eclipse/mylyn/reviews/connector/ui/AbstractEmfConnectorUi.java
@@ -0,0 +1,76 @@
+/*******************************************************************************
+ * Copyright (c) 2012 Ericsson AB and others.
+ *
+ * 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:
+ * Miles Parker, Tasktop Technologies - Initial API and Implementation
+ *******************************************************************************/
+package org.eclipse.mylyn.reviews.connector.ui;
+
+import org.eclipse.core.runtime.IPath;
+import org.eclipse.jface.resource.ImageDescriptor;
+import org.eclipse.jface.wizard.IWizard;
+import org.eclipse.mylyn.tasks.core.ITask;
+import org.eclipse.mylyn.tasks.core.ITaskMapping;
+import org.eclipse.mylyn.tasks.core.TaskRepository;
+import org.eclipse.mylyn.reviews.connector.AbstractEmfConnector;
+import org.eclipse.mylyn.tasks.ui.AbstractRepositoryConnectorUi;
+import org.eclipse.mylyn.tasks.ui.wizards.NewTaskWizard;
+import org.eclipse.swt.widgets.Shell;
+
+/**
+ * UI support needed for all EMF connector implementations.
+ *
+ * @author Miles Parker
+ */
+public abstract class AbstractEmfConnectorUi extends AbstractRepositoryConnectorUi {
+
+ @Override
+ public IWizard getNewTaskWizard(TaskRepository taskRepository, ITaskMapping taskSelection) {
+ return new NewTaskWizard(taskRepository, taskSelection);
+ }
+
+ /**
+ * Override to manage the process of creating a new repository and return the appropriate result. Typically this
+ * involves displaying a modified version of the EMF generated [Model]ModelWizard.
+ *
+ * @param parent
+ * TODO
+ * @return the full path to the new resource if user selected one, null if user cancelled.
+ */
+ public abstract IPath createNewRepository(Shell parent);
+
+ @Override
+ public boolean hasSearchPage() {
+ return true;
+ }
+
+ @Override
+ public String getTaskKindLabel(ITask task) {
+ return "Task";
+ }
+
+ @Override
+ public ImageDescriptor getTaskKindOverlay(ITask task) {
+ return EmfImages.ECORE_OVERLAY;
+ }
+
+ public abstract AbstractEmfConnector getConnector();
+
+ /**
+ * Override to provide custom file extensions.
+ *
+ * @return
+ */
+ public abstract String[] getFileNameExtensions();
+
+ @Override
+ public String getConnectorKind() {
+ return getConnector().getConnectorKind();
+ }
+
+}
diff --git a/org.eclipse.mylyn.reviews.connector.ui/src/org/eclipse/mylyn/reviews/connector/ui/EmfImages.java b/org.eclipse.mylyn.reviews.connector.ui/src/org/eclipse/mylyn/reviews/connector/ui/EmfImages.java
new file mode 100644
index 0000000..d610da2
--- /dev/null
+++ b/org.eclipse.mylyn.reviews.connector.ui/src/org/eclipse/mylyn/reviews/connector/ui/EmfImages.java
@@ -0,0 +1,47 @@
+/*******************************************************************************
+ * Copyright (c) 2012 Ericsson AB and others.
+ *
+ * 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
+ *
+ * Description:
+ *
+ * Contributors:
+ * Miles Parker, Tasktop Technologies - Initial API and Implementation
+ *******************************************************************************/
+package org.eclipse.mylyn.reviews.connector.ui;
+
+import java.net.MalformedURLException;
+import java.net.URL;
+
+import org.eclipse.jface.resource.ImageDescriptor;
+import org.eclipse.mylyn.internal.reviews.connector.ui.EmfUiPlugin;
+
+/**
+ * @author Miles Parker
+ */
+public class EmfImages {
+
+ private static final URL baseURL = EmfUiPlugin.getDefault().getBundle().getEntry("/icons/"); //$NON-NLS-1$
+
+ public static final ImageDescriptor ECORE_OVERLAY = create("obj16/EcoreOverlay.png"); //$NON-NLS-1$
+
+ public static final ImageDescriptor ECORE = create("obj16/Ecore.png"); //$NON-NLS-1$
+
+ private static ImageDescriptor create(String path) {
+ try {
+ return ImageDescriptor.createFromURL(makeIconFileURL(path));
+ } catch (MalformedURLException e) {
+ return ImageDescriptor.getMissingImageDescriptor();
+ }
+ }
+
+ private static URL makeIconFileURL(String path) throws MalformedURLException {
+ if (baseURL == null) {
+ throw new MalformedURLException();
+ }
+ return new URL(baseURL, path);
+ }
+}
diff --git a/org.eclipse.mylyn.reviews.connector.ui/src/org/eclipse/mylyn/reviews/connector/ui/EmfRepositorySettingsPage.java b/org.eclipse.mylyn.reviews.connector.ui/src/org/eclipse/mylyn/reviews/connector/ui/EmfRepositorySettingsPage.java
new file mode 100644
index 0000000..b72c1b7
--- /dev/null
+++ b/org.eclipse.mylyn.reviews.connector.ui/src/org/eclipse/mylyn/reviews/connector/ui/EmfRepositorySettingsPage.java
@@ -0,0 +1,410 @@
+/*******************************************************************************
+ * Copyright (c) 2012 Ericsson AB and others.
+ *
+ * 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
+ *
+ * Description:
+ *
+ * Contributors:
+ * Miles Parker, Tasktop Technologies - Initial API and Implementation
+ *******************************************************************************/
+package org.eclipse.mylyn.reviews.connector.ui;
+
+import java.io.File;
+import java.io.IOException;
+import java.util.HashMap;
+import java.util.Map;
+
+import org.apache.commons.lang.StringUtils;
+import org.eclipse.core.runtime.CoreException;
+import org.eclipse.core.runtime.IPath;
+import org.eclipse.core.runtime.IStatus;
+import org.eclipse.core.runtime.Status;
+import org.eclipse.core.runtime.preferences.ConfigurationScope;
+import org.eclipse.emf.common.util.URI;
+import org.eclipse.emf.ecore.EAttribute;
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.ecore.EReference;
+import org.eclipse.emf.ecore.EcorePackage;
+import org.eclipse.emf.ecore.resource.Resource;
+import org.eclipse.emf.ecore.resource.ResourceSet;
+import org.eclipse.emf.ecore.resource.impl.ResourceSetImpl;
+import org.eclipse.jface.dialogs.IMessageProvider;
+import org.eclipse.jface.dialogs.MessageDialog;
+import org.eclipse.jface.layout.GridDataFactory;
+import org.eclipse.mylyn.tasks.core.TaskRepository;
+import org.eclipse.mylyn.internal.reviews.connector.ui.EmfUiPlugin;
+import org.eclipse.mylyn.reviews.connector.AbstractEmfConnector;
+import org.eclipse.mylyn.reviews.connector.client.EmfClient;
+import org.eclipse.mylyn.tasks.ui.wizards.AbstractTaskRepositoryPage;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.events.ModifyEvent;
+import org.eclipse.swt.events.ModifyListener;
+import org.eclipse.swt.events.SelectionAdapter;
+import org.eclipse.swt.events.SelectionEvent;
+import org.eclipse.swt.layout.GridLayout;
+import org.eclipse.swt.widgets.Button;
+import org.eclipse.swt.widgets.Composite;
+import org.eclipse.swt.widgets.FileDialog;
+import org.eclipse.swt.widgets.Label;
+import org.eclipse.swt.widgets.Text;
+import org.eclipse.ui.statushandlers.StatusManager;
+
+/**
+ * Wizard page to support connecting to a basic EMF task file. In the simple case, just override specifying connector
+ * ui.
+ *
+ * @author Miles Parker
+ */
+public abstract class EmfRepositorySettingsPage extends AbstractTaskRepositoryPage {
+
+ private final TaskRepository taskRepository;
+
+ protected Text uriEditor;
+
+ private Text labelEditor;
+
+ private boolean validating;
+
+ private IStatus validity;
+
+ private EmfClient client;
+
+ private Button createButton;
+
+ public EmfRepositorySettingsPage(String name, String description, TaskRepository taskRepository) {
+ super(name, description, taskRepository);
+ this.taskRepository = taskRepository;
+ validity = Status.OK_STATUS;
+ }
+
+ @Override
+ public String getRepositoryUrl() {
+ String url = uriEditor.getText();
+ if (new File(url).isAbsolute()) {
+ url = URI.createFileURI(url).toString();
+ }
+ return url;
+ }
+
+ @Override
+ protected void createSettingControls(Composite parent) {
+ Label uriLabel = new Label(parent, SWT.NONE);
+ uriLabel.setText("Location:");
+ GridDataFactory.fillDefaults()
+ .align(SWT.BEGINNING, SWT.BEGINNING)
+ .grab(false, false)
+ .span(1, 1)
+ .applyTo(uriLabel);
+
+ uriEditor = new Text(parent, SWT.BORDER);
+ GridDataFactory.fillDefaults()
+ .align(SWT.FILL, SWT.BEGINNING)
+ .hint(440, SWT.DEFAULT)
+ .grab(true, false)
+ .span(2, 1)
+ .applyTo(uriEditor);
+
+ uriEditor.addModifyListener(new ModifyListener() {
+ public void modifyText(ModifyEvent e) {
+ if (getWizard() != null) {
+ onUriModify();
+ }
+ }
+ });
+
+ Label labelLabel = new Label(parent, SWT.NONE);
+ labelLabel.setText("Label:");
+ GridDataFactory.fillDefaults()
+ .align(SWT.BEGINNING, SWT.BEGINNING)
+ .grab(false, false)
+ .span(1, 1)
+ .applyTo(labelLabel);
+
+ labelEditor = new Text(parent, SWT.BORDER);
+ GridDataFactory.fillDefaults().align(SWT.FILL, SWT.BEGINNING).grab(true, false).span(2, 1).applyTo(labelEditor);
+
+ labelEditor.addModifyListener(new ModifyListener() {
+ public void modifyText(ModifyEvent e) {
+ if (getWizard() != null && !validating) {
+ onLabelModify();
+ }
+ }
+ });
+
+ Composite dummyPanel = new Composite(parent, SWT.NONE);
+ GridDataFactory.fillDefaults().align(SWT.FILL, SWT.BEGINNING).grab(false, false).span(1, 1).applyTo(dummyPanel);
+ Composite uriButtonPanel = new Composite(parent, SWT.NONE);
+ GridDataFactory.fillDefaults()
+ .align(SWT.END, SWT.BEGINNING)
+ .grab(false, false)
+ .span(2, 1)
+ .applyTo(uriButtonPanel);
+ uriButtonPanel.setLayout(new GridLayout(2, true));
+ Button browseButton = new Button(uriButtonPanel, SWT.PUSH);
+ browseButton.setText("Browse...");
+ GridDataFactory.fillDefaults()
+ .align(SWT.FILL, SWT.BEGINNING)
+ .grab(false, false)
+ .span(1, 1)
+ .applyTo(browseButton);
+ browseButton.addSelectionListener(new SelectionAdapter() {
+ @Override
+ public void widgetSelected(SelectionEvent e) {
+ browse();
+ }
+ });
+
+ createButton = new Button(uriButtonPanel, SWT.PUSH);
+ createButton.setText("Create...");
+ GridDataFactory.fillDefaults()
+ .align(SWT.FILL, SWT.BEGINNING)
+ .grab(false, false)
+ .span(1, 1)
+ .applyTo(createButton);
+ createButton.addSelectionListener(new SelectionAdapter() {
+ @Override
+ public void widgetSelected(SelectionEvent e) {
+ create();
+ }
+ });
+
+ if (taskRepository != null) {
+ uriEditor.setText(StringUtils.trimToEmpty(taskRepository.getRepositoryUrl()));
+ labelEditor.setText(StringUtils.trimToEmpty(taskRepository.getRepositoryLabel()));
+ } else {
+ uriEditor.setText("");
+ }
+
+ onLabelModify();
+ }
+
+ @Override
+ public boolean isPageComplete() {
+ return validity.getSeverity() != IStatus.ERROR;
+ }
+
+ @SuppressWarnings("restriction")
+ @Override
+ public void applyTo(TaskRepository repository) {
+ repository.setRepositoryUrl(getRepositoryUrl());
+ repository.setRepositoryLabel(labelEditor.getText());
+ }
+
+ protected void validateSettings() {
+ validity = validate();
+ updateMessage();
+ }
+
+ protected void updateMessage() {
+ int messageError = IMessageProvider.INFORMATION;
+ if (validity.getSeverity() == IStatus.WARNING) {
+ messageError = IMessageProvider.WARNING;
+ } else if (validity.getSeverity() == IStatus.ERROR) {
+ messageError = IMessageProvider.ERROR;
+ }
+ setMessage(validity.getMessage(), messageError);
+ }
+
+ @Override
+ protected IStatus validate() {
+ String repositoryUrl = getRepositoryUrl();
+ if (client != null && !client.getRepository().getUrl().equals(repositoryUrl)) {
+ try {
+ client.close();
+ } catch (CoreException e) {
+ }
+ client = null;
+ validating = true;
+ labelEditor.setText("");
+ validating = false;
+ }
+ if (client == null) {
+ if (StringUtils.isBlank(repositoryUrl)) {
+ return new Status(IStatus.ERROR, getConnector().getConnectorBundle().getSymbolicName(),
+ "Specify a repository.");
+ }
+ try {
+ URI testURI = URI.createURI(repositoryUrl);
+ if (testURI.isRelative()) {
+ return new Status(IStatus.ERROR, getConnector().getConnectorBundle().getSymbolicName(),
+ "Specify an absolute URI. (Like \"C:/..\" or \"http://..\")");
+ }
+ } catch (IllegalArgumentException e) {
+ return new Status(IStatus.ERROR, EmfUiPlugin.PLUGIN_ID, "Repository URI is not valid: "
+ + e.getMessage());
+ }
+ client = new EmfClient(new TaskRepository(getConnectorKind(), repositoryUrl)) {
+ @Override
+ public AbstractEmfConnector getConnector() {
+ return EmfRepositorySettingsPage.this.getConnector();
+ }
+ };
+ try {
+ client.open();
+ EObject contentsObject = client.getRootContainer();
+ EAttribute nameAttribute = getConnector().getContentsNameAttribute();
+ if (nameAttribute.getEAttributeType() != EcorePackage.Literals.ESTRING) {
+ return new Status(IStatus.ERROR, EmfUiPlugin.PLUGIN_ID,
+ "[Internal] The EmfConnector implementation of getContentsNameAttribute() must return a string attribute.");
+ }
+ if (!nameAttribute.getEContainingClass().isInstance(contentsObject)) {
+ return new Status(IStatus.ERROR, EmfUiPlugin.PLUGIN_ID,
+ "[Internal] The EmfConnector implementation of getContentsNameAttribute() parent type: "
+ + nameAttribute.getEContainingClass().getName() + " does not match the contents: "
+ + contentsObject.eClass());
+ }
+ String description = (String) contentsObject.eGet(nameAttribute);
+ validating = true;
+ labelEditor.setText(description);
+ validating = false;
+ } catch (CoreException e) {
+ try {
+ client.close();
+ } catch (CoreException e1) {
+ }
+ client = null;
+ return e.getStatus();
+ }
+ }
+ if (StringUtils.isBlank(labelEditor.getText())) {
+ return new Status(IStatus.ERROR, getConnector().getConnectorBundle().getSymbolicName(),
+ "Provide a repository label.");
+ }
+ return new Status(IStatus.OK, getConnector().getConnectorBundle().getSymbolicName(), "Valid "
+ + getConnector().getLabel() + " Repository.");
+ }
+
+ private void onUriModify() {
+ validateSettings();
+ getWizard().getContainer().updateButtons();
+ }
+
+ private void onLabelModify() {
+ validateSettings();
+ if (StringUtils.isBlank(labelEditor.getText())) {
+ createButton.setEnabled(false);
+ } else {
+ createButton.setEnabled(true);
+ }
+ getWizard().getContainer().updateButtons();
+ }
+
+ private void browse() {
+ FileDialog browseDialog = new FileDialog(getShell(), SWT.OPEN);
+ String fileName = null;
+ String filterPath;
+ File currentLocation = new File(uriEditor.getText());
+ if (currentLocation.exists()) {
+ String currentPath = currentLocation.getAbsolutePath();
+ if (currentLocation.isFile()) {
+ filterPath = StringUtils.substringBeforeLast(currentPath, File.separator);
+ fileName = StringUtils.substringAfterLast(currentPath, File.separator);
+ } else {
+ filterPath = currentPath;
+ }
+ } else {
+ IPath configurationDir = ConfigurationScope.INSTANCE.getLocation();
+ filterPath = configurationDir.toString();
+ }
+ browseDialog.setFilterPath(filterPath);
+ if (fileName != null) {
+ browseDialog.setFileName(fileName);
+ }
+ browseDialog.setFilterExtensions(getConnectorUi().getFileNameExtensions());
+ String browseResult = browseDialog.open();
+ if (browseResult != null) {
+ uriEditor.setText(browseResult);
+ }
+ }
+
+ private void create() {
+ FileDialog browseDialog = new FileDialog(getShell(), SWT.SAVE);
+ String fileName = null;
+ String filterPath;
+ File currentLocation = new File(uriEditor.getText());
+ if (currentLocation.exists()) {
+ String currentPath = currentLocation.getAbsolutePath();
+ if (currentLocation.isFile()) {
+ filterPath = StringUtils.substringBeforeLast(currentPath, File.separator);
+ fileName = StringUtils.substringAfterLast(currentPath, File.separator);
+ } else {
+ filterPath = currentPath;
+ }
+ } else {
+ IPath configurationDir = ConfigurationScope.INSTANCE.getLocation();
+ filterPath = configurationDir.toString();
+ }
+ browseDialog.setFilterPath(filterPath);
+ if (fileName == null) {
+ fileName = StringUtils.deleteWhitespace(labelEditor.getText());
+ }
+ if (fileName != null) {
+ browseDialog.setFileName(fileName);
+ }
+ browseDialog.setFilterExtensions(getConnectorUi().getFileNameExtensions());
+ String browseResult = browseDialog.open();
+ if (browseResult != null) {
+ File checkFile = new File(browseResult);
+ if (checkFile.exists()) {
+ MessageDialog dialog = new MessageDialog(getShell(), "Replace Existing?", null, checkFile.getName()
+ + " already exists. Are you sure you want to replace it?", MessageDialog.WARNING, new String[] {
+ "Yes", "No" }, 1);
+ int open = dialog.open();
+ if (open == 1) {
+ return;
+ }
+ }
+ ResourceSet resourceSet = new ResourceSetImpl();
+ URI fileURI = URI.createFileURI(browseResult);
+ Resource resource = resourceSet.createResource(fileURI);
+ EReference containmentRef = getConnector().getContainmentReference();
+ EClass eContainingClass = containmentRef.getEContainingClass();
+ EObject rootObject = eContainingClass.getEPackage().getEFactoryInstance().create(eContainingClass);
+ if (rootObject != null) {
+ resource.getContents().add(rootObject);
+ rootObject.eSet(getConnector().getContentsNameAttribute(), labelEditor.getText());
+ Map<Object, Object> options = new HashMap<Object, Object>();
+ try {
+ resource.save(options);
+ } catch (IOException e) {
+ StatusManager.getManager().handle(
+ new Status(IStatus.WARNING, EmfUiPlugin.PLUGIN_ID, "Couldn't create repository."));
+ return;
+ }
+ }
+
+ uriEditor.setText(browseResult);
+ }
+ }
+
+ @Override
+ public void performFinish(TaskRepository repository) {
+ super.performFinish(repository);
+ }
+
+ @Override
+ public void dispose() {
+ if (client != null) {
+ try {
+ client.close();
+ } catch (CoreException e) {
+ }
+ }
+ };
+
+ @Override
+ public String getConnectorKind() {
+ return getConnector().getConnectorKind();
+ }
+
+ public AbstractEmfConnector getConnector() {
+ return getConnectorUi().getConnector();
+ }
+
+ public abstract AbstractEmfConnectorUi getConnectorUi();
+}
diff --git a/org.eclipse.mylyn.reviews.connector.ui/src/org/eclipse/mylyn/reviews/connector/ui/EmfUrlHandler.java b/org.eclipse.mylyn.reviews.connector.ui/src/org/eclipse/mylyn/reviews/connector/ui/EmfUrlHandler.java
new file mode 100644
index 0000000..f97a701
--- /dev/null
+++ b/org.eclipse.mylyn.reviews.connector.ui/src/org/eclipse/mylyn/reviews/connector/ui/EmfUrlHandler.java
@@ -0,0 +1,45 @@
+/*******************************************************************************
+ * Copyright (c) 2012 Ericsson AB and others.
+ *
+ * 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
+ *
+ * Description:
+ *
+ * Contributors:
+ * Miles Parker, Tasktop Technologies - Initial API and Implementation
+ *******************************************************************************/
+package org.eclipse.mylyn.reviews.connector.ui;
+
+import org.eclipse.mylyn.commons.workbench.EditorHandle;
+import org.eclipse.mylyn.commons.workbench.browser.AbstractUrlHandler;
+import org.eclipse.mylyn.tasks.core.TaskRepository;
+import org.eclipse.mylyn.reviews.connector.AbstractEmfConnector;
+import org.eclipse.mylyn.tasks.ui.TasksUi;
+import org.eclipse.mylyn.tasks.ui.TasksUiUtil;
+import org.eclipse.ui.IWorkbenchPage;
+
+/**
+ * Provides basic url handling services. In simple case, just override returning actual connector implementation.
+ *
+ * @author Miles Parker
+ */
+public abstract class EmfUrlHandler extends AbstractUrlHandler {
+
+ @Override
+ public EditorHandle openUrl(IWorkbenchPage page, String url, int customFlags) {
+ AbstractEmfConnector connector = getEmfConnector();
+ String taskId = connector.getTaskIdFromTaskUrl(url);
+ String repositoryUrl = connector.getRepositoryUrlFromTaskUrl(url);
+ for (TaskRepository repository : TasksUi.getRepositoryManager().getRepositories(connector.getConnectorKind())) {
+ if (repository.getUrl().equals(repositoryUrl)) {
+ return TasksUiUtil.openTaskWithResult(repository, taskId);
+ }
+ }
+ return null;
+ }
+
+ protected abstract AbstractEmfConnector getEmfConnector();
+}
diff --git a/org.eclipse.mylyn.reviews.connector.ui/src/org/eclipse/mylyn/reviews/connector/ui/wizards/EmfRepositoryQueryPage.java b/org.eclipse.mylyn.reviews.connector.ui/src/org/eclipse/mylyn/reviews/connector/ui/wizards/EmfRepositoryQueryPage.java
new file mode 100644
index 0000000..326ecc3
--- /dev/null
+++ b/org.eclipse.mylyn.reviews.connector.ui/src/org/eclipse/mylyn/reviews/connector/ui/wizards/EmfRepositoryQueryPage.java
@@ -0,0 +1,598 @@
+/*******************************************************************************
+ * Copyright (c) 2012 Ericsson AB and others.
+ * Copyright (c) 2004, 2010 Tasktop Technologies and others.
+ *
+ * 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
+ *
+ * Description:
+ *
+ * Contributors:
+ * Miles Parker, Tasktop Technologies - Initial API and Implementation, Donor Bugzilla connector sourced code
+ * Frank Becker - Donor Bugzilla connector sourced code
+ *******************************************************************************/
+package org.eclipse.mylyn.reviews.connector.ui.wizards;
+
+import java.util.ArrayList;
+import java.util.Calendar;
+import java.util.Date;
+import java.util.List;
+
+import org.apache.commons.lang.StringUtils;
+import org.eclipse.core.runtime.IStatus;
+import org.eclipse.core.runtime.Status;
+import org.eclipse.emf.ecore.EAttribute;
+import org.eclipse.emf.ecore.EEnum;
+import org.eclipse.emf.ecore.EEnumLiteral;
+import org.eclipse.emf.ecore.EcorePackage;
+import org.eclipse.jface.dialogs.Dialog;
+import org.eclipse.jface.wizard.IWizardContainer;
+import org.eclipse.mylyn.commons.workbench.forms.SectionComposite;
+import org.eclipse.mylyn.internal.reviews.connector.ui.EmfUiPlugin;
+import org.eclipse.mylyn.tasks.core.IRepositoryQuery;
+import org.eclipse.mylyn.tasks.core.TaskRepository;
+import org.eclipse.mylyn.reviews.connector.AbstractEmfConnector;
+import org.eclipse.mylyn.reviews.connector.EmfAttributeMapper;
+import org.eclipse.mylyn.reviews.connector.client.EmfClient;
+import org.eclipse.mylyn.reviews.connector.query.EmfQueryEngine;
+import org.eclipse.mylyn.reviews.connector.query.QueryClause;
+import org.eclipse.mylyn.reviews.connector.query.QueryException;
+import org.eclipse.mylyn.reviews.connector.query.QueryOperation;
+import org.eclipse.mylyn.tasks.ui.wizards.AbstractRepositoryQueryPage2;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.events.ModifyEvent;
+import org.eclipse.swt.events.ModifyListener;
+import org.eclipse.swt.events.SelectionEvent;
+import org.eclipse.swt.events.SelectionListener;
+import org.eclipse.swt.layout.GridData;
+import org.eclipse.swt.layout.GridLayout;
+import org.eclipse.swt.widgets.Combo;
+import org.eclipse.swt.widgets.Composite;
+import org.eclipse.swt.widgets.DateTime;
+import org.eclipse.swt.widgets.Display;
+import org.eclipse.swt.widgets.Label;
+import org.eclipse.swt.widgets.Text;
+
+/**
+ * @author Miles Parker
+ * @author Mik Kersten (Components lifted from Bugzilla) (hardening of prototype)
+ * @author Frank Becker (Components lifted from Bugzilla)
+ */
+public abstract class EmfRepositoryQueryPage extends AbstractRepositoryQueryPage2 {
+
+ abstract class EmfControl {
+ EAttribute attribute;
+
+ public EmfControl(EAttribute attribute) {
+ this.attribute = attribute;
+ }
+
+ abstract void create(Composite parent);
+
+ abstract void applyTo(IRepositoryQuery query);
+
+ abstract void restoreState(QueryClause clause);
+
+ abstract void clearControls();
+
+ public EAttribute getAttribute() {
+ return attribute;
+ }
+
+ public IStatus validate() {
+ return Status.OK_STATUS;
+ }
+
+ void clear(IRepositoryQuery query) {
+ query.setAttribute(getOperationKey(), null);
+ query.setAttribute(getValueKey(), null);
+ }
+
+ String getValueKey() {
+ return getConnector().getSchema().getKey(attribute) + EmfQueryEngine.QUERY_DELIMITER
+ + EmfQueryEngine.QUERY_VALUE;
+ }
+
+ String getOperationKey() {
+ return getConnector().getSchema().getKey(attribute) + EmfQueryEngine.QUERY_DELIMITER
+ + EmfQueryEngine.QUERY_OPERATION;
+ }
+ }
+
+ class EmfTextControl extends EmfControl {
+
+ private Text textControl;
+
+ private Combo operationCombo;
+
+ private final QueryOperation[] operations;
+
+ public EmfTextControl(EAttribute attribute) {
+ super(attribute);
+ operations = QueryOperation.TEXT_OPERATIONS;
+ }
+
+ @Override
+ void create(Composite parent) {
+ Label label = new Label(parent, SWT.LEFT);
+ label.setText(getConnector().getSchema().getLabel(attribute) + ":"); //$NON-NLS-1$
+
+ textControl = new Text(parent, SWT.SINGLE | SWT.BORDER);
+ textControl.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 2, 1));
+ textControl.addModifyListener(new ModifyListenerImplementation());
+
+ operationCombo = new Combo(parent, SWT.SINGLE | SWT.READ_ONLY | SWT.BORDER);
+ operationCombo.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, false, false));
+ String[] opDescs = QueryOperation.toDescription(operations);
+ operationCombo.setItems(opDescs);
+ operationCombo.setText(opDescs[0]);
+ operationCombo.select(0);
+ }
+
+ @Override
+ void applyTo(IRepositoryQuery query) {
+ if (textControl.getText().equals("")) { //$NON-NLS-1$
+ clear(query);
+ return;
+ }
+ QueryOperation selectedOperation = operations[operationCombo.getSelectionIndex()];
+ query.setAttribute(getOperationKey(), selectedOperation.getId());
+ query.setAttribute(getValueKey(), textControl.getText());
+ }
+
+ @Override
+ void restoreState(QueryClause clause) {
+ int i = 0;
+ for (QueryOperation op : operations) {
+ if (op == clause.getOperation()) {
+ operationCombo.select(i);
+ break;
+ }
+ i++;
+ }
+ textControl.setText(clause.getValue());
+ }
+
+ @Override
+ void clearControls() {
+ textControl.setText("");
+ String[] opDescs = QueryOperation.toDescription(operations);
+ operationCombo.setText(opDescs[0]);
+ operationCombo.select(0);
+ }
+ }
+
+ class EmfDateControl extends EmfControl {
+
+ private DateTime dateTimeControl1;
+
+ private DateTime dateTimeControl2;
+
+ private Composite dateTimeSection;
+
+ private Combo operationCombo;
+
+ private final QueryOperation[] operations;
+
+ public EmfDateControl(EAttribute attribute) {
+ super(attribute);
+ operations = QueryOperation.DATE_OPERATIONS;
+ }
+
+ @Override
+ void create(Composite parent) {
+
+ Composite fullContainer = new Composite(parent, SWT.NONE);
+ fullContainer.setLayoutData(new GridData(SWT.FILL, SWT.BEGINNING, true, false, 1, 1));
+ fullContainer.setLayout(new GridLayout(1, true));
+
+ Label label = new Label(fullContainer, SWT.LEFT);
+ label.setText(getConnector().getSchema().getLabel(attribute) + ":"); //$NON-NLS-1$
+
+ Composite controlContainer = new Composite(fullContainer, SWT.BORDER);
+ controlContainer.setLayoutData(new GridData(SWT.FILL, SWT.BEGINNING, true, false, 1, 1));
+ controlContainer.setLayout(new GridLayout(1, true));
+ controlContainer.setBackground(Display.getCurrent().getSystemColor(SWT.COLOR_WIDGET_LIGHT_SHADOW));
+
+ operationCombo = new Combo(controlContainer, SWT.SINGLE | SWT.READ_ONLY | SWT.BORDER);
+ operationCombo.setLayoutData(new GridData(SWT.FILL, SWT.BEGINNING, true, false));
+ String[] opDescs = QueryOperation.toDescription(operations);
+ operationCombo.setItems(opDescs);
+ operationCombo.setText(opDescs[0]);
+ operationCombo.select(0);
+ operationCombo.addSelectionListener(new SelectionListener() {
+
+ @Override
+ public void widgetSelected(SelectionEvent e) {
+ updateControls();
+ scrolledComposite.setOrigin(0, scrolledComposite.getSize().y);
+ }
+
+ @Override
+ public void widgetDefaultSelected(SelectionEvent e) {
+ }
+ });
+
+ dateTimeSection = new Composite(controlContainer, SWT.NONE);
+ dateTimeSection.setBackground(controlContainer.getBackground());
+ dateTimeSection.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, true, 1, 1));
+ dateTimeSection.setLayout(new GridLayout(1, true));
+ dateTimeControl1 = new DateTime(dateTimeSection, SWT.DATE | SWT.MEDIUM);
+ dateTimeControl1.setBackground(controlContainer.getBackground());
+ dateTimeControl2 = new DateTime(dateTimeSection, SWT.DATE | SWT.MEDIUM);
+ dateTimeControl2.setBackground(controlContainer.getBackground());
+ SelectionListener listener = new SelectionListener() {
+
+ @Override
+ public void widgetSelected(SelectionEvent e) {
+ updateButtons();
+ }
+
+ @Override
+ public void widgetDefaultSelected(SelectionEvent e) {
+ updateButtons();
+ }
+ };
+ dateTimeControl1.addSelectionListener(listener);
+ dateTimeControl2.addSelectionListener(listener);
+ operationCombo.addSelectionListener(listener);
+
+ updateControls();
+ }
+
+ @Override
+ void applyTo(IRepositoryQuery query) {
+ final QueryOperation selectedOperation = operations[operationCombo.getSelectionIndex()];
+ if (selectedOperation == QueryOperation.ALL_DATES) {
+ clear(query);
+ return;
+ }
+ query.setAttribute(getOperationKey(), selectedOperation.getId());
+
+ EmfAttributeMapper mapper = getConnector().getEmfMapper(getTaskRepository());
+ String date1 = null;
+ if (dateTimeControl1.isEnabled()) {
+ Calendar calendar1 = Calendar.getInstance();
+ calendar1.set(dateTimeControl1.getYear(), dateTimeControl1.getMonth(), dateTimeControl1.getDay(), 0, 0);
+ date1 = mapper.getDateString(calendar1.getTime());
+ }
+ String date2 = null;
+ if (dateTimeControl2.isEnabled()) {
+ Calendar calendar2 = Calendar.getInstance();
+ calendar2.set(dateTimeControl2.getYear(), dateTimeControl2.getMonth(), dateTimeControl2.getDay(), 0, 0);
+ date2 = mapper.getDateString(calendar2.getTime());
+ }
+ String dateValue;
+ if (selectedOperation == QueryOperation.IN_RANGE) {
+ dateValue = date1 + EmfQueryEngine.LIST_ITEM_SEPERATOR + date2;
+ } else if (selectedOperation == QueryOperation.BEFORE) {
+ dateValue = date2;
+ } else if (selectedOperation == QueryOperation.AFTER) {
+ dateValue = date1;
+ } else {
+ throw new RuntimeException("Internal Error, unexpected operation: " + selectedOperation); //$NON-NLS-1$
+ }
+ query.setAttribute(getValueKey(), dateValue);
+ }
+
+ @Override
+ void restoreState(QueryClause clause) {
+ int i = 0;
+ for (QueryOperation op : operations) {
+ if (op == clause.getOperation()) {
+ operationCombo.select(i);
+ break;
+ }
+ i++;
+ }
+ updateControls();
+ QueryOperation selectedOperation = operations[operationCombo.getSelectionIndex()];
+ EmfAttributeMapper attributeMapper = getConnector().getEmfMapper(getTaskRepository());
+ Date after = null;
+ Date before = null;
+ if (selectedOperation == QueryOperation.IN_RANGE) {
+ String[] dateParts = StringUtils.split(clause.getValue(), ",");
+ after = attributeMapper.getDateValue(dateParts[0]);
+ before = attributeMapper.getDateValue(dateParts[1]);
+ }
+ if (selectedOperation == QueryOperation.AFTER) {
+ after = attributeMapper.getDateValue(clause.getValue());
+ }
+ if (selectedOperation == QueryOperation.BEFORE) {
+ before = attributeMapper.getDateValue(clause.getValue());
+ }
+ if (after != null) {
+ Calendar calendarAfter = Calendar.getInstance();
+ calendarAfter.setTime(after);
+ dateTimeControl1.setDate(calendarAfter.get(Calendar.YEAR), calendarAfter.get(Calendar.MONTH),
+ calendarAfter.get(Calendar.DAY_OF_MONTH));
+ }
+ if (before != null) {
+ Calendar calendarBefore = Calendar.getInstance();
+ calendarBefore.setTime(before);
+ dateTimeControl2.setDate(calendarBefore.get(Calendar.YEAR), calendarBefore.get(Calendar.MONTH),
+ calendarBefore.get(Calendar.DAY_OF_MONTH));
+ }
+ }
+
+ void updateControls() {
+ QueryOperation selectedOperation = operations[operationCombo.getSelectionIndex()];
+ boolean enable1 = false;
+ boolean enable2 = false;
+ if (selectedOperation == QueryOperation.IN_RANGE) {
+ enable1 = true;
+ enable2 = true;
+ } else if (selectedOperation == QueryOperation.BEFORE) {
+ enable1 = true;
+ } else if (selectedOperation == QueryOperation.AFTER) {
+ enable1 = true;
+ }
+ dateTimeControl1.setEnabled(enable1);
+ dateTimeControl1.setVisible(enable1);
+ dateTimeControl2.setEnabled(enable2);
+ dateTimeControl2.setVisible(enable2);
+ }
+
+ @Override
+ void clearControls() {
+ String[] opDescs = QueryOperation.toDescription(operations);
+ operationCombo.setText(opDescs[0]);
+ operationCombo.select(0);
+ updateControls();
+ }
+
+ @Override
+ public IStatus validate() {
+ QueryOperation selectedOperation = operations[operationCombo.getSelectionIndex()];
+ if (selectedOperation == QueryOperation.IN_RANGE) {
+ Calendar calendar1 = Calendar.getInstance();
+ calendar1.set(dateTimeControl1.getYear(), dateTimeControl1.getMonth(), dateTimeControl1.getDay(), 0, 0);
+ Calendar calendar2 = Calendar.getInstance();
+ calendar2.set(dateTimeControl2.getYear(), dateTimeControl2.getMonth(), dateTimeControl2.getDay(), 0, 0);
+ if (calendar1.after(calendar2)) {
+ return new Status(IStatus.ERROR, EmfUiPlugin.PLUGIN_ID, "The date range for "
+ + getConnector().getSchema().getLabel(attribute) + " isn't valid.");
+ }
+ }
+ return Status.OK_STATUS;
+ }
+ }
+
+ class EmfMultiSelectControl extends EmfControl {
+
+ private org.eclipse.swt.widgets.List choiceList;
+
+ public EmfMultiSelectControl(EAttribute attribute) {
+ super(attribute);
+ assert attribute.getEType() instanceof EEnum;
+ }
+
+ @Override
+ void create(Composite parent) {
+ Composite container = new Composite(parent, SWT.NONE);
+ container.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1));
+ container.setLayout(new GridLayout(1, true));
+
+ Label label = new Label(container, SWT.LEFT);
+ label.setText(getConnector().getSchema().getLabel(attribute) + ":"); //$NON-NLS-1$
+
+ choiceList = new org.eclipse.swt.widgets.List(container, SWT.MULTI | SWT.READ_ONLY | SWT.BORDER);
+ choiceList.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1));
+
+ if (attribute.getEAttributeType() instanceof EEnum) {
+ EEnum enumerator = (EEnum) attribute.getEAttributeType();
+ for (EEnumLiteral literal : enumerator.getELiterals()) {
+ choiceList.add(literal.getName());
+ }
+ }
+ }
+
+ @Override
+ void applyTo(IRepositoryQuery query) {
+ if (choiceList.getSelection().length == 0) {
+ clear(query);
+ return;
+ }
+ String itemList = StringUtils.join(choiceList.getSelection(), EmfQueryEngine.LIST_ITEM_SEPERATOR);
+ query.setAttribute(getConnector().getSchema().getKey(attribute) + EmfQueryEngine.QUERY_DELIMITER
+ + EmfQueryEngine.QUERY_OPERATION, QueryOperation.MATCH_ITEMS.getId());
+ query.setAttribute(getConnector().getSchema().getKey(attribute) + EmfQueryEngine.QUERY_DELIMITER
+ + EmfQueryEngine.QUERY_VALUE, itemList);
+ }
+
+ @Override
+ void restoreState(QueryClause clause) {
+ String[] items = StringUtils.split(clause.getValue(), EmfQueryEngine.LIST_ITEM_SEPERATOR);
+ choiceList.setSelection(items);
+ }
+
+ @Override
+ void clearControls() {
+ choiceList.setSelection(-1);
+ }
+ }
+
+ private SectionComposite scrolledComposite;
+
+ private final List<EmfControl> managedControls = new ArrayList<EmfControl>();
+
+ private final List<EmfControl> multiControls = new ArrayList<EmfControl>();
+
+ private final List<EmfControl> dateControls = new ArrayList<EmfControl>();
+
+ public EmfRepositoryQueryPage(TaskRepository repository, String pageName, IRepositoryQuery query) {
+ super(pageName, repository, query);
+ setDescription(Messages.EmfBaseQueryPage_Description);
+ setNeedsClear(true);
+ setNeedsRefresh(true);
+ for (EAttribute searchAttribute : getConnector().getSearchAttributes()) {
+ if (searchAttribute.getEType() == EcorePackage.Literals.ESTRING) {
+ managedControls.add(new EmfTextControl(searchAttribute));
+ } else if (searchAttribute.getEType() == EcorePackage.Literals.EDATE) {
+ EmfDateControl dateControl = new EmfDateControl(searchAttribute);
+ managedControls.add(dateControl);
+ dateControls.add(dateControl);
+ } else if (searchAttribute.getEType() instanceof EEnum) {
+ EmfMultiSelectControl multiControl = new EmfMultiSelectControl(searchAttribute);
+ managedControls.add(multiControl);
+ multiControls.add(multiControl);
+ }
+ }
+ }
+
+ private final class ModifyListenerImplementation implements ModifyListener {
+ public void modifyText(ModifyEvent e) {
+ if (isControlCreated()) {
+ setPageComplete(isPageComplete());
+ }
+ }
+ }
+
+ @Override
+ protected void createPageContent(SectionComposite parent) {
+ this.scrolledComposite = parent;
+
+ Composite scrolledBodyComposite = scrolledComposite.getContent();
+ GridLayout layout = new GridLayout();
+ layout.marginHeight = 0;
+ layout.marginWidth = 0;
+ layout.horizontalSpacing = 0;
+ layout.verticalSpacing = 0;
+ scrolledBodyComposite.setLayout(layout);
+
+ final Composite basicComposite = new Composite(scrolledBodyComposite, SWT.NONE);
+ GridLayout basicLayout = new GridLayout(4, false);
+ basicLayout.marginHeight = 0;
+ basicLayout.marginWidth = 0;
+ //layout.marginRight = 5;
+ basicComposite.setLayout(basicLayout);
+ GridData g = new GridData(GridData.FILL, GridData.FILL, true, true);
+ g.widthHint = 500;
+ basicComposite.setLayoutData(g);
+ Dialog.applyDialogFont(basicComposite);
+
+ for (EmfControl managedControl : managedControls) {
+ if (managedControl instanceof EmfTextControl) {
+ managedControl.create(basicComposite);
+ }
+ }
+
+ Composite choiceArea = new Composite(scrolledBodyComposite, SWT.NONE);
+ GridLayout choiceLayout = new GridLayout(multiControls.size(), true);
+ choiceArea.setLayout(choiceLayout);
+ g = new GridData(GridData.FILL, GridData.FILL, true, true);
+ g.widthHint = 500;
+ choiceArea.setLayoutData(g);
+ Dialog.applyDialogFont(choiceArea);
+
+ for (EmfControl managedControl : multiControls) {
+ managedControl.create(choiceArea);
+ }
+
+ Composite dateArea = new Composite(scrolledBodyComposite, SWT.NONE);
+ GridLayout dateLayout = new GridLayout(dateControls.size(), true);
+ dateArea.setLayout(dateLayout);
+ g = new GridData(GridData.FILL, GridData.FILL, true, true);
+ g.widthHint = 500;
+ dateArea.setLayoutData(g);
+ Dialog.applyDialogFont(dateArea);
+
+ for (EmfControl managedControl : dateControls) {
+ managedControl.create(dateArea);
+ }
+ }
+
+ @Override
+ public abstract AbstractEmfConnector getConnector();
+
+ private EmfClient getClient() {
+ AbstractEmfConnector connector = getConnector();
+ return connector.getClient(getTaskRepository());
+ }
+
+ protected void updateButtons() {
+ IWizardContainer c = getContainer();
+ if (c != null && c.getCurrentPage() != null) {
+ c.updateButtons();
+ }
+ }
+
+ @Override
+ public boolean isPageComplete() {
+ setMessage(null);
+ if (getQueryTitle() == null || getQueryTitle().trim().length() == 0) {
+ setDescription("Enter a title");
+ return false;
+ }
+ for (EmfControl control : managedControls) {
+ IStatus validate = control.validate();
+ if (!validate.isOK()) {
+ setMessage(validate.getMessage(), ERROR);
+ return false;
+ }
+ }
+ setDescription("Specify search criteria");
+ return true;
+ }
+
+ @Override
+ public void applyTo(IRepositoryQuery query) {
+ query.setSummary(getQueryTitle());
+ for (EmfControl managedControl : managedControls) {
+ managedControl.applyTo(query);
+ }
+ }
+
+ @Override
+ protected void doRefreshControls() {
+ // nothing to do, only the content assist uses the configuration
+ }
+
+ @Override
+ protected boolean hasRepositoryConfiguration() {
+ return getClient().getConfiguration() != null;
+ }
+
+ @Override
+ protected void doClearControls() {
+ restoreState(null);
+ }
+
+ @Override
+ protected boolean restoreState(IRepositoryQuery query) {
+ if (query != null) {
+ setQueryTitle(query.getSummary());
+ try {
+ QueryClause[] clauses = getConnector().getQueryEngine(getTaskRepository()).getClauses(query);
+ //TODO, use map
+ for (QueryClause clause : clauses) {
+ for (EmfControl managedControl : managedControls) {
+ if (clause.getFeature().equals(managedControl.getAttribute())) {
+ managedControl.restoreState(clause);
+ break;
+ }
+ }
+ }
+ } catch (QueryException e) {
+ //Ignore, we just won't update...
+ }
+ } else {
+ //Query null, so need to clear all values
+ for (EmfControl managedControl : managedControls) {
+ managedControl.clearControls();
+ }
+ }
+
+ boolean reflow = false;
+ if (reflow) {
+ scrolledComposite.reflow(true);
+ }
+
+ setPageComplete(isPageComplete());
+ updateButtons();
+
+ return true;
+ }
+}
diff --git a/org.eclipse.mylyn.reviews.connector.ui/src/org/eclipse/mylyn/reviews/connector/ui/wizards/Messages.java b/org.eclipse.mylyn.reviews.connector.ui/src/org/eclipse/mylyn/reviews/connector/ui/wizards/Messages.java
new file mode 100644
index 0000000..d73fbe5
--- /dev/null
+++ b/org.eclipse.mylyn.reviews.connector.ui/src/org/eclipse/mylyn/reviews/connector/ui/wizards/Messages.java
@@ -0,0 +1,27 @@
+/*******************************************************************************
+ * Copyright (c) 2012 Tasktop Technologies and others.
+ * 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:
+ * Tasktop Technologies - initial API and implementation
+ *******************************************************************************/
+
+package org.eclipse.mylyn.reviews.connector.ui.wizards;
+
+import org.eclipse.osgi.util.NLS;
+
+public class Messages extends NLS {
+ private static final String BUNDLE_NAME = "org.eclipse.mylyn.reviews.connector.ui.wizards.messages"; //$NON-NLS-1$
+
+ public static String EmfBaseQueryPage_Description;
+ static {
+ // initialize resource bundle
+ NLS.initializeMessages(BUNDLE_NAME, Messages.class);
+ }
+
+ private Messages() {
+ }
+}
diff --git a/org.eclipse.mylyn.reviews.connector.ui/src/org/eclipse/mylyn/reviews/connector/ui/wizards/messages.properties b/org.eclipse.mylyn.reviews.connector.ui/src/org/eclipse/mylyn/reviews/connector/ui/wizards/messages.properties
new file mode 100644
index 0000000..4e84bba
--- /dev/null
+++ b/org.eclipse.mylyn.reviews.connector.ui/src/org/eclipse/mylyn/reviews/connector/ui/wizards/messages.properties
@@ -0,0 +1,12 @@
+###############################################################################
+# Copyright (c) 2009, 2010 Tasktop Technologies and others.
+# 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:
+# Tasktop Technologies - initial API and implementation
+###############################################################################
+
+EmfBaseQueryPage_Description=Enter a query title and specify search.
diff --git a/org.eclipse.mylyn.reviews.connector/.classpath b/org.eclipse.mylyn.reviews.connector/.classpath
new file mode 100644
index 0000000..ad32c83
--- /dev/null
+++ b/org.eclipse.mylyn.reviews.connector/.classpath
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/>
+ <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
+ <classpathentry kind="src" path="src"/>
+ <classpathentry kind="output" path="bin"/>
+</classpath>
diff --git a/org.eclipse.mylyn.reviews.connector/.project b/org.eclipse.mylyn.reviews.connector/.project
new file mode 100644
index 0000000..8be0044
--- /dev/null
+++ b/org.eclipse.mylyn.reviews.connector/.project
@@ -0,0 +1,34 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>org.eclipse.mylyn.reviews.connector</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.jdt.core.javabuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.pde.ManifestBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.pde.SchemaBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.pde.api.tools.apiAnalysisBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.pde.PluginNature</nature>
+ <nature>org.eclipse.jdt.core.javanature</nature>
+ <nature>org.eclipse.pde.api.tools.apiAnalysisNature</nature>
+ </natures>
+</projectDescription>
diff --git a/org.eclipse.mylyn.reviews.connector/.settings/org.eclipse.core.runtime.prefs b/org.eclipse.mylyn.reviews.connector/.settings/org.eclipse.core.runtime.prefs
new file mode 100644
index 0000000..5a0ad22
--- /dev/null
+++ b/org.eclipse.mylyn.reviews.connector/.settings/org.eclipse.core.runtime.prefs
@@ -0,0 +1,2 @@
+eclipse.preferences.version=1
+line.separator=\n
diff --git a/org.eclipse.mylyn.reviews.connector/.settings/org.eclipse.jdt.core.prefs b/org.eclipse.mylyn.reviews.connector/.settings/org.eclipse.jdt.core.prefs
new file mode 100644
index 0000000..bc2c501
--- /dev/null
+++ b/org.eclipse.mylyn.reviews.connector/.settings/org.eclipse.jdt.core.prefs
@@ -0,0 +1,353 @@
+#Thu Mar 10 01:20:38 PST 2011
+eclipse.preferences.version=1
+org.eclipse.jdt.core.codeComplete.argumentPrefixes=
+org.eclipse.jdt.core.codeComplete.argumentSuffixes=
+org.eclipse.jdt.core.codeComplete.fieldPrefixes=
+org.eclipse.jdt.core.codeComplete.fieldSuffixes=
+org.eclipse.jdt.core.codeComplete.localPrefixes=
+org.eclipse.jdt.core.codeComplete.localSuffixes=
+org.eclipse.jdt.core.codeComplete.staticFieldPrefixes=
+org.eclipse.jdt.core.codeComplete.staticFieldSuffixes=
+org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6
+org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
+org.eclipse.jdt.core.compiler.compliance=1.6
+org.eclipse.jdt.core.compiler.debug.lineNumber=generate
+org.eclipse.jdt.core.compiler.debug.localVariable=generate
+org.eclipse.jdt.core.compiler.debug.sourceFile=generate
+org.eclipse.jdt.core.compiler.problem.annotationSuperInterface=warning
+org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
+org.eclipse.jdt.core.compiler.problem.autoboxing=ignore
+org.eclipse.jdt.core.compiler.problem.deprecation=warning
+org.eclipse.jdt.core.compiler.problem.deprecationInDeprecatedCode=disabled
+org.eclipse.jdt.core.compiler.problem.deprecationWhenOverridingDeprecatedMethod=enabled
+org.eclipse.jdt.core.compiler.problem.discouragedReference=warning
+org.eclipse.jdt.core.compiler.problem.emptyStatement=ignore
+org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
+org.eclipse.jdt.core.compiler.problem.fallthroughCase=ignore
+org.eclipse.jdt.core.compiler.problem.fatalOptionalError=enabled
+org.eclipse.jdt.core.compiler.problem.fieldHiding=ignore
+org.eclipse.jdt.core.compiler.problem.finalParameterBound=warning
+org.eclipse.jdt.core.compiler.problem.finallyBlockNotCompletingNormally=warning
+org.eclipse.jdt.core.compiler.problem.forbiddenReference=error
+org.eclipse.jdt.core.compiler.problem.hiddenCatchBlock=warning
+org.eclipse.jdt.core.compiler.problem.incompatibleNonInheritedInterfaceMethod=warning
+org.eclipse.jdt.core.compiler.problem.incompleteEnumSwitch=ignore
+org.eclipse.jdt.core.compiler.problem.indirectStaticAccess=ignore
+org.eclipse.jdt.core.compiler.problem.localVariableHiding=ignore
+org.eclipse.jdt.core.compiler.problem.methodWithConstructorName=warning
+org.eclipse.jdt.core.compiler.problem.missingDeprecatedAnnotation=ignore
+org.eclipse.jdt.core.compiler.problem.missingOverrideAnnotation=ignore
+org.eclipse.jdt.core.compiler.problem.missingSerialVersion=warning
+org.eclipse.jdt.core.compiler.problem.noEffectAssignment=warning
+org.eclipse.jdt.core.compiler.problem.noImplicitStringConversion=warning
+org.eclipse.jdt.core.compiler.problem.nonExternalizedStringLiteral=warning
+org.eclipse.jdt.core.compiler.problem.nullReference=error
+org.eclipse.jdt.core.compiler.problem.overridingPackageDefaultMethod=warning
+org.eclipse.jdt.core.compiler.problem.parameterAssignment=ignore
+org.eclipse.jdt.core.compiler.problem.possibleAccidentalBooleanAssignment=ignore
+org.eclipse.jdt.core.compiler.problem.potentialNullReference=warning
+org.eclipse.jdt.core.compiler.problem.rawTypeReference=warning
+org.eclipse.jdt.core.compiler.problem.redundantNullCheck=ignore
+org.eclipse.jdt.core.compiler.problem.redundantSuperinterface=ignore
+org.eclipse.jdt.core.compiler.problem.specialParameterHidingField=disabled
+org.eclipse.jdt.core.compiler.problem.staticAccessReceiver=warning
+org.eclipse.jdt.core.compiler.problem.suppressWarnings=enabled
+org.eclipse.jdt.core.compiler.problem.syntheticAccessEmulation=ignore
+org.eclipse.jdt.core.compiler.problem.typeParameterHiding=warning
+org.eclipse.jdt.core.compiler.problem.uncheckedTypeOperation=warning
+org.eclipse.jdt.core.compiler.problem.undocumentedEmptyBlock=ignore
+org.eclipse.jdt.core.compiler.problem.unhandledWarningToken=warning
+org.eclipse.jdt.core.compiler.problem.unnecessaryElse=ignore
+org.eclipse.jdt.core.compiler.problem.unnecessaryTypeCheck=ignore
+org.eclipse.jdt.core.compiler.problem.unqualifiedFieldAccess=ignore
+org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownException=ignore
+org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionExemptExceptionAndThrowable=enabled
+org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionIncludeDocCommentReference=enabled
+org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionWhenOverriding=disabled
+org.eclipse.jdt.core.compiler.problem.unusedImport=warning
+org.eclipse.jdt.core.compiler.problem.unusedLabel=warning
+org.eclipse.jdt.core.compiler.problem.unusedLocal=warning
+org.eclipse.jdt.core.compiler.problem.unusedParameter=ignore
+org.eclipse.jdt.core.compiler.problem.unusedParameterIncludeDocCommentReference=enabled
+org.eclipse.jdt.core.compiler.problem.unusedParameterWhenImplementingAbstract=disabled
+org.eclipse.jdt.core.compiler.problem.unusedParameterWhenOverridingConcrete=disabled
+org.eclipse.jdt.core.compiler.problem.unusedPrivateMember=warning
+org.eclipse.jdt.core.compiler.problem.unusedWarningToken=warning
+org.eclipse.jdt.core.compiler.problem.varargsArgumentNeedCast=warning
+org.eclipse.jdt.core.compiler.source=1.6
+org.eclipse.jdt.core.compiler.taskCaseSensitive=enabled
+org.eclipse.jdt.core.compiler.taskPriorities=NORMAL,HIGH,NORMAL
+org.eclipse.jdt.core.compiler.taskTags=TODO,FIXME,XXX
+org.eclipse.jdt.core.formatter.align_type_members_on_columns=false
+org.eclipse.jdt.core.formatter.alignment_for_arguments_in_allocation_expression=16
+org.eclipse.jdt.core.formatter.alignment_for_arguments_in_annotation=0
+org.eclipse.jdt.core.formatter.alignment_for_arguments_in_enum_constant=16
+org.eclipse.jdt.core.formatter.alignment_for_arguments_in_explicit_constructor_call=16
+org.eclipse.jdt.core.formatter.alignment_for_arguments_in_method_invocation=16
+org.eclipse.jdt.core.formatter.alignment_for_arguments_in_qualified_allocation_expression=16
+org.eclipse.jdt.core.formatter.alignment_for_assignment=0
+org.eclipse.jdt.core.formatter.alignment_for_binary_expression=16
+org.eclipse.jdt.core.formatter.alignment_for_compact_if=16
+org.eclipse.jdt.core.formatter.alignment_for_conditional_expression=48
+org.eclipse.jdt.core.formatter.alignment_for_enum_constants=0
+org.eclipse.jdt.core.formatter.alignment_for_expressions_in_array_initializer=16
+org.eclipse.jdt.core.formatter.alignment_for_method_declaration=0
+org.eclipse.jdt.core.formatter.alignment_for_multiple_fields=16
+org.eclipse.jdt.core.formatter.alignment_for_parameters_in_constructor_declaration=16
+org.eclipse.jdt.core.formatter.alignment_for_parameters_in_method_declaration=16
+org.eclipse.jdt.core.formatter.alignment_for_selector_in_method_invocation=80
+org.eclipse.jdt.core.formatter.alignment_for_superclass_in_type_declaration=16
+org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_enum_declaration=16
+org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_type_declaration=16
+org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_constructor_declaration=16
+org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_method_declaration=16
+org.eclipse.jdt.core.formatter.blank_lines_after_imports=1
+org.eclipse.jdt.core.formatter.blank_lines_after_package=1
+org.eclipse.jdt.core.formatter.blank_lines_before_field=1
+org.eclipse.jdt.core.formatter.blank_lines_before_first_class_body_declaration=0
+org.eclipse.jdt.core.formatter.blank_lines_before_imports=1
+org.eclipse.jdt.core.formatter.blank_lines_before_member_type=1
+org.eclipse.jdt.core.formatter.blank_lines_before_method=1
+org.eclipse.jdt.core.formatter.blank_lines_before_new_chunk=1
+org.eclipse.jdt.core.formatter.blank_lines_before_package=0
+org.eclipse.jdt.core.formatter.blank_lines_between_import_groups=1
+org.eclipse.jdt.core.formatter.blank_lines_between_type_declarations=1
+org.eclipse.jdt.core.formatter.brace_position_for_annotation_type_declaration=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_anonymous_type_declaration=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_array_initializer=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_block=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_block_in_case=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_constructor_declaration=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_enum_constant=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_enum_declaration=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_method_declaration=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_switch=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_type_declaration=end_of_line
+org.eclipse.jdt.core.formatter.comment.clear_blank_lines_in_block_comment=false
+org.eclipse.jdt.core.formatter.comment.clear_blank_lines_in_javadoc_comment=true
+org.eclipse.jdt.core.formatter.comment.format_block_comments=false
+org.eclipse.jdt.core.formatter.comment.format_header=false
+org.eclipse.jdt.core.formatter.comment.format_html=true
+org.eclipse.jdt.core.formatter.comment.format_javadoc_comments=true
+org.eclipse.jdt.core.formatter.comment.format_line_comments=false
+org.eclipse.jdt.core.formatter.comment.format_source_code=true
+org.eclipse.jdt.core.formatter.comment.indent_parameter_description=true
+org.eclipse.jdt.core.formatter.comment.indent_root_tags=true
+org.eclipse.jdt.core.formatter.comment.insert_new_line_before_root_tags=insert
+org.eclipse.jdt.core.formatter.comment.insert_new_line_for_parameter=insert
+org.eclipse.jdt.core.formatter.comment.line_length=120
+org.eclipse.jdt.core.formatter.comment.new_lines_at_block_boundaries=true
+org.eclipse.jdt.core.formatter.comment.new_lines_at_javadoc_boundaries=true
+org.eclipse.jdt.core.formatter.comment.preserve_white_space_between_code_and_line_comments=false
+org.eclipse.jdt.core.formatter.compact_else_if=true
+org.eclipse.jdt.core.formatter.continuation_indentation=2
+org.eclipse.jdt.core.formatter.continuation_indentation_for_array_initializer=2
+org.eclipse.jdt.core.formatter.disabling_tag=@formatter\:off
+org.eclipse.jdt.core.formatter.enabling_tag=@formatter\:on
+org.eclipse.jdt.core.formatter.format_guardian_clause_on_one_line=false
+org.eclipse.jdt.core.formatter.format_line_comment_starting_on_first_column=true
+org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_annotation_declaration_header=true
+org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_constant_header=true
+org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_declaration_header=true
+org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_type_header=true
+org.eclipse.jdt.core.formatter.indent_breaks_compare_to_cases=true
+org.eclipse.jdt.core.formatter.indent_empty_lines=false
+org.eclipse.jdt.core.formatter.indent_statements_compare_to_block=true
+org.eclipse.jdt.core.formatter.indent_statements_compare_to_body=true
+org.eclipse.jdt.core.formatter.indent_switchstatements_compare_to_cases=true
+org.eclipse.jdt.core.formatter.indent_switchstatements_compare_to_switch=false
+org.eclipse.jdt.core.formatter.indentation.size=4
+org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_field=insert
+org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_local_variable=insert
+org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_method=insert
+org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_package=insert
+org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_parameter=insert
+org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_type=insert
+org.eclipse.jdt.core.formatter.insert_new_line_after_label=do not insert
+org.eclipse.jdt.core.formatter.insert_new_line_after_opening_brace_in_array_initializer=do not insert
+org.eclipse.jdt.core.formatter.insert_new_line_at_end_of_file_if_missing=do not insert
+org.eclipse.jdt.core.formatter.insert_new_line_before_catch_in_try_statement=do not insert
+org.eclipse.jdt.core.formatter.insert_new_line_before_closing_brace_in_array_initializer=do not insert
+org.eclipse.jdt.core.formatter.insert_new_line_before_else_in_if_statement=do not insert
+org.eclipse.jdt.core.formatter.insert_new_line_before_finally_in_try_statement=do not insert
+org.eclipse.jdt.core.formatter.insert_new_line_before_while_in_do_statement=do not insert
+org.eclipse.jdt.core.formatter.insert_new_line_in_empty_annotation_declaration=insert
+org.eclipse.jdt.core.formatter.insert_new_line_in_empty_anonymous_type_declaration=insert
+org.eclipse.jdt.core.formatter.insert_new_line_in_empty_block=insert
+org.eclipse.jdt.core.formatter.insert_new_line_in_empty_enum_constant=insert
+org.eclipse.jdt.core.formatter.insert_new_line_in_empty_enum_declaration=insert
+org.eclipse.jdt.core.formatter.insert_new_line_in_empty_method_body=insert
+org.eclipse.jdt.core.formatter.insert_new_line_in_empty_type_declaration=insert
+org.eclipse.jdt.core.formatter.insert_space_after_and_in_type_parameter=insert
+org.eclipse.jdt.core.formatter.insert_space_after_assignment_operator=insert
+org.eclipse.jdt.core.formatter.insert_space_after_at_in_annotation=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_at_in_annotation_type_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_binary_operator=insert
+org.eclipse.jdt.core.formatter.insert_space_after_closing_angle_bracket_in_type_arguments=insert
+org.eclipse.jdt.core.formatter.insert_space_after_closing_angle_bracket_in_type_parameters=insert
+org.eclipse.jdt.core.formatter.insert_space_after_closing_brace_in_block=insert
+org.eclipse.jdt.core.formatter.insert_space_after_closing_paren_in_cast=insert
+org.eclipse.jdt.core.formatter.insert_space_after_colon_in_assert=insert
+org.eclipse.jdt.core.formatter.insert_space_after_colon_in_case=insert
+org.eclipse.jdt.core.formatter.insert_space_after_colon_in_conditional=insert
+org.eclipse.jdt.core.formatter.insert_space_after_colon_in_for=insert
+org.eclipse.jdt.core.formatter.insert_space_after_colon_in_labeled_statement=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_allocation_expression=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_annotation=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_array_initializer=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_constructor_declaration_parameters=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_constructor_declaration_throws=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_enum_constant_arguments=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_enum_declarations=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_explicitconstructorcall_arguments=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_for_increments=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_for_inits=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_declaration_parameters=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_declaration_throws=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_invocation_arguments=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_multiple_field_declarations=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_multiple_local_declarations=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_parameterized_type_reference=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_superinterfaces=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_type_arguments=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_type_parameters=insert
+org.eclipse.jdt.core.formatter.insert_space_after_ellipsis=insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_parameterized_type_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_type_arguments=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_type_parameters=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_brace_in_array_initializer=insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_bracket_in_array_allocation_expression=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_bracket_in_array_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_annotation=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_cast=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_catch=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_constructor_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_enum_constant=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_for=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_if=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_invocation=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_parenthesized_expression=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_switch=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_synchronized=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_while=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_postfix_operator=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_prefix_operator=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_question_in_conditional=insert
+org.eclipse.jdt.core.formatter.insert_space_after_question_in_wildcard=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_semicolon_in_for=insert
+org.eclipse.jdt.core.formatter.insert_space_after_unary_operator=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_and_in_type_parameter=insert
+org.eclipse.jdt.core.formatter.insert_space_before_assignment_operator=insert
+org.eclipse.jdt.core.formatter.insert_space_before_at_in_annotation_type_declaration=insert
+org.eclipse.jdt.core.formatter.insert_space_before_binary_operator=insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_parameterized_type_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_type_arguments=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_type_parameters=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_brace_in_array_initializer=insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_bracket_in_array_allocation_expression=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_bracket_in_array_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_annotation=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_cast=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_catch=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_constructor_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_enum_constant=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_for=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_if=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_method_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_method_invocation=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_parenthesized_expression=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_switch=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_synchronized=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_while=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_colon_in_assert=insert
+org.eclipse.jdt.core.formatter.insert_space_before_colon_in_case=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_colon_in_conditional=insert
+org.eclipse.jdt.core.formatter.insert_space_before_colon_in_default=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_colon_in_for=insert
+org.eclipse.jdt.core.formatter.insert_space_before_colon_in_labeled_statement=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_allocation_expression=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_annotation=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_array_initializer=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_parameters=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_throws=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_constant_arguments=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_declarations=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_explicitconstructorcall_arguments=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_for_increments=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_for_inits=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_parameters=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_throws=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_invocation_arguments=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_field_declarations=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_local_declarations=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_parameterized_type_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_superinterfaces=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_arguments=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_parameters=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_ellipsis=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_parameterized_type_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_arguments=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_parameters=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_annotation_type_declaration=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_anonymous_type_declaration=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_array_initializer=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_block=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_constructor_declaration=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_enum_constant=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_enum_declaration=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_method_declaration=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_switch=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_type_declaration=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_allocation_expression=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_type_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_annotation=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_annotation_type_member_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_catch=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_constructor_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_enum_constant=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_for=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_if=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_invocation=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_parenthesized_expression=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_switch=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_synchronized=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_while=insert
+org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_return=insert
+org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_throw=insert
+org.eclipse.jdt.core.formatter.insert_space_before_postfix_operator=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_prefix_operator=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_question_in_conditional=insert
+org.eclipse.jdt.core.formatter.insert_space_before_question_in_wildcard=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_semicolon=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_semicolon_in_for=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_unary_operator=do not insert
+org.eclipse.jdt.core.formatter.insert_space_between_brackets_in_array_type_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_between_empty_braces_in_array_initializer=do not insert
+org.eclipse.jdt.core.formatter.insert_space_between_empty_brackets_in_array_allocation_expression=do not insert
+org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_annotation_type_member_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_constructor_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_enum_constant=do not insert
+org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_invocation=do not insert
+org.eclipse.jdt.core.formatter.join_lines_in_comments=true
+org.eclipse.jdt.core.formatter.join_wrapped_lines=true
+org.eclipse.jdt.core.formatter.keep_else_statement_on_same_line=false
+org.eclipse.jdt.core.formatter.keep_empty_array_initializer_on_one_line=false
+org.eclipse.jdt.core.formatter.keep_imple_if_on_one_line=false
+org.eclipse.jdt.core.formatter.keep_then_statement_on_same_line=false
+org.eclipse.jdt.core.formatter.lineSplit=120
+org.eclipse.jdt.core.formatter.never_indent_block_comments_on_first_column=true
+org.eclipse.jdt.core.formatter.never_indent_line_comments_on_first_column=true
+org.eclipse.jdt.core.formatter.number_of_blank_lines_at_beginning_of_method_body=0
+org.eclipse.jdt.core.formatter.number_of_empty_lines_to_preserve=1
+org.eclipse.jdt.core.formatter.put_empty_statement_on_new_line=true
+org.eclipse.jdt.core.formatter.tabulation.char=tab
+org.eclipse.jdt.core.formatter.tabulation.size=4
+org.eclipse.jdt.core.formatter.use_on_off_tags=false
+org.eclipse.jdt.core.formatter.use_tabs_only_for_leading_indentations=false
+org.eclipse.jdt.core.formatter.wrap_before_binary_operator=true
+org.eclipse.jdt.core.formatter.wrap_outer_expressions_when_nested=true
diff --git a/org.eclipse.mylyn.reviews.connector/.settings/org.eclipse.jdt.ui.prefs b/org.eclipse.mylyn.reviews.connector/.settings/org.eclipse.jdt.ui.prefs
new file mode 100644
index 0000000..f6c0a16
--- /dev/null
+++ b/org.eclipse.mylyn.reviews.connector/.settings/org.eclipse.jdt.ui.prefs
@@ -0,0 +1,63 @@
+#Wed Mar 02 16:00:06 PST 2011
+cleanup_settings_version=2
+eclipse.preferences.version=1
+editor_save_participant_org.eclipse.jdt.ui.postsavelistener.cleanup=true
+formatter_profile=_Mylyn based on Eclipse
+formatter_settings_version=12
+internal.default.compliance=default
+org.eclipse.jdt.ui.exception.name=e
+org.eclipse.jdt.ui.gettersetter.use.is=true
+org.eclipse.jdt.ui.javadoc=false
+org.eclipse.jdt.ui.keywordthis=false
+org.eclipse.jdt.ui.overrideannotation=true
+org.eclipse.jdt.ui.text.custom_code_templates=<?xml version\="1.0" encoding\="UTF-8" standalone\="no"?><templates><template autoinsert\="true" context\="gettercomment_context" deleted\="false" description\="Comment for getter method" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.gettercomment" name\="gettercomment">/**\r\n * @return the ${bare_field_name}\r\n */</template><template autoinsert\="true" context\="settercomment_context" deleted\="false" description\="Comment for setter method" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.settercomment" name\="settercomment">/**\r\n * @param ${param} the ${bare_field_name} to set\r\n */</template><template autoinsert\="true" context\="constructorcomment_context" deleted\="false" description\="Comment for created constructors" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.constructorcomment" name\="constructorcomment">/**\r\n * ${tags}\r\n */</template><template autoinsert\="true" context\="filecomment_context" deleted\="false" description\="Comment for created Java files" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.filecomment" name\="filecomment">/**\r\n * \r\n */</template><template autoinsert\="false" context\="typecomment_context" deleted\="false" description\="Comment for created types" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.typecomment" name\="typecomment">/**\r\n * @author ${user}\r\n */</template><template autoinsert\="true" context\="fieldcomment_context" deleted\="false" description\="Comment for fields" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.fieldcomment" name\="fieldcomment">/**\r\n * \r\n */</template><template autoinsert\="true" context\="methodcomment_context" deleted\="false" description\="Comment for non-overriding methods" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.methodcomment" name\="methodcomment">/**\r\n * ${tags}\r\n */</template><template autoinsert\="false" context\="overridecomment_context" deleted\="false" description\="Comment for overriding methods" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.overridecomment" name\="overridecomment"/><template autoinsert\="false" context\="newtype_context" deleted\="false" description\="Newly created files" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.newtype" name\="newtype">/*******************************************************************************\r\n * Copyright (c) ${year} Tasktop Technologies and others.\r\n * All rights reserved. This program and the accompanying materials\r\n * are made available under the terms of the Eclipse Public License v1.0\r\n * which accompanies this distribution, and is available at\r\n * http\://www.eclipse.org/legal/epl-v10.html\r\n *\r\n * Contributors\:\r\n * Tasktop Technologies - initial API and implementation\r\n *******************************************************************************/\r\n\r\n${package_declaration}\r\n\r\n${typecomment}\r\n${type_declaration}</template><template autoinsert\="true" context\="classbody_context" deleted\="false" description\="Code in new class type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.classbody" name\="classbody">\r\n</template><template autoinsert\="true" context\="interfacebody_context" deleted\="false" description\="Code in new interface type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.interfacebody" name\="interfacebody">\r\n</template><template autoinsert\="true" context\="enumbody_context" deleted\="false" description\="Code in new enum type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.enumbody" name\="enumbody">\r\n</template><template autoinsert\="true" context\="annotationbody_context" deleted\="false" description\="Code in new annotation type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.annotationbody" name\="annotationbody">\r\n</template><template autoinsert\="false" context\="catchblock_context" deleted\="false" description\="Code in new catch blocks" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.catchblock" name\="catchblock">// ${todo} Auto-generated catch block\r\n${exception_var}.printStackTrace();</template><template autoinsert\="false" context\="methodbody_context" deleted\="false" description\="Code in created method stubs" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.methodbody" name\="methodbody">// ignore\r\n${body_statement}</template><template autoinsert\="false" context\="constructorbody_context" deleted\="false" description\="Code in created constructor stubs" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.constructorbody" name\="constructorbody">${body_statement}\r\n// ignore</template><template autoinsert\="true" context\="getterbody_context" deleted\="false" description\="Code in created getters" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.getterbody" name\="getterbody">return ${field};</template><template autoinsert\="true" context\="setterbody_context" deleted\="false" description\="Code in created setters" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.setterbody" name\="setterbody">${field} \= ${param};</template><template autoinsert\="true" context\="delegatecomment_context" deleted\="false" description\="Comment for delegate methods" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.delegatecomment" name\="delegatecomment">/**\r\n * ${tags}\r\n * ${see_to_target}\r\n */</template><template autoinsert\="true" context\="gettercomment_context" deleted\="false" description\="Comment for getter function" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.gettercomment" name\="gettercomment">/**\r\n * @return the ${bare_field_name}\r\n */</template><template autoinsert\="true" context\="settercomment_context" deleted\="false" description\="Comment for setter function" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.settercomment" name\="settercomment">/**\r\n * @param ${param} the ${bare_field_name} to set\r\n */</template><template autoinsert\="true" context\="constructorcomment_context" deleted\="false" description\="Comment for created constructors" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.constructorcomment" name\="constructorcomment">/**\r\n * ${tags}\r\n */</template><template autoinsert\="true" context\="filecomment_context" deleted\="false" description\="Comment for created JavaScript files" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.filecomment" name\="filecomment">/**\r\n * \r\n */</template><template autoinsert\="true" context\="typecomment_context" deleted\="false" description\="Comment for created types" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.typecomment" name\="typecomment">/**\r\n * @author ${user}\r\n *\r\n * ${tags}\r\n */</template><template autoinsert\="true" context\="fieldcomment_context" deleted\="false" description\="Comment for vars" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.fieldcomment" name\="fieldcomment">/**\r\n * \r\n */</template><template autoinsert\="true" context\="methodcomment_context" deleted\="false" description\="Comment for non-overriding function" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.methodcomment" name\="methodcomment">/**\r\n * ${tags}\r\n */</template><template autoinsert\="true" context\="overridecomment_context" deleted\="false" description\="Comment for overriding functions" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.overridecomment" name\="overridecomment">/* (non-Jsdoc)\r\n * ${see_to_overridden}\r\n */</template><template autoinsert\="true" context\="delegatecomment_context" deleted\="false" description\="Comment for delegate functions" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.delegatecomment" name\="delegatecomment">/**\r\n * ${tags}\r\n * ${see_to_target}\r\n */</template><template autoinsert\="true" context\="newtype_context" deleted\="false" description\="Newly created files" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.newtype" name\="newtype">${filecomment}\r\n${package_declaration}\r\n\r\n${typecomment}\r\n${type_declaration}</template><template autoinsert\="true" context\="classbody_context" deleted\="false" description\="Code in new class type bodies" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.classbody" name\="classbody">\r\n</template><template autoinsert\="true" context\="interfacebody_context" deleted\="false" description\="Code in new interface type bodies" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.interfacebody" name\="interfacebody">\r\n</template><template autoinsert\="true" context\="enumbody_context" deleted\="false" description\="Code in new enum type bodies" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.enumbody" name\="enumbody">\r\n</template><template autoinsert\="true" context\="annotationbody_context" deleted\="false" description\="Code in new annotation type bodies" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.annotationbody" name\="annotationbody">\r\n</template><template autoinsert\="true" context\="catchblock_context" deleted\="false" description\="Code in new catch blocks" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.catchblock" name\="catchblock">// ${todo} Auto-generated catch block\r\n${exception_var}.printStackTrace();</template><template autoinsert\="true" context\="methodbody_context" deleted\="false" description\="Code in created function stubs" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.methodbody" name\="methodbody">// ${todo} Auto-generated function stub\r\n${body_statement}</template><template autoinsert\="true" context\="constructorbody_context" deleted\="false" description\="Code in created constructor stubs" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.constructorbody" name\="constructorbody">${body_statement}\r\n// ${todo} Auto-generated constructor stub</template><template autoinsert\="true" context\="getterbody_context" deleted\="false" description\="Code in created getters" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.getterbody" name\="getterbody">return ${field};</template><template autoinsert\="true" context\="setterbody_context" deleted\="false" description\="Code in created setters" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.setterbody" name\="setterbody">${field} \= ${param};</template></templates>
+sp_cleanup.add_default_serial_version_id=true
+sp_cleanup.add_generated_serial_version_id=false
+sp_cleanup.add_missing_annotations=true
+sp_cleanup.add_missing_deprecated_annotations=true
+sp_cleanup.add_missing_methods=false
+sp_cleanup.add_missing_nls_tags=false
+sp_cleanup.add_missing_override_annotations=true
+sp_cleanup.add_serial_version_id=false
+sp_cleanup.always_use_blocks=true
+sp_cleanup.always_use_parentheses_in_expressions=false
+sp_cleanup.always_use_this_for_non_static_field_access=false
+sp_cleanup.always_use_this_for_non_static_method_access=false
+sp_cleanup.convert_to_enhanced_for_loop=true
+sp_cleanup.correct_indentation=true
+sp_cleanup.format_source_code=true
+sp_cleanup.format_source_code_changes_only=false
+sp_cleanup.make_local_variable_final=false
+sp_cleanup.make_parameters_final=false
+sp_cleanup.make_private_fields_final=true
+sp_cleanup.make_variable_declarations_final=true
+sp_cleanup.never_use_blocks=false
+sp_cleanup.never_use_parentheses_in_expressions=true
+sp_cleanup.on_save_use_additional_actions=true
+sp_cleanup.organize_imports=true
+sp_cleanup.qualify_static_field_accesses_with_declaring_class=false
+sp_cleanup.qualify_static_member_accesses_through_instances_with_declaring_class=true
+sp_cleanup.qualify_static_member_accesses_through_subtypes_with_declaring_class=true
+sp_cleanup.qualify_static_member_accesses_with_declaring_class=true
+sp_cleanup.qualify_static_method_accesses_with_declaring_class=false
+sp_cleanup.remove_private_constructors=true
+sp_cleanup.remove_trailing_whitespaces=true
+sp_cleanup.remove_trailing_whitespaces_all=true
+sp_cleanup.remove_trailing_whitespaces_ignore_empty=false
+sp_cleanup.remove_unnecessary_casts=true
+sp_cleanup.remove_unnecessary_nls_tags=true
+sp_cleanup.remove_unused_imports=false
+sp_cleanup.remove_unused_local_variables=false
+sp_cleanup.remove_unused_private_fields=true
+sp_cleanup.remove_unused_private_members=false
+sp_cleanup.remove_unused_private_methods=true
+sp_cleanup.remove_unused_private_types=true
+sp_cleanup.sort_members=false
+sp_cleanup.sort_members_all=false
+sp_cleanup.use_blocks=true
+sp_cleanup.use_blocks_only_for_return_and_throw=false
+sp_cleanup.use_parentheses_in_expressions=false
+sp_cleanup.use_this_for_non_static_field_access=false
+sp_cleanup.use_this_for_non_static_field_access_only_if_necessary=true
+sp_cleanup.use_this_for_non_static_method_access=false
+sp_cleanup.use_this_for_non_static_method_access_only_if_necessary=true
diff --git a/org.eclipse.mylyn.reviews.connector/.settings/org.eclipse.ltk.core.refactoring.prefs b/org.eclipse.mylyn.reviews.connector/.settings/org.eclipse.ltk.core.refactoring.prefs
new file mode 100644
index 0000000..5e7f2bd
--- /dev/null
+++ b/org.eclipse.mylyn.reviews.connector/.settings/org.eclipse.ltk.core.refactoring.prefs
@@ -0,0 +1,3 @@
+#Tue Aug 18 22:42:26 PDT 2009
+eclipse.preferences.version=1
+org.eclipse.ltk.core.refactoring.enable.project.refactoring.history=false
diff --git a/org.eclipse.mylyn.reviews.connector/.settings/org.eclipse.mylyn.tasks.ui.prefs b/org.eclipse.mylyn.reviews.connector/.settings/org.eclipse.mylyn.tasks.ui.prefs
new file mode 100644
index 0000000..d8c6d26
--- /dev/null
+++ b/org.eclipse.mylyn.reviews.connector/.settings/org.eclipse.mylyn.tasks.ui.prefs
@@ -0,0 +1,4 @@
+#Mon Jun 25 03:02:37 GMT 2007
+eclipse.preferences.version=1
+project.repository.kind=bugzilla
+project.repository.url=https\://bugs.eclipse.org/bugs
diff --git a/org.eclipse.mylyn.reviews.connector/.settings/org.eclipse.mylyn.team.ui.prefs b/org.eclipse.mylyn.reviews.connector/.settings/org.eclipse.mylyn.team.ui.prefs
new file mode 100644
index 0000000..10d0afb
--- /dev/null
+++ b/org.eclipse.mylyn.reviews.connector/.settings/org.eclipse.mylyn.team.ui.prefs
@@ -0,0 +1,2 @@
+commit.comment.template=${task.key}\: ${task.description}\n\nTask-Url\: ${task.url}
+eclipse.preferences.version=1
diff --git a/org.eclipse.mylyn.reviews.connector/.settings/org.eclipse.pde.prefs b/org.eclipse.mylyn.reviews.connector/.settings/org.eclipse.pde.prefs
new file mode 100644
index 0000000..e8f2d56
--- /dev/null
+++ b/org.eclipse.mylyn.reviews.connector/.settings/org.eclipse.pde.prefs
@@ -0,0 +1,18 @@
+#Tue Apr 15 11:07:59 PDT 2008
+compilers.incompatible-environment=1
+compilers.p.build=1
+compilers.p.deprecated=1
+compilers.p.discouraged-class=2
+compilers.p.missing-bundle-classpath-entries=1
+compilers.p.missing-packages=1
+compilers.p.no-required-att=0
+compilers.p.not-externalized-att=2
+compilers.p.unknown-attribute=0
+compilers.p.unknown-class=0
+compilers.p.unknown-element=0
+compilers.p.unknown-identifier=1
+compilers.p.unknown-resource=0
+compilers.p.unresolved-ex-points=0
+compilers.p.unresolved-import=0
+compilers.use-project=true
+eclipse.preferences.version=1
diff --git a/org.eclipse.mylyn.reviews.connector/META-INF/MANIFEST.MF b/org.eclipse.mylyn.reviews.connector/META-INF/MANIFEST.MF
new file mode 100644
index 0000000..b65636f
--- /dev/null
+++ b/org.eclipse.mylyn.reviews.connector/META-INF/MANIFEST.MF
@@ -0,0 +1,20 @@
+Manifest-Version: 1.0
+Bundle-ManifestVersion: 2
+Bundle-Name: Mylyn EMF Connector Core
+Bundle-SymbolicName: org.eclipse.mylyn.reviews.connector;singleton:=true
+Bundle-Version: 0.13.0.qualifier
+Bundle-Activator: org.eclipse.mylyn.internal.reviews.connector.EmfCorePlugin
+Require-Bundle: org.eclipse.core.runtime,
+ org.eclipse.emf.common,
+ org.eclipse.emf.ecore,
+ org.eclipse.mylyn.commons.core;bundle-version="3.9.0",
+ org.eclipse.mylyn.commons.net;bundle-version="3.9.0",
+ org.eclipse.mylyn.tasks.core;bundle-version="3.9.0",
+ org.eclipse.emf.ecore.xmi
+Bundle-ActivationPolicy: lazy
+Bundle-RequiredExecutionEnvironment: JavaSE-1.6
+Bundle-Vendor: Eclipse Mylyn
+Export-Package: org.eclipse.mylyn.internal.reviews.connector;x-internal:=true,
+ org.eclipse.mylyn.reviews.connector,
+ org.eclipse.mylyn.reviews.connector.client,
+ org.eclipse.mylyn.reviews.connector.query
diff --git a/org.eclipse.mylyn.reviews.connector/about.html b/org.eclipse.mylyn.reviews.connector/about.html
new file mode 100644
index 0000000..d774b07
--- /dev/null
+++ b/org.eclipse.mylyn.reviews.connector/about.html
@@ -0,0 +1,27 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
+<html>
+<head>
+<title>About</title>
+<meta http-equiv=Content-Type content="text/html; charset=ISO-8859-1">
+</head>
+<body lang="EN-US">
+<h2>About This Content</h2>
+
+<p>June 25, 2008</p>
+<h3>License</h3>
+
+<p>The Eclipse Foundation makes available all content in this plug-in (&quot;Content&quot;). Unless otherwise
+indicated below, the Content is provided to you under the terms and conditions of the
+Eclipse Public License Version 1.0 (&quot;EPL&quot;). A copy of the EPL is available
+at <a href="http://www.eclipse.org/legal/epl-v10.html">http://www.eclipse.org/legal/epl-v10.html</a>.
+For purposes of the EPL, &quot;Program&quot; will mean the Content.</p>
+
+<p>If you did not receive this Content directly from the Eclipse Foundation, the Content is
+being redistributed by another party (&quot;Redistributor&quot;) and different terms and conditions may
+apply to your use of any object code in the Content. Check the Redistributor's license that was
+provided with the Content. If no such license exists, contact the Redistributor. Unless otherwise
+indicated below, the terms and conditions of the EPL still apply to any source code in the Content
+and such source code may be obtained at <a href="/">http://www.eclipse.org</a>.</p>
+
+</body>
+</html> \ No newline at end of file
diff --git a/org.eclipse.mylyn.reviews.connector/build.properties b/org.eclipse.mylyn.reviews.connector/build.properties
new file mode 100644
index 0000000..9a937b1
--- /dev/null
+++ b/org.eclipse.mylyn.reviews.connector/build.properties
@@ -0,0 +1,16 @@
+# Copyright (c) 2011 Tasktop Technologies and others.
+# 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:
+# Tasktop Technologies - initial API and implementation
+
+bin.includes = .,\
+ META-INF/,\
+ about.html
+jars.compile.order = .
+source.. = src/
+output.. = bin/
+src.includes = about.html
diff --git a/org.eclipse.mylyn.reviews.connector/pom.xml b/org.eclipse.mylyn.reviews.connector/pom.xml
new file mode 100644
index 0000000..fb6d9b4
--- /dev/null
+++ b/org.eclipse.mylyn.reviews.connector/pom.xml
@@ -0,0 +1,29 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
+ <modelVersion>4.0.0</modelVersion>
+ <parent>
+ <artifactId>org.eclipse.mylyn.reviews.r4e-parent</artifactId>
+ <groupId>org.eclipse.mylyn.reviews.r4e</groupId>
+ <version>0.13.0-SNAPSHOT</version>
+ </parent>
+ <artifactId>org.eclipse.mylyn.reviews.connector</artifactId>
+ <version>0.13.0-SNAPSHOT</version>
+ <packaging>eclipse-plugin</packaging>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.eclipse.tycho</groupId>
+ <artifactId>tycho-source-plugin</artifactId>
+ </plugin>
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>findbugs-maven-plugin</artifactId>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-pmd-plugin</artifactId>
+ </plugin>
+ </plugins>
+ </build>
+</project>
diff --git a/org.eclipse.mylyn.reviews.connector/src/org/eclipse/mylyn/internal/reviews/connector/EmfCorePlugin.java b/org.eclipse.mylyn.reviews.connector/src/org/eclipse/mylyn/internal/reviews/connector/EmfCorePlugin.java
new file mode 100644
index 0000000..02f4427
--- /dev/null
+++ b/org.eclipse.mylyn.reviews.connector/src/org/eclipse/mylyn/internal/reviews/connector/EmfCorePlugin.java
@@ -0,0 +1,69 @@
+/*******************************************************************************
+ * Copyright (c) 2012 Ericsson AB and others.
+ *
+ * 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
+ *
+ * Description:
+ *
+ * Contributors:
+ * Miles Parker, Tasktop Technologies - Initial API and Implementation
+ *******************************************************************************/
+package org.eclipse.mylyn.internal.reviews.connector;
+
+import java.io.File;
+
+import org.eclipse.core.runtime.CoreException;
+import org.eclipse.core.runtime.IPath;
+import org.eclipse.core.runtime.IStatus;
+import org.eclipse.core.runtime.Platform;
+import org.eclipse.core.runtime.Plugin;
+import org.eclipse.core.runtime.Status;
+import org.osgi.framework.BundleContext;
+
+/**
+ * Controls the R4E plug-in life cycle.
+ *
+ * @author Miles Parker
+ */
+public class EmfCorePlugin extends Plugin {
+
+ public static final String PLUGIN_ID = "org.eclipse.mylyn.reviews.connector"; //$NON-NLS-1$
+
+ private static EmfCorePlugin plugin;
+
+ @Override
+ public void start(BundleContext context) throws Exception {
+ super.start(context);
+ plugin = this;
+ }
+
+ @Override
+ public void stop(BundleContext context) throws Exception {
+ plugin = null;
+ super.stop(context);
+ }
+
+ /**
+ * Returns the shared instance.
+ */
+ public static EmfCorePlugin getDefault() {
+ return plugin;
+ }
+
+ protected File getRepositoryConfigurationCache() {
+ IPath stateLocation = Platform.getStateLocation(getBundle());
+ IPath cache = stateLocation.append("repositoryConfigurations"); //$NON-NLS-1$
+ return cache.toFile();
+ }
+
+ public static void logError(final String message, final Throwable throwable) {
+ getDefault().getLog().log(new Status(IStatus.ERROR, PLUGIN_ID, 0, message, throwable));
+ }
+
+ public static void handleCoreException(String message, Throwable e) throws CoreException {
+ throw new CoreException(new Status(IStatus.ERROR, EmfCorePlugin.PLUGIN_ID, message, e));
+ }
+}
diff --git a/org.eclipse.mylyn.reviews.connector/src/org/eclipse/mylyn/reviews/connector/AbstractEmfConnector.java b/org.eclipse.mylyn.reviews.connector/src/org/eclipse/mylyn/reviews/connector/AbstractEmfConnector.java
new file mode 100644
index 0000000..58255bf
--- /dev/null
+++ b/org.eclipse.mylyn.reviews.connector/src/org/eclipse/mylyn/reviews/connector/AbstractEmfConnector.java
@@ -0,0 +1,573 @@
+/*******************************************************************************
+ * Copyright (c) 2012 Ericsson AB and others.
+ *
+ * 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
+ *
+ * Description:
+ *
+ * Contributors:
+ * Miles Parker, Tasktop Technologies - Initial API and Implementation
+ * Others (includes code modified from GerritConnector in org.eclipse.mylyn.gerit, see author annotations.)
+ *******************************************************************************/
+package org.eclipse.mylyn.reviews.connector;
+
+import java.io.File;
+import java.io.UnsupportedEncodingException;
+import java.net.URLDecoder;
+import java.net.URLEncoder;
+import java.util.Calendar;
+import java.util.Date;
+import java.util.HashSet;
+import java.util.List;
+import java.util.Set;
+
+import org.apache.commons.lang.ObjectUtils;
+import org.apache.commons.lang.StringUtils;
+import org.eclipse.core.runtime.CoreException;
+import org.eclipse.core.runtime.IPath;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.core.runtime.IStatus;
+import org.eclipse.core.runtime.Platform;
+import org.eclipse.core.runtime.Status;
+import org.eclipse.emf.common.util.EList;
+import org.eclipse.emf.ecore.EAttribute;
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EEnum;
+import org.eclipse.emf.ecore.EEnumLiteral;
+import org.eclipse.emf.ecore.EFactory;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.ecore.EReference;
+import org.eclipse.emf.ecore.EStructuralFeature;
+import org.eclipse.emf.ecore.resource.Resource;
+import org.eclipse.emf.ecore.util.EcoreUtil;
+import org.eclipse.emf.ecore.xmi.XMLResource;
+import org.eclipse.mylyn.internal.reviews.connector.EmfCorePlugin;
+import org.eclipse.mylyn.internal.tasks.core.RepositoryTaskHandleUtil;
+import org.eclipse.mylyn.reviews.connector.EmfTaskSchema.FieldFeature;
+import org.eclipse.mylyn.reviews.connector.client.EmfClient;
+import org.eclipse.mylyn.reviews.connector.query.EmfQueryEngine;
+import org.eclipse.mylyn.reviews.connector.query.QueryClause;
+import org.eclipse.mylyn.reviews.connector.query.QueryException;
+import org.eclipse.mylyn.reviews.connector.query.SimpleQueryEngine;
+import org.eclipse.mylyn.tasks.core.AbstractRepositoryConnector;
+import org.eclipse.mylyn.tasks.core.IRepositoryQuery;
+import org.eclipse.mylyn.tasks.core.ITask;
+import org.eclipse.mylyn.tasks.core.ITaskMapping;
+import org.eclipse.mylyn.tasks.core.RepositoryClientManager;
+import org.eclipse.mylyn.tasks.core.RepositoryResponse;
+import org.eclipse.mylyn.tasks.core.RepositoryResponse.ResponseKind;
+import org.eclipse.mylyn.tasks.core.TaskRepository;
+import org.eclipse.mylyn.tasks.core.data.AbstractTaskDataHandler;
+import org.eclipse.mylyn.tasks.core.data.AbstractTaskSchema.Field;
+import org.eclipse.mylyn.tasks.core.data.TaskAttribute;
+import org.eclipse.mylyn.tasks.core.data.TaskAttributeMapper;
+import org.eclipse.mylyn.tasks.core.data.TaskData;
+import org.eclipse.mylyn.tasks.core.data.TaskDataCollector;
+import org.eclipse.mylyn.tasks.core.data.TaskMapper;
+import org.eclipse.mylyn.tasks.core.sync.ISynchronizationSession;
+import org.osgi.framework.Bundle;
+
+/**
+ * Generic support for connectors to Emf models. Connector implementors should override, providing all meta-data.
+ *
+ * @author Miles Parker
+ */
+@SuppressWarnings("restriction")
+public abstract class AbstractEmfConnector extends AbstractRepositoryConnector {
+
+ /**
+ * Unicode en-dash.
+ */
+ public static final String EN_DASH = "\u2013"; //$NON-NLS-1$
+
+ public static final String ITEM_DELIM = "#"; //$NON-NLS-1$
+
+ public enum KeyStrategy {
+ EMF_SCHEMA_FIELD, OBJECT_ID, MEMBER_INDEX, XMI_ID
+ };
+
+ class EmfClientManager extends RepositoryClientManager<EmfClient, EmfConfiguration> {
+ public EmfClientManager() {
+ super(getCacheFile(), getConfigurationClass());
+ }
+
+ @Override
+ protected EmfClient createClient(TaskRepository repository, EmfConfiguration configuration) {
+ return AbstractEmfConnector.this.createClient(repository, configuration);
+ }
+ }
+
+ /**
+ * By delegating back to the EmfConnector for this case, we can greatly simplify API for consumers.
+ */
+ class EmfTaskDataHandler extends AbstractTaskDataHandler {
+
+ @Override
+ public TaskAttributeMapper getAttributeMapper(TaskRepository repository) {
+ return AbstractEmfConnector.this.getAttributeMapper(repository);
+ }
+
+ @Override
+ public boolean initializeTaskData(TaskRepository repository, TaskData taskData,
+ ITaskMapping initializationData, IProgressMonitor monitor) {
+ return AbstractEmfConnector.this.initializeTaskData(repository, taskData, initializationData, monitor);
+ }
+
+ @Override
+ public RepositoryResponse postTaskData(TaskRepository repository, TaskData taskData,
+ Set<TaskAttribute> oldAttributes, IProgressMonitor monitor) throws CoreException {
+ return AbstractEmfConnector.this.postTaskData(repository, taskData, oldAttributes, monitor);
+ }
+ }
+
+ /**
+ * By delegating back to the EmfConnector for this case, we can greatly simplify API for consumers.
+ */
+ public class EmfTaskSchemaDelegator extends EmfTaskSchema {
+
+ @Override
+ protected EClass[] getSchemaEClasses() {
+ return AbstractEmfConnector.this.getTaskClasses();
+ }
+
+ @Override
+ protected FieldFeature[] getSchemaPairs() {
+ return AbstractEmfConnector.this.getTaskFeatures();
+ }
+
+ }
+
+ public static final String EMF_ITEM_DELIM = "#"; //$NON-NLS-1$
+
+ private final EmfTaskDataHandler taskDataHandler = new EmfTaskDataHandler();
+
+ private RepositoryClientManager<EmfClient, EmfConfiguration> clientManager;
+
+ private EmfTaskSchema taskSchema;
+
+ private final File configurationCacheFile;
+
+ private final Set<QueryClause> queryClauses = new HashSet<QueryClause>();
+
+ public AbstractEmfConnector() {
+ IPath stateLocation = Platform.getStateLocation(EmfCorePlugin.getDefault().getBundle());
+ IPath cache = stateLocation.append("repositoryConfigurations"); //$NON-NLS-1$
+ configurationCacheFile = cache.toFile();
+ }
+
+ public Class<EmfConfiguration> getConfigurationClass() {
+ return EmfConfiguration.class;
+ }
+
+ /**
+ * Not supported yet.
+ */
+ @Override
+ public boolean canCreateNewTask(TaskRepository arg0) {
+ return true;
+ }
+
+ @Override
+ public boolean canCreateTaskFromKey(TaskRepository arg0) {
+ return true;
+ }
+
+ public EmfClient getClient(TaskRepository repository) {
+ return getClientManager().getClient(repository);
+ }
+
+ public TaskAttributeMapper getAttributeMapper(TaskRepository repository) {
+ return getSchema().getAttributeMapper(repository);
+ }
+
+ public EmfAttributeMapper getEmfMapper(TaskRepository repository) {
+ return (EmfAttributeMapper) getAttributeMapper(repository);
+ }
+
+ public EmfQueryEngine getQueryEngine(TaskRepository repository) {
+ return new SimpleQueryEngine(this, repository);
+ }
+
+ public boolean initializeTaskData(TaskRepository repository, TaskData data, ITaskMapping initializationData,
+ IProgressMonitor monitor) {
+ getSchema().initialize(data);
+ String taskId = data.getTaskId();
+ data.getRoot()
+ .createAttribute(TaskAttribute.TASK_URL)
+ .setValue(getTaskUrl(repository.getRepositoryUrl(), taskId));
+ data.getRoot().createAttribute(TaskAttribute.TASK_KEY).setValue(encodeTaskKey(taskId));
+ return true;
+ }
+
+ public RepositoryResponse postTaskData(TaskRepository repository, TaskData taskData,
+ Set<TaskAttribute> oldAttributes, IProgressMonitor monitor) throws CoreException {
+ EmfClient client = getClient(repository);
+ client.open();
+ String taskId = taskData.getTaskId();
+ EObject emfTask;
+ if (taskId.equals("")) { //$NON-NLS-1$
+ EClass containedClass = getTaskClasses()[0];
+ @SuppressWarnings("unchecked")
+ EList<? super EObject> taskContainment = (EList<? super EObject>) client.getRootContainer().eGet(
+ getContainmentReference());
+ emfTask = client.create(containedClass, taskData);
+ taskContainment.add(emfTask);
+ //Emf implementation may create a key at model save time (e.g. XMLResource uuid implementation)
+ client.save();
+ taskId = getTaskKey(repository, emfTask);
+ if (StringUtils.isEmpty(taskId) || taskId.equals("0")) { //$NON-NLS-1$
+ taskId = getNextTaskId(client.getRootContainer());
+ }
+ TaskAttribute keyAttribute = taskData.getRoot().getAttribute(TaskAttribute.TASK_KEY);
+ keyAttribute.setValue(taskId);
+ oldAttributes.add(keyAttribute);
+ for (Field field : getSchema().getFields()) {
+ oldAttributes.add(taskData.getRoot().getAttribute(field.getKey()));
+ }
+ } else {
+ emfTask = getTaskObjectChecked(repository, taskId, monitor);
+ }
+ boolean emfDirty = false;
+ for (TaskAttribute staleAttribute : oldAttributes) {
+ String id = staleAttribute.getId();
+ TaskAttribute newAttribute = taskData.getRoot().getAttribute(id);
+ boolean isSet = newAttribute.getValues().size() > 0;
+ if (isSet) {
+ boolean setValueForKey = getEmfMapper(repository).copyTaskToEmf(newAttribute, emfTask);
+ emfDirty |= setValueForKey;
+ }
+ }
+ if (emfDirty) {
+ Date time = Calendar.getInstance().getTime();
+ EStructuralFeature dateModificationFeature = getSchema().getFeature(TaskAttribute.DATE_MODIFICATION);
+ emfTask.eSet(dateModificationFeature, time);
+ client.notifyChanged(emfTask);
+ }
+ return new RepositoryResponse(ResponseKind.TASK_UPDATED, taskId);
+ }
+
+ public TaskData createTaskData(TaskRepository repository, String taskId, IProgressMonitor monitor) {
+ TaskData data = new TaskData(getAttributeMapper(repository), getConnectorKind(), repository.getRepositoryUrl(),
+ taskId);
+ initializeTaskData(repository, data, null, monitor);
+ return data;
+ }
+
+ public TaskData createPartialTaskData(TaskRepository repository, String taskId, IProgressMonitor monitor) {
+ TaskData data = new TaskData(getAttributeMapper(repository), getConnectorKind(), repository.getRepositoryUrl(),
+ taskId);
+ //Only create summary and other mapped attributes now
+ getSchema().initialize(data);
+ data.setPartial(true);
+ return data;
+ }
+
+ /**
+ * Retrieves task data for the given review from repository.
+ */
+ @Override
+ public TaskData getTaskData(TaskRepository repository, String taskId, IProgressMonitor monitor)
+ throws CoreException {
+ EmfClient client = getClient(repository);
+ client.updateConfiguration(monitor);
+ EObject emfObject = getTaskObjectChecked(repository, taskId, monitor);
+ String id = getTaskKey(repository, emfObject);
+ TaskData data = createTaskData(repository, id, monitor);
+ EmfTaskSchema schema = getSchema();
+ for (Field field : schema.getFields()) {
+ EStructuralFeature feature = schema.getFeature(field.getKey());
+ //TODO support object references
+ if (feature instanceof EAttribute && !((EAttribute) feature).isMany()) {
+ EAttribute emfAttribute = (EAttribute) feature;
+ Object emfValue = emfObject.eGet(feature);
+ TaskAttribute taskAttribute = field.createAttribute(data.getRoot());
+ if (emfAttribute.getEAttributeType() instanceof EEnum) {
+ EEnum enumerator = (EEnum) emfAttribute.getEAttributeType();
+ for (EEnumLiteral literal : enumerator.getELiterals()) {
+ taskAttribute.putOption(literal.getLiteral(), literal.getName());
+ }
+ }
+ getEmfMapper(repository).copyEmfToTask(emfObject, taskAttribute);
+ if (emfValue != null) {
+ EFactory factory = emfAttribute.getEAttributeType().getEPackage().getEFactoryInstance();
+ String stringValue = factory.convertToString(emfAttribute.getEAttributeType(), emfValue);
+ taskAttribute.setValue(stringValue);
+ } else if (!emfObject.eIsSet(feature)) {
+ taskAttribute.clearValues();
+ } else {
+ taskAttribute.setValue(""); //$NON-NLS-1$
+ }
+ }
+ }
+ return data;
+ }
+
+ protected KeyStrategy getKeyStrategy() {
+ return KeyStrategy.EMF_SCHEMA_FIELD;
+ }
+
+ protected String getTaskKey(TaskRepository repository, EObject emfObject) {
+ String key = null;
+ switch (getKeyStrategy()) {
+ case EMF_SCHEMA_FIELD:
+ key = getEmfMapper(repository).getEmfString(emfObject, TaskAttribute.TASK_KEY);
+ break;
+ case OBJECT_ID:
+ key = EcoreUtil.getID(emfObject);
+ break;
+ case XMI_ID:
+ Resource resource = emfObject.eResource();
+ if (resource instanceof XMLResource) {
+ XMLResource xmlResource = (XMLResource) resource;
+ key = xmlResource.getID(emfObject);
+ }
+ break;
+ case MEMBER_INDEX:
+ EObject rootContainer = EcoreUtil.getRootContainer(emfObject);
+ String uriFragment = rootContainer.eResource().getURIFragment(emfObject);
+ key = uriFragment;
+ int dotIndex = key.indexOf('.');
+ if (dotIndex >= 0) {
+ key = key.substring(dotIndex + 1);
+ }
+ break;
+ }
+ return encodeTaskKey(key);
+ }
+
+ public EObject getTaskObject(TaskRepository repository, String taskId, IProgressMonitor monitor)
+ throws CoreException {
+ taskId = encodeTaskKey(taskId);
+ EmfClient client = getClient(repository);
+ client.open();
+ EObject container = client.getRootContainer();
+ EObject rootContainer = EcoreUtil.getRootContainer(container);
+ EObject referencedObject = rootContainer.eResource().getEObject(taskId);
+ taskId = encodeTaskKey(taskId);
+ if (referencedObject == null) {
+ for (Object object : ((List<?>) container.eGet(getContainmentReference()))) {
+ if (object instanceof EObject) {
+ EObject eObject = (EObject) object;
+ String stringValueForKey = getTaskKey(repository, eObject);
+ if (ObjectUtils.equals(stringValueForKey, taskId)) {
+ referencedObject = eObject;
+ break;
+ }
+ }
+ }
+ }
+ return referencedObject;
+ }
+
+ public EObject getTaskObjectChecked(TaskRepository repository, String taskId, IProgressMonitor monitor)
+ throws CoreException {
+ EObject emfObject = getTaskObject(repository, taskId, monitor);
+ if (emfObject == null) {
+ throw new CoreException(new Status(IStatus.WARNING, EmfCorePlugin.PLUGIN_ID,
+ "Couldn't locate task object for taskId: " + taskId //$NON-NLS-1$
+ ));
+ }
+ return emfObject;
+ }
+
+ @Override
+ public AbstractTaskDataHandler getTaskDataHandler() {
+ return taskDataHandler;
+ }
+
+ /**
+ * Encode a task id to prevent use of handle delimiters.
+ *
+ * @param taskId
+ * @return
+ */
+ public String encodeTaskKey(String taskId) {
+ return StringUtils.replace(taskId, RepositoryTaskHandleUtil.HANDLE_DELIM, EN_DASH);
+ }
+
+ /**
+ * Decode a task id to restore any handle delimiters.
+ *
+ * @param taskId
+ * @return
+ */
+ public String decodeTaskKey(String taskId) {
+ return StringUtils.replace(taskId, EN_DASH, RepositoryTaskHandleUtil.HANDLE_DELIM);
+ }
+
+ @Override
+ public String getRepositoryUrlFromTaskUrl(String url) {
+ if (url == null) {
+ return null;
+ }
+
+ int i = url.indexOf(ITEM_DELIM);
+ if (i != -1) {
+ return url.substring(0, i);
+ }
+ return null;
+ }
+
+ @Override
+ public String getTaskIdFromTaskUrl(String url) {
+ if (url == null) {
+ return null;
+ }
+ int index = url.indexOf(ITEM_DELIM);
+ if (index > 0) {
+ String taskId = url.substring(index + ITEM_DELIM.length());
+ try {
+ taskId = URLDecoder.decode(taskId, "utf-8"); //$NON-NLS-1$
+ } catch (UnsupportedEncodingException e) {
+ throw new RuntimeException(e);
+ }
+ return taskId;
+ }
+ return null;
+ }
+
+ @Override
+ public String getTaskUrl(String repositoryUrl, String taskId) {
+ String encodedId = taskId;
+ try {
+ encodedId = URLEncoder.encode(taskId, "utf-8"); //$NON-NLS-1$
+ } catch (UnsupportedEncodingException e) {
+ throw new RuntimeException(e);
+ }
+ return repositoryUrl + ITEM_DELIM + encodedId;
+ }
+
+ @Override
+ public ITaskMapping getTaskMapping(TaskData taskData) {
+ return new TaskMapper(taskData);
+ }
+
+ @Override
+ public boolean hasTaskChanged(TaskRepository repository, ITask task, TaskData taskData) {
+ ITaskMapping taskMapping = getTaskMapping(taskData);
+ if (taskData.isPartial() && task.getModificationDate() != null) {
+ return false;
+ }
+ Date repositoryDate = taskMapping.getModificationDate();
+ Date localDate = task.getModificationDate();
+ boolean hasChanged = repositoryDate != null && repositoryDate.equals(localDate);
+ return hasChanged;
+ }
+
+ @Override
+ public IStatus performQuery(TaskRepository repository, IRepositoryQuery query, TaskDataCollector resultCollector,
+ ISynchronizationSession session, IProgressMonitor monitor) {
+ try {
+ EmfClient client = getClient(repository);
+ client.open();
+// new SELECT(new WHERE(new EObjectAttributeValueCondition(attribute, valueCondition)), where)
+ List<EObject> results;
+ try {
+ results = getQueryEngine(repository).performQuery(query, monitor);
+ for (EObject taskObject : results) {
+ String id = encodeTaskKey(getTaskKey(repository, taskObject));
+ if (!StringUtils.isEmpty(id)) {
+ TaskData taskData = createPartialTaskData(repository, id, monitor);
+ resultCollector.accept(taskData);
+ }
+ }
+ return Status.OK_STATUS;
+ } catch (QueryException e) {
+ return new Status(IStatus.ERROR, EmfCorePlugin.PLUGIN_ID, "Problem occurred while executing query.", e); //$NON-NLS-1$
+ }
+ } catch (CoreException e) {
+ return e.getStatus();
+ } finally {
+ monitor.done();
+ }
+ }
+
+ @Override
+ public void updateRepositoryConfiguration(TaskRepository repository, IProgressMonitor monitor) throws CoreException {
+ getClient(repository).updateConfiguration(monitor);
+ }
+
+ @Override
+ public void updateTaskFromTaskData(TaskRepository taskRepository, ITask task, TaskData taskData) {
+ Date oldModificationDate = task.getModificationDate();
+
+ TaskMapper mapper = (TaskMapper) getTaskMapping(taskData);
+ // retain modification date to force an update when full task data is received
+ if (taskData.isPartial()) {
+ task.setModificationDate(oldModificationDate);
+ } else {
+ mapper.applyTo(task);
+ }
+ }
+
+ public IStatus validate(TaskRepository repository, IProgressMonitor monitor) throws CoreException {
+ return Status.OK_STATUS;
+ }
+
+ public RepositoryClientManager<EmfClient, EmfConfiguration> getClientManager() {
+ if (clientManager == null) {
+ clientManager = new EmfClientManager();
+ }
+ return clientManager;
+ }
+
+ public final EmfTaskSchema getSchema() {
+ if (taskSchema == null) {
+ taskSchema = createTaskSchema();
+ taskSchema.initialize();
+ }
+ return taskSchema;
+ }
+
+ /**
+ * Override to provide a custom task schema implementation. (The default Schema will provide values based on the
+ * connector meta-data .)
+ *
+ * @return
+ */
+ public EmfTaskSchema createTaskSchema() {
+ return new EmfTaskSchemaDelegator();
+ }
+
+ public File getCacheFile() {
+ return configurationCacheFile;
+ }
+
+ /**
+ * Override to implement a custom EMF client. In most cases this should not be necessary.
+ *
+ * @param repository
+ * @param configuration
+ * @return
+ */
+ protected EmfClient createClient(TaskRepository repository, EmfConfiguration configuration) {
+ return new EmfClient(repository, configuration) {
+ @Override
+ public AbstractEmfConnector getConnector() {
+ return AbstractEmfConnector.this;
+ }
+
+ };
+ }
+
+ public Set<QueryClause> getQueryClauses() {
+ return queryClauses;
+ }
+
+ public abstract String getNextTaskId(EObject taskContainer);
+
+ public abstract EAttribute getContentsNameAttribute();
+
+ public abstract EReference getContainmentReference();
+
+ public abstract EAttribute[] getSearchAttributes();
+
+ public abstract Bundle getConnectorBundle();
+
+ public abstract EClass[] getTaskClasses();
+
+ public abstract FieldFeature[] getTaskFeatures();
+}
diff --git a/org.eclipse.mylyn.reviews.connector/src/org/eclipse/mylyn/reviews/connector/EmfAttributeMapper.java b/org.eclipse.mylyn.reviews.connector/src/org/eclipse/mylyn/reviews/connector/EmfAttributeMapper.java
new file mode 100644
index 0000000..2abaa33
--- /dev/null
+++ b/org.eclipse.mylyn.reviews.connector/src/org/eclipse/mylyn/reviews/connector/EmfAttributeMapper.java
@@ -0,0 +1,148 @@
+/*******************************************************************************
+ * Copyright (c) 2012 Tasktop Technologies and others.
+ * 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:
+ * Tasktop Technologies - initial API and implementation
+ *******************************************************************************/
+
+package org.eclipse.mylyn.reviews.connector;
+
+import java.util.Date;
+
+import org.apache.commons.lang.ObjectUtils;
+import org.apache.commons.lang.StringUtils;
+import org.eclipse.core.runtime.CoreException;
+import org.eclipse.emf.ecore.EAttribute;
+import org.eclipse.emf.ecore.EDataType;
+import org.eclipse.emf.ecore.EFactory;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.ecore.EStructuralFeature;
+import org.eclipse.emf.ecore.EcoreFactory;
+import org.eclipse.emf.ecore.EcorePackage;
+import org.eclipse.mylyn.tasks.core.TaskRepository;
+import org.eclipse.mylyn.tasks.core.data.AbstractTaskSchema.Field;
+import org.eclipse.mylyn.tasks.core.data.TaskAttribute;
+import org.eclipse.mylyn.tasks.core.data.TaskAttributeMapper;
+import org.eclipse.mylyn.tasks.core.data.TaskData;
+
+public class EmfAttributeMapper extends TaskAttributeMapper {
+
+ private final EmfTaskSchema schema;
+
+ public EmfAttributeMapper(EmfTaskSchema emfTaskSchema, TaskRepository taskRepository) {
+ super(taskRepository);
+ this.schema = emfTaskSchema;
+ }
+
+ @Override
+ public String mapToRepositoryKey(TaskAttribute parent, String key) {
+ EStructuralFeature feature = schema.getFeature(key);
+ if (feature != null) {
+ return schema.getKey(feature);
+ }
+ return key;
+ }
+
+ public boolean copyEmfToTask(EObject parent, TaskAttribute attribute) throws CoreException {
+ EStructuralFeature feature = schema.getFeature(attribute.getId());
+ //TODO support object references
+ if (feature instanceof EAttribute) {
+ EDataType type = ((EAttribute) feature).getEAttributeType();
+ EFactory factory = type.getEPackage().getEFactoryInstance();
+ Object value = parent.eGet(feature);
+ if (value == null) {
+ attribute.clearValues();
+ } else {
+ String stringValue = factory.convertToString(type, value);
+ if (!StringUtils.equals(attribute.getValue(), stringValue)) {
+ attribute.setValue(stringValue);
+ return true;
+ }
+ }
+ }
+ return false;
+ }
+
+ public boolean copyTaskToEmf(TaskAttribute attribute, EObject object) throws CoreException {
+ EStructuralFeature feature = schema.getFeature(attribute.getId());
+ //TODO support object references
+ if (feature instanceof EAttribute) {
+ EDataType type = ((EAttribute) feature).getEAttributeType();
+ EFactory factory = type.getEPackage().getEFactoryInstance();
+ String newValue = attribute.getValue();
+ Object newObject = factory.createFromString(type, newValue);
+ Object emfOldValue = object.eGet(feature);
+ if (!ObjectUtils.equals(emfOldValue, newObject)) {
+ object.eSet(feature, newObject);
+ return true;
+ }
+ }
+ return false;
+ }
+
+ @Override
+ public Date getDateValue(TaskAttribute attribute) {
+ return getDateValue(attribute.getValue());
+ }
+
+ public Date getDateValue(String value) {
+ if (!value.equals("") && !value.equals("null")) {
+ return (Date) EcoreFactory.eINSTANCE.createFromString(EcorePackage.Literals.EDATE, value);
+ }
+ return null;
+ }
+
+ public String getDateString(Date date) {
+ return EcoreFactory.eINSTANCE.convertToString(EcorePackage.Literals.EDATE, date);
+ }
+
+ @Override
+ public void setDateValue(TaskAttribute attribute, Date date) {
+ if (date != null) {
+ super.setValue(attribute, getDateString(date));
+ } else {
+ attribute.clearValues();
+ }
+ }
+
+ public boolean copyEmfToTask(EObject parent, EStructuralFeature feature, TaskData data) throws CoreException {
+ Field field = schema.getFieldByFeature(feature);
+ if (field != null) {
+ TaskAttribute newAttribute = field.createAttribute(data.getRoot());
+ return copyEmfToTask(parent, newAttribute);
+ }
+ return false;
+ }
+
+ public Object getEmf(EObject taskObject, String key) {
+ EStructuralFeature feature = schema.getFeature(key);
+ if (feature instanceof EAttribute) {
+ return taskObject.eGet(feature);
+ }
+ return null;
+ }
+
+ public Object getEmfValue(EObject taskObject, String key) {
+ EStructuralFeature feature = schema.getFeature(key);
+ if (feature instanceof EAttribute) {
+ Object value = taskObject.eGet(feature);
+ return value;
+ }
+ return null;
+ }
+
+ public String getEmfString(EObject taskObject, String key) {
+ Object value = getEmfValue(taskObject, key);
+ if (value != null) {
+ EStructuralFeature feature = schema.getFeature(key);
+ EFactory factory = feature.getEType().getEPackage().getEFactoryInstance();
+ //Handles basic string case in addition to simple coercions
+ return factory.convertToString((EDataType) feature.getEType(), value);
+ }
+ return null;
+ }
+} \ No newline at end of file
diff --git a/org.eclipse.mylyn.reviews.connector/src/org/eclipse/mylyn/reviews/connector/EmfConfiguration.java b/org.eclipse.mylyn.reviews.connector/src/org/eclipse/mylyn/reviews/connector/EmfConfiguration.java
new file mode 100644
index 0000000..bd251fd
--- /dev/null
+++ b/org.eclipse.mylyn.reviews.connector/src/org/eclipse/mylyn/reviews/connector/EmfConfiguration.java
@@ -0,0 +1,37 @@
+/*******************************************************************************
+ * Copyright (c) 2012 Ericsson AB and others.
+ *
+ * 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
+ *
+ * Description:
+ *
+ * Contributors:
+ * Miles Parker, Tasktop Technologies - Initial API and Implementation
+ *******************************************************************************/
+
+package org.eclipse.mylyn.reviews.connector;
+
+import java.io.Serializable;
+
+/**
+ * @author MilesParker
+ */
+public final class EmfConfiguration implements Serializable {
+
+ /**
+ *
+ */
+ private static final long serialVersionUID = 1L;
+
+ public EmfConfiguration() {
+ // ignore
+ }
+
+ public void refresh() {
+ // ignore
+
+ }
+}
diff --git a/org.eclipse.mylyn.reviews.connector/src/org/eclipse/mylyn/reviews/connector/EmfTaskSchema.java b/org.eclipse.mylyn.reviews.connector/src/org/eclipse/mylyn/reviews/connector/EmfTaskSchema.java
new file mode 100644
index 0000000..04d9dec
--- /dev/null
+++ b/org.eclipse.mylyn.reviews.connector/src/org/eclipse/mylyn/reviews/connector/EmfTaskSchema.java
@@ -0,0 +1,252 @@
+/*******************************************************************************
+ * Copyright (c) 2012 Tasktop Technologies and others.
+ * 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:
+ * Tasktop Technologies - initial API and implementation
+ *******************************************************************************/
+
+package org.eclipse.mylyn.reviews.connector;
+
+import java.util.HashMap;
+import java.util.Map;
+
+import org.apache.commons.lang.ObjectUtils;
+import org.apache.commons.lang.StringUtils;
+import org.apache.commons.lang.WordUtils;
+import org.eclipse.emf.ecore.EAttribute;
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EEnum;
+import org.eclipse.emf.ecore.EEnumLiteral;
+import org.eclipse.emf.ecore.EReference;
+import org.eclipse.emf.ecore.EStructuralFeature;
+import org.eclipse.emf.ecore.EcorePackage;
+import org.eclipse.mylyn.tasks.core.TaskRepository;
+import org.eclipse.mylyn.tasks.core.data.AbstractTaskSchema;
+import org.eclipse.mylyn.tasks.core.data.DefaultTaskSchema;
+import org.eclipse.mylyn.tasks.core.data.TaskAttribute;
+import org.eclipse.mylyn.tasks.core.data.TaskAttributeMapper;
+import org.eclipse.mylyn.tasks.core.data.TaskData;
+
+public abstract class EmfTaskSchema extends AbstractTaskSchema {
+
+ public static final String TYPE_EMF_REFERENCE = "emf.reference"; //$NON-NLS-1$
+
+ public static final String TYPE_EMF_GENERIC = "emf.generic"; //$NON-NLS-1$
+
+ public static final String TYPE_EMF_UNSUPPORTED = "emf.unsupported"; //$NON-NLS-1$
+
+ private final DefaultTaskSchema parent = DefaultTaskSchema.getInstance();
+
+ public static class FieldFeature {
+ Field parentField;
+
+ EStructuralFeature feature;
+
+ Flag[] flags;
+
+ boolean readOnly;
+
+ public FieldFeature(Field taskAttribute, EStructuralFeature emfFeature) {
+ super();
+ this.parentField = taskAttribute;
+ this.feature = emfFeature;
+ }
+
+ public FieldFeature(Field taskAttribute, EStructuralFeature emfFeature, boolean readOnly, Flag... flags) {
+ this(taskAttribute, emfFeature);
+ this.readOnly = readOnly;
+ this.flags = flags;
+ }
+
+ @Override
+ public int hashCode() {
+ // ignore
+ return parentField.hashCode() * 31 + feature.hashCode();
+ }
+
+ @Override
+ public boolean equals(Object other) {
+ return other instanceof FieldFeature && ObjectUtils.equals(parentField, ((FieldFeature) other).parentField)
+ && ObjectUtils.equals(feature, ((FieldFeature) other).feature);
+ }
+ }
+
+ private final Map<EStructuralFeature, Field> fieldByFeature = new HashMap<EStructuralFeature, Field>();
+
+ private final Map<String, EStructuralFeature> featureByTaskKey = new HashMap<String, EStructuralFeature>();
+
+ private boolean keyFieldDefined;
+
+ public void initialize() {
+ boolean keyFieldDefined = false;
+ for (FieldFeature fieldFeature : getSchemaPairs()) {
+ if (fieldFeature.parentField.getKey() == parent.TASK_KEY.getKey()) {
+ keyFieldDefined = true;
+ break;
+ }
+ }
+ for (FieldFeature fieldFeature : getSchemaPairs()) {
+ createField(fieldFeature);
+ }
+ for (EClass schemaClass : getSchemaEClasses()) {
+ for (EStructuralFeature feature : schemaClass.getEAllStructuralFeatures()) {
+ //Don't replace explicitly mapped features.
+ if (isSupported(feature) && fieldByFeature.get(feature) == null) {
+ createField(feature);
+ }
+ }
+ }
+ }
+
+ @Override
+ public void initialize(TaskData taskData) {
+ if (!keyFieldDefined) {
+ DefaultTaskSchema.getInstance().TASK_KEY.createAttribute(taskData.getRoot());
+ }
+ for (Field field : getFields()) {
+ TaskAttribute attribute = field.createAttribute(taskData.getRoot());
+ EStructuralFeature feature = getFeature(attribute.getId());
+ if (feature instanceof EAttribute) {
+ EAttribute emfAttribute = (EAttribute) feature;
+ if (emfAttribute.getEAttributeType() instanceof EEnum) {
+ EEnum enumerator = (EEnum) emfAttribute.getEAttributeType();
+ for (EEnumLiteral literal : enumerator.getELiterals()) {
+ attribute.putOption(literal.getLiteral(), literal.getName());
+ }
+ }
+ }
+ }
+ }
+
+ protected abstract EClass[] getSchemaEClasses();
+
+ protected abstract FieldFeature[] getSchemaPairs();
+
+ public String getTaskType(EStructuralFeature feature) {
+ if (feature instanceof EReference) {
+ return TYPE_EMF_REFERENCE;
+ }
+ int classifierID = feature.getEType().getClassifierID();
+ switch (classifierID) {
+ case EcorePackage.EBIG_DECIMAL:
+ return TaskAttribute.TYPE_DOUBLE;
+ case EcorePackage.EBIG_INTEGER:
+ return TaskAttribute.TYPE_INTEGER;
+ case EcorePackage.EBOOLEAN:
+ return TaskAttribute.TYPE_BOOLEAN;
+ case EcorePackage.EBOOLEAN_OBJECT:
+ return TaskAttribute.TYPE_BOOLEAN;
+ case EcorePackage.EBYTE:
+ return TaskAttribute.TYPE_SHORT_TEXT;
+ case EcorePackage.EBYTE_OBJECT:
+ return TaskAttribute.TYPE_SHORT_TEXT;
+ case EcorePackage.ECHAR:
+ return TaskAttribute.TYPE_SHORT_TEXT;
+ case EcorePackage.ECHARACTER_OBJECT:
+ return TaskAttribute.TYPE_SHORT_TEXT;
+ case EcorePackage.EDATE:
+ return TaskAttribute.TYPE_DATE;
+ case EcorePackage.EDOUBLE:
+ return TaskAttribute.TYPE_DOUBLE;
+ case EcorePackage.EDOUBLE_OBJECT:
+ return TaskAttribute.TYPE_DOUBLE;
+ case EcorePackage.EFLOAT:
+ return TaskAttribute.TYPE_DOUBLE;
+ case EcorePackage.EFLOAT_OBJECT:
+ return TaskAttribute.TYPE_DOUBLE;
+ case EcorePackage.EINT:
+ return TaskAttribute.TYPE_INTEGER;
+ case EcorePackage.EINTEGER_OBJECT:
+ return TaskAttribute.TYPE_INTEGER;
+ case EcorePackage.ELONG:
+ return TaskAttribute.TYPE_INTEGER;
+ case EcorePackage.ELONG_OBJECT:
+ return TaskAttribute.TYPE_INTEGER;
+ case EcorePackage.ESHORT:
+ return TaskAttribute.TYPE_INTEGER;
+ case EcorePackage.ESHORT_OBJECT:
+ return TaskAttribute.TYPE_INTEGER;
+ case EcorePackage.ESTRING:
+ return TaskAttribute.TYPE_LONG_RICH_TEXT;
+ case EcorePackage.EBYTE_ARRAY:
+ return TYPE_EMF_GENERIC;
+ case EcorePackage.EDIAGNOSTIC_CHAIN:
+ return TYPE_EMF_UNSUPPORTED;
+ default:
+ return TYPE_EMF_UNSUPPORTED;
+ }
+ }
+
+ public boolean isSupported(EStructuralFeature feature) {
+ return !getTaskType(feature).startsWith("emf"); //$NON-NLS-1$
+ }
+
+ private void addEmfField(EStructuralFeature feature, Field field) {
+ fieldByFeature.put(feature, field);
+ featureByTaskKey.put(field.getKey(), feature);
+ }
+
+ private Field createField(EStructuralFeature feature) {
+ String key = getKey(feature);
+ String label = getLabel(feature);
+ String type = getTaskType(feature);
+ Field field = createField(key, label, type, key, Flag.ATTRIBUTE);
+ addEmfField(feature, field);
+ return field;
+ }
+
+ private Field createField(FieldFeature fieldFeature) {
+ Field parentField = fieldFeature.parentField;
+ EStructuralFeature emfAttribute = fieldFeature.feature;
+ String key = getKey(emfAttribute);
+ FieldFactory factory = inheritFrom(parentField).key(key);
+ if (fieldFeature.readOnly) {
+ factory.addFlags(Flag.READ_ONLY);
+ } else {
+ factory.removeFlags(Flag.READ_ONLY);
+ }
+ Field field = factory.create();
+ addEmfField(emfAttribute, field);
+ featureByTaskKey.put(parentField.getKey(), emfAttribute);
+ return field;
+ }
+
+ public String getKey(EStructuralFeature feature) {
+ return "emf." + feature.getEContainingClass().getEPackage().getName() + "." //$NON-NLS-1$//$NON-NLS-2$
+ + feature.getEContainingClass().getName().toLowerCase() + "." + feature.getName().toLowerCase(); //$NON-NLS-1$
+ }
+
+ public String getLabel(EStructuralFeature feature) {
+ return WordUtils.capitalizeFully(StringUtils.join(StringUtils.splitByCharacterTypeCamelCase(feature.getName()),
+ ' '));
+ }
+
+ /**
+ * Finds the feature corresponding to the supplied task key. Features are matched on both attributes and matched
+ * attributes.
+ *
+ * @param feature
+ * @return
+ */
+ public EStructuralFeature getFeature(String key) {
+ return featureByTaskKey.get(key);
+ }
+
+ /**
+ * Finds the field corresponding to the given structural feature.
+ *
+ * @param feature
+ * @return
+ */
+ public Field getFieldByFeature(EStructuralFeature feature) {
+ return fieldByFeature.get(feature);
+ }
+
+ public TaskAttributeMapper getAttributeMapper(TaskRepository repository) {
+ return new EmfAttributeMapper(this, repository);
+ }
+} \ No newline at end of file
diff --git a/org.eclipse.mylyn.reviews.connector/src/org/eclipse/mylyn/reviews/connector/GenericEmfConnector.java b/org.eclipse.mylyn.reviews.connector/src/org/eclipse/mylyn/reviews/connector/GenericEmfConnector.java
new file mode 100644
index 0000000..81050d1
--- /dev/null
+++ b/org.eclipse.mylyn.reviews.connector/src/org/eclipse/mylyn/reviews/connector/GenericEmfConnector.java
@@ -0,0 +1,47 @@
+/*******************************************************************************
+ * Copyright (c) 2012 Ericsson AB and others.
+ *
+ * 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
+ *
+ * Description:
+ *
+ * Contributors:
+ * Miles Parker, Tasktop Technologies - Initial API and Implementation
+ * Others (includes code modified from GerritConnector in org.eclipse.mylyn.gerit, see author annotations.)
+ *******************************************************************************/
+package org.eclipse.mylyn.reviews.connector;
+
+import org.eclipse.emf.ecore.EAttribute;
+import org.eclipse.emf.ecore.EObject;
+
+/**
+ * Generic support for connectors to common Emf model implementations. Connector implementors should override, providing
+ * additional meta-data.
+ *
+ * @author Miles Parker
+ */
+public abstract class GenericEmfConnector extends AbstractEmfConnector {
+
+ @Override
+ public String getNextTaskId(EObject taskContainer) {
+ Object value = taskContainer.eGet(getTaskKeySequenceAttribute());
+ if (value instanceof Integer) {
+ Integer key = (Integer) value;
+ key++;
+ taskContainer.eSet(getTaskKeySequenceAttribute(), key);
+ return key + "";
+ }
+ throw new IllegalArgumentException("Task key attribute is not an EInt: " //$NON-NLS-1$
+ + getTaskKeySequenceAttribute().getName());
+ }
+
+ /**
+ * Expected to be of type EInt.
+ *
+ * @return
+ */
+ public abstract EAttribute getTaskKeySequenceAttribute();
+}
diff --git a/org.eclipse.mylyn.reviews.connector/src/org/eclipse/mylyn/reviews/connector/client/EmfClient.java b/org.eclipse.mylyn.reviews.connector/src/org/eclipse/mylyn/reviews/connector/client/EmfClient.java
new file mode 100644
index 0000000..c7a0726
--- /dev/null
+++ b/org.eclipse.mylyn.reviews.connector/src/org/eclipse/mylyn/reviews/connector/client/EmfClient.java
@@ -0,0 +1,213 @@
+/*******************************************************************************
+ * Copyright (c) 2012 Ericsson AB and others.
+ *
+ * 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
+ *
+ * Description:
+ *
+ * Contributors:
+ * Miles Parker, Tasktop Technologies - Initial API and Implementation
+ *******************************************************************************/
+package org.eclipse.mylyn.reviews.connector.client;
+
+import java.io.IOException;
+import java.util.HashMap;
+
+import org.eclipse.core.runtime.CoreException;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.core.runtime.IStatus;
+import org.eclipse.core.runtime.Status;
+import org.eclipse.emf.common.util.URI;
+import org.eclipse.emf.common.util.WrappedException;
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.ecore.resource.Resource;
+import org.eclipse.emf.ecore.resource.ResourceSet;
+import org.eclipse.emf.ecore.resource.impl.ResourceSetImpl;
+import org.eclipse.mylyn.internal.reviews.connector.EmfCorePlugin;
+import org.eclipse.mylyn.tasks.core.TaskRepository;
+import org.eclipse.mylyn.tasks.core.data.TaskData;
+import org.eclipse.mylyn.reviews.connector.AbstractEmfConnector;
+import org.eclipse.mylyn.reviews.connector.EmfConfiguration;
+
+/**
+ * Manages interaction with specific review file.
+ *
+ * @author MilesParker
+ */
+public abstract class EmfClient {
+
+ private EmfConfiguration configuration;
+
+ private final TaskRepository repository;
+
+ private EObject taskContainer;
+
+ public EmfClient(TaskRepository repository) {
+ this.repository = repository;
+ }
+
+ public EmfClient(TaskRepository repository, EmfConfiguration configuration) {
+ this(repository);
+ this.configuration = configuration;
+ }
+
+ public EmfConfiguration updateConfiguration(IProgressMonitor monitor) throws CoreException {
+ if (taskContainer != null) {
+ URI uri = URI.createURI(repository.getRepositoryUrl());
+ URI currentUri = taskContainer.eResource().getURI();
+ if (!uri.equals(currentUri)) {
+ save();
+ close();
+ taskContainer = null;
+ }
+ }
+ if (taskContainer == null) {
+ open();
+ configuration = new EmfConfiguration();
+ }
+ return configuration;
+ }
+
+ /**
+ * Opens the EMF resource at the underlying location. A resource must exist at the repository url. Safe and
+ * efficient to call when resource is already open.
+ *
+ * @throws CoreException
+ * If the resource at the repository URI doesn't exist or has problems
+ */
+ public synchronized void open() throws CoreException {
+ URI uri = URI.createURI(getRepository().getRepositoryUrl());
+ if (taskContainer != null) {
+ URI currentUri = taskContainer.eResource().getURI();
+ if (uri.equals(currentUri)) {
+ return;
+ }
+ }
+ try {
+ taskContainer = openContainer(uri);
+ } catch (WrappedException e) {
+ throw new CoreException(new Status(IStatus.ERROR, EmfCorePlugin.PLUGIN_ID, "File doesn't exist: "
+ + repository.getRepositoryUrl(), e));
+ }
+ }
+
+ /**
+ * Persists the current client to underlying resource. Safe to call when no resource is currently loaded.
+ *
+ * @throws CoreException
+ * If there are issues saving the resources
+ */
+ public synchronized void save() throws CoreException {
+ if (taskContainer != null) {
+ saveObject(taskContainer);
+ }
+ }
+
+ /**
+ * Persists the current client to underlying resource. Safe to call when no resource is currently loaded.
+ *
+ * @throws CoreException
+ * If there are issues saving the resources
+ */
+ public final synchronized void close() throws CoreException {
+ if (taskContainer != null) {
+ closeObject(taskContainer);
+ taskContainer = null;
+ }
+ }
+
+ /**
+ * Override to provide custom loading for object.
+ *
+ * @return
+ * @throws CoreException
+ */
+ protected EObject openContainer(URI uri) throws CoreException {
+ ResourceSet set = new ResourceSetImpl();
+ Resource resource = set.getResource(uri, true);
+ if (resource.getContents().size() < 1) {
+ EmfCorePlugin.handleCoreException("No model object at " + uri, null); //$NON-NLS-1$
+ }
+ taskContainer = resource.getContents().get(0);
+ EClass referenceClass = getConnector().getContainmentReference().getEContainingClass();
+ if (!referenceClass.isSuperTypeOf(taskContainer.eClass())) {
+ EmfCorePlugin.handleCoreException("Unexpected containment object. Expected: " + referenceClass.getName() //$NON-NLS-1$
+ + " Actual: " + taskContainer.eClass().getName(), null); //$NON-NLS-1$
+ }
+ return taskContainer;
+ }
+
+ /**
+ * Override to provide custom persistence for object.
+ *
+ * @param object
+ */
+ protected void saveObject(EObject object) throws CoreException {
+ Resource currentResource = object.eResource();
+ try {
+ currentResource.save(new HashMap<Object, Object>());
+ } catch (IOException e) {
+ throw new CoreException(new Status(IStatus.ERROR, getConnector().getConnectorBundle().getSymbolicName(),
+ "Problem saving resource at " + currentResource.getURI(), e));
+ }
+ }
+
+ /**
+ * Override to provide custom disposal of object.
+ *
+ * @param object
+ */
+ protected void closeObject(EObject object) {
+ Resource resource = taskContainer.eResource();
+ if (resource != null) {
+ resource.unload();
+ ResourceSet set = resource.getResourceSet();
+ if (set != null) {
+ set.getResources().remove(resource);
+ }
+ }
+ }
+
+ /**
+ * Override to provide custom factory implementations.
+ *
+ * @param eClass
+ * @param taskData
+ * @return
+ * @throws CoreException
+ */
+ public EObject create(EClass eClass, TaskData taskData) throws CoreException {
+ return eClass.getEPackage().getEFactoryInstance().create(eClass);
+ }
+
+ /**
+ * Called when the supplied object has changed. This value should be updated once per posted change for an object,
+ * providing higher granularity than is provided by EMF notification mechanism. The object must be a member of the
+ * current task container. In the base case, which assumes that the EMF resource is a unified artifact (e.g. a
+ * file), this simply saves the entire model.
+ *
+ * @throws CoreException
+ * If there are issues saving the object
+ */
+ public synchronized void notifyChanged(EObject object) throws CoreException {
+ save();
+ }
+
+ public EObject getRootContainer() {
+ return taskContainer;
+ }
+
+ public EmfConfiguration getConfiguration() {
+ return configuration;
+ }
+
+ public TaskRepository getRepository() {
+ return repository;
+ }
+
+ public abstract AbstractEmfConnector getConnector();
+}
diff --git a/org.eclipse.mylyn.reviews.connector/src/org/eclipse/mylyn/reviews/connector/query/EmfQueryEngine.java b/org.eclipse.mylyn.reviews.connector/src/org/eclipse/mylyn/reviews/connector/query/EmfQueryEngine.java
new file mode 100644
index 0000000..76eccbf
--- /dev/null
+++ b/org.eclipse.mylyn.reviews.connector/src/org/eclipse/mylyn/reviews/connector/query/EmfQueryEngine.java
@@ -0,0 +1,106 @@
+/*******************************************************************************
+ * Copyright (c) 2012 Tasktop Technologies and others.
+ * 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:
+ * Tasktop Technologies - initial API and implementation
+ *******************************************************************************/
+
+package org.eclipse.mylyn.reviews.connector.query;
+
+import java.util.ArrayList;
+import java.util.Collection;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+import java.util.Map.Entry;
+
+import org.eclipse.core.runtime.CoreException;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.ecore.EStructuralFeature;
+import org.eclipse.mylyn.tasks.core.IRepositoryQuery;
+import org.eclipse.mylyn.tasks.core.TaskRepository;
+import org.eclipse.mylyn.reviews.connector.AbstractEmfConnector;
+
+public abstract class EmfQueryEngine {
+
+ Map<String, QueryOperation> operationForId;
+
+ private final TaskRepository repository;
+
+ private final AbstractEmfConnector connector;
+
+ public static final String QUERY_DELIMITER = "_"; //$NON-NLS-1$
+
+ public static final String QUERY_VALUE = "query.value"; //$NON-NLS-1$
+
+ public static final String QUERY_OPERATION = "query.operation"; //$NON-NLS-1$
+
+ public static final String LIST_ITEM_SEPERATOR = ","; //$NON-NLS-1$
+
+ public EmfQueryEngine(AbstractEmfConnector connector, TaskRepository repository) {
+ this.connector = connector;
+ this.repository = repository;
+ operationForId = new HashMap<String, QueryOperation>();
+ for (QueryOperation op : QueryOperation.ALL_OPERATIONS) {
+ operationForId.put(op.id, op);
+ }
+ }
+
+ public QueryClause[] getClauses(IRepositoryQuery query) throws QueryException {
+ Map<String, QueryClause> queriesById = new HashMap<String, QueryClause>();
+ for (Entry<String, String> entry : query.getAttributes().entrySet()) {
+ String value = entry.getValue();
+ String[] keyParts = entry.getKey().split(QUERY_DELIMITER);
+ if (keyParts.length == 2) {
+ String attributeId = keyParts[0];
+ String queryId = keyParts[1];
+ QueryClause clause = queriesById.get(attributeId);
+ if (clause == null) {
+ clause = new QueryClause();
+ EStructuralFeature feature = connector.getSchema().getFeature(attributeId);
+ clause.setFeature(feature);
+ queriesById.put(attributeId, clause);
+ }
+ if (queryId.equals(QUERY_OPERATION)) {
+ QueryOperation operation = operationForId.get(value);
+ if (operation == null) {
+ throw new QueryException("Unknown operation: " + value); //$NON-NLS-1$
+ }
+ clause.setOperation(operation);
+ } else if (queryId.equals(QUERY_VALUE)) {
+ clause.setValue(value);
+ } else {
+ throw new QueryException("Unknown query identifier: " + queryId); //$NON-NLS-1$
+ }
+ }
+ }
+ return queriesById.values().toArray(new QueryClause[] {});
+ }
+
+ public QueryClause[] getNonEmptyClauses(IRepositoryQuery query) throws QueryException {
+ QueryClause[] clauses = getClauses(query);
+ Collection<QueryClause> results = new ArrayList<QueryClause>();
+ for (QueryClause queryClause : clauses) {
+ if (!queryClause.getValue().equals("")) { //$NON-NLS-1$
+ results.add(queryClause);
+ }
+ }
+ return results.toArray(new QueryClause[] {});
+ }
+
+ public AbstractEmfConnector getConnector() {
+ return connector;
+ }
+
+ public TaskRepository getRepository() {
+ return repository;
+ }
+
+ public abstract List<EObject> performQuery(IRepositoryQuery query, IProgressMonitor monitor) throws QueryException,
+ CoreException;
+}
diff --git a/org.eclipse.mylyn.reviews.connector/src/org/eclipse/mylyn/reviews/connector/query/Messages.java b/org.eclipse.mylyn.reviews.connector/src/org/eclipse/mylyn/reviews/connector/query/Messages.java
new file mode 100644
index 0000000..874be67
--- /dev/null
+++ b/org.eclipse.mylyn.reviews.connector/src/org/eclipse/mylyn/reviews/connector/query/Messages.java
@@ -0,0 +1,95 @@
+/*******************************************************************************
+ * Copyright (c) 2012 Tasktop Technologies and others.
+ * 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:
+ * Tasktop Technologies - initial API and implementation
+ *******************************************************************************/
+
+package org.eclipse.mylyn.reviews.connector.query;
+
+import org.eclipse.osgi.util.NLS;
+
+public class Messages extends NLS {
+ private static final String BUNDLE_NAME = "org.eclipse.mylyn.reviews.connector.query.messages"; //$NON-NLS-1$
+ static {
+ // initialize resource bundle
+ NLS.initializeMessages(BUNDLE_NAME, Messages.class);
+ }
+
+ public static String QueryClause_Operation_exact;
+
+ public static String QueryClause_Operation_notequals;
+
+ public static String QueryClause_Operation_notregexp;
+
+ public static String QueryClause_Operation_regexp;
+
+ public static String QueryClause_Operation_substring;
+
+ public static String QueryClause_Operation_date_all;
+
+ public static String QueryClause_Operation_date_inrange;
+
+ public static String QueryClause_Operation_date_after;
+
+ public static String QueryClause_Operation_date_before;
+
+ public static String QueryClause_Operation_contains_all_of_the_strings;
+
+ public static String QueryClause_Operation_contains_all_of_the_words;
+
+ public static String QueryClause_Operation_contains_any_of_he_words;
+
+ public static String QueryClause_Operation_contains_any_of_the_strings;
+
+ public static String QueryClause_Operation_contains_none_of_the_strings;
+
+ public static String QueryClause_Operation_contains_none_of_the_words;
+
+ public static String QueryClause_Operation_contains_regexp;
+
+ public static String QueryClause_Operation_contains_the_string;
+
+ public static String QueryClause_Operation_contains_the_string_exact_case;
+
+ public static String QueryClause_Operation_does_not_contain_regexp;
+
+ public static String QueryClause_Operation_does_not_contain_the_string;
+
+ public static String QueryClause_Operation_is_equal_to;
+
+ public static String QueryClause_Operation_is_equal_to_any_of_the_strings;
+
+ public static String QueryClause_Operation_is_greater_than;
+
+ public static String QueryClause_Operation_is_less_than;
+
+ public static String QueryClause_Operation_is_not_equal_to;
+
+ public static String QueryClause_Operation_matches;
+
+ public static String QueryClause_Operation_Noop;
+
+ public static String QueryClause_OperationText_allwords;
+
+ public static String QueryClause_OperationText_allwordssubstr;
+
+ public static String QueryClause_OperationText_anywords;
+
+ public static String QueryClause_OperationText_anywordssubstr;
+
+ public static String QueryClause_OperationText_casesubstring;
+
+ public static String QueryClause_OperationText_notregexp;
+
+ public static String QueryClause_OperationText_regexp;
+
+ public static String QueryClause_OperationText_substring;
+
+ private Messages() {
+ }
+}
diff --git a/org.eclipse.mylyn.reviews.connector/src/org/eclipse/mylyn/reviews/connector/query/QueryClause.java b/org.eclipse.mylyn.reviews.connector/src/org/eclipse/mylyn/reviews/connector/query/QueryClause.java
new file mode 100644
index 0000000..5560cff
--- /dev/null
+++ b/org.eclipse.mylyn.reviews.connector/src/org/eclipse/mylyn/reviews/connector/query/QueryClause.java
@@ -0,0 +1,48 @@
+/*******************************************************************************
+ * Copyright (c) 2012 Tasktop Technologies and others.
+ * 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:
+ * Tasktop Technologies - initial API and implementation
+ *******************************************************************************/
+
+package org.eclipse.mylyn.reviews.connector.query;
+
+import org.eclipse.emf.ecore.EStructuralFeature;
+
+public class QueryClause {
+
+ private QueryOperation operation;
+
+ private EStructuralFeature feature;
+
+ private String value;
+
+ public QueryOperation getOperation() {
+ return operation;
+ }
+
+ public void setOperation(QueryOperation operation) {
+ this.operation = operation;
+ }
+
+ public EStructuralFeature getFeature() {
+ return feature;
+ }
+
+ public void setFeature(EStructuralFeature feature) {
+ this.feature = feature;
+ }
+
+ public String getValue() {
+ return value;
+ }
+
+ public void setValue(String value) {
+ this.value = value;
+ }
+
+}
diff --git a/org.eclipse.mylyn.reviews.connector/src/org/eclipse/mylyn/reviews/connector/query/QueryException.java b/org.eclipse.mylyn.reviews.connector/src/org/eclipse/mylyn/reviews/connector/query/QueryException.java
new file mode 100644
index 0000000..01fd0c3
--- /dev/null
+++ b/org.eclipse.mylyn.reviews.connector/src/org/eclipse/mylyn/reviews/connector/query/QueryException.java
@@ -0,0 +1,21 @@
+/*******************************************************************************
+ * Copyright (c) 2012 Tasktop Technologies and others.
+ * 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:
+ * Tasktop Technologies - initial API and implementation
+ *******************************************************************************/
+
+package org.eclipse.mylyn.reviews.connector.query;
+
+public class QueryException extends Exception {
+
+ private static final long serialVersionUID = 1L;
+
+ public QueryException(String message) {
+ super(message);
+ }
+}
diff --git a/org.eclipse.mylyn.reviews.connector/src/org/eclipse/mylyn/reviews/connector/query/QueryOperation.java b/org.eclipse.mylyn.reviews.connector/src/org/eclipse/mylyn/reviews/connector/query/QueryOperation.java
new file mode 100644
index 0000000..fcee5bc
--- /dev/null
+++ b/org.eclipse.mylyn.reviews.connector/src/org/eclipse/mylyn/reviews/connector/query/QueryOperation.java
@@ -0,0 +1,97 @@
+/*******************************************************************************
+ * Copyright (c) 2012 Tasktop Technologies and others.
+ * 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:
+ * Tasktop Technologies - initial API and implementation
+ *******************************************************************************/
+
+package org.eclipse.mylyn.reviews.connector.query;
+
+import java.util.ArrayList;
+import java.util.Arrays;
+import java.util.List;
+
+public class QueryOperation {
+
+ String id;
+
+ String description;
+
+ public final static QueryOperation SUBSTRING = new QueryOperation(Messages.QueryClause_Operation_substring,
+ "substring"); //$NON-NLS-1$
+
+ public final static QueryOperation EXACT = new QueryOperation(Messages.QueryClause_Operation_exact, "exact"); //$NON-NLS-1$
+
+ public final static QueryOperation NOT_EQUALS = new QueryOperation(Messages.QueryClause_Operation_notequals,
+ "notequals"); //$NON-NLS-1$
+
+ public final static QueryOperation REGEXP = new QueryOperation(Messages.QueryClause_Operation_regexp, "regexp"); //$NON-NLS-1$
+
+ public final static QueryOperation NOT_REGEXP = new QueryOperation(Messages.QueryClause_Operation_notregexp,
+ "notregexp"); //$NON-NLS-1$
+
+ public final static QueryOperation[] TEXT_OPERATIONS = new QueryOperation[] { SUBSTRING, EXACT, NOT_EQUALS, REGEXP,
+ NOT_REGEXP };
+
+ public final static QueryOperation MATCH_ITEMS = new QueryOperation(Messages.QueryClause_Operation_matches,
+ "anyitems"); //$NON-NLS-1$
+
+ public final static QueryOperation[] LIST_OPERATIONS = new QueryOperation[] { MATCH_ITEMS };
+
+ public final static QueryOperation ALL_DATES = new QueryOperation(Messages.QueryClause_Operation_date_all, "all"); //$NON-NLS-1$
+
+ public final static QueryOperation IN_RANGE = new QueryOperation(Messages.QueryClause_Operation_date_inrange,
+ "inrange"); //$NON-NLS-1$
+
+ public final static QueryOperation AFTER = new QueryOperation(Messages.QueryClause_Operation_date_after, "after"); //$NON-NLS-1$
+
+ public final static QueryOperation BEFORE = new QueryOperation(Messages.QueryClause_Operation_date_before, "before"); //$NON-NLS-1$
+
+ public final static QueryOperation[] DATE_OPERATIONS = new QueryOperation[] { ALL_DATES, IN_RANGE, AFTER, BEFORE };
+
+ private final static List<QueryOperation> all_operations_list = new ArrayList<QueryOperation>();
+
+ static {
+ all_operations_list.addAll(Arrays.asList(TEXT_OPERATIONS));
+ all_operations_list.addAll(Arrays.asList(LIST_OPERATIONS));
+ all_operations_list.addAll(Arrays.asList(DATE_OPERATIONS));
+ }
+
+ public static QueryOperation[] ALL_OPERATIONS = all_operations_list.toArray(new QueryOperation[] {});
+
+ public static final String[] patternOperationText = { Messages.QueryClause_OperationText_allwordssubstr,
+ Messages.QueryClause_OperationText_anywordssubstr, Messages.QueryClause_OperationText_substring,
+ Messages.QueryClause_OperationText_casesubstring, Messages.QueryClause_OperationText_allwords,
+ Messages.QueryClause_OperationText_anywords, Messages.QueryClause_OperationText_regexp,
+ Messages.QueryClause_OperationText_notregexp };
+
+ public static final String[] patternOperationValues = {
+ "allwordssubstr", "anywordssubstr", "substring", "casesubstring", "allwords", "anywords", "regexp", "notregexp" }; //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ //$NON-NLS-5$ //$NON-NLS-6$ //$NON-NLS-7$ //$NON-NLS-8$
+
+ public QueryOperation(String description, String id) {
+ super();
+ this.id = id;
+ this.description = description;
+ }
+
+ public static String[] toDescription(QueryOperation[] operations) {
+ String[] values = new String[operations.length];
+ int i = 0;
+ for (QueryOperation queryOperation : operations) {
+ values[i++] = queryOperation.description;
+ }
+ return values;
+ }
+
+ public String getId() {
+ return id;
+ }
+
+ public void setId(String id) {
+ this.id = id;
+ }
+}
diff --git a/org.eclipse.mylyn.reviews.connector/src/org/eclipse/mylyn/reviews/connector/query/SimpleQueryEngine.java b/org.eclipse.mylyn.reviews.connector/src/org/eclipse/mylyn/reviews/connector/query/SimpleQueryEngine.java
new file mode 100644
index 0000000..c4dcbaf
--- /dev/null
+++ b/org.eclipse.mylyn.reviews.connector/src/org/eclipse/mylyn/reviews/connector/query/SimpleQueryEngine.java
@@ -0,0 +1,141 @@
+/*******************************************************************************
+ * Copyright (c) 2012 Tasktop Technologies and others.
+ * 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:
+ * Tasktop Technologies - initial API and implementation
+ *******************************************************************************/
+
+package org.eclipse.mylyn.reviews.connector.query;
+
+import java.util.ArrayList;
+import java.util.Date;
+import java.util.List;
+import java.util.regex.Pattern;
+
+import org.apache.commons.lang.StringUtils;
+import org.eclipse.core.runtime.CoreException;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.emf.common.util.Enumerator;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.mylyn.tasks.core.IRepositoryQuery;
+import org.eclipse.mylyn.tasks.core.TaskRepository;
+import org.eclipse.mylyn.reviews.connector.AbstractEmfConnector;
+import org.eclipse.mylyn.reviews.connector.EmfAttributeMapper;
+import org.eclipse.mylyn.reviews.connector.client.EmfClient;
+
+/**
+ * Just a brain-dead emf query engine to manage simple cases. TODO Implement a real query engine based on OCL, Emf
+ * QueryInc, CDO, etc..
+ *
+ * @author milesparker
+ */
+public class SimpleQueryEngine extends EmfQueryEngine {
+
+ public SimpleQueryEngine(AbstractEmfConnector connector, TaskRepository repository) {
+ super(connector, repository);
+ }
+
+ public boolean isSatisfied(QueryOperation operation, String tested, String searchString) {
+ if (operation == QueryOperation.SUBSTRING) {
+ return StringUtils.contains(tested, searchString);
+ }
+ return false;
+ }
+
+ @Override
+ public List<EObject> performQuery(IRepositoryQuery query, IProgressMonitor monitor) throws QueryException,
+ CoreException {
+ List<EObject> results = new ArrayList<EObject>();
+ EmfClient client = getConnector().getClient(getRepository());
+ client.open();
+ @SuppressWarnings("unchecked")
+ List<EObject> all = (List<EObject>) client.getRootContainer().eGet(getConnector().getContainmentReference());
+ monitor.beginTask("Querying repository", all.size()); //$NON-NLS-1$
+ //TODO O(nc) (where c is a limited size constant value)
+ QueryClause[] clauses = getNonEmptyClauses(query);
+ //For now, just assume that we want everything
+ if (clauses.length == 0) {
+ return all;
+ }
+ for (Object object : all) {
+ if (object instanceof EObject) {
+ EObject candidate = (EObject) object;
+ boolean allSatisfied = true;
+ for (QueryClause clause : clauses) {
+ Object candidateValue = candidate.eGet(clause.getFeature());
+ if (candidate.eClass().getEAllStructuralFeatures().contains(clause.getFeature())) {
+ if (!isSatisifed(clause.getOperation(), candidateValue, clause.getValue())) {
+ allSatisfied = false;
+ break;
+ }
+ }
+ }
+ if (allSatisfied) {
+ results.add(candidate);
+ }
+ }
+ }
+ monitor.done();
+
+ return results;
+ }
+
+ protected boolean isSatisifed(QueryOperation operation, Object candidateValue, String testValue) {
+ if (operation == QueryOperation.MATCH_ITEMS) {
+ if (candidateValue instanceof Enumerator) {
+ Enumerator literal = (Enumerator) candidateValue;
+ String[] items = StringUtils.split(testValue, EmfQueryEngine.LIST_ITEM_SEPERATOR);
+ for (String item : items) {
+ if (item.equals(literal.getName())) {
+ return true;
+ }
+ }
+ }
+ return false;
+ }
+ if (operation == QueryOperation.EXACT) {
+ return candidateValue.equals(testValue);
+ }
+ if (operation == QueryOperation.NOT_EQUALS) {
+ return !candidateValue.equals(testValue);
+ }
+ if (candidateValue instanceof String) {
+ String stringValue = (String) candidateValue;
+ if (operation == QueryOperation.SUBSTRING) {
+ return stringValue.indexOf(testValue) > 0;
+ }
+ if (operation == QueryOperation.REGEXP) {
+ Pattern pattern = Pattern.compile(testValue);
+ return pattern.matcher(stringValue).matches();
+ }
+ if (operation == QueryOperation.NOT_REGEXP) {
+ Pattern pattern = Pattern.compile(testValue);
+ return !pattern.matcher(stringValue).matches();
+ }
+ }
+ if (candidateValue instanceof Date) {
+ EmfAttributeMapper attributeMapper = getConnector().getEmfMapper(getRepository());
+ Date candidateDate = (Date) candidateValue;
+ if (operation == QueryOperation.IN_RANGE) {
+ String[] dateParts = StringUtils.split(testValue, ",");
+ Date after = attributeMapper.getDateValue(dateParts[0]);
+ Date before = attributeMapper.getDateValue(dateParts[1]);
+ return (candidateDate.after(after) && candidateDate.before(before)) || candidateDate.equals(after)
+ || candidateDate.equals(before);
+ }
+ if (operation == QueryOperation.AFTER) {
+ Date upto = attributeMapper.getDateValue(testValue);
+ return candidateDate.after(upto) || candidateDate.equals(upto);
+ }
+ if (operation == QueryOperation.BEFORE) {
+ Date upto = attributeMapper.getDateValue(testValue);
+ return candidateDate.before(upto) || candidateDate.equals(upto);
+ }
+ }
+ return false;
+ }
+}
diff --git a/org.eclipse.mylyn.reviews.connector/src/org/eclipse/mylyn/reviews/connector/query/messages.properties b/org.eclipse.mylyn.reviews.connector/src/org/eclipse/mylyn/reviews/connector/query/messages.properties
new file mode 100644
index 0000000..ed9c1dc
--- /dev/null
+++ b/org.eclipse.mylyn.reviews.connector/src/org/eclipse/mylyn/reviews/connector/query/messages.properties
@@ -0,0 +1,46 @@
+###############################################################################
+# Copyright (c) 2009, 2010 Tasktop Technologies and others.
+# 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:
+# Tasktop Technologies - initial API and implementation
+###############################################################################
+
+QueryClause_Operation_exact=is
+QueryClause_Operation_notequals=is not
+QueryClause_Operation_notregexp=doesn't match regexp
+QueryClause_Operation_regexp=matches regexp
+QueryClause_Operation_substring=contains
+QueryClause_Operation_contains_all_of_the_strings=contains all of the strings
+QueryClause_Operation_contains_all_of_the_words=contains all of the words
+QueryClause_Operation_contains_any_of_he_words=contains any of the words
+QueryClause_Operation_contains_any_of_the_strings=contains any of the strings
+QueryClause_Operation_contains_none_of_the_strings=contains none of the strings
+QueryClause_Operation_contains_none_of_the_words=contains none of the words
+QueryClause_Operation_contains_regexp=contains regexp
+QueryClause_Operation_contains_the_string=contains the string
+QueryClause_Operation_contains_the_string_exact_case=contains the string (exact case)
+QueryClause_Operation_does_not_contain_regexp=does not contain regexp
+QueryClause_Operation_does_not_contain_the_string=does not contain the string
+QueryClause_Operation_is_equal_to=is equal to
+QueryClause_Operation_is_equal_to_any_of_the_strings=is equal to any of the strings
+QueryClause_Operation_is_greater_than=is greater than
+QueryClause_Operation_is_less_than=is less than
+QueryClause_Operation_is_not_equal_to=is not equal to
+QueryClause_Operation_matches=matches
+QueryClause_Operation_Noop=---
+QueryClause_OperationText_allwords=contains all of the words
+QueryClause_OperationText_allwordssubstr=contains all of the strings
+QueryClause_OperationText_anywords=contains any of the words
+QueryClause_OperationText_anywordssubstr=contains any of the strings
+QueryClause_OperationText_casesubstring=contains the string (exact case)
+QueryClause_OperationText_notregexp=does not match regular expression
+QueryClause_OperationText_regexp=matches regular expression
+QueryClause_OperationText_substring=contains the string
+QueryClause_Operation_date_all=all
+QueryClause_Operation_date_inrange=between
+QueryClause_Operation_date_after=on or after
+QueryClause_Operation_date_before=on or before
diff --git a/pom.xml b/pom.xml
index 651434d..afb2f4c 100644
--- a/pom.xml
+++ b/pom.xml
@@ -87,11 +87,6 @@
<url>http://download.eclipse.org/tools/orbit/downloads/drops/R20120119162704/repository/</url>
</repository>
-->
- <repository>
- <id>eclipse-mylyn-reviews-r4e</id>
- <layout>p2</layout>
- <url>http://download.eclipse.org/r4e/updates/</url>
- </repository>
</repositories>
<modules>
<module>org.eclipse.mylyn.reviews.r4e-site</module>
@@ -189,5 +184,9 @@
<module>org.eclipse.mylyn.reviews.r4e.ui</module>
<module>org.eclipse.mylyn.reviews.VCalendar</module>
<module>org.eclipse.mylyn.reviews.r4e.ui.tests</module>
+ <module>org.eclipse.mylyn.reviews.connector</module>
+ <module>org.eclipse.mylyn.reviews.connector.ui</module>
+ <module>org.eclipse.mylyn.reviews.connector.tests</module>
+ <module>org.eclipse.mylyn.reviews.connector.feature</module>
</modules>
</project>