Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'org.eclipse.mylyn.tasks.tests')
-rw-r--r--org.eclipse.mylyn.tasks.tests/.classpath16
-rw-r--r--org.eclipse.mylyn.tasks.tests/.cvsignore1
-rw-r--r--org.eclipse.mylyn.tasks.tests/.project34
-rw-r--r--org.eclipse.mylyn.tasks.tests/.settings/.api_filters19
-rw-r--r--org.eclipse.mylyn.tasks.tests/.settings/org.eclipse.jdt.core.prefs340
-rw-r--r--org.eclipse.mylyn.tasks.tests/.settings/org.eclipse.jdt.ui.prefs63
-rw-r--r--org.eclipse.mylyn.tasks.tests/.settings/org.eclipse.ltk.core.refactoring.prefs3
-rw-r--r--org.eclipse.mylyn.tasks.tests/.settings/org.eclipse.mylyn.tasklist.prefs4
-rw-r--r--org.eclipse.mylyn.tasks.tests/.settings/org.eclipse.mylyn.tasks.ui.prefs4
-rw-r--r--org.eclipse.mylyn.tasks.tests/.settings/org.eclipse.pde.api.tools.prefs151
-rw-r--r--org.eclipse.mylyn.tasks.tests/.settings/org.eclipse.pde.prefs18
-rw-r--r--org.eclipse.mylyn.tasks.tests/META-INF/MANIFEST.MF42
-rw-r--r--org.eclipse.mylyn.tasks.tests/about.html27
-rw-r--r--org.eclipse.mylyn.tasks.tests/build.properties17
-rw-r--r--org.eclipse.mylyn.tasks.tests/plugin.xml20
-rw-r--r--org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/AllTasksPerformanceTests.java29
-rw-r--r--org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/AllTasksTests.java101
-rw-r--r--org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/AttachmentSizeFormatterTest.java76
-rw-r--r--org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/BackgroundSaveTest.java49
-rw-r--r--org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/CommentGroupStrategyTest.java240
-rw-r--r--org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/CommentQuoterTest.java73
-rw-r--r--org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/CopyDetailsActionTest.java30
-rw-r--r--org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/DateRangeTest.java173
-rw-r--r--org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/LinkProviderTest.java101
-rw-r--r--org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/NewTaskFromSelectionActionTest.java68
-rw-r--r--org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/NewTaskWizardRepositorySelectionTest.java93
-rw-r--r--org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/PersonProposalProviderTest.java206
-rw-r--r--org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/ProjectRepositoryAssociationTest.java77
-rw-r--r--org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/QueryExportImportTest.java290
-rw-r--r--org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/RefactorRepositoryUrlOperationTest.java206
-rw-r--r--org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/RepositorySettingsPageTest.java268
-rw-r--r--org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/RepositoryTemplateManagerTest.java47
-rw-r--r--org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/ScheduledPresentationTest.java181
-rw-r--r--org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/StackTraceDuplicateDetectorTest.java100
-rw-r--r--org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TaskActivationActionTest.java50
-rw-r--r--org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TaskActivationHistoryTest.java329
-rw-r--r--org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TaskActivityManagerTest.java224
-rw-r--r--org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TaskActivityTimingTest.java1331
-rw-r--r--org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TaskAttachmentTest.java112
-rw-r--r--org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TaskContainerTest.java39
-rw-r--r--org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TaskDataExportTest.java169
-rw-r--r--org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TaskDataImportTest.java124
-rw-r--r--org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TaskDataManagerTest.java293
-rw-r--r--org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TaskDataStoreTest.java196
-rw-r--r--org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TaskDiffUtilTest.java56
-rw-r--r--org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TaskExportImportTest.java117
-rw-r--r--org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TaskKeyComparatorTest.java69
-rw-r--r--org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TaskListBackupManagerTest.java69
-rw-r--r--org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TaskListContentProviderTest.java70
-rw-r--r--org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TaskListDropAdapterTest.java66
-rw-r--r--org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TaskListExternalizationTest.java384
-rw-r--r--org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TaskListPresentationTest.java33
-rw-r--r--org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TaskListSaveManagerTest.java109
-rw-r--r--org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TaskListSorterTest.java222
-rw-r--r--org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TaskListTest.java555
-rw-r--r--org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TaskListUiTest.java357
-rw-r--r--org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TaskMapperTest.java186
-rw-r--r--org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TaskPlanningEditorTest.java112
-rw-r--r--org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TaskRepositoriesExternalizerTest.java111
-rw-r--r--org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TaskRepositoryFilterTests.java81
-rw-r--r--org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TaskRepositoryManagerTest.java239
-rw-r--r--org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TaskRepositorySorterTest.java75
-rw-r--r--org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TaskRepositoryTest.java163
-rw-r--r--org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TaskTest.java78
-rw-r--r--org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TaskTestUtil.java148
-rw-r--r--org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TaskWorkingSetTest.java158
-rw-r--r--org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TasksTestsPlugin.java47
-rw-r--r--org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TasksUiUtilTest.java164
-rw-r--r--org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TasksUtilTest.java47
-rw-r--r--org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/connector/MockAttachmentHandler.java57
-rw-r--r--org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/connector/MockRepositoryConnector.java173
-rw-r--r--org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/connector/MockRepositoryConnectorUi.java74
-rw-r--r--org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/connector/MockRepositoryQuery.java39
-rw-r--r--org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/connector/MockTask.java65
-rw-r--r--org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/core/ITasksCoreConstantsTest.java41
-rw-r--r--org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/core/TaskListUnmatchedContainerTest.java296
-rw-r--r--org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/core/TaskRepositoryLocationTest.java106
-rw-r--r--org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/data/TaskDataExternalizerTest.java193
-rw-r--r--org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/performance/TaskContainerTest.java49
-rw-r--r--org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/performance/TaskListPerformanceTest.java74
-rw-r--r--org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/ui/ContextPerspectiveManagerTest.java97
-rw-r--r--org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/ui/MarkTaskHandlerTest.java87
-rw-r--r--org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/ui/RetrieveTitleFromUrlTest.java47
-rw-r--r--org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/ui/TaskAttachmentPropertyTesterTest.java46
-rw-r--r--org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/ui/TaskHyperlinkDetectorTest.java95
-rw-r--r--org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/ui/TaskRelationHyperlinkDetectorTest.java35
-rw-r--r--org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/ui/editor/EditorUtilTest.java105
-rw-r--r--org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/ui/editor/TaskEditorPartDescriptorTest.java62
-rw-r--r--org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/ui/editor/TaskUrlHyperlinkDetectorTest.java89
-rw-r--r--org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/util/TestTaskDataCollector.java53
-rw-r--r--org.eclipse.mylyn.tasks.tests/testdata/activityTests/.activity.xml.zipbin342 -> 0 bytes
-rw-r--r--org.eclipse.mylyn.tasks.tests/testdata/activityTests/activity.xml.zipbin339 -> 0 bytes
-rw-r--r--org.eclipse.mylyn.tasks.tests/testdata/legacy/tasklist_0_4_8.xml1
-rw-r--r--org.eclipse.mylyn.tasks.tests/testdata/performance/tasklist-4000.xml.zipbin284854 -> 0 bytes
-rw-r--r--org.eclipse.mylyn.tasks.tests/testdata/taskdata-1.0-bug-219897.zipbin4526 -> 0 bytes
-rw-r--r--org.eclipse.mylyn.tasks.tests/testdata/taskdataimporttest/context-history.xml1
-rw-r--r--org.eclipse.mylyn.tasks.tests/testdata/taskdataimporttest/local-69.xml1
-rw-r--r--org.eclipse.mylyn.tasks.tests/testdata/taskdataimporttest/local-70.xml1
-rw-r--r--org.eclipse.mylyn.tasks.tests/testdata/taskdataimporttest/mylardata-2006-02-16.zipbin2670 -> 0 bytes
-rw-r--r--org.eclipse.mylyn.tasks.tests/testdata/taskdataimporttest/mylardata-2007-01-19.zipbin3275 -> 0 bytes
-rw-r--r--org.eclipse.mylyn.tasks.tests/testdata/taskdataimporttest/repositories.xml4
-rw-r--r--org.eclipse.mylyn.tasks.tests/testdata/taskdataimporttest/tasklist.xml1
-rw-r--r--org.eclipse.mylyn.tasks.tests/testdata/tasklistdatamigrationtest/empty.txt0
103 files changed, 0 insertions, 11642 deletions
diff --git a/org.eclipse.mylyn.tasks.tests/.classpath b/org.eclipse.mylyn.tasks.tests/.classpath
deleted file mode 100644
index 77f8017a9..000000000
--- a/org.eclipse.mylyn.tasks.tests/.classpath
+++ /dev/null
@@ -1,16 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<classpath>
- <classpathentry kind="src" path="src"/>
- <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins">
- <accessrules>
- <accessrule kind="accessible" pattern="org/eclipse/mylyn/**"/>
- <accessrule kind="accessible" pattern="**/internal/**"/>
- </accessrules>
- </classpathentry>
- <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5">
- <accessrules>
- <accessrule kind="nonaccessible" pattern="com/sun/**"/>
- </accessrules>
- </classpathentry>
- <classpathentry kind="output" path="bin"/>
-</classpath>
diff --git a/org.eclipse.mylyn.tasks.tests/.cvsignore b/org.eclipse.mylyn.tasks.tests/.cvsignore
deleted file mode 100644
index ba077a403..000000000
--- a/org.eclipse.mylyn.tasks.tests/.cvsignore
+++ /dev/null
@@ -1 +0,0 @@
-bin
diff --git a/org.eclipse.mylyn.tasks.tests/.project b/org.eclipse.mylyn.tasks.tests/.project
deleted file mode 100644
index 7098e8761..000000000
--- a/org.eclipse.mylyn.tasks.tests/.project
+++ /dev/null
@@ -1,34 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<projectDescription>
- <name>org.eclipse.mylyn.tasks.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.tasks.tests/.settings/.api_filters b/org.eclipse.mylyn.tasks.tests/.settings/.api_filters
deleted file mode 100644
index e90b8b192..000000000
--- a/org.eclipse.mylyn.tasks.tests/.settings/.api_filters
+++ /dev/null
@@ -1,19 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" standalone="no"?>
-<component id="org.eclipse.mylyn.tasks.tests" version="2">
- <resource path="src/org/eclipse/mylyn/tasks/tests/ui/editor/TaskUrlHyperlinkDetectorTest.java" type="org.eclipse.mylyn.tasks.tests.ui.editor.TaskUrlHyperlinkDetectorTest">
- <filter id="571519004">
- <message_arguments>
- <message_argument value="org.eclipse.mylyn.tasks.tests.ui.editor.TaskUrlHyperlinkDetectorTest.detect(String, int, int)"/>
- <message_argument value="TextViewer"/>
- </message_arguments>
- </filter>
- </resource>
- <resource path="src/org/eclipse/mylyn/tasks/tests/ui/TaskHyperlinkDetectorTest.java" type="org.eclipse.mylyn.tasks.tests.ui.TaskHyperlinkDetectorTest">
- <filter id="571519004">
- <message_arguments>
- <message_argument value="org.eclipse.mylyn.tasks.tests.ui.TaskHyperlinkDetectorTest.detect(String, int, int)"/>
- <message_argument value="TextViewer"/>
- </message_arguments>
- </filter>
- </resource>
-</component>
diff --git a/org.eclipse.mylyn.tasks.tests/.settings/org.eclipse.jdt.core.prefs b/org.eclipse.mylyn.tasks.tests/.settings/org.eclipse.jdt.core.prefs
deleted file mode 100644
index a68eec4df..000000000
--- a/org.eclipse.mylyn.tasks.tests/.settings/org.eclipse.jdt.core.prefs
+++ /dev/null
@@ -1,340 +0,0 @@
-#Sat Sep 13 19:26:36 PDT 2008
-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.5
-org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
-org.eclipse.jdt.core.compiler.compliance=1.5
-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=ignore
-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.5
-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_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=80
-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_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=false
-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.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.format_guardian_clause_on_one_line=false
-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_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_parameter=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.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_tabs_only_for_leading_indentations=false
-org.eclipse.jdt.core.formatter.wrap_before_binary_operator=true
diff --git a/org.eclipse.mylyn.tasks.tests/.settings/org.eclipse.jdt.ui.prefs b/org.eclipse.mylyn.tasks.tests/.settings/org.eclipse.jdt.ui.prefs
deleted file mode 100644
index 766f9cb69..000000000
--- a/org.eclipse.mylyn.tasks.tests/.settings/org.eclipse.jdt.ui.prefs
+++ /dev/null
@@ -1,63 +0,0 @@
-#Thu Sep 11 16:27:18 PDT 2008
-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=11
-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) 2004, 2008 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.tasks.tests/.settings/org.eclipse.ltk.core.refactoring.prefs b/org.eclipse.mylyn.tasks.tests/.settings/org.eclipse.ltk.core.refactoring.prefs
deleted file mode 100644
index 7ab03bdac..000000000
--- a/org.eclipse.mylyn.tasks.tests/.settings/org.eclipse.ltk.core.refactoring.prefs
+++ /dev/null
@@ -1,3 +0,0 @@
-#Fri Jun 02 15:30:09 PDT 2006
-eclipse.preferences.version=1
-org.eclipse.ltk.core.refactoring.enable.project.refactoring.history=true
diff --git a/org.eclipse.mylyn.tasks.tests/.settings/org.eclipse.mylyn.tasklist.prefs b/org.eclipse.mylyn.tasks.tests/.settings/org.eclipse.mylyn.tasklist.prefs
deleted file mode 100644
index 0a2cc0b30..000000000
--- a/org.eclipse.mylyn.tasks.tests/.settings/org.eclipse.mylyn.tasklist.prefs
+++ /dev/null
@@ -1,4 +0,0 @@
-#Mon Jun 18 17:14:59 PDT 2007
-eclipse.preferences.version=1
-project.repository.kind=bugzilla
-project.repository.url=https\://bugs.eclipse.org/bugs
diff --git a/org.eclipse.mylyn.tasks.tests/.settings/org.eclipse.mylyn.tasks.ui.prefs b/org.eclipse.mylyn.tasks.tests/.settings/org.eclipse.mylyn.tasks.ui.prefs
deleted file mode 100644
index d8c6d26af..000000000
--- a/org.eclipse.mylyn.tasks.tests/.settings/org.eclipse.mylyn.tasks.ui.prefs
+++ /dev/null
@@ -1,4 +0,0 @@
-#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.tasks.tests/.settings/org.eclipse.pde.api.tools.prefs b/org.eclipse.mylyn.tasks.tests/.settings/org.eclipse.pde.api.tools.prefs
deleted file mode 100644
index 606a24aa3..000000000
--- a/org.eclipse.mylyn.tasks.tests/.settings/org.eclipse.pde.api.tools.prefs
+++ /dev/null
@@ -1,151 +0,0 @@
-#Tue May 20 10:45:34 PDT 2008
-ANNOTATION_ELEMENT_TYPE_ADDED_CLASS_BOUND=Error
-ANNOTATION_ELEMENT_TYPE_ADDED_FIELD=Error
-ANNOTATION_ELEMENT_TYPE_ADDED_INTERFACE_BOUND=Error
-ANNOTATION_ELEMENT_TYPE_ADDED_INTERFACE_BOUNDS=Error
-ANNOTATION_ELEMENT_TYPE_ADDED_METHOD=Error
-ANNOTATION_ELEMENT_TYPE_ADDED_METHOD_WITHOUT_DEFAULT_VALUE=Error
-ANNOTATION_ELEMENT_TYPE_ADDED_TYPE_MEMBER=Error
-ANNOTATION_ELEMENT_TYPE_ADDED_TYPE_PARAMETER=Error
-ANNOTATION_ELEMENT_TYPE_CHANGED_CLASS_BOUND=Error
-ANNOTATION_ELEMENT_TYPE_CHANGED_INTERFACE_BOUND=Error
-ANNOTATION_ELEMENT_TYPE_CHANGED_INTERFACE_BOUNDS=Error
-ANNOTATION_ELEMENT_TYPE_CHANGED_RESTRICTIONS=Error
-ANNOTATION_ELEMENT_TYPE_CHANGED_TO_CLASS=Error
-ANNOTATION_ELEMENT_TYPE_CHANGED_TO_ENUM=Error
-ANNOTATION_ELEMENT_TYPE_CHANGED_TO_INTERFACE=Error
-ANNOTATION_ELEMENT_TYPE_REMOVED_CLASS_BOUND=Error
-ANNOTATION_ELEMENT_TYPE_REMOVED_FIELD=Error
-ANNOTATION_ELEMENT_TYPE_REMOVED_INTERFACE_BOUND=Error
-ANNOTATION_ELEMENT_TYPE_REMOVED_METHOD_WITHOUT_DEFAULT_VALUE=Error
-ANNOTATION_ELEMENT_TYPE_REMOVED_METHOD_WITH_DEFAULT_VALUE=Error
-ANNOTATION_ELEMENT_TYPE_REMOVED_TYPE_MEMBER=Error
-ANNOTATION_ELEMENT_TYPE_REMOVED_TYPE_PARAMETER=Error
-ANNOTATION_ELEMENT_TYPE_REMOVED_TYPE_PARAMETERS=Error
-API_COMPONENT_ELEMENT_TYPE_REMOVED_API_TYPE=Error
-API_COMPONENT_ELEMENT_TYPE_REMOVED_TYPE=Error
-API_PROFILE_ELEMENT_TYPE_REMOVED_API_COMPONENT=Error
-CLASS_ELEMENT_TYPE_ADDED_CLASS_BOUND=Error
-CLASS_ELEMENT_TYPE_ADDED_FIELD=Error
-CLASS_ELEMENT_TYPE_ADDED_INTERFACE_BOUND=Error
-CLASS_ELEMENT_TYPE_ADDED_INTERFACE_BOUNDS=Error
-CLASS_ELEMENT_TYPE_ADDED_METHOD=Error
-CLASS_ELEMENT_TYPE_ADDED_TYPE_PARAMETER=Error
-CLASS_ELEMENT_TYPE_CHANGED_CLASS_BOUND=Error
-CLASS_ELEMENT_TYPE_CHANGED_CONTRACTED_SUPERCLASS_SET=Error
-CLASS_ELEMENT_TYPE_CHANGED_CONTRACTED_SUPERINTERFACES_SET=Error
-CLASS_ELEMENT_TYPE_CHANGED_DECREASE_ACCESS=Error
-CLASS_ELEMENT_TYPE_CHANGED_INTERFACE_BOUND=Error
-CLASS_ELEMENT_TYPE_CHANGED_NON_ABSTRACT_TO_ABSTRACT=Error
-CLASS_ELEMENT_TYPE_CHANGED_NON_FINAL_TO_FINAL=Error
-CLASS_ELEMENT_TYPE_CHANGED_RESTRICTIONS=Error
-CLASS_ELEMENT_TYPE_CHANGED_SUPERCLASS=Error
-CLASS_ELEMENT_TYPE_CHANGED_TO_ANNOTATION=Error
-CLASS_ELEMENT_TYPE_CHANGED_TO_ENUM=Error
-CLASS_ELEMENT_TYPE_CHANGED_TO_INTERFACE=Error
-CLASS_ELEMENT_TYPE_REMOVED_CLASS_BOUND=Error
-CLASS_ELEMENT_TYPE_REMOVED_CONSTRUCTOR=Error
-CLASS_ELEMENT_TYPE_REMOVED_FIELD=Error
-CLASS_ELEMENT_TYPE_REMOVED_INTERFACE_BOUND=Error
-CLASS_ELEMENT_TYPE_REMOVED_INTERFACE_BOUNDS=Error
-CLASS_ELEMENT_TYPE_REMOVED_METHOD=Error
-CLASS_ELEMENT_TYPE_REMOVED_TYPE_MEMBER=Error
-CLASS_ELEMENT_TYPE_REMOVED_TYPE_PARAMETER=Error
-CLASS_ELEMENT_TYPE_REMOVED_TYPE_PARAMETERS=Error
-CONSTRUCTOR_ELEMENT_TYPE_ADDED_CLASS_BOUND=Error
-CONSTRUCTOR_ELEMENT_TYPE_ADDED_INTERFACE_BOUND=Error
-CONSTRUCTOR_ELEMENT_TYPE_ADDED_INTERFACE_BOUNDS=Error
-CONSTRUCTOR_ELEMENT_TYPE_ADDED_TYPE_PARAMETER=Error
-CONSTRUCTOR_ELEMENT_TYPE_CHANGED_CLASS_BOUND=Error
-CONSTRUCTOR_ELEMENT_TYPE_CHANGED_DECREASE_ACCESS=Error
-CONSTRUCTOR_ELEMENT_TYPE_CHANGED_INTERFACE_BOUND=Error
-CONSTRUCTOR_ELEMENT_TYPE_CHANGED_NON_ABSTRACT_TO_ABSTRACT=Error
-CONSTRUCTOR_ELEMENT_TYPE_CHANGED_NON_FINAL_TO_FINAL=Error
-CONSTRUCTOR_ELEMENT_TYPE_CHANGED_NON_STATIC_TO_STATIC=Error
-CONSTRUCTOR_ELEMENT_TYPE_CHANGED_STATIC_TO_NON_STATIC=Error
-CONSTRUCTOR_ELEMENT_TYPE_CHANGED_TYPE_PARAMETER=Error
-CONSTRUCTOR_ELEMENT_TYPE_CHANGED_VARARGS_TO_ARRAY=Error
-CONSTRUCTOR_ELEMENT_TYPE_REMOVED_ANNOTATION_DEFAULT_VALUE=Error
-CONSTRUCTOR_ELEMENT_TYPE_REMOVED_CLASS_BOUND=Error
-CONSTRUCTOR_ELEMENT_TYPE_REMOVED_INTERFACE_BOUND=Error
-CONSTRUCTOR_ELEMENT_TYPE_REMOVED_INTERFACE_BOUNDS=Error
-CONSTRUCTOR_ELEMENT_TYPE_REMOVED_TYPE_PARAMETER=Error
-CONSTRUCTOR_ELEMENT_TYPE_REMOVED_TYPE_PARAMETERS=Error
-ENUM_ELEMENT_TYPE_ADDED_FIELD=Error
-ENUM_ELEMENT_TYPE_ADDED_METHOD=Error
-ENUM_ELEMENT_TYPE_CHANGED_CONTRACTED_SUPERINTERFACES_SET=Error
-ENUM_ELEMENT_TYPE_CHANGED_RESTRICTIONS=Error
-ENUM_ELEMENT_TYPE_CHANGED_TO_ANNOTATION=Error
-ENUM_ELEMENT_TYPE_CHANGED_TO_CLASS=Error
-ENUM_ELEMENT_TYPE_CHANGED_TO_INTERFACE=Error
-ENUM_ELEMENT_TYPE_REMOVED_CONSTRUCTOR=Error
-ENUM_ELEMENT_TYPE_REMOVED_ENUM_CONSTANT=Error
-ENUM_ELEMENT_TYPE_REMOVED_FIELD=Error
-ENUM_ELEMENT_TYPE_REMOVED_METHOD=Error
-ENUM_ELEMENT_TYPE_REMOVED_TYPE_MEMBER=Error
-FIELD_ELEMENT_TYPE_ADDED_VALUE=Error
-FIELD_ELEMENT_TYPE_CHANGED_DECREASE_ACCESS=Error
-FIELD_ELEMENT_TYPE_CHANGED_FINAL_TO_NON_FINAL_STATIC_CONSTANT=Error
-FIELD_ELEMENT_TYPE_CHANGED_NON_FINAL_TO_FINAL=Error
-FIELD_ELEMENT_TYPE_CHANGED_NON_STATIC_TO_STATIC=Error
-FIELD_ELEMENT_TYPE_CHANGED_STATIC_TO_NON_STATIC=Error
-FIELD_ELEMENT_TYPE_CHANGED_TYPE=Error
-FIELD_ELEMENT_TYPE_CHANGED_VALUE=Error
-FIELD_ELEMENT_TYPE_REMOVED_TYPE_ARGUMENTS=Error
-FIELD_ELEMENT_TYPE_REMOVED_VALUE=Error
-ILLEGAL_EXTEND=Warning
-ILLEGAL_IMPLEMENT=Warning
-ILLEGAL_INSTANTIATE=Warning
-ILLEGAL_OVERRIDE=Warning
-ILLEGAL_REFERENCE=Warning
-INTERFACE_ELEMENT_TYPE_ADDED_CLASS_BOUND=Error
-INTERFACE_ELEMENT_TYPE_ADDED_FIELD=Error
-INTERFACE_ELEMENT_TYPE_ADDED_INTERFACE_BOUND=Error
-INTERFACE_ELEMENT_TYPE_ADDED_INTERFACE_BOUNDS=Error
-INTERFACE_ELEMENT_TYPE_ADDED_METHOD=Error
-INTERFACE_ELEMENT_TYPE_ADDED_TYPE_MEMBER=Error
-INTERFACE_ELEMENT_TYPE_ADDED_TYPE_PARAMETER=Error
-INTERFACE_ELEMENT_TYPE_ADDED_TYPE_PARAMETERS=Error
-INTERFACE_ELEMENT_TYPE_CHANGED_CLASS_BOUND=Error
-INTERFACE_ELEMENT_TYPE_CHANGED_INTERFACE_BOUND=Error
-INTERFACE_ELEMENT_TYPE_CHANGED_INTERFACE_BOUNDS=Error
-INTERFACE_ELEMENT_TYPE_CHANGED_RESTRICTIONS=Error
-INTERFACE_ELEMENT_TYPE_CHANGED_TO_ANNOTATION=Error
-INTERFACE_ELEMENT_TYPE_CHANGED_TO_CLASS=Error
-INTERFACE_ELEMENT_TYPE_CHANGED_TO_ENUM=Error
-INTERFACE_ELEMENT_TYPE_REMOVED_CLASS_BOUND=Error
-INTERFACE_ELEMENT_TYPE_REMOVED_FIELD=Error
-INTERFACE_ELEMENT_TYPE_REMOVED_INTERFACE_BOUND=Error
-INTERFACE_ELEMENT_TYPE_REMOVED_INTERFACE_BOUNDS=Error
-INTERFACE_ELEMENT_TYPE_REMOVED_METHOD=Error
-INTERFACE_ELEMENT_TYPE_REMOVED_TYPE_MEMBER=Error
-INVALID_JAVADOC_TAG=Ignore
-LEAK_EXTEND=Warning
-LEAK_FIELD_DECL=Warning
-LEAK_IMPLEMENT=Warning
-LEAK_METHOD_PARAM=Warning
-LEAK_METHOD_RETURN_TYPE=Warning
-METHOD_ELEMENT_TYPE_ADDED_CLASS_BOUND=Error
-METHOD_ELEMENT_TYPE_ADDED_INTERFACE_BOUND=Error
-METHOD_ELEMENT_TYPE_ADDED_INTERFACE_BOUNDS=Error
-METHOD_ELEMENT_TYPE_ADDED_TYPE_PARAMETER=Error
-METHOD_ELEMENT_TYPE_CHANGED_CLASS_BOUND=Error
-METHOD_ELEMENT_TYPE_CHANGED_DECREASE_ACCESS=Error
-METHOD_ELEMENT_TYPE_CHANGED_INTERFACE_BOUND=Error
-METHOD_ELEMENT_TYPE_CHANGED_NON_ABSTRACT_TO_ABSTRACT=Error
-METHOD_ELEMENT_TYPE_CHANGED_NON_FINAL_TO_FINAL=Error
-METHOD_ELEMENT_TYPE_CHANGED_NON_STATIC_TO_STATIC=Error
-METHOD_ELEMENT_TYPE_CHANGED_STATIC_TO_NON_STATIC=Error
-METHOD_ELEMENT_TYPE_CHANGED_TYPE_PARAMETER=Error
-METHOD_ELEMENT_TYPE_CHANGED_VARARGS_TO_ARRAY=Error
-METHOD_ELEMENT_TYPE_REMOVED_ANNOTATION_DEFAULT_VALUE=Error
-METHOD_ELEMENT_TYPE_REMOVED_CLASS_BOUND=Error
-METHOD_ELEMENT_TYPE_REMOVED_INTERFACE_BOUND=Error
-METHOD_ELEMENT_TYPE_REMOVED_INTERFACE_BOUNDS=Error
-METHOD_ELEMENT_TYPE_REMOVED_TYPE_PARAMETER=Error
-METHOD_ELEMENT_TYPE_REMOVED_TYPE_PARAMETERS=Error
-eclipse.preferences.version=1
-incompatible_api_component_version=Error
-invalid_since_tag_version=Error
-malformed_since_tag=Error
-missing_since_tag=Error
diff --git a/org.eclipse.mylyn.tasks.tests/.settings/org.eclipse.pde.prefs b/org.eclipse.mylyn.tasks.tests/.settings/org.eclipse.pde.prefs
deleted file mode 100644
index e8f2d5620..000000000
--- a/org.eclipse.mylyn.tasks.tests/.settings/org.eclipse.pde.prefs
+++ /dev/null
@@ -1,18 +0,0 @@
-#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.tasks.tests/META-INF/MANIFEST.MF b/org.eclipse.mylyn.tasks.tests/META-INF/MANIFEST.MF
deleted file mode 100644
index 558e371db..000000000
--- a/org.eclipse.mylyn.tasks.tests/META-INF/MANIFEST.MF
+++ /dev/null
@@ -1,42 +0,0 @@
-Manifest-Version: 1.0
-Bundle-ManifestVersion: 2
-Bundle-Name: Mylyn Tasks Tests
-Bundle-SymbolicName: org.eclipse.mylyn.tasks.tests;singleton:=true
-Bundle-Version: 0.0.0
-Bundle-Activator: org.eclipse.mylyn.tasks.tests.TasksTestsPlugin
-Bundle-Vendor: Eclipse.org
-Require-Bundle: org.eclipse.core.runtime,
- org.eclipse.core.net,
- org.junit,
- org.eclipse.mylyn.context.core,
- org.eclipse.mylyn.context.tests,
- org.eclipse.mylyn.commons.tests,
- org.eclipse.jdt.core,
- org.eclipse.core.resources,
- org.eclipse.ui,
- org.eclipse.mylyn.tasks.ui,
- org.eclipse.mylyn.context.ui,
- org.eclipse.mylyn.tasks.core,
- org.eclipse.mylyn.monitor.ui,
- org.eclipse.ui.forms,
- org.eclipse.mylyn.resources.tests,
- org.eclipse.mylyn.monitor.core,
- org.eclipse.mylyn.commons.net,
- org.eclipse.jface.text,
- org.eclipse.test.performance,
- org.eclipse.ui.ide,
- org.eclipse.mylyn.tasks.bugs,
- org.eclipse.mylyn.commons.core,
- org.eclipse.ui.browser,
- org.eclipse.core.expressions
-Bundle-ActivationPolicy: lazy
-Bundle-ClassPath: mylyn-tasklist-tests.jar
-Export-Package: org.eclipse.mylyn.tasks.tests;x-internal:=true,
- org.eclipse.mylyn.tasks.tests.connector;x-internal:=true,
- org.eclipse.mylyn.tasks.tests.core;x-internal:=true,
- org.eclipse.mylyn.tasks.tests.data;x-internal:=true,
- org.eclipse.mylyn.tasks.tests.performance;x-internal:=true,
- org.eclipse.mylyn.tasks.tests.ui;x-internal:=true,
- org.eclipse.mylyn.tasks.tests.ui.editor;x-internal:=true,
- org.eclipse.mylyn.tasks.tests.util;x-internal:=true
-Bundle-RequiredExecutionEnvironment: J2SE-1.5
diff --git a/org.eclipse.mylyn.tasks.tests/about.html b/org.eclipse.mylyn.tasks.tests/about.html
deleted file mode 100644
index d774b07c7..000000000
--- a/org.eclipse.mylyn.tasks.tests/about.html
+++ /dev/null
@@ -1,27 +0,0 @@
-<!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.tasks.tests/build.properties b/org.eclipse.mylyn.tasks.tests/build.properties
deleted file mode 100644
index f2fb7265e..000000000
--- a/org.eclipse.mylyn.tasks.tests/build.properties
+++ /dev/null
@@ -1,17 +0,0 @@
-###############################################################################
-# Copyright (c) 2004, 2006 Mylyn project committers 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
-###############################################################################
-bin.includes = META-INF/,\
- mylyn-tasklist-tests.jar,\
- about.html,\
- plugin.xml,\
- testdata/
-jars.compile.order = mylyn-tasklist-tests.jar
-source.mylyn-tasklist-tests.jar = src/
-output.mylyn-tasklist-tests.jar = bin/
-src.includes = about.html
-jre.compilation.profile = J2SE-1.5
diff --git a/org.eclipse.mylyn.tasks.tests/plugin.xml b/org.eclipse.mylyn.tasks.tests/plugin.xml
deleted file mode 100644
index 07dd3f98a..000000000
--- a/org.eclipse.mylyn.tasks.tests/plugin.xml
+++ /dev/null
@@ -1,20 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<?eclipse version="3.0"?>
-<plugin>
-
- <extension
- id="org.eclipse.mylyn.jira.repository"
- name="JIRA Repository"
- point="org.eclipse.mylyn.tasks.ui.repositories">
- <connectorCore
- class="org.eclipse.mylyn.tasks.tests.connector.MockRepositoryConnector"
- id="org.eclipse.mylyn.tasks.tests.repositories"
- name="Mock Repository Client"/>
- <connectorUi
- class="org.eclipse.mylyn.tasks.tests.connector.MockRepositoryConnectorUi"
- id="org.eclipse.mylyn.tasks.tests.repositories.ui"
- name="Mock Repository Connector UI">
- </connectorUi>
- </extension>
-
-</plugin>
diff --git a/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/AllTasksPerformanceTests.java b/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/AllTasksPerformanceTests.java
deleted file mode 100644
index a9d1ccffe..000000000
--- a/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/AllTasksPerformanceTests.java
+++ /dev/null
@@ -1,29 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2004, 2008 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.tasks.tests;
-
-import junit.framework.Test;
-import junit.framework.TestSuite;
-
-import org.eclipse.mylyn.tasks.tests.performance.TaskContainerTest;
-import org.eclipse.mylyn.tasks.tests.performance.TaskListPerformanceTest;
-
-public class AllTasksPerformanceTests {
-
- public static Test suite() {
- TestSuite suite = new TestSuite("Test for org.eclipse.mylyn.tests.performance");
- suite.addTestSuite(TaskContainerTest.class);
- suite.addTestSuite(TaskListPerformanceTest.class);
- return suite;
- }
-
-} \ No newline at end of file
diff --git a/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/AllTasksTests.java b/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/AllTasksTests.java
deleted file mode 100644
index 1523903e2..000000000
--- a/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/AllTasksTests.java
+++ /dev/null
@@ -1,101 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2004, 2008 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.tasks.tests;
-
-import junit.framework.Test;
-import junit.framework.TestSuite;
-
-import org.eclipse.mylyn.tasks.tests.core.ITasksCoreConstantsTest;
-import org.eclipse.mylyn.tasks.tests.core.TaskListUnmatchedContainerTest;
-import org.eclipse.mylyn.tasks.tests.core.TaskRepositoryLocationTest;
-import org.eclipse.mylyn.tasks.tests.ui.ContextPerspectiveManagerTest;
-import org.eclipse.mylyn.tasks.tests.ui.RetrieveTitleFromUrlTest;
-import org.eclipse.mylyn.tasks.tests.ui.TaskAttachmentPropertyTesterTest;
-import org.eclipse.mylyn.tasks.tests.ui.TaskHyperlinkDetectorTest;
-import org.eclipse.mylyn.tasks.tests.ui.TaskRelationHyperlinkDetectorTest;
-import org.eclipse.mylyn.tasks.tests.ui.editor.EditorUtilTest;
-import org.eclipse.mylyn.tasks.tests.ui.editor.TaskEditorPartDescriptorTest;
-import org.eclipse.mylyn.tasks.tests.ui.editor.TaskUrlHyperlinkDetectorTest;
-
-/**
- * @author Mik Kersten
- * @author Shawn Minto
- */
-public class AllTasksTests {
-
- public static Test suite() {
- TestSuite suite = new TestSuite("Test for org.eclipse.mylyn.tasks.tests");
- suite.addTestSuite(TaskRepositoryTest.class);
- suite.addTestSuite(LinkProviderTest.class);
- suite.addTestSuite(TaskActivationActionTest.class);
- suite.addTestSuite(TaskListPresentationTest.class);
- suite.addTestSuite(TaskRepositorySorterTest.class);
- suite.addTestSuite(CopyDetailsActionTest.class);
- suite.addTestSuite(NewTaskFromSelectionActionTest.class);
- suite.addTestSuite(TaskListTest.class);
- suite.addTestSuite(ProjectRepositoryAssociationTest.class);
- suite.addTestSuite(TaskPlanningEditorTest.class);
- suite.addTestSuite(TaskListExternalizationTest.class);
- suite.addTestSuite(TaskDataManagerTest.class);
- suite.addTestSuite(TaskRepositoryManagerTest.class);
- suite.addTestSuite(TaskRepositoriesExternalizerTest.class);
- suite.addTestSuite(TaskListContentProviderTest.class);
- suite.addTestSuite(TaskListBackupManagerTest.class);
- suite.addTestSuite(TaskListSorterTest.class);
- suite.addTestSuite(TaskKeyComparatorTest.class);
- suite.addTestSuite(TaskTest.class);
- suite.addTestSuite(TaskListUiTest.class);
- suite.addTestSuite(TaskListDropAdapterTest.class);
- suite.addTestSuite(TasksUiUtilTest.class);
- suite.addTestSuite(TaskDataExportTest.class);
- suite.addTestSuite(ScheduledPresentationTest.class);
- suite.addTestSuite(TaskActivityTimingTest.class);
- suite.addTestSuite(TaskAttachmentTest.class);
- suite.addTestSuite(RepositorySettingsPageTest.class);
- suite.addTestSuite(CommentQuoterTest.class);
- suite.addTestSuite(TaskDataStoreTest.class);
- suite.addTestSuite(TaskExportImportTest.class);
- suite.addTestSuite(PersonProposalProviderTest.class);
- suite.addTestSuite(TaskRepositoryLocationTest.class);
- suite.addTestSuite(AttachmentSizeFormatterTest.class);
- suite.addTestSuite(TaskMapperTest.class);
- suite.addTestSuite(TaskListUnmatchedContainerTest.class);
- suite.addTestSuite(TaskWorkingSetTest.class);
- suite.addTestSuite(TaskActivationHistoryTest.class);
- suite.addTestSuite(TaskActivityManagerTest.class);
- suite.addTestSuite(TaskRepositoryFilterTests.class);
- suite.addTestSuite(TaskDiffUtilTest.class);
- suite.addTestSuite(RefactorRepositoryUrlOperationTest.class);
- suite.addTestSuite(StackTraceDuplicateDetectorTest.class);
- // XXX fix and reenable
- //suite.addTestSuite(MarkTaskHandlerTest.class);
- suite.addTestSuite(RepositoryTemplateManagerTest.class);
- suite.addTestSuite(TaskHyperlinkDetectorTest.class);
- suite.addTestSuite(TaskRelationHyperlinkDetectorTest.class);
- suite.addTestSuite(TaskUrlHyperlinkDetectorTest.class);
- suite.addTestSuite(TaskEditorPartDescriptorTest.class);
- suite.addTestSuite(TaskAttachmentPropertyTesterTest.class);
- suite.addTestSuite(CommentGroupStrategyTest.class);
- suite.addTestSuite(ContextPerspectiveManagerTest.class);
- suite.addTestSuite(ITasksCoreConstantsTest.class);
- suite.addTestSuite(RetrieveTitleFromUrlTest.class);
- suite.addTestSuite(EditorUtilTest.class);
-
- // XXX long running tests, put back?
- //suite.addTestSuite(TaskDataImportTest.class);
- //suite.addTestSuite(QueryExportImportTest.class);
- //suite.addTestSuite(BackgroundSaveTest.class);
-
- return suite;
- }
-
-}
diff --git a/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/AttachmentSizeFormatterTest.java b/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/AttachmentSizeFormatterTest.java
deleted file mode 100644
index 0a4cf1b65..000000000
--- a/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/AttachmentSizeFormatterTest.java
+++ /dev/null
@@ -1,76 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2004, 2008 Willian Mitsuda 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:
- * Willian Mitsuda - initial API and implementation
- * Frank Becker - improvements
- *******************************************************************************/
-
-package org.eclipse.mylyn.tasks.tests;
-
-import java.util.Locale;
-
-import junit.framework.TestCase;
-
-import org.eclipse.mylyn.internal.tasks.ui.editors.AttachmentSizeFormatter;
-
-/**
- * Tests attachment size value formatting.
- *
- * @author Willian Mitsuda
- * @author Frank Becker
- */
-public class AttachmentSizeFormatterTest extends TestCase {
-
- public void testInvalidString() {
- AttachmentSizeFormatter formatter = AttachmentSizeFormatter.getInstance();
- assertEquals(AttachmentSizeFormatter.UNKNOWN_SIZE, formatter.format(null));
- assertEquals(AttachmentSizeFormatter.UNKNOWN_SIZE, formatter.format("x"));
- }
-
- public void testNotAValidNumber() {
- AttachmentSizeFormatter formatter = AttachmentSizeFormatter.getInstance();
- assertEquals(AttachmentSizeFormatter.UNKNOWN_SIZE, formatter.format("-5"));
- assertEquals(AttachmentSizeFormatter.UNKNOWN_SIZE, formatter.format("1.0"));
- }
-
- public void testByteFormatter() {
- AttachmentSizeFormatter formatter = new AttachmentSizeFormatter(Locale.ENGLISH);
- assertEquals("1 byte", formatter.format("1"));
- assertEquals("2 bytes", formatter.format("2"));
- assertEquals("1023 bytes", formatter.format("1023"));
- }
-
- public void testKBFormatter() {
- AttachmentSizeFormatter formatterEnglish = new AttachmentSizeFormatter(Locale.ENGLISH);
- assertEquals("1.00 KB", formatterEnglish.format("1024"));
- assertEquals("1024.00 KB", formatterEnglish.format("1048575"));
-
- AttachmentSizeFormatter formatterGerman = new AttachmentSizeFormatter(Locale.GERMAN);
- assertEquals("1,00 KB", formatterGerman.format("1024"));
- assertEquals("1024,00 KB", formatterGerman.format("1048575"));
- }
-
- public void testMBFormatter() {
- AttachmentSizeFormatter formatterEnglish = new AttachmentSizeFormatter(Locale.ENGLISH);
- assertEquals("1.00 MB", formatterEnglish.format("1048576"));
- assertEquals("1024.00 MB", formatterEnglish.format("1073741823"));
-
- AttachmentSizeFormatter formatterGerman = new AttachmentSizeFormatter(Locale.GERMAN);
- assertEquals("1,00 MB", formatterGerman.format("1048576"));
- assertEquals("1024,00 MB", formatterGerman.format("1073741823"));
- }
-
- public void testGBFormatter() {
- AttachmentSizeFormatter formatterEnglish = new AttachmentSizeFormatter(Locale.ENGLISH);
- assertEquals("1.00 GB", formatterEnglish.format("1073741824"));
-
- AttachmentSizeFormatter formatterGerman = new AttachmentSizeFormatter(Locale.GERMAN);
- assertEquals("1,00 GB", formatterGerman.format("1073741824"));
- }
-
-}
diff --git a/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/BackgroundSaveTest.java b/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/BackgroundSaveTest.java
deleted file mode 100644
index 2d918bbaa..000000000
--- a/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/BackgroundSaveTest.java
+++ /dev/null
@@ -1,49 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2004, 2008 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.tasks.tests;
-
-import java.io.File;
-import java.io.IOException;
-import java.util.Locale;
-
-import junit.framework.TestCase;
-
-import org.eclipse.mylyn.internal.tasks.core.ITasksCoreConstants;
-import org.eclipse.mylyn.internal.tasks.core.LocalTask;
-import org.eclipse.mylyn.internal.tasks.ui.TasksUiPlugin;
-
-/**
- * Tests the mechanism for saving the task data periodically.
- *
- * @author Wesley Coelho
- * @author Mik Kersten (rewrite)
- */
-public class BackgroundSaveTest extends TestCase {
-
- public void testBackgroundSave() throws InterruptedException, IOException {
- if (System.getProperty("os.name").toLowerCase(Locale.ENGLISH).contains("linux")) {
- System.out.println("> BackgroundSaveTest.testBackgroundSave() not run on Linux due to IO concurrency");
- } else {
- LocalTask task = new LocalTask("1", "summary");
- String filePath = TasksUiPlugin.getDefault().getDataDirectory() + File.separator
- + ITasksCoreConstants.DEFAULT_TASK_LIST_FILE;
-
- final File file = new File(filePath);
- long previouslyModified = file.lastModified();
- TasksUiPlugin.getTaskList().addTask(task);
- TasksUiPlugin.getExternalizationManager().requestSave();
- Thread.sleep(5000);
- assertTrue(file.lastModified() > previouslyModified);
- TasksUiPlugin.getTaskList().deleteTask(task);
- }
- }
-}
diff --git a/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/CommentGroupStrategyTest.java b/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/CommentGroupStrategyTest.java
deleted file mode 100644
index 5300c305e..000000000
--- a/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/CommentGroupStrategyTest.java
+++ /dev/null
@@ -1,240 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2004, 2008 Jingwen Ou 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:
- * Jingwen Ou - initial implementation
- *******************************************************************************/
-
-package org.eclipse.mylyn.tasks.tests;
-
-import java.util.ArrayList;
-import java.util.Date;
-import java.util.List;
-
-import junit.framework.TestCase;
-
-import org.eclipse.mylyn.internal.tasks.core.RepositoryPerson;
-import org.eclipse.mylyn.internal.tasks.core.TaskComment;
-import org.eclipse.mylyn.internal.tasks.ui.editors.CommentGroupStrategy;
-import org.eclipse.mylyn.internal.tasks.ui.editors.CommentGroupStrategy.CommentGroup;
-import org.eclipse.mylyn.internal.tasks.ui.util.AttachmentUtil;
-import org.eclipse.mylyn.tasks.core.ITask;
-import org.eclipse.mylyn.tasks.core.ITaskComment;
-import org.eclipse.mylyn.tasks.core.TaskRepository;
-import org.eclipse.mylyn.tasks.core.data.TaskAttribute;
-import org.eclipse.mylyn.tasks.core.data.TaskData;
-
-/**
- * @author Jingwen Ou
- */
-public class CommentGroupStrategyTest extends TestCase {
-
- private static final String MOCK_CURRENT_PERSON_ID = "mockCurrentPersonId";
-
- private static final String MOCK_TASK_ATTRIBUTE = "mockTaskAttribute";
-
- private static final String MOCK_TEXT = "mockText";
-
- private final List<ITaskComment> comments;
-
- private final TaskRepository repository;
-
- private final CommentGroupStrategy strategy;
-
- private final ITask task;
-
- private final TaskData taskData;
-
- public CommentGroupStrategyTest() {
- repository = TaskTestUtil.createMockRepository();
- task = TaskTestUtil.createMockTask("1");
- taskData = TaskTestUtil.createMockTaskData("1");
- comments = new ArrayList<ITaskComment>();
- strategy = new CommentGroupStrategy();
- }
-
- private TaskComment mockComment(int number, String personId, Date date) {
- return mockComment(number, personId, date, MOCK_TEXT);
- }
-
- private TaskComment mockComment(int number, String personId, Date date, String text) {
- TaskAttribute taskAttribute = taskData.getRoot().createAttribute(MOCK_TASK_ATTRIBUTE + comments.size());
- TaskComment comment = new TaskComment(repository, task, taskAttribute);
- comment.setNumber(number);
- comment.setAuthor(new RepositoryPerson(repository, personId));
- comment.setCreationDate(date);
- comment.setText(text);
- return comment;
- }
-
- @Override
- protected void setUp() throws Exception {
- comments.clear();
- }
-
- public void testGroupCommentsAuthoredLatestComment() {
- int recentComments = CommentGroupStrategy.MAX_CURRENT;
-
- // didn't author previous comments
- for (int i = 0; i < recentComments; i++) {
- comments.add(mockComment(i + 1, "OtherPerson", new Date(i + 1)));
- }
- // authored the latest comment
- comments.add(mockComment(recentComments + 1, MOCK_CURRENT_PERSON_ID, new Date(recentComments + 1)));
-
- List<CommentGroup> group = strategy.groupComments(comments, MOCK_CURRENT_PERSON_ID);
-
- assertEquals(2, group.size());
-
- CommentGroup recentGroup = group.get(0);
- assertEquals(CommentGroup.RECENT, recentGroup.getGroupName());
- assertEquals(recentComments, recentGroup.getComments().size());
-
- CommentGroup currentGroup = group.get(1);
- assertEquals(CommentGroup.CURRENT, currentGroup.getGroupName());
- assertEquals(1, currentGroup.getComments().size());
- }
-
- public void testGroupCommentsMaxCurrent() {
- // one less than max current
- int oneLessThanMaxCurrent = CommentGroupStrategy.MAX_CURRENT - 1;
-
- for (int i = 0; i < oneLessThanMaxCurrent; i++) {
- comments.add(mockComment(i + 1, MOCK_CURRENT_PERSON_ID, new Date(i + 1)));
- }
-
- List<CommentGroup> group = strategy.groupComments(comments, MOCK_CURRENT_PERSON_ID);
-
- assertEquals(1, group.size());
-
- CommentGroup currentGroup = group.get(0);
- assertEquals(CommentGroup.CURRENT, currentGroup.getGroupName());
- assertEquals(oneLessThanMaxCurrent, currentGroup.getComments().size());
- }
-
- public void testGroupCommentsNotAuthoredLastestComment() {
- // didn't author previous comments
- for (int i = 0; i < CommentGroupStrategy.MAX_CURRENT; i++) {
- comments.add(mockComment(i + 1, "OtherPerson", new Date(i + 1)));
- }
- // not even the latest comment
- comments.add(mockComment(CommentGroupStrategy.MAX_CURRENT + 1, "OtherPerson", new Date(
- CommentGroupStrategy.MAX_CURRENT + 1)));
-
- List<CommentGroup> group = strategy.groupComments(comments, MOCK_CURRENT_PERSON_ID);
-
- assertEquals(2, group.size());
-
- CommentGroup recentGroup = group.get(0);
- assertEquals(CommentGroup.RECENT, recentGroup.getGroupName());
- assertEquals(1, recentGroup.getComments().size());
-
- CommentGroup currentGroup = group.get(1);
- assertEquals(CommentGroup.CURRENT, currentGroup.getGroupName());
- assertEquals(CommentGroupStrategy.MAX_CURRENT, currentGroup.getComments().size());
- }
-
- public void testGroupComments_RecentAndOlder() {
- int total = CommentGroupStrategy.MAX_CURRENT + CommentGroupStrategy.MAX_RECENT;
- // didn't author previous comments
- for (int i = 0; i < total; i++) {
- comments.add(mockComment(i + 1, "OtherPerson", new Date(i + 1)));
- }
- // not even the latest comment
- comments.add(mockComment(total + 1, "OtherPerson", new Date(total + 1)));
-
- List<CommentGroup> group = strategy.groupComments(comments, MOCK_CURRENT_PERSON_ID);
-
- assertEquals(3, group.size());
-
- CommentGroup olderGroup = group.get(0);
- assertEquals(CommentGroup.OLDER, olderGroup.getGroupName());
- assertEquals(1, olderGroup.getComments().size());
-
- CommentGroup recentGroup = group.get(1);
- assertEquals(CommentGroup.RECENT, recentGroup.getGroupName());
- assertEquals(CommentGroupStrategy.MAX_RECENT, recentGroup.getComments().size());
-
- CommentGroup currentGroup = group.get(2);
- assertEquals(CommentGroup.CURRENT, currentGroup.getGroupName());
- assertEquals(CommentGroupStrategy.MAX_CURRENT, currentGroup.getComments().size());
- }
-
- public void testGroupCommentsRecentAndOlder2() {
- int older = 10;
- int recent = CommentGroupStrategy.MAX_RECENT;
- int total = older + recent;
- // author previous comments
- for (int i = 0; i < total; i++) {
- comments.add(mockComment(i + 1, MOCK_CURRENT_PERSON_ID, new Date(i + 1)));
- }
- // even the latest comment
- comments.add(mockComment(total + 1, MOCK_CURRENT_PERSON_ID, new Date(total + 1)));
-
- List<CommentGroup> group = strategy.groupComments(comments, MOCK_CURRENT_PERSON_ID);
-
- assertEquals(3, group.size());
-
- CommentGroup olderGroup = group.get(0);
- assertEquals(CommentGroup.OLDER, olderGroup.getGroupName());
- assertEquals(older, olderGroup.getComments().size());
-
- CommentGroup recentGroup = group.get(1);
- assertEquals(CommentGroup.RECENT, recentGroup.getGroupName());
- assertEquals(recent, recentGroup.getComments().size());
-
- CommentGroup currentGroup = group.get(2);
- assertEquals(CommentGroup.CURRENT, currentGroup.getGroupName());
- assertEquals(1, currentGroup.getComments().size());
- }
-
- // 2: current person
- // 1: current person
- public void testIsCurrentAuthoredPreviousComment() {
- comments.add(mockComment(2, MOCK_CURRENT_PERSON_ID, new Date(2)));
- boolean isCurrent = strategy.isCurrent(comments, mockComment(1, MOCK_CURRENT_PERSON_ID, new Date(1)),
- MOCK_CURRENT_PERSON_ID);
- assertEquals(false, isCurrent);
- }
-
- // 2: current person - system generated, e.g. mylyn/context/zip
- // 1: current person
- public void testIsCurrentAuthoredPreviousCommentButSystemGenerated() {
- comments.add(mockComment(2, MOCK_CURRENT_PERSON_ID, new Date(2), AttachmentUtil.CONTEXT_DESCRIPTION));
- boolean isCurrent = strategy.isCurrent(comments, mockComment(1, MOCK_CURRENT_PERSON_ID, new Date(1)),
- MOCK_CURRENT_PERSON_ID);
- assertEquals(true, isCurrent);
- }
-
- // test max current
- public void testIsCurrentMaxCurrent() {
- for (int i = 0; i < CommentGroupStrategy.MAX_CURRENT; i++) {
- comments.add(mockComment(i + 1, MOCK_CURRENT_PERSON_ID, new Date(i + 1)));
- }
-
- boolean isCurrent = strategy.isCurrent(comments, mockComment(CommentGroupStrategy.MAX_CURRENT + 1,
- MOCK_CURRENT_PERSON_ID, new Date(CommentGroupStrategy.MAX_CURRENT + 1)), MOCK_CURRENT_PERSON_ID);
- assertEquals(false, isCurrent);
- }
-
- // no comment
- public void testIsCurrentNoComment() {
- boolean isCurrent = strategy.isCurrent(comments, mockComment(1, MOCK_CURRENT_PERSON_ID, new Date(1)),
- MOCK_CURRENT_PERSON_ID);
- assertEquals(true, isCurrent);
- }
-
- // 2: another person
- // 1: current person
- public void testIsCurrentNotAuthoredPreviousComment() {
- comments.add(mockComment(2, "AnotherPerson", new Date(2), MOCK_TEXT));
- boolean isCurrent = strategy.isCurrent(comments, mockComment(1, MOCK_CURRENT_PERSON_ID, new Date(1)),
- MOCK_CURRENT_PERSON_ID);
- assertEquals(true, isCurrent);
- }
-
-}
diff --git a/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/CommentQuoterTest.java b/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/CommentQuoterTest.java
deleted file mode 100644
index fa74cc620..000000000
--- a/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/CommentQuoterTest.java
+++ /dev/null
@@ -1,73 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2004, 2008 Willian Mitsuda 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:
- * Willian Mitsuda - initial API and implementation
- *******************************************************************************/
-
-package org.eclipse.mylyn.tasks.tests;
-
-import junit.framework.TestCase;
-
-import org.eclipse.mylyn.internal.tasks.core.CommentQuoter;
-
-/**
- * Test many quoting scenarios
- *
- * @author Willian Mitsuda
- */
-public class CommentQuoterTest extends TestCase {
-
- public void testNoWrapping() {
- CommentQuoter quoter = new CommentQuoter(10);
- String quotedText = quoter.quote("bababa");
- assertEquals("> bababa\n", quotedText);
- }
-
- public void testSimpleWrapping() {
- CommentQuoter quoter = new CommentQuoter(10);
- String quotedText = quoter.quote("bababa bobobo");
- assertEquals("> bababa\n> bobobo\n", quotedText);
- }
-
- public void testNoWayToWrap() {
- CommentQuoter quoter = new CommentQuoter(10);
- String quotedText = quoter.quote("babababababa");
- assertEquals("> babababababa\n", quotedText);
- }
-
- public void testExactWrap() {
- CommentQuoter quoter = new CommentQuoter(10);
- String quotedText = quoter.quote("bababababa");
- assertEquals("> bababababa\n", quotedText);
- }
-
- public void testMultiLineNoWrapping() {
- CommentQuoter quoter = new CommentQuoter(10);
- String quotedText = quoter.quote("bababa\nbobobo");
- assertEquals("> bababa\n> bobobo\n", quotedText);
- }
-
- public void testMultiLineWithWrapping() {
- CommentQuoter quoter = new CommentQuoter(10);
- String quotedText = quoter.quote("bababa bebebe\nbibibibibibi bibi\nbobobo bububu");
- assertEquals("> bababa\n> bebebe\n> bibibibibibi\n> bibi\n> bobobo\n> bububu\n", quotedText);
- }
-
- public void testExcessiveSpacingWrapping() {
- CommentQuoter quoter = new CommentQuoter(10);
- String quotedText = quoter.quote("bababa bobobo");
- assertEquals("> bababa\n> bobobo\n", quotedText);
- }
-
- public void testBlankLineQuoting() {
- CommentQuoter quoter = new CommentQuoter(10);
- String quotedText = quoter.quote("bababa\n\nbobobo");
- assertEquals("> bababa\n> \n> bobobo\n", quotedText);
- }
-
-}
diff --git a/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/CopyDetailsActionTest.java b/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/CopyDetailsActionTest.java
deleted file mode 100644
index 2de6d6af7..000000000
--- a/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/CopyDetailsActionTest.java
+++ /dev/null
@@ -1,30 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2004, 2008 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.tasks.tests;
-
-import junit.framework.TestCase;
-
-import org.eclipse.mylyn.internal.tasks.ui.actions.CopyTaskDetailsAction;
-import org.eclipse.mylyn.tasks.tests.connector.MockTask;
-
-/**
- * @author Mik Kersten
- */
-public class CopyDetailsActionTest extends TestCase {
-
- public void testIdLabelIncluded() {
- MockTask task = new MockTask("123");
- String text = CopyTaskDetailsAction.getTextForTask(task);
- assertTrue(text.startsWith(task.getTaskKey()));
- }
-
-}
diff --git a/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/DateRangeTest.java b/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/DateRangeTest.java
deleted file mode 100644
index e87599513..000000000
--- a/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/DateRangeTest.java
+++ /dev/null
@@ -1,173 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2004, 2008 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.tasks.tests;
-
-import java.util.Calendar;
-import java.util.Collections;
-import java.util.HashSet;
-import java.util.Set;
-import java.util.SortedMap;
-import java.util.TimeZone;
-import java.util.TreeMap;
-
-import junit.framework.TestCase;
-
-import org.eclipse.mylyn.internal.tasks.core.DateRange;
-import org.eclipse.mylyn.internal.tasks.core.DayDateRange;
-import org.eclipse.mylyn.internal.tasks.core.LocalTask;
-import org.eclipse.mylyn.internal.tasks.core.TaskActivityUtil;
-import org.eclipse.mylyn.internal.tasks.core.WeekDateRange;
-import org.eclipse.mylyn.tasks.core.ITask;
-
-/**
- * @author Rob Elves
- */
-public class DateRangeTest extends TestCase {
-
- private static final int HOUR = 60 * 60 * 1000;
-
- public void testCompareInstant() {
- DateRange range1 = new DateRange(TaskActivityUtil.getCurrentWeek().getToday().previous().getStartDate());
- DateRange range2 = new DateRange(TaskActivityUtil.getCurrentWeek().getToday().getStartDate());
- assertEquals(-1, range1.compareTo(range2));
- assertEquals(1, range2.compareTo(range1));
- }
-
- public void testCompareRanges() {
- DateRange range1 = TaskActivityUtil.getCurrentWeek().getToday().previous();
- DateRange range2 = TaskActivityUtil.getCurrentWeek().getToday();
- assertEquals(-1, range1.compareTo(range2));
- assertEquals(1, range2.compareTo(range1));
- }
-
- public void testQueryDateRange() {
- SortedMap<DateRange, Set<ITask>> scheduledTasks = Collections.synchronizedSortedMap(new TreeMap<DateRange, Set<ITask>>());
- DateRange range1 = TaskActivityUtil.getCurrentWeek().getToday().previous();
- Set<ITask> tasks = new HashSet<ITask>();
- tasks.add(new LocalTask("1", "summaryForLocalTask"));
- scheduledTasks.put(range1, tasks);
- assertFalse(scheduledTasks.isEmpty());
- assertNotNull(scheduledTasks.get(range1));
-
- DateRange rangeTest = TaskActivityUtil.getCurrentWeek().getToday().previous();
- assertNotNull(scheduledTasks.get(rangeTest));
-
- DateRange range2 = TaskActivityUtil.getCurrentWeek().getToday();
- tasks = new HashSet<ITask>();
- tasks.add(new LocalTask("2", "summaryForLocalTask2"));
- scheduledTasks.put(range2, tasks);
-
- SortedMap<DateRange, Set<ITask>> result = scheduledTasks.subMap(range1, range2);
- assertEquals(1, result.size());
-
- DateRange range0 = TaskActivityUtil.getCurrentWeek().getToday().previous().previous();
- DateRange range3 = TaskActivityUtil.getCurrentWeek().getToday().next();
- result = scheduledTasks.subMap(range0, range3);
- assertEquals(2, result.size());
- }
-
- public void testIsWeekRange() {
- TimeZone defaultTimeZone = TimeZone.getDefault();
- try {
- TimeZone.setDefault(TimeZone.getTimeZone("PST"));
- Calendar time = TaskActivityUtil.getCalendar();
-
- time.set(2008, 9, 1);
- DateRange range = TaskActivityUtil.getWeekOf(time.getTime());
- assertTrue(WeekDateRange.isWeekRange(range.getStartDate(), range.getEndDate()));
- range.getStartDate().setTimeInMillis(range.getStartDate().getTimeInMillis() + 1);
- assertTrue("1 ms longer than a week, expected to be within legal interval", WeekDateRange.isWeekRange(
- range.getStartDate(), range.getEndDate()));
- range = TaskActivityUtil.getDayOf(time.getTime());
- assertFalse("only a day", WeekDateRange.isWeekRange(range.getStartDate(), range.getEndDate()));
-
- // PST changes to PDT on Mar 9th 2008
- time.set(2008, 2, 9);
- range = TaskActivityUtil.getWeekOf(time.getTime());
- assertEquals(0, range.getStartDate().get(Calendar.DST_OFFSET));
- assertEquals(HOUR, range.getEndDate().get(Calendar.DST_OFFSET));
- assertTrue(WeekDateRange.isWeekRange(range.getStartDate(), range.getEndDate()));
- range.getStartDate().setTimeInMillis(range.getStartDate().getTimeInMillis() + 1);
- assertFalse("1 ms too long", WeekDateRange.isWeekRange(range.getStartDate(), range.getEndDate()));
- range = TaskActivityUtil.getDayOf(time.getTime());
- assertFalse(WeekDateRange.isWeekRange(range.getStartDate(), range.getEndDate()));
-
- // PDT changes to PST on Nov 2nd 2008
- time.set(2008, 10, 2);
- range = TaskActivityUtil.getWeekOf(time.getTime());
- assertEquals(HOUR, range.getStartDate().get(Calendar.DST_OFFSET));
- assertEquals(0, range.getEndDate().get(Calendar.DST_OFFSET));
- assertTrue(WeekDateRange.isWeekRange(range.getStartDate(), range.getEndDate()));
- range.getStartDate().setTimeInMillis(range.getStartDate().getTimeInMillis() - 1);
- assertFalse("1 ms too short", WeekDateRange.isWeekRange(range.getStartDate(), range.getEndDate()));
- } finally {
- TimeZone.setDefault(defaultTimeZone);
- }
- }
-
- public void testIsDayRange() {
- TimeZone defaultTimeZone = TimeZone.getDefault();
- try {
- TimeZone.setDefault(TimeZone.getTimeZone("PST"));
- Calendar time = TaskActivityUtil.getCalendar();
- time.set(2008, 9, 1);
- DateRange range = TaskActivityUtil.getDayOf(time.getTime());
- assertTrue(DayDateRange.isDayRange(range.getStartDate(), range.getEndDate()));
- range.getStartDate().setTimeInMillis(range.getStartDate().getTimeInMillis() + 1);
- assertTrue("1 ms longer than a day, expected to be within legal interval", DayDateRange.isDayRange(
- range.getStartDate(), range.getEndDate()));
- range.getStartDate().setTimeInMillis(range.getStartDate().getTimeInMillis() + HOUR);
- assertFalse("1 hour + 1 ms longer than a day", DayDateRange.isDayRange(range.getStartDate(),
- range.getEndDate()));
- range.getStartDate().setTimeInMillis(range.getStartDate().getTimeInMillis() - 2 * HOUR - 2);
- assertFalse("1 hour + 1 ms shorter than a day", DayDateRange.isDayRange(range.getStartDate(),
- range.getEndDate()));
- range = TaskActivityUtil.getDayOf(time.getTime());
- assertTrue("a week", DayDateRange.isDayRange(range.getStartDate(), range.getEndDate()));
-
- // PDT changes to PST on Mar 9th 2008
- time.set(2008, 2, 9);
- range = TaskActivityUtil.getDayOf(time.getTime());
- assertEquals(0, range.getStartDate().get(Calendar.DST_OFFSET));
- assertEquals(HOUR, range.getEndDate().get(Calendar.DST_OFFSET));
- assertTrue(DayDateRange.isDayRange(range.getStartDate(), range.getEndDate()));
- range.getStartDate().setTimeInMillis(range.getStartDate().getTimeInMillis() + 1);
- assertFalse("1 ms too long", DayDateRange.isDayRange(range.getStartDate(), range.getEndDate()));
-
- // PST changes to PDT on Nov 2nd 2008
- time.set(2008, 10, 2);
- range = TaskActivityUtil.getDayOf(time.getTime());
- assertEquals(HOUR, range.getStartDate().get(Calendar.DST_OFFSET));
- assertEquals(0, range.getEndDate().get(Calendar.DST_OFFSET));
- assertTrue(DayDateRange.isDayRange(range.getStartDate(), range.getEndDate()));
- range.getStartDate().setTimeInMillis(range.getStartDate().getTimeInMillis() - 1);
- assertFalse("1 ms too short", DayDateRange.isDayRange(range.getStartDate(), range.getEndDate()));
- } finally {
- TimeZone.setDefault(defaultTimeZone);
- }
- }
-
- public void testNext() {
- Calendar time = TaskActivityUtil.getCalendar();
- time.set(2008, 11, 31);
- DayDateRange day = TaskActivityUtil.getDayOf(time.getTime());
- assertEquals(2009, day.next().getStartDate().get(Calendar.YEAR));
- assertEquals(2008, day.getStartDate().get(Calendar.YEAR));
- assertEquals(day, day.next().previous());
-
- WeekDateRange week = TaskActivityUtil.getWeekOf(time.getTime());
- assertEquals(2009, week.next().getStartDate().get(Calendar.YEAR));
- assertEquals(2008, week.getStartDate().get(Calendar.YEAR));
- assertEquals(week, week.next().previous());
- }
-
-}
diff --git a/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/LinkProviderTest.java b/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/LinkProviderTest.java
deleted file mode 100644
index 6b2a361bb..000000000
--- a/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/LinkProviderTest.java
+++ /dev/null
@@ -1,101 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2004, 2008 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.tasks.tests;
-
-import junit.framework.TestCase;
-
-import org.eclipse.core.resources.IResource;
-import org.eclipse.core.resources.ResourcesPlugin;
-import org.eclipse.mylyn.internal.tasks.core.ITasksCoreConstants;
-import org.eclipse.mylyn.internal.tasks.ui.TasksUiPlugin;
-import org.eclipse.mylyn.tasks.core.IRepositoryManager;
-import org.eclipse.mylyn.tasks.core.TaskRepository;
-import org.eclipse.mylyn.tasks.ui.AbstractTaskRepositoryLinkProvider;
-
-/**
- * @author Mik Kersten
- * @author Steffen Pingel
- */
-public class LinkProviderTest extends TestCase {
-
- public class LinkProviderStub extends AbstractTaskRepositoryLinkProvider {
-
- int executions = 0;
-
- int timeout = 0;
-
- @Override
- public TaskRepository getTaskRepository(IResource resource, IRepositoryManager repositoryManager) {
- executions++;
- try {
- Thread.sleep(timeout);
- } catch (InterruptedException e) {
- fail();
- }
- return null;
- }
- }
-
- private String defaultTimeout;
-
- private LinkProviderStub provider;
-
- @Override
- protected void setUp() throws Exception {
- defaultTimeout = System.getProperty(ITasksCoreConstants.PROPERTY_LINK_PROVIDER_TIMEOUT, "");
- provider = new LinkProviderStub();
- TasksUiPlugin.getDefault().addRepositoryLinkProvider(provider);
- }
-
- @Override
- protected void tearDown() throws Exception {
- TasksUiPlugin.getDefault().removeRepositoryLinkProvider(provider);
- System.setProperty(ITasksCoreConstants.PROPERTY_LINK_PROVIDER_TIMEOUT, defaultTimeout);
- }
-
- public void testTimeout() {
- System.setProperty(ITasksCoreConstants.PROPERTY_LINK_PROVIDER_TIMEOUT, "50");
-
- provider.timeout = 40;
- TasksUiPlugin.getDefault().getRepositoryForResource(ResourcesPlugin.getWorkspace().getRoot());
- assertEquals(1, provider.executions);
-
- provider.timeout = 60;
- TasksUiPlugin.getDefault().getRepositoryForResource(ResourcesPlugin.getWorkspace().getRoot());
- assertEquals(2, provider.executions);
-
- TasksUiPlugin.getDefault().getRepositoryForResource(ResourcesPlugin.getWorkspace().getRoot());
- assertEquals(2, provider.executions);
- }
-
- public void testTimeoutInfinite() {
- System.setProperty(ITasksCoreConstants.PROPERTY_LINK_PROVIDER_TIMEOUT, "50");
-
- provider.timeout = 40;
- TasksUiPlugin.getDefault().getRepositoryForResource(ResourcesPlugin.getWorkspace().getRoot());
- assertEquals(1, provider.executions);
-
- System.setProperty(ITasksCoreConstants.PROPERTY_LINK_PROVIDER_TIMEOUT, "-1");
-
- provider.timeout = 0;
- TasksUiPlugin.getDefault().getRepositoryForResource(ResourcesPlugin.getWorkspace().getRoot());
- assertEquals(2, provider.executions);
-
- provider.timeout = 60;
- TasksUiPlugin.getDefault().getRepositoryForResource(ResourcesPlugin.getWorkspace().getRoot());
- assertEquals(3, provider.executions);
-
- TasksUiPlugin.getDefault().getRepositoryForResource(ResourcesPlugin.getWorkspace().getRoot());
- assertEquals(4, provider.executions);
- }
-
-}
diff --git a/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/NewTaskFromSelectionActionTest.java b/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/NewTaskFromSelectionActionTest.java
deleted file mode 100644
index 8417a0282..000000000
--- a/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/NewTaskFromSelectionActionTest.java
+++ /dev/null
@@ -1,68 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2004, 2008 Frank Becker 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:
- * Frank Becker - initial API and implementation
- * Tasktop Technologies - improvements
- *******************************************************************************/
-
-package org.eclipse.mylyn.tasks.tests;
-
-import junit.framework.TestCase;
-
-import org.eclipse.jface.text.TextSelection;
-import org.eclipse.jface.viewers.StructuredSelection;
-import org.eclipse.mylyn.internal.tasks.core.TaskComment;
-import org.eclipse.mylyn.internal.tasks.ui.actions.NewTaskFromSelectionAction;
-import org.eclipse.mylyn.tasks.core.TaskRepository;
-import org.eclipse.mylyn.tasks.core.data.TaskAttributeMapper;
-import org.eclipse.mylyn.tasks.core.data.TaskData;
-import org.eclipse.mylyn.tasks.tests.connector.MockRepositoryConnector;
-import org.eclipse.mylyn.tasks.tests.connector.MockTask;
-
-/**
- * @author Frank Becker
- * @author Steffen Pingel
- */
-public class NewTaskFromSelectionActionTest extends TestCase {
-
- // FIXME 3.1 causes display of modal dialog
-// public void testNoSelection() throws Exception {
-// NewTaskFromSelectionAction action = new NewTaskFromSelectionAction();
-// assertNull(action.getTaskSelection());
-// action.run();
-// action.selectionChanged(null);
-// assertNull(action.getTaskSelection());
-// }
-
- public void testComment() throws Exception {
- TaskRepository taskRepository = new TaskRepository(MockRepositoryConnector.REPOSITORY_KIND,
- MockRepositoryConnector.REPOSITORY_URL);
- TaskData taskData = new TaskData(new TaskAttributeMapper(taskRepository), "kind", "http://url", "1");
- TaskComment comment = new TaskComment(taskRepository, new MockTask("1"), taskData.getRoot().createAttribute(
- "id"));
-
- NewTaskFromSelectionAction action = new NewTaskFromSelectionAction();
- action.selectionChanged(new StructuredSelection(comment));
- assertNotNull(action.getTaskMapping());
- }
-
- public void testText() throws Exception {
- NewTaskFromSelectionAction action = new NewTaskFromSelectionAction();
- action.selectionChanged(new TextSelection(0, 0) {
- @Override
- public String getText() {
- return "text";
- }
- });
- assertNotNull(action.getTaskMapping());
-
- action.selectionChanged(new TextSelection(0, 0));
- assertNull(action.getTaskMapping());
- }
-
-}
diff --git a/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/NewTaskWizardRepositorySelectionTest.java b/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/NewTaskWizardRepositorySelectionTest.java
deleted file mode 100644
index 21e05d5da..000000000
--- a/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/NewTaskWizardRepositorySelectionTest.java
+++ /dev/null
@@ -1,93 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2004, 2008 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.tasks.tests;
-
-import junit.framework.TestCase;
-
-import org.eclipse.jface.viewers.IStructuredSelection;
-import org.eclipse.jface.viewers.StructuredSelection;
-import org.eclipse.jface.wizard.WizardDialog;
-import org.eclipse.mylyn.internal.tasks.core.LocalRepositoryConnector;
-import org.eclipse.mylyn.internal.tasks.ui.TasksUiPlugin;
-import org.eclipse.mylyn.internal.tasks.ui.util.TasksUiInternal;
-import org.eclipse.mylyn.internal.tasks.ui.views.TaskListView;
-import org.eclipse.mylyn.internal.tasks.ui.wizards.MultiRepositoryAwareWizard;
-import org.eclipse.mylyn.internal.tasks.ui.wizards.SelectRepositoryPage;
-import org.eclipse.mylyn.tasks.core.TaskRepository;
-import org.eclipse.mylyn.tasks.tests.connector.MockRepositoryConnector;
-import org.eclipse.mylyn.tasks.tests.connector.MockTask;
-import org.eclipse.mylyn.tasks.ui.TasksUiUtil;
-import org.eclipse.mylyn.tasks.ui.wizards.NewTaskWizard;
-import org.eclipse.swt.widgets.Shell;
-import org.eclipse.ui.PlatformUI;
-
-/**
- * @author Mik Kersten
- */
-public class NewTaskWizardRepositorySelectionTest extends TestCase {
-
- // see bug 203801
- public void testRepositorySettingWithTaskListSelection() {
- TaskRepository mockRepository = new TaskRepository(MockRepositoryConnector.REPOSITORY_KIND,
- MockRepositoryConnector.REPOSITORY_URL);
- TasksUiPlugin.getRepositoryManager().addRepository(mockRepository);
-
- Shell shell = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell();
- TaskListView view = (TaskListView) TasksUiUtil.openTasksViewInActivePerspective();
- MockTask mockTask = new MockTask("mock.task");
- TasksUiPlugin.getTaskActivityManager().scheduleNewTask(mockTask);
- TasksUiPlugin.getTaskList().addTask(mockTask);
-
- view.setFocusedMode(true);
- view.getViewer().refresh();
- view.getViewer().expandAll();
- view.getViewer().setSelection(new StructuredSelection(mockTask), true);
- assertEquals(mockTask, ((StructuredSelection) view.getViewer().getSelection()).getFirstElement());
-
- MultiRepositoryAwareWizard wizard = TasksUiInternal.createNewTaskWizard(null);
- WizardDialog dialog = null;
- dialog = new WizardDialog(shell, wizard);
- dialog.setBlockOnOpen(false);
- dialog.open();
-
- SelectRepositoryPage page = (SelectRepositoryPage) wizard.getPages()[0];
- assertTrue(page.getRepositories().contains(mockRepository));
- assertEquals(mockRepository, ((IStructuredSelection) page.getViewer().getSelection()).getFirstElement());
-
- TasksUiPlugin.getRepositoryManager().removeRepository(mockRepository,
- TasksUiPlugin.getDefault().getRepositoriesFilePath());
- TasksUiPlugin.getTaskList().deleteTask(mockTask);
- wizard.dispose();
- dialog.close();
- }
-
- // see bug bug 202184
- public void testDefaultWithNoTaskListSelection() {
- TaskListView view = (TaskListView) TasksUiUtil.openTasksViewInActivePerspective();
- view.getViewer().setSelection(new StructuredSelection());
-
- NewTaskWizard wizard = new NewTaskWizard(null, null);
- Shell shell = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell();
- WizardDialog dialog = null;
- dialog = new WizardDialog(shell, wizard);
- dialog.setBlockOnOpen(false);
- dialog.open();
-
- SelectRepositoryPage page = (SelectRepositoryPage) wizard.getPages()[0];
- TaskRepository localRepository = TasksUiPlugin.getRepositoryManager().getRepositories(
- LocalRepositoryConnector.CONNECTOR_KIND).iterator().next();
- assertEquals(localRepository, ((IStructuredSelection) page.getViewer().getSelection()).getFirstElement());
-
- wizard.dispose();
- dialog.close();
- }
-}
diff --git a/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/PersonProposalProviderTest.java b/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/PersonProposalProviderTest.java
deleted file mode 100644
index 417ef2247..000000000
--- a/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/PersonProposalProviderTest.java
+++ /dev/null
@@ -1,206 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2004, 2008 Frank Becker 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:
- * Frank Becker - initial API and implementation
- * Tasktop Technologies - improvements
- *******************************************************************************/
-
-package org.eclipse.mylyn.tasks.tests;
-
-import junit.framework.TestCase;
-
-import org.eclipse.jface.fieldassist.IContentProposal;
-import org.eclipse.mylyn.commons.net.AuthenticationCredentials;
-import org.eclipse.mylyn.commons.net.AuthenticationType;
-import org.eclipse.mylyn.internal.tasks.core.AbstractTask;
-import org.eclipse.mylyn.internal.tasks.core.TaskTask;
-import org.eclipse.mylyn.internal.tasks.ui.PersonContentProposal;
-import org.eclipse.mylyn.internal.tasks.ui.PersonProposalProvider;
-import org.eclipse.mylyn.internal.tasks.ui.TasksUiPlugin;
-import org.eclipse.mylyn.tasks.core.TaskRepository;
-import org.eclipse.mylyn.tasks.core.data.TaskData;
-import org.eclipse.mylyn.tasks.tests.connector.MockRepositoryConnector;
-import org.eclipse.mylyn.tasks.tests.connector.MockRepositoryQuery;
-import org.eclipse.mylyn.tasks.tests.connector.MockTask;
-import org.eclipse.mylyn.tasks.ui.TasksUi;
-
-/**
- * @author Frank Becker
- * @author Steffen Pingel
- */
-public class PersonProposalProviderTest extends TestCase {
-
- @Override
- protected void setUp() throws Exception {
- TaskTestUtil.resetTaskListAndRepositories();
- }
-
- @Override
- protected void tearDown() throws Exception {
- TaskTestUtil.resetTaskListAndRepositories();
- }
-
- public void testGetProposalsNullParameters() {
- PersonProposalProvider provider = new PersonProposalProvider((AbstractTask) null, (TaskData) null);
- IContentProposal[] result = provider.getProposals("", 0);
- assertNotNull(result);
- assertEquals(0, result.length);
-
- result = provider.getProposals(" ", 1);
- assertNotNull(result);
- assertEquals(0, result.length);
- }
-
- public void testGetProposalsCurrentTask() {
- MockTask task = new MockTask(null, "1", null);
- task.setOwner("foo");
- PersonProposalProvider provider = new PersonProposalProvider(task, (TaskData) null);
- IContentProposal[] result = provider.getProposals("", 0);
- assertNotNull(result);
- assertEquals(1, result.length);
- assertEquals("foo", result[0].getContent());
-
- result = provider.getProposals("a", 1);
- assertNotNull(result);
- assertEquals(0, result.length);
-
- result = provider.getProposals("fo", 2);
- assertNotNull(result);
- assertEquals(1, result.length);
- assertEquals("foo", result[0].getContent());
-
- result = provider.getProposals("", 0);
- assertNotNull(result);
- assertEquals(1, result.length);
- assertEquals("foo", result[0].getContent());
- }
-
- public void testGetProposalsMultipleAddresses() {
- IContentProposal[] result;
-
- MockTask task = new MockTask(null, "1", null);
- task.setOwner("foo");
- PersonProposalProvider provider = new PersonProposalProvider(task, (TaskData) null);
-
- result = provider.getProposals("f,xx", 1);
- assertNotNull(result);
- assertEquals(1, result.length);
- assertEquals("foo,xx", result[0].getContent());
- assertEquals("foo", result[0].getLabel());
- assertEquals(3, result[0].getCursorPosition());
-
- result = provider.getProposals("f xx", 1);
- assertNotNull(result);
- assertEquals(1, result.length);
- assertEquals("foo xx", result[0].getContent());
- assertEquals("foo", result[0].getLabel());
- assertEquals(3, result[0].getCursorPosition());
-
- result = provider.getProposals("a,xx", 1);
- assertNotNull(result);
- assertEquals(0, result.length);
-
- result = provider.getProposals("xx,f", 4);
- assertNotNull(result);
- assertEquals(1, result.length);
- assertEquals("xx,foo", result[0].getContent());
- assertEquals("foo", result[0].getLabel());
- assertEquals(6, result[0].getCursorPosition());
-
- result = provider.getProposals("xx f", 4);
- assertNotNull(result);
- assertEquals(1, result.length);
- assertEquals("xx foo", result[0].getContent());
- assertEquals("foo", result[0].getLabel());
- assertEquals(6, result[0].getCursorPosition());
-
- result = provider.getProposals("xx,a", 4);
- assertNotNull(result);
- assertEquals(0, result.length);
-
- result = provider.getProposals("xyz,f,yy", 4);
- assertNotNull(result);
- assertEquals(1, result.length);
- assertEquals("xyz,foo,yy", result[0].getContent());
- assertEquals("foo", result[0].getLabel());
- assertEquals(7, result[0].getCursorPosition());
-
- result = provider.getProposals("xx f yy", 4);
- assertNotNull(result);
- assertEquals(1, result.length);
- assertEquals("xx foo yy", result[0].getContent());
- assertEquals("foo", result[0].getLabel());
- assertEquals(6, result[0].getCursorPosition());
-
- result = provider.getProposals("xx,a,yy", 4);
- assertNotNull(result);
- assertEquals(0, result.length);
-
- result = provider.getProposals("xx,,yy", 3);
- assertNotNull(result);
- assertEquals(1, result.length);
- assertEquals("xx,foo,yy", result[0].getContent());
- assertEquals("foo", result[0].getLabel());
- assertEquals(6, result[0].getCursorPosition());
-
- result = provider.getProposals("x yy", 2);
- assertNotNull(result);
- assertEquals(1, result.length);
- assertEquals("x foo", result[0].getContent());
- assertEquals("foo", result[0].getLabel());
- assertEquals(5, result[0].getCursorPosition());
-
- result = provider.getProposals(", ", 1);
- assertNotNull(result);
- assertEquals(1, result.length);
- assertEquals(",foo ", result[0].getContent());
- assertEquals("foo", result[0].getLabel());
- assertEquals(4, result[0].getCursorPosition());
-
- result = provider.getProposals(", ", 0);
- assertNotNull(result);
- assertEquals(1, result.length);
- assertEquals("foo, ", result[0].getContent());
- assertEquals("foo", result[0].getLabel());
- assertEquals(3, result[0].getCursorPosition());
- }
-
- public void testConstructorRepositoryUrlKind() throws Exception {
- MockTask task1 = new MockTask(MockRepositoryConnector.REPOSITORY_URL, "1");
- task1.setOwner("foo");
- PersonProposalProvider provider = new PersonProposalProvider(MockRepositoryConnector.REPOSITORY_URL,
- MockRepositoryConnector.REPOSITORY_KIND);
- MockRepositoryQuery query = new MockRepositoryQuery("summary");
- TasksUiPlugin.getTaskList().addQuery(query);
- TasksUiPlugin.getTaskList().addTask(task1, query);
-
- IContentProposal[] result = provider.getProposals("f,xx", 1);
- assertNotNull(result);
- assertEquals(1, result.length);
- assertEquals("foo,xx", result[0].getContent());
- assertEquals("foo", result[0].getLabel());
- assertEquals(3, result[0].getCursorPosition());
- }
-
- public void testCurrentUser() throws Exception {
- TaskTask task = TaskTestUtil.createMockTask("1");
- task.setOwner("user");
- TasksUiPlugin.getTaskList().addTask(task);
- TaskRepository repository = TaskTestUtil.createMockRepository();
- repository.setCredentials(AuthenticationType.REPOSITORY, new AuthenticationCredentials("user", ""), false);
- TasksUi.getRepositoryManager().addRepository(repository);
-
- PersonProposalProvider provider = new PersonProposalProvider(MockRepositoryConnector.REPOSITORY_URL,
- MockRepositoryConnector.REPOSITORY_KIND);
- IContentProposal[] result = provider.getProposals("user", 1);
- assertNotNull(result);
- assertEquals(1, result.length);
- assertTrue(((PersonContentProposal) result[0]).isCurrentUser());
- }
-
-}
diff --git a/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/ProjectRepositoryAssociationTest.java b/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/ProjectRepositoryAssociationTest.java
deleted file mode 100644
index 48559063a..000000000
--- a/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/ProjectRepositoryAssociationTest.java
+++ /dev/null
@@ -1,77 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2004, 2008 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.tasks.tests;
-
-import junit.framework.TestCase;
-
-import org.eclipse.core.resources.IFolder;
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.mylyn.internal.tasks.ui.TasksUiPlugin;
-import org.eclipse.mylyn.resources.tests.ResourceTestUtil;
-import org.eclipse.mylyn.resources.tests.TestProject;
-import org.eclipse.mylyn.tasks.core.TaskRepository;
-
-/**
- * @author Rob Elves
- */
-public class ProjectRepositoryAssociationTest extends TestCase {
-
- private static final String REPOSITORY_URL = "http://mylyn.eclipse.org/bugs222";
-
- private static final String REPOSITORY_KIND = "bugzilla";
-
- private TestProject projectWrapper;
-
- @Override
- protected void setUp() throws Exception {
- super.setUp();
- projectWrapper = new TestProject(this.getClass().getName());
- }
-
- @Override
- protected void tearDown() throws Exception {
- super.tearDown();
- ResourceTestUtil.deleteProject(projectWrapper.getProject());
- TasksUiPlugin.getRepositoryManager().clearRepositories(TasksUiPlugin.getDefault().getRepositoriesFilePath());
- }
-
- public void testRepositoryForProject() throws CoreException {
- assertNull(TasksUiPlugin.getDefault().getRepositoryForResource(projectWrapper.getProject()));
- TaskRepository repository = new TaskRepository(REPOSITORY_KIND, REPOSITORY_URL);
- TasksUiPlugin.getRepositoryManager().addRepository(repository);
- TasksUiPlugin.getDefault().setRepositoryForResource(projectWrapper.getProject(), repository);
- TaskRepository returnedRepository = TasksUiPlugin.getDefault().getRepositoryForResource(
- projectWrapper.getProject());
- assertNotNull(returnedRepository);
- assertEquals(REPOSITORY_KIND, returnedRepository.getConnectorKind());
- assertEquals(REPOSITORY_URL, returnedRepository.getRepositoryUrl());
-
- TasksUiPlugin.getRepositoryManager().removeRepository(repository,
- TasksUiPlugin.getDefault().getRepositoriesFilePath());
- }
-
- public void testRepositoryForFolder() throws CoreException {
- IFolder folder = projectWrapper.createFolder("testFolder");
- assertTrue(folder.exists());
- assertNull(TasksUiPlugin.getDefault().getRepositoryForResource(folder));
- TaskRepository repository = new TaskRepository(REPOSITORY_KIND, REPOSITORY_URL);
- TasksUiPlugin.getRepositoryManager().addRepository(repository);
- TasksUiPlugin.getDefault().setRepositoryForResource(folder, repository);
- TaskRepository returnedRepository = TasksUiPlugin.getDefault().getRepositoryForResource(folder);
- assertNotNull(returnedRepository);
- assertEquals(REPOSITORY_KIND, returnedRepository.getConnectorKind());
- assertEquals(REPOSITORY_URL, returnedRepository.getRepositoryUrl());
-
- TasksUiPlugin.getRepositoryManager().removeRepository(repository,
- TasksUiPlugin.getDefault().getRepositoriesFilePath());
- }
-}
diff --git a/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/QueryExportImportTest.java b/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/QueryExportImportTest.java
deleted file mode 100644
index 9525be803..000000000
--- a/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/QueryExportImportTest.java
+++ /dev/null
@@ -1,290 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2004, 2008 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:
- * Jevgeni Holodkov - initial API and implementation
- *******************************************************************************/
-
-package org.eclipse.mylyn.tasks.tests;
-
-import junit.framework.TestCase;
-
-/**
- * @author Jevgeni Holodkov
- */
-// FIXME fix test
-public class QueryExportImportTest extends TestCase {
-
- public void testRewriteTestCases() {
- }
-
-// private File dest;
-//
-// private TaskListElementImporter taskListWriter;
-//
-// @Override
-// protected void setUp() throws Exception {
-// removeFiles(new File(TasksUiPlugin.getDefault().getDataDirectory()));
-//
-// // Create test export destination directory
-// dest = new File(TasksUiPlugin.getDefault().getDataDirectory() + File.separator + "TestDir");
-// if (dest.exists()) {
-// removeFiles(dest);
-// } else {
-// dest.mkdir();
-// }
-// assertTrue(dest.exists());
-// taskListWriter = TasksUiPlugin.getTaskListWriter();
-//
-// TaskTestUtil.resetTaskListAndRepositories();
-// }
-//
-// @Override
-// protected void tearDown() throws Exception {
-// removeFiles(dest);
-// dest.delete();
-// assertFalse(dest.exists());
-//
-// TaskTestUtil.resetTaskListAndRepositories();
-// }
-//
-// public void testExportImportQuery() throws Exception {
-// List<RepositoryQuery> queries = new ArrayList<RepositoryQuery>();
-//
-// MockRepositoryQuery query1 = new MockRepositoryQuery("Test Query");
-// query1.setRepositoryUrl(MockRepositoryConnector.REPOSITORY_URL);
-// MockRepositoryQuery query2 = new MockRepositoryQuery("Test Query 2");
-// query2.setRepositoryUrl(MockRepositoryConnector.REPOSITORY_URL);
-// queries.add(query1);
-// queries.add(query2);
-//
-// File outFile = new File(dest, "test-query.xml.zip");
-//
-// taskListWriter.writeQueries(queries, outFile);
-// assertTrue(outFile.exists());
-//
-// File inFile = new File(dest, "test-query.xml.zip");
-// List<RepositoryQuery> resultQueries = taskListWriter.readQueries(inFile);
-// assertEquals("2 Queries is imported", 2, resultQueries.size());
-// }
-//
-// public void testImportedQueriesNameConflictResolving1() {
-// TaskRepository repository = new TaskRepository(MockRepositoryConnector.REPOSITORY_KIND,
-// MockRepositoryConnector.REPOSITORY_URL);
-// TasksUiPlugin.getRepositoryManager().addRepository(repository);
-//
-// // create test data
-// List<RepositoryQuery> queries = new ArrayList<RepositoryQuery>();
-//
-// MockRepositoryQuery query1 = new MockRepositoryQuery("Test Query");
-// query1.setRepositoryUrl(repository.getRepositoryUrl());
-// MockRepositoryQuery query2 = new MockRepositoryQuery("Test Query");
-// query2.setRepositoryUrl(repository.getRepositoryUrl());
-// MockRepositoryQuery query3 = new MockRepositoryQuery("Test Query");
-// query3.setRepositoryUrl(repository.getRepositoryUrl());
-//
-// queries.add(query1);
-// queries.add(query2);
-// queries.add(query3);
-//
-// // run tested functionality
-// QueryImportAction action = new QueryImportAction();
-// action.insertQueries(queries);
-//
-// // extract results
-// Set<RepositoryQuery> queriesSet = TasksUiPlugin.getTaskList().getQueries();
-// Map<String, RepositoryQuery> queriesMap = new HashMap<String, RepositoryQuery>();
-// for (RepositoryQuery query : queriesSet) {
-// queriesMap.put(query.getHandleIdentifier(), query);
-// }
-//
-// // check that the actual result is correct
-// assertTrue("'Test Query' query inserted", queriesMap.containsKey("Test Query"));
-// assertTrue("'Test Query[1]' query inserted", queriesMap.containsKey("Test Query[1]"));
-// assertTrue("'Test Query[2]' query inserted", queriesMap.containsKey("Test Query[2]"));
-// }
-//
-// public void testImportedQueriesNameConflictResolving2() {
-// TaskRepository repository = new TaskRepository(MockRepositoryConnector.REPOSITORY_KIND,
-// MockRepositoryConnector.REPOSITORY_URL);
-// TasksUiPlugin.getRepositoryManager().addRepository(repository);
-//
-// // create test data
-// List<RepositoryQuery> queries = new ArrayList<RepositoryQuery>();
-//
-// MockRepositoryQuery query1 = new MockRepositoryQuery("Test2");
-// query1.setRepositoryUrl(repository.getRepositoryUrl());
-// MockRepositoryQuery query2 = new MockRepositoryQuery("Test2[1]");
-// query2.setRepositoryUrl(repository.getRepositoryUrl());
-// MockRepositoryQuery query3 = new MockRepositoryQuery("Test2");
-// query3.setRepositoryUrl(repository.getRepositoryUrl());
-//
-// queries.add(query1);
-// queries.add(query2);
-// queries.add(query3);
-//
-// // run tested functionality
-// QueryImportAction action = new QueryImportAction();
-// action.insertQueries(queries);
-//
-// // extract results
-// Set<RepositoryQuery> queriesSet = TasksUiPlugin.getTaskList().getQueries();
-// Map<String, RepositoryQuery> queriesMap = new HashMap<String, RepositoryQuery>();
-// for (RepositoryQuery query : queriesSet) {
-// queriesMap.put(query.getHandleIdentifier(), query);
-// }
-//
-// // check that the actual result is correct
-// assertTrue("'Test2' query inserted", queriesMap.containsKey("Test2"));
-// assertTrue("'Test2[1]' query inserted", queriesMap.containsKey("Test2[1]"));
-// assertTrue("'Test2[2]' query inserted", queriesMap.containsKey("Test2[2]"));
-//
-// }
-//
-// public void testImportedBadQueriesNameConflictResolving() {
-// TaskRepository repository = new TaskRepository(MockRepositoryConnector.REPOSITORY_KIND,
-// MockRepositoryConnector.REPOSITORY_URL);
-// TasksUiPlugin.getRepositoryManager().addRepository(repository);
-//
-// // create test data
-// List<RepositoryQuery> queries = new ArrayList<RepositoryQuery>();
-//
-// MockRepositoryQuery query1 = new MockRepositoryQuery("Test[-10]");
-// query1.setRepositoryUrl(repository.getRepositoryUrl());
-// MockRepositoryQuery query2 = new MockRepositoryQuery("Test[ABC]");
-// query2.setRepositoryUrl(repository.getRepositoryUrl());
-// MockRepositoryQuery query3 = new MockRepositoryQuery("Test[1]");
-// query3.setRepositoryUrl(repository.getRepositoryUrl());
-// MockRepositoryQuery query4 = new MockRepositoryQuery("Test");
-// query4.setRepositoryUrl(repository.getRepositoryUrl());
-// MockRepositoryQuery query5 = new MockRepositoryQuery("Test");
-// query5.setRepositoryUrl(repository.getRepositoryUrl());
-//
-// queries.add(query1);
-// queries.add(query2);
-// queries.add(query3);
-// queries.add(query4);
-// queries.add(query5);
-//
-// // run tested functionality
-// QueryImportAction action = new QueryImportAction();
-// action.insertQueries(queries);
-//
-// // extract results
-// Set<RepositoryQuery> queriesSet = TasksUiPlugin.getTaskList().getQueries();
-// Map<String, RepositoryQuery> queriesMap = new HashMap<String, RepositoryQuery>();
-// for (RepositoryQuery query : queriesSet) {
-// queriesMap.put(query.getHandleIdentifier(), query);
-// }
-//
-// // check that the actual result is correct
-// assertTrue("'Test[-10]' query inserted", queriesMap.containsKey("Test[-10]"));
-// assertTrue("'Test[ABC]' query inserted", queriesMap.containsKey("Test[ABC]"));
-// assertTrue("'Test[1]' query inserted", queriesMap.containsKey("Test[1]"));
-// assertTrue("'Test' query inserted", queriesMap.containsKey("Test"));
-// assertTrue("Another 'Test' query inserted", queriesMap.containsKey("Test[2]"));
-// }
-//
-// public void testImportedBadQueries() {
-// TaskRepository repository = new TaskRepository(MockRepositoryConnector.REPOSITORY_KIND,
-// MockRepositoryConnector.REPOSITORY_URL);
-// TasksUiPlugin.getRepositoryManager().addRepository(repository);
-//
-// // create test data
-// List<RepositoryQuery> queries = new ArrayList<RepositoryQuery>();
-//
-// MockRepositoryQuery query1 = new MockRepositoryQuery("Test Query");
-// query1.setRepositoryUrl(repository.getRepositoryUrl());
-// MockRepositoryQuery query2 = new MockRepositoryQuery("Bad Query");
-// query2.setRepositoryUrl("bad url");
-//
-// queries.add(query1);
-// queries.add(query2);
-//
-// // run tested functionality
-// QueryImportAction action = new QueryImportAction();
-// List<RepositoryQuery> badQueries = action.insertQueries(queries);
-//
-// // extract results
-// Set<RepositoryQuery> queriesSet = TasksUiPlugin.getTaskList().getQueries();
-// Map<String, RepositoryQuery> queriesMap = new HashMap<String, RepositoryQuery>();
-// for (RepositoryQuery query : queriesSet) {
-// queriesMap.put(query.getHandleIdentifier(), query);
-// }
-//
-// // check that the actual result is correct
-// assertEquals("There is a bad query", 1, badQueries.size());
-// assertEquals(query2, badQueries.get(0));
-// assertTrue("'Test Query' query inserted", queriesMap.containsKey("Test Query"));
-// }
-//
-// public void testExportImportQueryWithRepositoryInfo() throws Exception {
-// TaskRepository repository = new TaskRepository(MockRepositoryConnector.REPOSITORY_KIND,
-// MockRepositoryConnector.REPOSITORY_URL);
-// TasksUiPlugin.getRepositoryManager().addRepository(repository);
-//
-// // create test data
-// List<RepositoryQuery> queries = new ArrayList<RepositoryQuery>();
-// MockRepositoryQuery query1 = new MockRepositoryQuery("Test Query");
-// query1.setRepositoryUrl(repository.getRepositoryUrl());
-// queries.add(query1);
-//
-// File outFile = new File(dest, "test-repository-query.xml.zip");
-//
-// taskListWriter.writeQueries(queries, outFile);
-//
-// assertTrue(outFile.exists());
-//
-// List<String> files = new ArrayList<String>();
-// ZipInputStream inputStream = new ZipInputStream(new FileInputStream(outFile));
-// ZipEntry entry = null;
-// while ((entry = inputStream.getNextEntry()) != null) {
-// files.add(entry.getName());
-// }
-// inputStream.close();
-//
-// assertTrue("exported file contains a file with queries", files.contains(ITasksCoreConstants.OLD_TASK_LIST_FILE));
-// assertTrue("exported file contains a file with repositories",
-// files.contains(TaskRepositoryManager.OLD_REPOSITORIES_FILE));
-//
-// TasksUiPlugin.getRepositoryManager().clearRepositories(TasksUiPlugin.getDefault().getRepositoriesFilePath());
-// assertTrue("There are currently no repositories defined", TasksUiPlugin.getRepositoryManager().getRepository(
-// MockRepositoryConnector.REPOSITORY_URL) == null);
-//
-// List<RepositoryQuery> resultQueries = taskListWriter.readQueries(outFile);
-// Set<TaskRepository> repositories = taskListWriter.readRepositories(outFile);
-//
-// TasksUiPlugin.getRepositoryManager().insertRepositories(repositories,
-// TasksUiPlugin.getDefault().getRepositoriesFilePath());
-// QueryImportAction action = new QueryImportAction();
-// action.insertQueries(resultQueries);
-//
-// // extract results
-// Set<RepositoryQuery> queriesSet = TasksUiPlugin.getTaskList().getQueries();
-// Map<String, RepositoryQuery> queriesMap = new HashMap<String, RepositoryQuery>();
-// for (RepositoryQuery query : queriesSet) {
-// queriesMap.put(query.getHandleIdentifier(), query);
-// }
-//
-// // check that the actual result is correct
-// assertTrue("'Test Query' query inserted", queriesMap.containsKey("Test Query"));
-// assertTrue("1 repository is loaded", TasksUiPlugin.getRepositoryManager().getRepository(
-// MockRepositoryConnector.REPOSITORY_URL) != null);
-// }
-//
-// private void removeFiles(File root) {
-// if (root.isDirectory()) {
-// for (File file : root.listFiles()) {
-// if (file.isDirectory()) {
-// removeFiles(file);
-// }
-// file.delete();
-// }
-// }
-// }
-
-}
diff --git a/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/RefactorRepositoryUrlOperationTest.java b/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/RefactorRepositoryUrlOperationTest.java
deleted file mode 100644
index 1f2c123d9..000000000
--- a/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/RefactorRepositoryUrlOperationTest.java
+++ /dev/null
@@ -1,206 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2004, 2008 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.tasks.tests;
-
-import java.io.File;
-import java.util.Calendar;
-
-import junit.framework.TestCase;
-
-import org.eclipse.core.runtime.NullProgressMonitor;
-import org.eclipse.mylyn.internal.context.core.ContextCorePlugin;
-import org.eclipse.mylyn.internal.context.core.InteractionContext;
-import org.eclipse.mylyn.internal.context.core.InteractionContextManager;
-import org.eclipse.mylyn.internal.tasks.core.AbstractTask;
-import org.eclipse.mylyn.internal.tasks.core.ITasksCoreConstants;
-import org.eclipse.mylyn.internal.tasks.core.RepositoryQuery;
-import org.eclipse.mylyn.internal.tasks.core.TaskList;
-import org.eclipse.mylyn.internal.tasks.ui.RefactorRepositoryUrlOperation;
-import org.eclipse.mylyn.internal.tasks.ui.TasksUiPlugin;
-import org.eclipse.mylyn.monitor.core.InteractionEvent;
-import org.eclipse.mylyn.tasks.core.IRepositoryQuery;
-import org.eclipse.mylyn.tasks.core.ITask;
-import org.eclipse.mylyn.tasks.core.TaskRepository;
-import org.eclipse.mylyn.tasks.core.data.ITaskDataWorkingCopy;
-import org.eclipse.mylyn.tasks.core.data.TaskAttributeMapper;
-import org.eclipse.mylyn.tasks.core.data.TaskData;
-import org.eclipse.mylyn.tasks.tests.connector.MockRepositoryConnector;
-import org.eclipse.mylyn.tasks.tests.connector.MockRepositoryQuery;
-import org.eclipse.mylyn.tasks.tests.connector.MockTask;
-import org.eclipse.mylyn.tasks.ui.TasksUi;
-import org.eclipse.mylyn.tasks.ui.TasksUiUtil;
-
-/**
- * @author Robert Elves
- * @author Steffen Pingel
- */
-public class RefactorRepositoryUrlOperationTest extends TestCase {
-
- private TaskList taskList;
-
- @Override
- protected void setUp() throws Exception {
- super.setUp();
- taskList = TasksUiPlugin.getTaskList();
- TaskTestUtil.resetTaskList();
- }
-
- public void testMigrateTaskContextFiles() throws Exception {
- File fileA = ContextCorePlugin.getContextStore().getFileForContext("http://a-1");
- fileA.createNewFile();
- fileA.deleteOnExit();
- assertTrue(fileA.exists());
- new RefactorRepositoryUrlOperation("http://a", "http://b").run(new NullProgressMonitor());
- File fileB = ContextCorePlugin.getContextStore().getFileForContext("http://b-1");
- assertTrue(fileB.exists());
- assertFalse(fileA.exists());
- }
-
- public void testMigrateQueryUrlHandles() throws Exception {
- RepositoryQuery query = new MockRepositoryQuery("mquery");
- query.setRepositoryUrl("http://foo.bar");
- query.setUrl("http://foo.bar/b");
- taskList.addQuery(query);
- assertTrue(taskList.getRepositoryQueries("http://foo.bar").size() > 0);
- new RefactorRepositoryUrlOperation("http://foo.bar", "http://bar.baz").run(new NullProgressMonitor());
- assertTrue(taskList.getRepositoryQueries("http://foo.bar").size() == 0);
- assertTrue(taskList.getRepositoryQueries("http://bar.baz").size() > 0);
- IRepositoryQuery changedQuery = taskList.getRepositoryQueries("http://bar.baz").iterator().next();
- assertEquals("http://bar.baz/b", changedQuery.getUrl());
- }
-
- public void testMigrateQueryHandles() throws Exception {
- RepositoryQuery query = new MockRepositoryQuery("mquery");
- query.setRepositoryUrl("http://a");
- taskList.addQuery(query);
- new RefactorRepositoryUrlOperation("http://a", "http://b").run(new NullProgressMonitor());
- assertFalse(taskList.getRepositoryQueries("http://b").isEmpty());
- assertTrue(taskList.getRepositoryQueries("http://a").isEmpty());
- }
-
- public void testMigrateTaskHandles() throws Exception {
- AbstractTask task = new MockTask("http://a", "123");
- AbstractTask task2 = new MockTask("http://other", "other");
- taskList.addTask(task);
- taskList.addTask(task2);
-
- TaskRepository repository = new TaskRepository(MockRepositoryConnector.REPOSITORY_KIND, "http://a");
- TasksUi.getRepositoryManager().addRepository(repository);
- TaskRepository repository2 = new TaskRepository(MockRepositoryConnector.REPOSITORY_KIND, "http://other");
- TasksUi.getRepositoryManager().addRepository(repository2);
-
- try {
- TaskData taskData = new TaskData(new TaskAttributeMapper(repository), task.getConnectorKind(),
- task.getRepositoryUrl(), task.getTaskId());
- TasksUiPlugin.getTaskDataManager().putUpdatedTaskData(task, taskData, true);
-
- TaskData taskData2 = new TaskData(new TaskAttributeMapper(repository2), task2.getConnectorKind(),
- task2.getRepositoryUrl(), task2.getTaskId());
- taskData2.getRoot().createAttribute("comment").setValue("TEST");
- TasksUiPlugin.getTaskDataManager().putUpdatedTaskData(task2, taskData2, true);
-
- new RefactorRepositoryUrlOperation("http://a", "http://b").run(new NullProgressMonitor());
- repository.setRepositoryUrl("http://b");
- assertNull(taskList.getTask("http://a-123"));
- assertNotNull(taskList.getTask("http://b-123"));
- assertNotNull(TasksUi.getTaskDataManager().getTaskData(task));
- TaskData otherData = TasksUi.getTaskDataManager().getTaskData(task2);
- assertNotNull(otherData);
- assertEquals("TEST", otherData.getRoot().getAttribute("comment").getValue());
- } finally {
- TasksUiPlugin.getTaskDataManager().deleteTaskData(task);
- TasksUiPlugin.getTaskDataManager().deleteTaskData(task2);
- }
- }
-
- public void testMigrateTaskHandlesWithExplicitSet() throws Exception {
- AbstractTask task = new MockTask("http://aa", "123");
- task.setUrl("http://aa/task/123");
- taskList.addTask(task);
- new RefactorRepositoryUrlOperation("http://aa", "http://bb").run(new NullProgressMonitor());
- assertNull(taskList.getTask("http://aa-123"));
- assertNotNull(taskList.getTask("http://bb-123"));
- assertEquals("http://bb/task/123", task.getUrl());
- }
-
- public void testRefactorMetaContextHandles() throws Exception {
- String firstUrl = "http://repository1.com/bugs";
- String secondUrl = "http://repository2.com/bugs";
- AbstractTask task1 = new MockTask(firstUrl, "1");
- AbstractTask task2 = new MockTask(firstUrl, "2");
- taskList.addTask(task1);
- taskList.addTask(task2);
- Calendar startDate = Calendar.getInstance();
- Calendar endDate = Calendar.getInstance();
- endDate.add(Calendar.MINUTE, 5);
-
- Calendar startDate2 = Calendar.getInstance();
- startDate2.add(Calendar.MINUTE, 15);
- Calendar endDate2 = Calendar.getInstance();
- endDate2.add(Calendar.MINUTE, 25);
-
- ContextCorePlugin.getContextManager().resetActivityMetaContext();
- InteractionContext metaContext = ContextCorePlugin.getContextManager().getActivityMetaContext();
- assertEquals(0, metaContext.getInteractionHistory().size());
-
- ContextCorePlugin.getContextManager().processActivityMetaContextEvent(
- new InteractionEvent(InteractionEvent.Kind.ATTENTION,
- InteractionContextManager.ACTIVITY_STRUCTUREKIND_TIMING, task1.getHandleIdentifier(), "origin",
- null, InteractionContextManager.ACTIVITY_DELTA_ADDED, 1f, startDate.getTime(),
- endDate.getTime()));
-
- ContextCorePlugin.getContextManager().processActivityMetaContextEvent(
- new InteractionEvent(InteractionEvent.Kind.ATTENTION,
- InteractionContextManager.ACTIVITY_STRUCTUREKIND_TIMING, task2.getHandleIdentifier(), "origin",
- null, InteractionContextManager.ACTIVITY_DELTA_ADDED, 1f, startDate2.getTime(),
- endDate2.getTime()));
-
- assertEquals(2, metaContext.getInteractionHistory().size());
- assertEquals(60 * 1000 * 5, TasksUiPlugin.getTaskActivityManager().getElapsedTime(task1));
- assertEquals(2 * 60 * 1000 * 5, TasksUiPlugin.getTaskActivityManager().getElapsedTime(task2));
- new RefactorRepositoryUrlOperation(firstUrl, secondUrl).run(new NullProgressMonitor());
- metaContext = ContextCorePlugin.getContextManager().getActivityMetaContext();
- assertEquals(2, metaContext.getInteractionHistory().size());
- assertEquals(60 * 1000 * 5, TasksUiPlugin.getTaskActivityManager().getElapsedTime(new MockTask(secondUrl, "1")));
- assertEquals(2 * 60 * 1000 * 5, TasksUiPlugin.getTaskActivityManager().getElapsedTime(
- new MockTask(secondUrl, "2")));
- assertEquals(secondUrl + "-1", metaContext.getInteractionHistory().get(0).getStructureHandle());
- }
-
- public void testMigrateTaskHandlesUnsubmittedTask() throws Exception {
- ITask task = TasksUiUtil.createOutgoingNewTask(MockRepositoryConnector.REPOSITORY_KIND, "http://a");
- String handleIdentifier = task.getHandleIdentifier();
- taskList.addTask(task);
- assertEquals("http://a", task.getAttribute(ITasksCoreConstants.ATTRIBUTE_OUTGOING_NEW_REPOSITORY_URL));
-
- TaskRepository repository = new TaskRepository(MockRepositoryConnector.REPOSITORY_KIND, "http://a");
- TasksUi.getRepositoryManager().addRepository(repository);
-
- try {
- TaskData taskData = new TaskData(new TaskAttributeMapper(repository), repository.getConnectorKind(),
- repository.getRepositoryUrl(), "");
- ITaskDataWorkingCopy workingCopy = TasksUi.getTaskDataManager().createWorkingCopy(task, taskData);
- workingCopy.save(null, null);
-
- new RefactorRepositoryUrlOperation("http://a", "http://b").run(new NullProgressMonitor());
- repository.setRepositoryUrl("http://b");
- assertEquals(task, taskList.getTask(handleIdentifier));
- assertEquals("http://b", task.getAttribute(ITasksCoreConstants.ATTRIBUTE_OUTGOING_NEW_REPOSITORY_URL));
- taskData = TasksUi.getTaskDataManager().getTaskData(task);
- assertNotNull(taskData);
- assertEquals("http://b", taskData.getRepositoryUrl());
- } finally {
- TasksUiPlugin.getTaskDataManager().deleteTaskData(task);
- }
- }
-
-}
diff --git a/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/RepositorySettingsPageTest.java b/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/RepositorySettingsPageTest.java
deleted file mode 100644
index 8034618fb..000000000
--- a/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/RepositorySettingsPageTest.java
+++ /dev/null
@@ -1,268 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2004, 2008 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.tasks.tests;
-
-import junit.framework.TestCase;
-
-import org.eclipse.jface.preference.StringFieldEditor;
-import org.eclipse.mylyn.commons.net.AuthenticationType;
-import org.eclipse.mylyn.internal.tasks.ui.TasksUiPlugin;
-import org.eclipse.mylyn.tasks.core.TaskRepository;
-import org.eclipse.mylyn.tasks.tests.connector.MockRepositoryConnector;
-import org.eclipse.mylyn.tasks.tests.connector.MockRepositoryConnectorUi;
-import org.eclipse.mylyn.tasks.ui.wizards.AbstractRepositorySettingsPage;
-import org.eclipse.swt.SWT;
-import org.eclipse.swt.widgets.Button;
-import org.eclipse.swt.widgets.Composite;
-import org.eclipse.swt.widgets.Event;
-import org.eclipse.swt.widgets.Shell;
-import org.eclipse.ui.PlatformUI;
-
-/**
- * @author Steffen Pingel
- */
-public class RepositorySettingsPageTest extends TestCase {
-
- public void testNeedsEncoding() {
- TaskRepository repository = new TaskRepository(MockRepositoryConnector.REPOSITORY_KIND, "http://localhost/");
- repository.setCharacterEncoding("UTF-8");
-
- MockRepositorySettingsPage page = new MockRepositorySettingsPage(repository);
- page.setNeedsEncoding(true);
-
- Shell shell = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell();
- page.createControl(shell);
- page.setVisible(true);
-
- TaskRepository repository2 = page.createTaskRepository();
- assertEquals("UTF-8", repository2.getCharacterEncoding());
- }
-
- public void testNeedsEncodingFalse() {
- MockRepositorySettingsPage page = new MockRepositorySettingsPage(null);
- page.setNeedsEncoding(false);
-
- Shell shell = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell();
- page.createControl(shell);
- page.setVisible(true);
-
- page.createTaskRepository();
- }
-
- public void testNeedsAnonyoumousLoginFalse() {
- MockRepositorySettingsPage page = new MockRepositorySettingsPage(null);
- page.setNeedsAnonymousLogin(false);
-
- Shell shell = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell();
- page.createControl(shell);
- page.setVisible(true);
-
- assertNull(page.getAnonymousButton());
- }
-
- public void testNeedsAnonyoumousLoginNoRepository() {
- MockRepositorySettingsPage page = new MockRepositorySettingsPage(null);
- page.setNeedsAnonymousLogin(true);
-
- Shell shell = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell();
- page.createControl(shell);
- page.setVisible(true);
-
- assertNotNull(page.getAnonymousButton());
-
- assertTrue(page.getAnonymousButton().getSelection());
- assertFalse(page.getUserNameEditor().getTextControl(page.getParent()).isEnabled());
- assertFalse(page.getPasswordEditor().getTextControl(page.getParent()).isEnabled());
- assertEquals("", page.getUserName());
- assertEquals("", page.getPassword());
- page.getAnonymousButton().setSelection(false);
- }
-
- public void testNeedsAnonyoumousLogin() {
- TaskRepository repository = new TaskRepository(MockRepositoryConnector.REPOSITORY_KIND, "http://localhost/");
-
- TasksUiPlugin.getDefault().addRepositoryConnectorUi(new MockRepositoryConnectorUi());
-
- MockRepositorySettingsPage page = new MockRepositorySettingsPage(repository);
- page.setNeedsAnonymousLogin(true);
-
- Shell shell = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell();
- page.createControl(shell);
- page.setVisible(true);
-
- assertNotNull(page.getAnonymousButton());
-
- assertTrue(page.getAnonymousButton().getSelection());
- assertFalse(page.getUserNameEditor().getTextControl(page.getParent()).isEnabled());
- assertFalse(page.getPasswordEditor().getTextControl(page.getParent()).isEnabled());
- assertEquals("", page.getUserName());
- assertEquals("", page.getPassword());
-
- page.getAnonymousButton().setSelection(false);
- page.getAnonymousButton().notifyListeners(SWT.Selection, new Event());
- assertTrue(page.getUserNameEditor().getTextControl(page.getParent()).isEnabled());
- assertTrue(page.getPasswordEditor().getTextControl(page.getParent()).isEnabled());
- page.getUserNameEditor().setStringValue("user");
- page.getPasswordEditor().setStringValue("password");
- assertEquals("user", page.getUserName());
- assertEquals("password", page.getPassword());
-
- page.getAnonymousButton().setSelection(true);
- page.getAnonymousButton().notifyListeners(SWT.Selection, new Event());
- assertFalse(page.getUserNameEditor().getTextControl(page.getParent()).isEnabled());
- assertFalse(page.getPasswordEditor().getTextControl(page.getParent()).isEnabled());
- assertEquals("", page.getUserName());
- assertEquals("", page.getPassword());
-
- page.getAnonymousButton().setSelection(false);
- page.getAnonymousButton().notifyListeners(SWT.Selection, new Event());
- assertTrue(page.getUserNameEditor().getTextControl(page.getParent()).isEnabled());
- assertTrue(page.getPasswordEditor().getTextControl(page.getParent()).isEnabled());
- assertEquals("user", page.getUserNameEditor().getStringValue());
- assertEquals("password", page.getPasswordEditor().getStringValue());
- assertEquals("user", page.getUserName());
- assertEquals("password", page.getPassword());
- }
-
- public void testSavePassword() {
- TaskRepository repository = new TaskRepository(MockRepositoryConnector.REPOSITORY_KIND, "http://localhost/");
- TasksUiPlugin.getDefault().addRepositoryConnectorUi(new MockRepositoryConnectorUi());
-
- assertTrue(repository.getSavePassword(AuthenticationType.REPOSITORY));
-
- MockRepositorySettingsPage page = new MockRepositorySettingsPage(repository);
- try {
- Shell shell = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell();
- page.createControl(shell);
- assertTrue(page.getSavePassword());
- } finally {
- page.dispose();
- }
-
- repository.setCredentials(AuthenticationType.REPOSITORY, null, false);
- page = new MockRepositorySettingsPage(repository);
- try {
- Shell shell = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell();
- page.createControl(shell);
- assertFalse(page.getSavePassword());
- } finally {
- page.dispose();
- }
- }
-
- public void testSaveHttpPassword() {
- TaskRepository repository = new TaskRepository(MockRepositoryConnector.REPOSITORY_KIND, "http://localhost/");
- TasksUiPlugin.getDefault().addRepositoryConnectorUi(new MockRepositoryConnectorUi());
-
- assertTrue(repository.getSavePassword(AuthenticationType.HTTP));
-
- MockRepositorySettingsPage page = new MockRepositorySettingsPage(repository);
- page.setNeedsHttpAuth(true);
- try {
- Shell shell = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell();
- page.createControl(shell);
- assertTrue(page.getSaveHttpPassword());
- } finally {
- page.dispose();
- }
-
- repository.setCredentials(AuthenticationType.HTTP, null, false);
-// page = new MockRepositorySettingsPage(repository);
- page.setNeedsHttpAuth(true);
- try {
- Shell shell = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell();
- page.createControl(shell);
- assertFalse(page.getSaveHttpPassword());
- } finally {
- page.dispose();
- }
- }
-
- public void testSaveProxyPassword() {
- TaskRepository repository = new TaskRepository(MockRepositoryConnector.REPOSITORY_KIND, "http://localhost/");
- TasksUiPlugin.getDefault().addRepositoryConnectorUi(new MockRepositoryConnectorUi());
-
- assertTrue(repository.getSavePassword(AuthenticationType.PROXY));
-
- MockRepositorySettingsPage page = new MockRepositorySettingsPage(repository);
- page.setNeedsProxy(true);
- try {
- Shell shell = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell();
- page.createControl(shell);
- assertTrue(page.getSaveProxyPassword());
- } finally {
- page.dispose();
- }
-
- repository.setCredentials(AuthenticationType.PROXY, null, false);
- page = new MockRepositorySettingsPage(repository);
- page.setNeedsProxy(true);
- try {
- Shell shell = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell();
- page.createControl(shell);
- assertFalse(page.getSaveProxyPassword());
- } finally {
- page.dispose();
- }
- }
-
- private class MockRepositorySettingsPage extends AbstractRepositorySettingsPage {
-
- public MockRepositorySettingsPage(TaskRepository taskRepository) {
- super("title", "summary", taskRepository);
- }
-
- @Override
- protected void createAdditionalControls(Composite parent) {
- // ignore
- }
-
- @Override
- protected boolean isValidUrl(String name) {
- // ignore
- return false;
- }
-
- @Override
- protected void validateSettings() {
- // ignore
- }
-
- Button getAnonymousButton() {
- return anonymousButton;
- }
-
- StringFieldEditor getUserNameEditor() {
- return repositoryUserNameEditor;
- }
-
- StringFieldEditor getPasswordEditor() {
- return repositoryPasswordEditor;
- }
-
- Composite getParent() {
- return compositeContainer;
- }
-
- @Override
- protected Validator getValidator(TaskRepository repository) {
- // ignore
- return null;
- }
-
- @Override
- public String getConnectorKind() {
- return MockRepositoryConnector.REPOSITORY_KIND;
- }
- }
-
-}
diff --git a/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/RepositoryTemplateManagerTest.java b/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/RepositoryTemplateManagerTest.java
deleted file mode 100644
index e6aa8e17f..000000000
--- a/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/RepositoryTemplateManagerTest.java
+++ /dev/null
@@ -1,47 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2004, 2008 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.tasks.tests;
-
-import junit.framework.TestCase;
-
-import org.eclipse.mylyn.internal.tasks.core.RepositoryTemplateManager;
-import org.eclipse.mylyn.internal.tasks.ui.TaskRepositoryUtil;
-import org.eclipse.mylyn.internal.tasks.ui.TasksUiPlugin;
-import org.eclipse.mylyn.tasks.core.RepositoryTemplate;
-import org.eclipse.mylyn.tasks.tests.connector.MockRepositoryConnector;
-
-/**
- * @author Steffen Pingel
- */
-public class RepositoryTemplateManagerTest extends TestCase {
-
- private RepositoryTemplateManager manager;
-
- @Override
- protected void setUp() throws Exception {
- manager = TasksUiPlugin.getRepositoryTemplateManager();
- }
-
- public void testTemplateDeletion() {
- RepositoryTemplate template = new RepositoryTemplate("Mock", MockRepositoryConnector.REPOSITORY_URL, "", "",
- "", "", "", "", false, true);
- try {
- manager.addTemplate(MockRepositoryConnector.REPOSITORY_KIND, template);
- assertFalse(TaskRepositoryUtil.isAddAutomaticallyDisabled(MockRepositoryConnector.REPOSITORY_URL));
- TaskRepositoryUtil.disableAddAutomatically(MockRepositoryConnector.REPOSITORY_URL);
- assertTrue(TaskRepositoryUtil.isAddAutomaticallyDisabled(MockRepositoryConnector.REPOSITORY_URL));
- } finally {
- manager.removeTemplate(MockRepositoryConnector.REPOSITORY_KIND, template);
- }
- }
-
-}
diff --git a/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/ScheduledPresentationTest.java b/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/ScheduledPresentationTest.java
deleted file mode 100644
index c64bc7a5b..000000000
--- a/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/ScheduledPresentationTest.java
+++ /dev/null
@@ -1,181 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2004, 2008 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.tasks.tests;
-
-import java.util.Calendar;
-import java.util.Set;
-
-import junit.framework.TestCase;
-
-import org.eclipse.mylyn.internal.context.core.ContextCorePlugin;
-import org.eclipse.mylyn.internal.context.core.InteractionContextManager;
-import org.eclipse.mylyn.internal.tasks.core.AbstractTask;
-import org.eclipse.mylyn.internal.tasks.core.DateRange;
-import org.eclipse.mylyn.internal.tasks.core.LocalTask;
-import org.eclipse.mylyn.internal.tasks.core.TaskActivityUtil;
-import org.eclipse.mylyn.internal.tasks.ui.TasksUiPlugin;
-import org.eclipse.mylyn.internal.tasks.ui.views.TaskListInterestFilter;
-import org.eclipse.mylyn.monitor.core.InteractionEvent;
-
-/**
- * @author Rob Elves
- */
-public class ScheduledPresentationTest extends TestCase {
-
- @Override
- protected void setUp() throws Exception {
- ContextCorePlugin.getContextManager().getActivityMetaContext().reset();
- ContextCorePlugin.getContextManager().saveActivityMetaContext();
- TaskTestUtil.resetTaskList();
- TasksUiPlugin.getExternalizationManager().requestSave();
- }
-
- @Override
- protected void tearDown() throws Exception {
- TaskTestUtil.resetTaskList();
- TasksUiPlugin.getExternalizationManager().requestSave();
- }
-
- public void testWeekStartChange() {
- TaskListInterestFilter filter = new TaskListInterestFilter();
- TasksUiPlugin.getTaskActivityManager().setWeekStartDay(Calendar.MONDAY);
- DateRange lastDay = TaskActivityUtil.getCurrentWeek().getDayOfWeek(Calendar.SUNDAY);
- AbstractTask task1 = new LocalTask("task 1", "Task 1");
- TasksUiPlugin.getTaskList().addTask(task1);
- TasksUiPlugin.getTaskActivityManager().setScheduledFor(task1, lastDay);
- assertTrue(filter.isInterestingForThisWeek(null, task1));
-
- TasksUiPlugin.getTaskActivityManager().setWeekStartDay(Calendar.SUNDAY);
- assertFalse(filter.isInterestingForThisWeek(null, task1));
-
- }
-
-// public void testResetAndRollOver() {
-//
-// ScheduledTaskContainer pastWeeks = TasksUiPlugin.getTaskActivityManager().getActivityPast();
-// ScheduledTaskContainer thisWeek = TasksUiPlugin.getTaskActivityManager().getActivityThisWeek();
-// ScheduledTaskContainer nextWeek = TasksUiPlugin.getTaskActivityManager().getActivityNextWeek();
-// ScheduledTaskContainer futureWeeks = TasksUiPlugin.getTaskActivityManager().getActivityFuture();
-//
-// assertEquals(0, thisWeek.getChildren().size());
-// assertTrue(thisWeek.isPresent());
-// assertTrue(nextWeek.isFuture());
-//
-// long pastStartTime = pastWeeks.getEnd().getTimeInMillis();
-// long thisWeekStartTime = thisWeek.getStart().getTimeInMillis();
-// long nextStartTime = nextWeek.getStart().getTimeInMillis();
-// long futureStartTime = futureWeeks.getStart().getTimeInMillis();
-//
-// Calendar pastWeeksTaskStart = Calendar.getInstance();
-// pastWeeksTaskStart.setTimeInMillis(pastStartTime - 10);
-// assertTrue(pastWeeks.includes(pastWeeksTaskStart));
-//
-// Calendar thisWeekTaskStart = Calendar.getInstance();
-// thisWeekTaskStart.setTimeInMillis(thisWeekStartTime + 10);
-// assertTrue(thisWeek.includes(thisWeekTaskStart));
-//
-// Calendar thisWeekTaskStop = Calendar.getInstance();
-// thisWeekTaskStop.setTimeInMillis(thisWeek.getEnd().getTimeInMillis() - 10);
-// assertTrue(thisWeek.includes(thisWeekTaskStop));
-//
-// Calendar nextWeekTaskStart = Calendar.getInstance();
-// nextWeekTaskStart.setTimeInMillis(nextStartTime + 10);
-// assertTrue(nextWeek.includes(nextWeekTaskStart));
-//
-// Calendar futureWeekTaskStart = Calendar.getInstance();
-// futureWeekTaskStart.setTimeInMillis(futureStartTime + 10);
-// assertTrue(futureWeeks.includes(futureWeekTaskStart));
-//
-// AbstractTask task1 = new LocalTask("task 1", "Task 1");
-// TasksUiPlugin.getTaskList().addTask(task1);
-//
-// assertEquals(0, TasksUiPlugin.getTaskActivityManager()
-// .getScheduledTasks(thisWeek.getStart(), thisWeek.getEnd())
-// .size());
-//
-// TasksUiPlugin.getTaskActivityManager().setScheduledFor(task1, thisWeek.getStart().getTime());
-//
-//// TasksUiPlugin.getTaskListManager().parseInteractionEvent(event2);
-// assertEquals(1, TasksUiPlugin.getTaskActivityManager()
-// .getScheduledTasks(thisWeek.getStart(), thisWeek.getEnd())
-// .size());
-// // assertEquals(thisWeekTaskStop.getTime().getTime() -
-// // thisWeekTaskStart.getTime().getTime(), thisWeek
-// // .getTotalElapsed());
-//
-// // ROLL OVER
-// Date oldStart = TasksUiPlugin.getTaskActivityManager().getStartTime();
-// Calendar newStart = Calendar.getInstance();
-// newStart.setTime(oldStart);
-// newStart.add(Calendar.WEEK_OF_MONTH, 1);
-// //TasksUiPlugin.getTaskListManager().snapToStartOfWeek(newStart);
-//
-// TasksUiPlugin.getTaskActivityMonitor().reloadActivityTime();
-//
-// //ScheduledTaskContainer newPastWeeks = TasksUiPlugin.getTaskListManager().getActivityPast();
-// ScheduledTaskContainer newPreviousWeek = TasksUiPlugin.getTaskActivityManager().getActivityPrevious();
-// ScheduledTaskContainer newThisWeek = TasksUiPlugin.getTaskActivityManager().getActivityThisWeek();
-// ScheduledTaskContainer newNextWeek = TasksUiPlugin.getTaskActivityManager().getActivityNextWeek();
-// // DateRangeContainer newFutureWeeks =
-// // MylarTaskListPlugin.getTaskListManager().getActivityFuture();
-//
-// assertTrue(newPreviousWeek.includes(thisWeekTaskStart));
-// assertTrue(newThisWeek.includes(nextWeekTaskStart));
-// assertTrue(newNextWeek.includes(futureWeekTaskStart));
-//
-// assertFalse(newThisWeek.includes(thisWeekTaskStart));
-// assertFalse(newThisWeek.isPresent());
-// assertTrue(newThisWeek.isFuture());
-//
-// assertEquals(0, TasksUiPlugin.getTaskActivityManager().getScheduledTasks(newThisWeek.getStart(),
-// newThisWeek.getEnd()).size());
-// assertEquals(1, TasksUiPlugin.getTaskActivityManager().getScheduledTasks(newPreviousWeek.getStart(),
-// newPreviousWeek.getEnd()).size());
-//
-// TasksUiPlugin.getTaskActivityMonitor().reloadActivityTime();
-// }
-
- public void testScheduledTaskContainer() {
-
- Calendar startDate = Calendar.getInstance();
- startDate.setTimeInMillis(1000);
- Calendar endDate = Calendar.getInstance();
- endDate.setTimeInMillis(2000);
-
- AbstractTask task1 = new LocalTask("task 1", "Task 1");
- AbstractTask task2 = new LocalTask("task 2", "Task 2");
- TasksUiPlugin.getTaskList().addTask(task1);
- TasksUiPlugin.getTaskList().addTask(task2);
-
- InteractionEvent event1 = new InteractionEvent(InteractionEvent.Kind.ATTENTION,
- InteractionContextManager.ACTIVITY_STRUCTUREKIND_TIMING, task1.getHandleIdentifier(),
- InteractionContextManager.ACTIVITY_ORIGINID_WORKBENCH, null,
- InteractionContextManager.ACTIVITY_DELTA_ADDED, 2f, startDate.getTime(), endDate.getTime());
-
- InteractionEvent event2 = new InteractionEvent(InteractionEvent.Kind.ATTENTION,
- InteractionContextManager.ACTIVITY_STRUCTUREKIND_TIMING, task2.getHandleIdentifier(),
- InteractionContextManager.ACTIVITY_ORIGINID_WORKBENCH, null,
- InteractionContextManager.ACTIVITY_DELTA_ADDED, 2f, startDate.getTime(), endDate.getTime());
-
- TasksUiPlugin.getTaskActivityMonitor().parseInteractionEvent(event1, false);
- TasksUiPlugin.getTaskActivityMonitor().parseInteractionEvent(event2, false);
- Calendar start = TaskActivityUtil.getCalendar();
- start.setTimeInMillis(0);
- Calendar end = TaskActivityUtil.getCalendar();
- end.add(Calendar.MINUTE, 2);
- Set<AbstractTask> tasks = TasksUiPlugin.getTaskActivityManager().getActiveTasks(start, end);
- assertEquals(2, tasks.size());
- assertEquals(1000, TasksUiPlugin.getTaskActivityManager().getElapsedTime(task1));
- assertEquals(1000, TasksUiPlugin.getTaskActivityManager().getElapsedTime(task2));
-
- }
-}
diff --git a/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/StackTraceDuplicateDetectorTest.java b/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/StackTraceDuplicateDetectorTest.java
deleted file mode 100644
index a3929262e..000000000
--- a/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/StackTraceDuplicateDetectorTest.java
+++ /dev/null
@@ -1,100 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2004, 2008 Jeff Pound 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:
- * Jeff Pound - initial API and implementation
- * Tasktop Technologies - improvements
- *******************************************************************************/
-
-package org.eclipse.mylyn.tasks.tests;
-
-import junit.framework.TestCase;
-
-import org.eclipse.mylyn.internal.tasks.ui.search.StackTraceDuplicateDetector;
-
-/**
- * @author Jeff Pound
- */
-public class StackTraceDuplicateDetectorTest extends TestCase {
-
- public void testStackTrace() throws Exception {
- String stackTrace = "java.lang.NullPointerException\nat jeff.testing.stack.trace.functionality(jeff.java:481)";
- assertNotNull(StackTraceDuplicateDetector.getStackTraceFromDescription(stackTrace));
- }
-
- public void testNoStackTrace() throws Exception {
- String stackTrace = "this is not really a stacktrace";
- assertNull(StackTraceDuplicateDetector.getStackTraceFromDescription(stackTrace));
- }
-
- public void testStackTraceWithAppendedText() throws Exception {
- String stackTrace = "java.lang.NullPointerException\nat jeff.testing.stack.trace.functionality(jeff.java:481)";
- String extraText = "\nExtra text that isnt' part of the stack trace java:";
- assertEquals(stackTrace + "\n", StackTraceDuplicateDetector.getStackTraceFromDescription(extraText + "\n"
- + stackTrace + "\n"));
- }
-
- public void testStackTraceMisaligned() throws Exception {
- String stackTrace = "java.lang.IllegalStateException: zip file closed\n"
- + " at java.util.zip.ZipFile.ensureOpen (ZipFile.java:518)\n"
- + "at java.util.zip.ZipFile.getEntry (ZipFile.java:251)\n"
- + " at java.util.jar.JarFile.getEntry(JarFile.java:200)\n"
- + "at sun.net.www.protocol.jar.URLJarFile.getEntry\n" + " (URLJarFile.java:90)\n"
- + "at sun.net.www.protocol.jar.JarURLConnection.connect(JarURLConnection.java:112)\n"
- + "at sun.net.www.protocol.jar.JarURLConnection.getInputStream\n" + "(JarURLConnection.java:124)\n"
- + "at org.eclipse.jdt.internal.core.JavaElement\n.getURLContents(JavaElement.java:734)";
- assertEquals(stackTrace, StackTraceDuplicateDetector.getStackTraceFromDescription(stackTrace));
- }
-
- public void testStackTraceSUN() throws Exception {
- // SUN, IBM (no space before brackets, one set of brackets)
- String stackTrace = "java.lang.IllegalStateException: zip file closed\n"
- + " at java.util.zip.ZipFile.ensureOpen(ZipFile.java:518)\n"
- + " at java.util.zip.ZipFile.getEntry(ZipFile.java:251)\n"
- + " at java.util.jar.JarFile.getEntry(JarFile.java:200)\n"
- + " at sun.net.www.protocol.jar.URLJarFile.getEntry(URLJarFile.java:90)\n"
- + " at sun.net.www.protocol.jar.JarURLConnection.connect(JarURLConnection.java:112)\n"
- + " at sun.net.www.protocol.jar.JarURLConnection.getInputStream(JarURLConnection.java:124)\n"
- + " at org.eclipse.jdt.internal.core.JavaElement.getURLContents(JavaElement.java:734)";
- assertEquals(stackTrace, StackTraceDuplicateDetector.getStackTraceFromDescription(stackTrace));
- }
-
- public void testStackTraceGCJ() throws Exception {
- // gcj/gij (path and lib names in additional brackets)
- String stackTrace = "java.lang.Error: Something bad happened\n"
- + " at testcase.main(java.lang.String[]) (Unknown Source)\n"
- + " at gnu.java.lang.MainThread.call_main() (/usr/lib/libgcj.so.6.0.0)\n"
- + " at gnu.java.lang.MainThread.run() (/usr/lib/libgcj.so.6.0.0)";
- assertEquals(stackTrace, StackTraceDuplicateDetector.getStackTraceFromDescription(stackTrace));
- }
-
- public void testStackTraceNoLineNums() throws Exception {
- // ikvm (no line numbers)
- String stackTrace = "java.lang.Error: Something bad happened\n" + " at testcase.main (testcase.java)\n"
- + " at java.lang.reflect.Method.Invoke (Method.java)";
- assertEquals(stackTrace, StackTraceDuplicateDetector.getStackTraceFromDescription(stackTrace));
- }
-
- public void testStackTraceJRockit() throws Exception {
- // jrockit (slash delimiters)
- String stackTrace = "java.lang.Error: Something bad happened\n"
- + " at java/io/BufferedReader.readLine(BufferedReader.java:331)\n"
- + " at java/io/BufferedReader.readLine(BufferedReader.java:362)\n"
- + " at java/util/Properties.load(Properties.java:192)\n"
- + " at java/util/logging/LogManager.readConfiguration(L:555)";
- assertEquals(stackTrace, StackTraceDuplicateDetector.getStackTraceFromDescription(stackTrace));
- }
-
- public void testStackTraceOther() throws Exception {
- // jamvm, sablevm, kaffe, cacao (space before brackets, one set of brackets)
- String stackTrace = "java.lang.Error: Something bad happened\n" + " at testcase.main (testcase.java:3)\n"
- + " at java.lang.VirtualMachine.invokeMain (VirtualMachine.java)\n"
- + " at java.lang.VirtualMachine.main (VirtualMachine.java:108)";
- assertEquals(stackTrace, StackTraceDuplicateDetector.getStackTraceFromDescription(stackTrace));
- }
-
-}
diff --git a/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TaskActivationActionTest.java b/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TaskActivationActionTest.java
deleted file mode 100644
index 1c2e62d72..000000000
--- a/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TaskActivationActionTest.java
+++ /dev/null
@@ -1,50 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2004, 2008 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.tasks.tests;
-
-import junit.framework.TestCase;
-
-import org.eclipse.mylyn.internal.tasks.ui.actions.ToggleTaskActivationAction;
-import org.eclipse.mylyn.tasks.tests.connector.MockTask;
-import org.eclipse.mylyn.tasks.ui.TasksUi;
-
-/**
- * @author Mik Kersten
- */
-public class TaskActivationActionTest extends TestCase {
-
- @Override
- protected void tearDown() throws Exception {
- TasksUi.getTaskActivityManager().deactivateActiveTask();
- }
-
- public void testUpdateOnExternalActivation() {
- MockTask task = new MockTask("test:activation");
- ToggleTaskActivationAction action = new ToggleTaskActivationAction(task);
- assertFalse(action.isChecked());
-
- TasksUi.getTaskActivityManager().activateTask(task);
- assertTrue(action.isChecked());
-
- TasksUi.getTaskActivityManager().deactivateTask(task);
- assertFalse(action.isChecked());
-
- action.dispose();
-
- TasksUi.getTaskActivityManager().activateTask(task);
- assertFalse(action.isChecked());
-
- TasksUi.getTaskActivityManager().deactivateTask(task);
- assertFalse(action.isChecked());
- }
-
-}
diff --git a/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TaskActivationHistoryTest.java b/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TaskActivationHistoryTest.java
deleted file mode 100644
index 44edf4a68..000000000
--- a/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TaskActivationHistoryTest.java
+++ /dev/null
@@ -1,329 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2004, 2008 Frank Becker 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:
- * Frank Becker - initial API and implementation
- *******************************************************************************/
-
-package org.eclipse.mylyn.tasks.tests;
-
-import java.util.Arrays;
-import java.util.HashSet;
-import java.util.List;
-import java.util.Set;
-
-import junit.framework.TestCase;
-
-import org.eclipse.core.runtime.IAdaptable;
-import org.eclipse.mylyn.internal.context.core.ContextCorePlugin;
-import org.eclipse.mylyn.internal.context.ui.ContextUiPlugin;
-import org.eclipse.mylyn.internal.tasks.core.AbstractTask;
-import org.eclipse.mylyn.internal.tasks.core.AbstractTaskContainer;
-import org.eclipse.mylyn.internal.tasks.core.TaskActivationHistory;
-import org.eclipse.mylyn.internal.tasks.core.TaskActivityManager;
-import org.eclipse.mylyn.internal.tasks.core.TaskList;
-import org.eclipse.mylyn.internal.tasks.ui.TasksUiPlugin;
-import org.eclipse.mylyn.internal.tasks.ui.actions.ActivateTaskHistoryDropDownAction;
-import org.eclipse.mylyn.internal.tasks.ui.actions.TaskActivateAction;
-import org.eclipse.mylyn.internal.tasks.ui.util.TasksUiInternal;
-import org.eclipse.mylyn.internal.tasks.ui.views.TaskListView;
-import org.eclipse.mylyn.internal.tasks.ui.workingsets.TaskWorkingSetUpdater;
-import org.eclipse.mylyn.tasks.tests.connector.MockRepositoryQuery;
-import org.eclipse.mylyn.tasks.ui.TasksUi;
-import org.eclipse.ui.IWorkingSet;
-import org.eclipse.ui.IWorkingSetManager;
-import org.eclipse.ui.PlatformUI;
-import org.eclipse.ui.internal.WorkingSet;
-
-/**
- * @author Frank Becker
- * @author Wesley Coelho
- */
-public class TaskActivationHistoryTest extends TestCase {
-
- private TaskActivationHistory history;
-
- private TaskList taskList;
-
- private AbstractTask task1;
-
- private AbstractTask task2;
-
- private AbstractTask task3;
-
- private AbstractTask task4;
-
- private AbstractTask task5;
-
- private ActivateTaskHistoryDropDownAction previousTaskAction;
-
- private TaskActivityManager taskActivityManager;
-
- @Override
- protected void setUp() throws Exception {
- taskActivityManager = TasksUiPlugin.getTaskActivityManager();
- history = taskActivityManager.getTaskActivationHistory();
- taskList = TasksUiPlugin.getTaskList();
-
- taskActivityManager.deactivateActiveTask();
- taskActivityManager.clear();
- ContextCorePlugin.getContextManager().resetActivityMetaContext();
-
- TaskTestUtil.resetTaskList();
-
- task1 = TasksUiInternal.createNewLocalTask("task 1");
- taskList.addTask(task1);
- task2 = TasksUiInternal.createNewLocalTask("task 2");
- taskList.addTask(task2);
- task3 = TasksUiInternal.createNewLocalTask("task 3");
- taskList.addTask(task3);
- task4 = TasksUiInternal.createNewLocalTask("task 4");
- taskList.addTask(task4);
- task5 = TasksUiInternal.createNewLocalTask("task 5");
- taskList.addTask(task5);
-
- previousTaskAction = new ActivateTaskHistoryDropDownAction();
- }
-
- @Override
- protected void tearDown() throws Exception {
- TaskTestUtil.resetTaskList();
- PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().setWorkingSets(new WorkingSet[0]);
- }
-
- public void testWithWorkingSet() {
- MockRepositoryQuery query1 = new MockRepositoryQuery("Query 1");
- MockRepositoryQuery query2 = new MockRepositoryQuery("Query 2");
-
- AbstractTask task11 = TasksUiInternal.createNewLocalTask("Query1 Task 1");
- AbstractTask task12 = TasksUiInternal.createNewLocalTask("Query1 Task 2");
- AbstractTask task21 = TasksUiInternal.createNewLocalTask("Query2 Task 1");
- AbstractTask task22 = TasksUiInternal.createNewLocalTask("Query2 Task 2");
- taskList.addQuery(query1);
- taskList.addQuery(query2);
- createWorkingSet(query1);
- (new TaskActivateAction()).run(task11);
- history.addTask(task11);
- taskList.addTask(task11, query1);
- (new TaskActivateAction()).run(task12);
- history.addTask(task12);
- taskList.addTask(task12, query1);
-
- (new TaskActivateAction()).run(task21);
- history.addTask(task21);
- taskList.addTask(task21, query2);
- (new TaskActivateAction()).run(task22);
- history.addTask(task22);
- taskList.addTask(task22, query2);
-
- List<AbstractTask> prevHistoryList = history.getPreviousTasks();
-
- // Check that the previous history list looks right
- assertTrue(prevHistoryList.size() >= 3);
- assertTrue(prevHistoryList.get(prevHistoryList.size() - 1) == task22);
- assertTrue(prevHistoryList.get(prevHistoryList.size() - 2) == task21);
- assertTrue(prevHistoryList.get(prevHistoryList.size() - 3) == task12);
- assertTrue(prevHistoryList.get(prevHistoryList.size() - 4) == task11);
-
- prevHistoryList = history.getPreviousTasks(TasksUiInternal.getContainersFromWorkingSet(TaskListView.getActiveWorkingSets()));
-
- // Check that the previous history list looks right
- assertTrue(prevHistoryList.size() >= 2);
- assertTrue(prevHistoryList.get(prevHistoryList.size() - 1) == task12);
- assertTrue(prevHistoryList.get(prevHistoryList.size() - 2) == task11);
-
- prevHistoryList = history.getPreviousTasks(new HashSet<AbstractTaskContainer>());
-
- // Check that the previous history list looks right
- assertTrue(prevHistoryList.size() >= 3);
- assertTrue(prevHistoryList.get(prevHistoryList.size() - 1) == task22);
- assertTrue(prevHistoryList.get(prevHistoryList.size() - 2) == task21);
- assertTrue(prevHistoryList.get(prevHistoryList.size() - 3) == task12);
- assertTrue(prevHistoryList.get(prevHistoryList.size() - 4) == task11);
- }
-
- private IWorkingSet createWorkingSet(IAdaptable element) {
- IWorkingSetManager workingSetManager1 = ContextUiPlugin.getDefault().getWorkbench().getWorkingSetManager();
- IWorkingSet workingSet = workingSetManager1.createWorkingSet("Task Working Set", new IAdaptable[] { element });
- workingSet.setId(TaskWorkingSetUpdater.ID_TASK_WORKING_SET);
- assertTrue(Arrays.asList(workingSet.getElements()).contains(element));
- Set<IWorkingSet> sets = TaskListView.getActiveWorkingSets();
- sets.add(workingSet);
- PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().setWorkingSets(
- sets.toArray(new WorkingSet[sets.size()]));
- return workingSet;
- }
-
- /**
- * Tests the next task and previous task navigation.
- */
- public void testBasicHistoryNavigation() {
- // NOTE: legacy test
- TasksUi.getTaskActivityManager().activateTask(task1);
- history.addTask(task1);
- TasksUi.getTaskActivityManager().activateTask(task2);
- history.addTask(task2);
- TasksUi.getTaskActivityManager().activateTask(task3);
- history.addTask(task3);
-
- assertTrue(task3.isActive());
- assertFalse(task2.isActive());
- assertFalse(task1.isActive());
- // order 1 (2) 3
-
- previousTaskAction.run();
- // order (1) 3 2
- assertEquals(task2, taskActivityManager.getActiveTask());
- assertTrue(task2.isActive());
-
- previousTaskAction.run();
- // order (1) 2 3
- assertEquals(task1, taskActivityManager.getActiveTask());
- assertTrue(task1.isActive());
-
- previousTaskAction.run();
- // order (1) 2 3
- assertEquals(task1, taskActivityManager.getActiveTask());
- assertTrue(task1.isActive());
-
- // taskView.getPreviousTaskAction().run();
- // assertTrue(task1.isActive());
- //
- // taskView.getPreviousTaskAction().run();
- // assertTrue(task1.isActive());
-
- // taskView.getNextTaskAction().run();
- // assertTrue(task2.isActive());
- //
- // taskView.getNextTaskAction().run();
- // assertTrue(task3.isActive());
- //
- // taskView.getNextTaskAction().run();
- // assertTrue(task3.isActive());
- //
- // taskView.getPreviousTaskAction().run();
- // assertTrue(task2.isActive());
- //
- // taskView.getNextTaskAction().run();
- // assertTrue(task3.isActive());
- //
- // TasksUi.getTaskActivityManager().activateTask(task4);
- // history.addTask(task4); // Simulate clicking on it rather
- // // than navigating next or previous
- // assertTrue(task4.isActive());
- //
- // taskView.getNextTaskAction().run();
- // assertTrue(task4.isActive());
- //
- // taskView.getPreviousTaskAction().run();
- // assertTrue(task3.isActive());
- //
- // taskView.getNextTaskAction().run();
- // assertTrue(task4.isActive());
-
- }
-
- /**
- * Tests navigation to previous/next tasks that are chosen from a list rather than being sequentially navigated
- */
- public void testArbitraryHistoryNavigation() {
- // Simulate activating the tasks by clicking rather than
- // navigating previous/next
- TasksUi.getTaskActivityManager().activateTask(task1);
- history.addTask(task1);
- TasksUi.getTaskActivityManager().activateTask(task2);
- history.addTask(task2);
- TasksUi.getTaskActivityManager().activateTask(task3);
- history.addTask(task3);
- TasksUi.getTaskActivityManager().activateTask(task4);
- history.addTask(task4);
-
- assertTrue(task4.isActive());
- //TaskActivationHistory taskHistory = taskView.getTaskActivationHistory();
- List<AbstractTask> prevHistoryList = history.getPreviousTasks();
-
- // Check that the previous history list looks right
- assertTrue(prevHistoryList.size() >= 3);
- assertEquals(task3, prevHistoryList.get(prevHistoryList.size() - 2));
- assertEquals(task2, prevHistoryList.get(prevHistoryList.size() - 3));
- assertEquals(task1, prevHistoryList.get(prevHistoryList.size() - 4));
-
- // Get a task from the list and activate it
- TasksUi.getTaskActivityManager().activateTask(task2);
- assertEquals(task2, taskActivityManager.getActiveTask());
- assertTrue(task2.isActive());
-
- // Now check that the next and prev lists look right
- prevHistoryList = history.getPreviousTasks();
- assertEquals(task2, prevHistoryList.get(prevHistoryList.size() - 1));
- assertEquals(task4, prevHistoryList.get(prevHistoryList.size() - 2));
- assertEquals(task1, prevHistoryList.get(prevHistoryList.size() - 4));
- assertEquals(task3, prevHistoryList.get(prevHistoryList.size() - 3));
-
- // Activation of task outside of history navigation tool
- history.addTask(task3);
-
- prevHistoryList = history.getPreviousTasks();
- assertEquals(task3, prevHistoryList.get(prevHistoryList.size() - 1));
- assertEquals(task2, prevHistoryList.get(prevHistoryList.size() - 2));
- assertEquals(task4, prevHistoryList.get(prevHistoryList.size() - 3));
- assertEquals(task1, prevHistoryList.get(prevHistoryList.size() - 4));
-
- // Pick a task from drop down history
- TasksUi.getTaskActivityManager().activateTask(task4);
- assertEquals(task4, taskActivityManager.getActiveTask());
- assertTrue(task4.isActive());
-
- prevHistoryList = history.getPreviousTasks();
- assertEquals(task4, prevHistoryList.get(prevHistoryList.size() - 1));
- assertEquals(task3, prevHistoryList.get(prevHistoryList.size() - 2));
- assertEquals(task2, prevHistoryList.get(prevHistoryList.size() - 3));
- assertEquals(task1, prevHistoryList.get(prevHistoryList.size() - 4));
-
- // Hit previous task button
- previousTaskAction.run();
- assertEquals(task3, taskActivityManager.getActiveTask());
- assertTrue(task3.isActive());
-
- prevHistoryList = history.getPreviousTasks();
- assertEquals(task3, prevHistoryList.get(prevHistoryList.size() - 1));
- assertEquals(task4, prevHistoryList.get(prevHistoryList.size() - 2));
- assertEquals(task2, prevHistoryList.get(prevHistoryList.size() - 3));
- assertEquals(task1, prevHistoryList.get(prevHistoryList.size() - 4));
-
- TasksUi.getTaskActivityManager().deactivateTask(task3);
-
- // List<ITask> nextHistoryList = taskHistory.getNextTasks();
- // assertTrue(nextHistoryList.get(0) == task3);
- // assertTrue(nextHistoryList.get(1) == task4);
- //
- // // Navigate to a next item
- // NextTaskDropDownAction nextAction = new
- // NextTaskDropDownAction(taskView, taskHistory);
- // navigateAction = nextAction.new TaskNavigateAction(task4);
- // navigateAction.run();
- // taskHistory.navigatedToTask(task4);
- //
- // assertTrue(task4.isActive());
- //
- // // Check that the prev and next lists look right
- // nextHistoryList = taskHistory.getNextTasks();
- // prevHistoryList = taskHistory.getPreviousTasks();
- // assertTrue(nextHistoryList.size() == 0);
- // assertTrue(prevHistoryList.get(prevHistoryList.size() - 1) == task3);
- // assertTrue(prevHistoryList.get(prevHistoryList.size() - 2) == task2);
- // assertTrue(prevHistoryList.get(prevHistoryList.size() - 3) == task1);
- //
- // // Check that a deactivated task appears first on the history list
- // TasksUi.getTaskActivityManager().activateTask(task5);
- // (new TaskDeactivateAction()).run(task5);
- // taskView.addTaskToHistory(task5);
- // prevHistoryList = taskHistory.getPreviousTasks();
- // assertTrue(prevHistoryList.get(prevHistoryList.size() - 1) == task5);
- }
-
-}
diff --git a/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TaskActivityManagerTest.java b/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TaskActivityManagerTest.java
deleted file mode 100644
index 239952a2a..000000000
--- a/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TaskActivityManagerTest.java
+++ /dev/null
@@ -1,224 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2004, 2008 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.tasks.tests;
-
-import java.util.Calendar;
-import java.util.Date;
-
-import junit.framework.TestCase;
-
-import org.eclipse.mylyn.commons.net.AuthenticationCredentials;
-import org.eclipse.mylyn.commons.net.AuthenticationType;
-import org.eclipse.mylyn.internal.tasks.core.AbstractTask;
-import org.eclipse.mylyn.internal.tasks.core.DateRange;
-import org.eclipse.mylyn.internal.tasks.core.LocalTask;
-import org.eclipse.mylyn.internal.tasks.core.TaskActivityManager;
-import org.eclipse.mylyn.internal.tasks.core.TaskActivityUtil;
-import org.eclipse.mylyn.internal.tasks.core.TaskList;
-import org.eclipse.mylyn.internal.tasks.ui.TasksUiPlugin;
-import org.eclipse.mylyn.tasks.core.ITask;
-import org.eclipse.mylyn.tasks.core.TaskActivationAdapter;
-import org.eclipse.mylyn.tasks.core.TaskRepository;
-import org.eclipse.mylyn.tasks.tests.connector.MockRepositoryConnector;
-import org.eclipse.mylyn.tasks.tests.connector.MockTask;
-
-/**
- * @author Shawn Minto
- * @author Robert Elves
- */
-public class TaskActivityManagerTest extends TestCase {
-
- private class MockTaskActivationListener extends TaskActivationAdapter {
-
- private boolean hasActivated = false;
-
- private boolean hasPreActivated = false;
-
- private boolean hasDeactivated = false;
-
- private boolean hasPreDeactivated = false;
-
- public void reset() {
- hasActivated = false;
- hasPreActivated = false;
-
- hasDeactivated = false;
- hasPreDeactivated = false;
-
- }
-
- @Override
- public void preTaskActivated(ITask task) {
- assertFalse(hasActivated);
- hasPreActivated = true;
- }
-
- @Override
- public void preTaskDeactivated(ITask task) {
- assertFalse(hasDeactivated);
- hasPreDeactivated = true;
- }
-
- @Override
- public void taskActivated(ITask task) {
- assertTrue(hasPreActivated);
- hasActivated = true;
- }
-
- @Override
- public void taskDeactivated(ITask task) {
- assertTrue(hasPreDeactivated);
- hasDeactivated = true;
- }
-
- }
-
- private TaskActivityManager taskActivityManager;
-
- private TaskList taskList;
-
- private TaskRepository repository;
-
- @Override
- protected void setUp() throws Exception {
- taskActivityManager = TasksUiPlugin.getTaskActivityManager();
- taskActivityManager.deactivateActiveTask();
- taskList = TasksUiPlugin.getTaskList();
-
- TaskTestUtil.resetTaskListAndRepositories();
-
- repository = new TaskRepository(MockRepositoryConnector.REPOSITORY_KIND, MockRepositoryConnector.REPOSITORY_URL);
- TasksUiPlugin.getRepositoryManager().addRepository(repository);
- }
-
- public void testWeekEnd() {
- AbstractTask task = new LocalTask("12", "task-12");
- assertFalse(taskActivityManager.isScheduledForToday(task));
-
- // test end of next week
- Calendar end = TaskActivityUtil.getNextWeek().getEndDate();
- Calendar start = TaskActivityUtil.getCalendar();
- start.setTimeInMillis(end.getTimeInMillis());
- TaskActivityUtil.snapStartOfDay(start);
- taskActivityManager.setScheduledFor(task, new DateRange(start, end));
- assertTrue(taskActivityManager.isScheduledForNextWeek(task));
- taskActivityManager.setScheduledFor(task, TaskActivityUtil.getNextWeek());
- assertTrue(taskActivityManager.isScheduledForNextWeek(task));
- assertEquals(0, taskActivityManager.getScheduledTasks(new DateRange(start, end)).size());
-
- // test end of two weeks
- end = TaskActivityUtil.getNextWeek().next().getEndDate();
- start = TaskActivityUtil.getCalendar();
- start.setTimeInMillis(end.getTimeInMillis());
- TaskActivityUtil.snapStartOfDay(start);
- taskActivityManager.setScheduledFor(task, new DateRange(start, end));
- assertEquals(1, taskActivityManager.getScheduledTasks(new DateRange(start, end)).size());
- assertEquals(1, taskActivityManager.getScheduledTasks(TaskActivityUtil.getNextWeek().next()).size());
-
- }
-
- public void testTaskActivation() {
- MockTask task = new MockTask("test:activation");
- MockTaskActivationListener listener = new MockTaskActivationListener();
- try {
- taskActivityManager.addActivationListener(listener);
- try {
- taskActivityManager.activateTask(task);
- assertTrue(listener.hasPreActivated);
- assertTrue(listener.hasActivated);
- assertFalse(listener.hasPreDeactivated);
- assertFalse(listener.hasDeactivated);
-
- listener.reset();
- } finally {
- taskActivityManager.deactivateTask(task);
- }
- assertFalse(listener.hasPreActivated);
- assertFalse(listener.hasActivated);
- assertTrue(listener.hasPreDeactivated);
- assertTrue(listener.hasDeactivated);
- } finally {
- taskActivityManager.removeActivationListener(listener);
- }
- }
-
- public void testIsActiveToday() {
- AbstractTask task = new LocalTask("1", "task-1");
- assertFalse(taskActivityManager.isScheduledForToday(task));
-
- task.setScheduledForDate(TaskActivityUtil.getCurrentWeek().getToday());
- assertTrue(taskActivityManager.isScheduledForToday(task));
-
- task.setReminded(true);
- assertTrue(taskActivityManager.isScheduledForToday(task));
- task.setReminded(true);
-
-// Calendar inAnHour = Calendar.getInstance();
-// inAnHour.set(Calendar.HOUR_OF_DAY, inAnHour.get(Calendar.HOUR_OF_DAY) + 1);
-// inAnHour.getTime();
-// task.setScheduledForDate(inAnHour.getTime());
-// Calendar tomorrow = Calendar.getInstance();
-// TaskActivityUtil.snapToNextDay(tomorrow);
-// assertEquals(-1, inAnHour.compareTo(tomorrow));
-// assertTrue(taskActivityManager.isScheduledForToday(task));
- }
-
- public void testScheduledForToday() {
- AbstractTask task = new LocalTask("1", "task-1");
- task.setScheduledForDate(TaskActivityUtil.getCurrentWeek().getToday());
- assertTrue(taskActivityManager.isScheduledForToday(task));
- task.setScheduledForDate(TaskActivityUtil.getCurrentWeek().getToday().next());
- assertFalse(taskActivityManager.isScheduledForToday(task));
- }
-
- public void testSchedulePastEndOfMonth() {
- Calendar calendar = Calendar.getInstance();
- calendar.set(Calendar.MONTH, Calendar.SEPTEMBER);
- calendar.set(Calendar.DAY_OF_MONTH, 30);
- TaskActivityUtil.snapForwardNumDays(calendar, 1);
- assertEquals("Should be October", Calendar.OCTOBER, calendar.get(Calendar.MONTH));
- }
-
- public void testIsCompletedToday() {
- ITask task = new LocalTask("1", "task 1");
- task.setCompletionDate(new Date());
- assertTrue(taskActivityManager.isCompletedToday(task));
-
- MockTask mockTask = new MockTask("1");
- mockTask.setOwner("unknown");
- taskList.addTask(mockTask);
- mockTask.setCompletionDate(new Date());
- assertFalse("completed: " + mockTask.getCompletionDate(), taskActivityManager.isCompletedToday(mockTask));
-
- mockTask = new MockTask("2");
- taskList.addTask(mockTask);
- mockTask.setCompletionDate(new Date());
- mockTask.setOwner("testUser");
- repository.setCredentials(AuthenticationType.REPOSITORY, new AuthenticationCredentials("testUser", ""), false);
- assertTrue(taskActivityManager.isCompletedToday(mockTask));
- }
-
- public void testAllTasksDeactivation() {
- AbstractTask task1 = new LocalTask("task1", "description1");
- AbstractTask task2 = new LocalTask("task2", "description2");
- taskList.addTask(task1);
- taskList.addTask(task2);
- assertNull(taskActivityManager.getActiveTask());
-
- taskActivityManager.activateTask(task2);
- assertEquals(task2, taskActivityManager.getActiveTask());
-
- taskActivityManager.deactivateActiveTask();
- assertNull(taskActivityManager.getActiveTask());
- }
-
-} \ No newline at end of file
diff --git a/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TaskActivityTimingTest.java b/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TaskActivityTimingTest.java
deleted file mode 100644
index 4dd86d4f2..000000000
--- a/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TaskActivityTimingTest.java
+++ /dev/null
@@ -1,1331 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2004, 2008 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.tasks.tests;
-
-import java.io.File;
-import java.io.FileInputStream;
-import java.io.FileOutputStream;
-import java.util.ArrayList;
-import java.util.Calendar;
-import java.util.Date;
-import java.util.List;
-
-import junit.framework.TestCase;
-
-import org.eclipse.core.runtime.Path;
-import org.eclipse.mylyn.context.tests.support.FileTool;
-import org.eclipse.mylyn.internal.context.core.ContextCorePlugin;
-import org.eclipse.mylyn.internal.context.core.InteractionContext;
-import org.eclipse.mylyn.internal.context.core.InteractionContextManager;
-import org.eclipse.mylyn.internal.context.core.InteractionContextScaling;
-import org.eclipse.mylyn.internal.context.core.LegacyActivityAdaptor;
-import org.eclipse.mylyn.internal.monitor.ui.MonitorUiPlugin;
-import org.eclipse.mylyn.internal.tasks.core.AbstractTask;
-import org.eclipse.mylyn.internal.tasks.core.ITaskList;
-import org.eclipse.mylyn.internal.tasks.core.LocalTask;
-import org.eclipse.mylyn.internal.tasks.core.ScheduledTaskContainer;
-import org.eclipse.mylyn.internal.tasks.core.TaskActivityManager;
-import org.eclipse.mylyn.internal.tasks.core.TaskActivityUtil;
-import org.eclipse.mylyn.internal.tasks.ui.TasksUiPlugin;
-import org.eclipse.mylyn.internal.tasks.ui.util.TasksUiInternal;
-import org.eclipse.mylyn.monitor.core.InteractionEvent;
-import org.eclipse.mylyn.tasks.core.ITask;
-import org.eclipse.mylyn.tasks.ui.TasksUi;
-
-/**
- * @author Rob Elves
- */
-public class TaskActivityTimingTest extends TestCase {
-
- private TaskActivityManager activityManager;
-
- private ITaskList taskList;
-
- @Override
- protected void setUp() throws Exception {
- activityManager = (TaskActivityManager) TasksUi.getTaskActivityManager();
- taskList = TasksUiInternal.getTaskList();
- TaskTestUtil.resetTaskListAndRepositories();
- TaskTestUtil.saveAndReadTasklist();
- ContextCorePlugin.getContextManager().getActivityMetaContext().reset();
- ContextCorePlugin.getContextManager().saveActivityMetaContext();
- TasksUiPlugin.getTaskActivityMonitor().reloadActivityTime();
- }
-
- @Override
- protected void tearDown() throws Exception {
- ContextCorePlugin.getContextManager().getActivityMetaContext().reset();
- TaskTestUtil.resetTaskList();
- }
-
- public void testLoadCorruptContext() throws Exception {
- String contextPath = TasksUiPlugin.getDefault().getDataDirectory() + '/' + "contexts" + '/';
- File contexts = new File(contextPath);
- if (!contexts.exists()) {
- contexts.mkdir();
- }
- File backup = new File(contexts, ".activity.xml.zip");
-
- File good = FileTool.getFileInPlugin(TasksTestsPlugin.getDefault(), new Path(
- "testdata/activityTests/.activity.xml.zip"));
-
- copy(good, backup);
-
- File corrupt = new File(contexts, "activity.xml.zip");
-
- File corruptSource = FileTool.getFileInPlugin(TasksTestsPlugin.getDefault(), new Path(
- "testdata/activityTests/activity.xml.zip"));
-
- copy(corruptSource, corrupt);
-
- InteractionContextManager manager = ContextCorePlugin.getContextManager();
- manager.loadActivityMetaContext();
- assertFalse(manager.getActivityMetaContext().getInteractionHistory().isEmpty());
- }
-
- public void testConstantWriting() throws Exception {
-
- String contextPath = TasksUiPlugin.getDefault().getDataDirectory() + '/' + "contexts" + '/';
- File contexts = new File(contextPath);
- if (!contexts.exists()) {
- contexts.mkdir();
- }
- File backup = new File(contexts, ".activity.xml.zip");
-
- File good = FileTool.getFileInPlugin(TasksTestsPlugin.getDefault(), new Path(
- "testdata/activityTests/.activity.xml.zip"));
-
- copy(good, backup);
-
- InteractionContextManager manager = ContextCorePlugin.getContextManager();
- manager.loadActivityMetaContext();
- assertFalse(manager.getActivityMetaContext().getInteractionHistory().isEmpty());
-
- for (int i = 0; i < 50; i++) {
- manager.saveActivityMetaContext();
- }
-
- manager.loadActivityMetaContext();
- assertFalse(manager.getActivityMetaContext().getInteractionHistory().isEmpty());
-
- }
-
- private void copy(File inFile, File outFile) throws Exception {
-
- FileOutputStream outStream = new FileOutputStream(outFile);
- FileInputStream inStream = new FileInputStream(inFile);
-
- byte[] buffer = new byte[1024];
- while (inStream.read(buffer) != -1) {
- outStream.write(buffer);
- }
- inStream.close();
- outStream.close();
-
- }
-
- public void testActivityWithNoTaskActive() {
- Calendar start = Calendar.getInstance();
- Calendar end = Calendar.getInstance();
- end.setTimeInMillis(start.getTimeInMillis());
- end.add(Calendar.HOUR_OF_DAY, 2);
-
- Calendar start2 = Calendar.getInstance();
- start2.add(Calendar.DAY_OF_MONTH, 1);
- Calendar end2 = Calendar.getInstance();
- end2.setTime(start2.getTime());
- end2.add(Calendar.HOUR_OF_DAY, 2);
-
- InteractionEvent event1 = new InteractionEvent(InteractionEvent.Kind.ATTENTION,
- InteractionContextManager.ACTIVITY_STRUCTUREKIND_WORKINGSET, "none", "originId", "navigatedRelation",
- InteractionContextManager.ACTIVITY_DELTA_ADDED, 2f, start.getTime(), end.getTime());
- InteractionEvent event2 = new InteractionEvent(InteractionEvent.Kind.ATTENTION,
- InteractionContextManager.ACTIVITY_STRUCTUREKIND_WORKINGSET, "none", "originId", "navigatedRelation",
- InteractionContextManager.ACTIVITY_DELTA_ADDED, 2f, start2.getTime(), end2.getTime());
-
- TasksUiPlugin.getTaskActivityMonitor().parseInteractionEvent(event1, false);
- TasksUiPlugin.getTaskActivityMonitor().parseInteractionEvent(event2, false);
-
- long expectedTotalTime = end.getTime().getTime() - start.getTime().getTime();
- assertEquals(2 * expectedTotalTime, activityManager.getElapsedForWorkingSet("none", start, end2));
-
- }
-
- public void testActivityWithNoTaskActive2() {
- Calendar start = Calendar.getInstance();
- Calendar end = Calendar.getInstance();
- end.setTimeInMillis(start.getTimeInMillis());
- end.add(Calendar.HOUR_OF_DAY, 2);
-
- Calendar start2 = Calendar.getInstance();
- start2.add(Calendar.DAY_OF_MONTH, 1);
- Calendar end2 = Calendar.getInstance();
- end2.setTime(start2.getTime());
- end2.add(Calendar.HOUR_OF_DAY, 2);
-
- InteractionEvent event1 = new InteractionEvent(InteractionEvent.Kind.ATTENTION,
- InteractionContextManager.ACTIVITY_STRUCTUREKIND_WORKINGSET, "set 1", "originId", "navigatedRelation",
- InteractionContextManager.ACTIVITY_DELTA_ADDED, 2f, start.getTime(), end.getTime());
- InteractionEvent event2 = new InteractionEvent(InteractionEvent.Kind.ATTENTION,
- InteractionContextManager.ACTIVITY_STRUCTUREKIND_WORKINGSET, "set 2", "originId", "navigatedRelation",
- InteractionContextManager.ACTIVITY_DELTA_ADDED, 2f, start2.getTime(), end2.getTime());
-
- TasksUiPlugin.getTaskActivityMonitor().parseInteractionEvent(event1, false);
- TasksUiPlugin.getTaskActivityMonitor().parseInteractionEvent(event2, false);
-
- long expectedTotalTime = end.getTime().getTime() - start.getTime().getTime();
- assertEquals(0, activityManager.getElapsedForWorkingSet("bogus", start, end2));
- assertEquals(0, activityManager.getElapsedForWorkingSet("none", start, end2));
- assertEquals(expectedTotalTime, activityManager.getElapsedForWorkingSet("set 1", start, end2));
- assertEquals(expectedTotalTime, activityManager.getElapsedForWorkingSet("set 2", start, end2));
- assertTrue(activityManager.getWorkingSets().contains("set 1"));
- assertTrue(activityManager.getWorkingSets().contains("set 2"));
- }
-
- public void testActivityCaptured() {
- AbstractTask task1 = new LocalTask("task 1", "Task 1");
- taskList.addTask(task1);
- assertEquals(0, activityManager.getElapsedTime(task1));
-
- Calendar start = Calendar.getInstance();
- Calendar end = Calendar.getInstance();
- end.setTimeInMillis(start.getTimeInMillis());
- end.add(Calendar.HOUR_OF_DAY, 2);
-
- Calendar start2 = Calendar.getInstance();
- start2.add(Calendar.DAY_OF_MONTH, 1);
- Calendar end2 = Calendar.getInstance();
- end2.setTime(start2.getTime());
- end2.add(Calendar.HOUR_OF_DAY, 2);
-
- InteractionEvent event1 = new InteractionEvent(InteractionEvent.Kind.ATTENTION, "structureKind",
- task1.getHandleIdentifier(), "originId", "navigatedRelation",
- InteractionContextManager.ACTIVITY_DELTA_ADDED, 2f, start.getTime(), end.getTime());
- InteractionEvent event2 = new InteractionEvent(InteractionEvent.Kind.ATTENTION, "structureKind",
- task1.getHandleIdentifier(), "originId", "navigatedRelation",
- InteractionContextManager.ACTIVITY_DELTA_ADDED, 2f, start2.getTime(), end2.getTime());
-
- TasksUiPlugin.getTaskActivityMonitor().parseInteractionEvent(event1, false);
- TasksUiPlugin.getTaskActivityMonitor().parseInteractionEvent(event2, false);
-
- long expectedTotalTime = end.getTime().getTime() - start.getTime().getTime();
- assertEquals(2 * expectedTotalTime, activityManager.getElapsedTime(task1));
- Calendar startEarly = Calendar.getInstance();
- startEarly.setTimeInMillis(start.getTimeInMillis());
- startEarly.add(Calendar.MONTH, -1);
- Calendar endLate = Calendar.getInstance();
- endLate.setTimeInMillis(end.getTimeInMillis() + 60 * 5000);
- assertEquals(expectedTotalTime, TasksUiPlugin.getTaskActivityManager().getElapsedTime(task1, startEarly, end));
- assertEquals(expectedTotalTime, TasksUiPlugin.getTaskActivityManager().getElapsedTime(task1, start2, end2));
- assertEquals(2 * expectedTotalTime, TasksUiPlugin.getTaskActivityManager().getElapsedTime(task1, start, end2));
- }
-
- public void testActivityDelete() {
-
- AbstractTask task1 = new LocalTask("1", "Task 1");
- taskList.addTask(task1);
- assertEquals(0, activityManager.getElapsedTime(task1));
-
- Calendar start = Calendar.getInstance();
- Calendar end = Calendar.getInstance();
- end.setTimeInMillis(start.getTimeInMillis());
- end.add(Calendar.HOUR_OF_DAY, 2);
-
- Calendar start2 = Calendar.getInstance();
- start2.add(Calendar.DAY_OF_MONTH, 1);
- Calendar end2 = Calendar.getInstance();
- end2.setTime(start2.getTime());
- end2.add(Calendar.HOUR_OF_DAY, 2);
-
- InteractionEvent event1 = new InteractionEvent(InteractionEvent.Kind.ATTENTION, "structureKind",
- task1.getHandleIdentifier(), "originId", "navigatedRelation",
- InteractionContextManager.ACTIVITY_DELTA_ADDED, 2f, start.getTime(), end.getTime());
- InteractionEvent event2 = new InteractionEvent(InteractionEvent.Kind.ATTENTION, "structureKind",
- task1.getHandleIdentifier(), "originId", "navigatedRelation",
- InteractionContextManager.ACTIVITY_DELTA_ADDED, 2f, start2.getTime(), end2.getTime());
-
- ContextCorePlugin.getContextManager().getActivityMetaContext().parseEvent(event1);
- TasksUiPlugin.getTaskActivityMonitor().parseInteractionEvent(event1, false);
- ContextCorePlugin.getContextManager().getActivityMetaContext().parseEvent(event2);
- TasksUiPlugin.getTaskActivityMonitor().parseInteractionEvent(event2, false);
-
- long expectedTotalTime = end.getTime().getTime() - start.getTime().getTime();
- assertEquals(2 * expectedTotalTime, activityManager.getElapsedTime(task1));
- Calendar startEarly = Calendar.getInstance();
- startEarly.setTimeInMillis(start.getTimeInMillis());
- startEarly.add(Calendar.MONTH, -1);
- Calendar endLate = Calendar.getInstance();
- endLate.setTimeInMillis(end.getTimeInMillis() + 60 * 5000);
- assertEquals(expectedTotalTime, TasksUiPlugin.getTaskActivityManager().getElapsedTime(task1, startEarly, end));
- assertEquals(expectedTotalTime, TasksUiPlugin.getTaskActivityManager().getElapsedTime(task1, start2, end2));
- assertEquals(2 * expectedTotalTime, TasksUiPlugin.getTaskActivityManager().getElapsedTime(task1, start, end2));
-
- MonitorUiPlugin.getDefault().getActivityContextManager().removeActivityTime(task1.getHandleIdentifier(),
- start.getTimeInMillis(), end.getTimeInMillis());
- // Half gone since end date is exclusive (removes up to but not including hour)
- assertEquals(expectedTotalTime, activityManager.getElapsedTime(task1));
-
- ContextCorePlugin.getContextManager().saveActivityMetaContext();
- ContextCorePlugin.getContextManager().loadActivityMetaContext();
- TasksUiPlugin.getTaskActivityMonitor().reloadActivityTime();
-
- assertEquals(expectedTotalTime, activityManager.getElapsedTime(task1));
-
- MonitorUiPlugin.getDefault().getActivityContextManager().removeActivityTime(task1.getHandleIdentifier(),
- start2.getTimeInMillis(), end2.getTimeInMillis());
-
- assertEquals(0, activityManager.getElapsedTime(task1));
- }
-
-// public void testActivityReset() {
-//
-// AbstractTask task1 = new LocalTask("1", "Task 1");
-// taskList.addTask(task1);
-// assertEquals(0, activityManager.getElapsedTime(task1));
-//
-// Calendar start = Calendar.getInstance();
-// Calendar end = Calendar.getInstance();
-// end.setTimeInMillis(start.getTimeInMillis());
-// end.add(Calendar.HOUR_OF_DAY, 2);
-//
-// Calendar start2 = Calendar.getInstance();
-// start2.add(Calendar.DAY_OF_MONTH, 1);
-// Calendar end2 = Calendar.getInstance();
-// end2.setTime(start2.getTime());
-// end2.add(Calendar.HOUR_OF_DAY, 2);
-//
-// InteractionEvent event1 = new InteractionEvent(InteractionEvent.Kind.ATTENTION, "structureKind",
-// task1.getHandleIdentifier(), "originId", "navigatedRelation",
-// IInteractionContextManager.ACTIVITY_DELTA_ADDED, 2f, start.getTime(), end.getTime());
-// InteractionEvent event2 = new InteractionEvent(InteractionEvent.Kind.ATTENTION, "structureKind",
-// task1.getHandleIdentifier(), "originId", "navigatedRelation",
-// IInteractionContextManager.ACTIVITY_DELTA_ADDED, 2f, start2.getTime(), end2.getTime());
-//
-// ContextCore.getContextManager().getActivityMetaContext().parseEvent(event1);
-// TasksUiPlugin.getTaskActivityMonitor().parseInteractionEvent(event1);
-// ContextCore.getContextManager().getActivityMetaContext().parseEvent(event2);
-// TasksUiPlugin.getTaskActivityMonitor().parseInteractionEvent(event2);
-//
-// long expectedTotalTime = end.getTime().getTime() - start.getTime().getTime();
-// assertEquals(2 * expectedTotalTime, activityManager.getElapsedTime(task1));
-// Calendar startEarly = Calendar.getInstance();
-// startEarly.setTimeInMillis(start.getTimeInMillis());
-// startEarly.add(Calendar.MONTH, -1);
-// Calendar endLate = Calendar.getInstance();
-// endLate.setTimeInMillis(end.getTimeInMillis() + 60 * 5000);
-// assertEquals(expectedTotalTime, TasksUiPlugin.getTaskActivityManager().getElapsedTime(task1, startEarly, end));
-// assertEquals(expectedTotalTime, TasksUiPlugin.getTaskActivityManager().getElapsedTime(task1, start2, end2));
-// assertEquals(2 * expectedTotalTime, TasksUiPlugin.getTaskActivityManager().getElapsedTime(task1, start, end2));
-//
-// MonitorUiPlugin.getDefault().getActivityContextManager().clearActivityTime(task1.getHandleIdentifier(),
-// start.getTimeInMillis(), end.getTimeInMillis());
-// // Half gone since end date is exclusive (removes up to but not including hour)
-// assertEquals(expectedTotalTime, activityManager.getElapsedTime(task1));
-// assertTrue(activityManager.getActiveTasks(start, end).isEmpty());
-// assertFalse(activityManager.getActiveTasks(start2, end2).isEmpty());
-//
-// MonitorUiPlugin.getDefault().getActivityContextManager().clearActivityTime(task1.getHandleIdentifier(),
-// start.getTimeInMillis(), end2.getTimeInMillis() + (1000 * 60 * 60));
-//
-// // with end = hour beyond should result in zero
-// assertEquals(0, activityManager.getElapsedTime(task1));
-//
-// TasksUiPlugin.getTaskActivityMonitor().parseInteractionEvent(event1);
-// TasksUiPlugin.getTaskActivityMonitor().parseInteractionEvent(event2);
-// // one event blocked now by activity date filter so only half time collected
-// assertEquals(expectedTotalTime, activityManager.getElapsedTime(task1));
-// assertFalse(activityManager.getActiveTasks(start, end).isEmpty());
-// assertTrue(activityManager.getActiveTasks(start2, end2).isEmpty());
-//
-// ContextCore.getContextManager().saveActivityContext();
-// ContextCore.getContextManager().loadActivityMetaContext();
-// TasksUiPlugin.getTaskListManager().resetAndRollOver();
-//
-//// assertEquals(expectedTotalTime, TasksUiPlugin.getTaskActivityManager().getElapsedTime(task1, startEarly, end));
-//// assertEquals(expectedTotalTime, TasksUiPlugin.getTaskActivityManager().getElapsedTime(task1, start2, end2));
-//// assertEquals(2 * expectedTotalTime, TasksUiPlugin.getTaskActivityManager().getElapsedTime(task1, start, end2));
-//
-// // reset still valid after restart
-// assertEquals(expectedTotalTime, activityManager.getElapsedTime(task1));
-// assertFalse(activityManager.getActiveTasks(start, end).isEmpty());
-// assertTrue(activityManager.getActiveTasks(start2, end2).isEmpty());
-//
-// }
-
- public void testNegativeActivity() {
-
- AbstractTask task1 = new LocalTask("task 1", "Task 1");
- taskList.addTask(task1);
- assertEquals(0, activityManager.getElapsedTime(task1));
-
- Calendar start = Calendar.getInstance();
- Calendar end = Calendar.getInstance();
- end.add(Calendar.HOUR_OF_DAY, 2);
-
- Calendar start2 = Calendar.getInstance();
- start2.add(Calendar.DAY_OF_MONTH, 1);
- Calendar end2 = Calendar.getInstance();
- end2.setTime(start2.getTime());
- end2.add(Calendar.HOUR_OF_DAY, 2);
-
- InteractionEvent event1 = new InteractionEvent(InteractionEvent.Kind.ATTENTION, "structureKind",
- task1.getHandleIdentifier(), "originId", "navigatedRelation",
- InteractionContextManager.ACTIVITY_DELTA_ADDED, 2f, end.getTime(), start.getTime());
- InteractionEvent event2 = new InteractionEvent(InteractionEvent.Kind.ATTENTION, "structureKind",
- task1.getHandleIdentifier(), "originId", "navigatedRelation",
- InteractionContextManager.ACTIVITY_DELTA_ADDED, 2f, end2.getTime(), start2.getTime());
-
- TasksUiPlugin.getTaskActivityMonitor().parseInteractionEvent(event1, false);
- TasksUiPlugin.getTaskActivityMonitor().parseInteractionEvent(event2, false);
-
- assertEquals(0, TasksUiPlugin.getTaskActivityManager().getElapsedTime(task1));
- assertEquals(0, TasksUiPlugin.getTaskActivityManager().getElapsedTime(task1, start, end));
- assertEquals(0, TasksUiPlugin.getTaskActivityManager().getElapsedTime(task1, start2, end2));
- assertEquals(0, TasksUiPlugin.getTaskActivityManager().getElapsedTime(task1, start, end2));
-
- }
-
- public void testNullTaskHandle() {
- AbstractTask task1 = new LocalTask("task 1", "Task 1");
- taskList.addTask(task1);
- assertEquals(0, activityManager.getElapsedTime(task1));
-
- Calendar start = Calendar.getInstance();
- Calendar end = Calendar.getInstance();
- end.add(Calendar.HOUR_OF_DAY, 2);
-
- InteractionEvent event1 = new InteractionEvent(InteractionEvent.Kind.ATTENTION, "structureKind", null,
- "originId", "navigatedRelation", InteractionContextManager.ACTIVITY_DELTA_ADDED, 2f, start.getTime(),
- end.getTime());
- InteractionEvent event2 = new InteractionEvent(InteractionEvent.Kind.ATTENTION, "structureKind", "",
- "originId", "navigatedRelation", InteractionContextManager.ACTIVITY_DELTA_ADDED, 2f, start.getTime(),
- end.getTime());
-
- TasksUiPlugin.getTaskActivityMonitor().parseInteractionEvent(event1, false);
- TasksUiPlugin.getTaskActivityMonitor().parseInteractionEvent(event2, false);
- assertEquals(0, TasksUiPlugin.getTaskActivityManager().getElapsedTime(task1));
- }
-
- public void testActivityNotLoggedTwice() {
- InteractionContext metaContext = ContextCorePlugin.getContextManager().getActivityMetaContext();
- metaContext.reset();
- assertEquals(0, metaContext.getInteractionHistory().size());
-
- ITask task1 = new LocalTask("local 1", "Task 1");
- ITask task2 = new LocalTask("local 2", "Task 2");
-
- Calendar startTime1 = Calendar.getInstance();
- TaskActivityUtil.snapStartOfHour(startTime1);
- Calendar endTime1 = Calendar.getInstance();
- endTime1.setTime(startTime1.getTime());
- endTime1.add(Calendar.SECOND, 20);
-
- Calendar startTime2 = Calendar.getInstance();
- startTime2.setTime(endTime1.getTime());
- startTime2.add(Calendar.SECOND, 20);
- Calendar endTime2 = Calendar.getInstance();
- endTime2.setTime(startTime2.getTime());
- endTime2.add(Calendar.MINUTE, 2);
-
- InteractionEvent activityEvent1 = new InteractionEvent(InteractionEvent.Kind.ATTENTION,
- InteractionContextManager.ACTIVITY_STRUCTUREKIND_TIMING, task1.getHandleIdentifier(),
- InteractionContextManager.ACTIVITY_ORIGINID_WORKBENCH, null,
- InteractionContextManager.ACTIVITY_DELTA_ADDED, 1f, startTime1.getTime(), endTime1.getTime());
-
- InteractionEvent activityEvent2 = new InteractionEvent(InteractionEvent.Kind.ATTENTION,
- InteractionContextManager.ACTIVITY_STRUCTUREKIND_TIMING, task1.getHandleIdentifier(),
- InteractionContextManager.ACTIVITY_ORIGINID_WORKBENCH, null,
- InteractionContextManager.ACTIVITY_DELTA_ADDED, 1f, startTime2.getTime(), endTime2.getTime());
-
- InteractionEvent activityEvent3 = new InteractionEvent(InteractionEvent.Kind.ATTENTION,
- InteractionContextManager.ACTIVITY_STRUCTUREKIND_TIMING, task2.getHandleIdentifier(),
- InteractionContextManager.ACTIVITY_ORIGINID_WORKBENCH, null,
- InteractionContextManager.ACTIVITY_DELTA_ADDED, 1f, startTime1.getTime(), startTime1.getTime());
-
- // to activity events both within same hour will get collapsed
- metaContext.parseEvent(activityEvent1);
- metaContext.parseEvent(activityEvent2);
- // This is a bogus 3rd event with zero activity and shouldn't be recorded
- // this use to result in a second write of activity1 to the context
- metaContext.parseEvent(activityEvent3);
- metaContext = ContextCorePlugin.getContextManager().collapseActivityMetaContext(metaContext);
- assertEquals(1, metaContext.getInteractionHistory().size());
- }
-
- public void testDoubleBookKeeping() {
- AbstractTask task1 = new LocalTask("testDoubleBookKeeping", "testDoubleBookKeeping");
- TasksUiPlugin.getTaskList().addTask(task1);
- {
- Calendar startActiveTime = Calendar.getInstance();
- Calendar endActiveTime = Calendar.getInstance();
- endActiveTime.setTime(startActiveTime.getTime());
- endActiveTime.add(Calendar.SECOND, 20);
-
- Calendar startTime = Calendar.getInstance();
- startTime.setTime(startActiveTime.getTime());
- startTime.add(Calendar.SECOND, 5);
- Calendar endTime = Calendar.getInstance();
- endTime.setTime(endActiveTime.getTime());
- endTime.add(Calendar.SECOND, -5);
-
- InteractionEvent event1 = new InteractionEvent(InteractionEvent.Kind.SELECTION, "structureKind",
- task1.getHandleIdentifier(), InteractionContextManager.ACTIVITY_ORIGINID_WORKBENCH,
- "navigatedRelation", InteractionContextManager.ACTIVITY_DELTA_ACTIVATED, 2f,
- startActiveTime.getTime(), startActiveTime.getTime());
- InteractionEvent event2 = new InteractionEvent(InteractionEvent.Kind.SELECTION, "structureKind",
- task1.getHandleIdentifier(), InteractionContextManager.ACTIVITY_ORIGINID_WORKBENCH,
- "navigatedRelation", InteractionContextManager.ACTIVITY_DELTA_DEACTIVATED, 2f,
- endActiveTime.getTime(), endActiveTime.getTime());
-
- InteractionEvent activityEvent1 = new InteractionEvent(InteractionEvent.Kind.ATTENTION,
- InteractionContextManager.ACTIVITY_STRUCTUREKIND_TIMING, task1.getHandleIdentifier(),
- InteractionContextManager.ACTIVITY_ORIGINID_WORKBENCH, null,
- InteractionContextManager.ACTIVITY_DELTA_ADDED, 1f, startTime.getTime(), endTime.getTime());
-
- ContextCorePlugin.getContextManager().getActivityMetaContext().parseEvent(event1);
- TasksUiPlugin.getTaskActivityMonitor().parseInteractionEvent(event1, false);
- ContextCorePlugin.getContextManager().getActivityMetaContext().parseEvent(activityEvent1);
- TasksUiPlugin.getTaskActivityMonitor().parseInteractionEvent(activityEvent1, false);
- ContextCorePlugin.getContextManager().getActivityMetaContext().parseEvent(event2);
- TasksUiPlugin.getTaskActivityMonitor().parseInteractionEvent(event2, false);
-
- long elapsed = TasksUiPlugin.getTaskActivityManager().getElapsedTime(task1);
- assertEquals(10000, elapsed);
-
- // 2nd activation - no activity
- ContextCorePlugin.getContextManager().getActivityMetaContext().parseEvent(event1);
- TasksUiPlugin.getTaskActivityMonitor().parseInteractionEvent(event1, false);
- ContextCorePlugin.getContextManager().getActivityMetaContext().parseEvent(event2);
- TasksUiPlugin.getTaskActivityMonitor().parseInteractionEvent(event2, false);
-
- elapsed = TasksUiPlugin.getTaskActivityManager().getElapsedTime(task1);
- assertEquals(10000, elapsed);
- assertTrue(TasksUiPlugin.getTaskActivityManager().isActiveThisWeek(task1));
- }
-
- assertEquals(10000, TasksUiPlugin.getTaskActivityManager().getElapsedTime(task1));
- ///--- 2nd activity on same task
- {
- Calendar startActiveTime2 = Calendar.getInstance();
- Calendar endActiveTime2 = Calendar.getInstance();
- endActiveTime2.add(Calendar.SECOND, 20);
-
- Calendar startTime2 = Calendar.getInstance();
- startTime2.setTimeInMillis(startActiveTime2.getTimeInMillis() + 2000);
- Calendar endTime2 = Calendar.getInstance();
- endTime2.setTimeInMillis(endActiveTime2.getTimeInMillis() - 2000);
-
- InteractionEvent event1 = new InteractionEvent(InteractionEvent.Kind.SELECTION, "structureKind",
- task1.getHandleIdentifier(), InteractionContextManager.ACTIVITY_ORIGINID_WORKBENCH,
- "navigatedRelation", InteractionContextManager.ACTIVITY_DELTA_ACTIVATED, 2f,
- startActiveTime2.getTime(), startActiveTime2.getTime());
- InteractionEvent event2 = new InteractionEvent(InteractionEvent.Kind.SELECTION, "structureKind",
- task1.getHandleIdentifier(), InteractionContextManager.ACTIVITY_ORIGINID_WORKBENCH,
- "navigatedRelation", InteractionContextManager.ACTIVITY_DELTA_DEACTIVATED, 2f,
- endActiveTime2.getTime(), endActiveTime2.getTime());
-
- InteractionEvent activityEvent1 = new InteractionEvent(InteractionEvent.Kind.ATTENTION,
- InteractionContextManager.ACTIVITY_STRUCTUREKIND_TIMING, task1.getHandleIdentifier(),
- InteractionContextManager.ACTIVITY_ORIGINID_WORKBENCH, null,
- InteractionContextManager.ACTIVITY_DELTA_ADDED, 1f, startTime2.getTime(), endTime2.getTime());
-
- ContextCorePlugin.getContextManager().getActivityMetaContext().parseEvent(event1);
- TasksUiPlugin.getTaskActivityMonitor().parseInteractionEvent(event1, false);
- ContextCorePlugin.getContextManager().getActivityMetaContext().parseEvent(activityEvent1);
- TasksUiPlugin.getTaskActivityMonitor().parseInteractionEvent(activityEvent1, false);
- ContextCorePlugin.getContextManager().getActivityMetaContext().parseEvent(event2);
- TasksUiPlugin.getTaskActivityMonitor().parseInteractionEvent(event2, false);
- }
-
- assertEquals(26000, TasksUiPlugin.getTaskActivityManager().getElapsedTime(task1));
-
- ContextCorePlugin.getContextManager().saveActivityMetaContext();
- ContextCorePlugin.getContextManager().loadActivityMetaContext();
- TasksUiPlugin.getTaskActivityMonitor().reloadActivityTime();
-
- assertEquals(26000, TasksUiPlugin.getTaskActivityManager().getElapsedTime(task1));
-
- }
-
- public void testAfterReloading() {
- AbstractTask task1 = new LocalTask("task 1", "Task 1");
- TasksUiPlugin.getTaskList().addTask(task1);
-
- Calendar startTime = Calendar.getInstance();
- Calendar endTime = Calendar.getInstance();
- endTime.add(Calendar.SECOND, 20);
-
- InteractionEvent event1 = new InteractionEvent(InteractionEvent.Kind.SELECTION, "structureKind",
- task1.getHandleIdentifier(), "originId", "navigatedRelation",
- InteractionContextManager.ACTIVITY_DELTA_ACTIVATED, 2f, startTime.getTime(), startTime.getTime());
- InteractionEvent event2 = new InteractionEvent(InteractionEvent.Kind.SELECTION, "structureKind",
- task1.getHandleIdentifier(), "originId", "navigatedRelation",
- InteractionContextManager.ACTIVITY_DELTA_DEACTIVATED, 2f, startTime.getTime(), startTime.getTime());
-
- InteractionEvent activityEvent1 = new InteractionEvent(InteractionEvent.Kind.ATTENTION,
- InteractionContextManager.ACTIVITY_STRUCTUREKIND_TIMING, task1.getHandleIdentifier(),
- InteractionContextManager.ACTIVITY_ORIGINID_WORKBENCH, null,
- InteractionContextManager.ACTIVITY_DELTA_ADDED, 1f, startTime.getTime(), endTime.getTime());
-
- ContextCorePlugin.getContextManager().getActivityMetaContext().parseEvent(event1);
- TasksUiPlugin.getTaskActivityMonitor().parseInteractionEvent(event1, false);
- ContextCorePlugin.getContextManager().getActivityMetaContext().parseEvent(activityEvent1);
- TasksUiPlugin.getTaskActivityMonitor().parseInteractionEvent(activityEvent1, false);
- ContextCorePlugin.getContextManager().getActivityMetaContext().parseEvent(event2);
- TasksUiPlugin.getTaskActivityMonitor().parseInteractionEvent(event2, false);
- assertEquals(20000, TasksUiPlugin.getTaskActivityManager().getElapsedTime(task1));
-
- ContextCorePlugin.getContextManager().saveActivityMetaContext();
- ContextCorePlugin.getContextManager().loadActivityMetaContext();
- TasksUiPlugin.getTaskActivityMonitor().reloadActivityTime();
-
- assertEquals(20000, TasksUiPlugin.getTaskActivityManager().getElapsedTime(task1));
-
- }
-
- public void testCollapsedTiming() {
- Calendar startTime1 = Calendar.getInstance();
- Calendar endTime1 = Calendar.getInstance();
- endTime1.add(Calendar.SECOND, 20);
-
- Calendar startTime2 = Calendar.getInstance();
- startTime2.setTimeInMillis(endTime1.getTimeInMillis());
- Calendar endTime2 = Calendar.getInstance();
- endTime2.setTimeInMillis(startTime2.getTimeInMillis() + 20 * 1000);
-
- Calendar startTime3 = Calendar.getInstance();
- startTime3.setTimeInMillis(endTime2.getTimeInMillis());
- Calendar endTime3 = Calendar.getInstance();
- endTime3.setTimeInMillis(startTime3.getTimeInMillis() + 20 * 1000);
-
- InteractionContext mockContext = new InteractionContext("doitest", new InteractionContextScaling());
- InteractionEvent activityEvent1 = new InteractionEvent(InteractionEvent.Kind.ATTENTION,
- InteractionContextManager.ACTIVITY_STRUCTUREKIND_TIMING, "handle",
- InteractionContextManager.ACTIVITY_ORIGINID_WORKBENCH, null,
- InteractionContextManager.ACTIVITY_DELTA_ADDED, 1f, startTime1.getTime(), endTime1.getTime());
-
- InteractionEvent activityEvent2 = new InteractionEvent(InteractionEvent.Kind.ATTENTION,
- InteractionContextManager.ACTIVITY_STRUCTUREKIND_TIMING, "handle",
- InteractionContextManager.ACTIVITY_ORIGINID_WORKBENCH, null,
- InteractionContextManager.ACTIVITY_DELTA_ADDED, 1f, startTime2.getTime(), endTime2.getTime());
-
- InteractionEvent activityEvent3 = new InteractionEvent(InteractionEvent.Kind.ATTENTION,
- InteractionContextManager.ACTIVITY_STRUCTUREKIND_TIMING, "handle",
- InteractionContextManager.ACTIVITY_ORIGINID_WORKBENCH, null,
- InteractionContextManager.ACTIVITY_DELTA_ADDED, 1f, startTime3.getTime(), endTime3.getTime());
-
- mockContext.parseEvent(activityEvent1);
- mockContext.parseEvent(activityEvent2);
- mockContext.parseEvent(activityEvent3);
- assertEquals(3, mockContext.getInteractionHistory().size());
- mockContext = ContextCorePlugin.getContextManager().collapseActivityMetaContext(mockContext);
- assertEquals(1, mockContext.getInteractionHistory().size());
-
- assertEquals(60 * 1000, mockContext.getInteractionHistory().get(0).getEndDate().getTime()
- - mockContext.getInteractionHistory().get(0).getDate().getTime());
- }
-
- /**
- * test that total collapsed time is same when events are separated in time
- */
- public void testCollapsedTiming2() {
- Calendar startTime1 = Calendar.getInstance();
- Calendar endTime1 = Calendar.getInstance();
- endTime1.add(Calendar.SECOND, 20);
-
- Calendar startTime2 = Calendar.getInstance();
- startTime2.setTimeInMillis(endTime1.getTimeInMillis());
- Calendar endTime2 = Calendar.getInstance();
- endTime2.setTimeInMillis(startTime2.getTimeInMillis() + 20 * 1000);
-
- Calendar startTime3 = Calendar.getInstance();
- startTime3.setTimeInMillis(endTime2.getTimeInMillis());
- Calendar endTime3 = Calendar.getInstance();
- endTime3.setTimeInMillis(startTime3.getTimeInMillis() + 50 * 1000);
-
- InteractionContext mockContext = new InteractionContext("doitest", new InteractionContextScaling());
- InteractionEvent activityEvent1 = new InteractionEvent(InteractionEvent.Kind.ATTENTION,
- InteractionContextManager.ACTIVITY_STRUCTUREKIND_TIMING, "handle",
- InteractionContextManager.ACTIVITY_ORIGINID_WORKBENCH, null,
- InteractionContextManager.ACTIVITY_DELTA_ADDED, 1f, startTime1.getTime(), endTime1.getTime());
-
- InteractionEvent activityEvent3 = new InteractionEvent(InteractionEvent.Kind.ATTENTION,
- InteractionContextManager.ACTIVITY_STRUCTUREKIND_TIMING, "handle",
- InteractionContextManager.ACTIVITY_ORIGINID_WORKBENCH, null,
- InteractionContextManager.ACTIVITY_DELTA_ADDED, 1f, startTime3.getTime(), endTime3.getTime());
-
- mockContext.parseEvent(activityEvent1);
- mockContext.parseEvent(activityEvent3);
- assertEquals(2, mockContext.getInteractionHistory().size());
- mockContext = ContextCorePlugin.getContextManager().collapseActivityMetaContext(mockContext);
- assertEquals(1, mockContext.getInteractionHistory().size());
- assertEquals(70 * 1000, mockContext.getInteractionHistory().get(0).getEndDate().getTime()
- - mockContext.getInteractionHistory().get(0).getDate().getTime());
- }
-
- public void testCollapsedExternalization() {
-
- Calendar startTime1 = Calendar.getInstance();
- Calendar endTime1 = Calendar.getInstance();
- endTime1.setTime(startTime1.getTime());
- endTime1.add(Calendar.SECOND, 20);
-
- Calendar startTime2 = Calendar.getInstance();
- startTime2.add(Calendar.DAY_OF_MONTH, 1);
- Calendar endTime2 = Calendar.getInstance();
- endTime2.setTime(startTime2.getTime());
- endTime2.add(Calendar.SECOND, 20);
-
- AbstractTask task1 = new LocalTask("task 1", "Task 1");
- TasksUiPlugin.getTaskList().addTask(task1);
- InteractionContext metaContext = ContextCorePlugin.getContextManager().getActivityMetaContext();
- metaContext.reset();
- assertEquals(0, metaContext.getInteractionHistory().size());
-
- TasksUiPlugin.getTaskActivityManager().activateTask(task1);
-
- InteractionEvent activityEvent1 = new InteractionEvent(InteractionEvent.Kind.ATTENTION,
- InteractionContextManager.ACTIVITY_STRUCTUREKIND_TIMING, task1.getHandleIdentifier(),
- InteractionContextManager.ACTIVITY_ORIGINID_WORKBENCH, null,
- InteractionContextManager.ACTIVITY_DELTA_ADDED, 1f, startTime1.getTime(), endTime1.getTime());
-
- InteractionEvent activityEvent2 = new InteractionEvent(InteractionEvent.Kind.ATTENTION,
- InteractionContextManager.ACTIVITY_STRUCTUREKIND_TIMING, task1.getHandleIdentifier(),
- InteractionContextManager.ACTIVITY_ORIGINID_WORKBENCH, null,
- InteractionContextManager.ACTIVITY_DELTA_ADDED, 1f, startTime2.getTime(), endTime2.getTime());
-
- metaContext.parseEvent(activityEvent1);
- TasksUiPlugin.getTaskActivityMonitor().parseInteractionEvent(activityEvent1, false);
- metaContext.parseEvent(activityEvent2);
- TasksUiPlugin.getTaskActivityMonitor().parseInteractionEvent(activityEvent2, false);
- TasksUiPlugin.getTaskActivityManager().deactivateActiveTask();
- assertEquals(4, ContextCorePlugin.getContextManager().getActivityMetaContext().getInteractionHistory().size());
-
- TaskTestUtil.saveTaskList();
- ContextCorePlugin.getContextManager().saveActivityMetaContext();
- ContextCorePlugin.getContextManager().getActivityMetaContext().reset();
- assertEquals(0, ContextCorePlugin.getContextManager().getActivityMetaContext().getInteractionHistory().size());
- ContextCorePlugin.getContextManager().loadActivityMetaContext();
-
- assertEquals(4, ContextCorePlugin.getContextManager().getActivityMetaContext().getInteractionHistory().size());
-
- TasksUiPlugin.getTaskActivityMonitor().reloadActivityTime();
- assertEquals((endTime1.getTimeInMillis() - startTime1.getTimeInMillis())
- + (endTime2.getTimeInMillis() - startTime2.getTimeInMillis()), TasksUiPlugin.getTaskActivityManager()
- .getElapsedTime(task1));
- }
-
- public void testCollapsedTwoTasks() {
- // test collapsing of attention events when two or more
- // task attention events occur sequentially
- Calendar startTime1 = Calendar.getInstance();
- Calendar endTime1 = Calendar.getInstance();
- endTime1.add(Calendar.SECOND, 20);
-
- Calendar startTime2 = Calendar.getInstance();
- startTime2.setTime(endTime1.getTime());
- startTime2.add(Calendar.SECOND, 2);
- Calendar endTime2 = Calendar.getInstance();
- endTime2.setTime(startTime2.getTime());
- endTime2.add(Calendar.SECOND, 20);
-
- InteractionContext mockContext = new InteractionContext("doitest", new InteractionContextScaling());
- InteractionEvent activityEvent1 = new InteractionEvent(InteractionEvent.Kind.ATTENTION,
- InteractionContextManager.ACTIVITY_STRUCTUREKIND_TIMING, "handle1",
- InteractionContextManager.ACTIVITY_ORIGINID_WORKBENCH, null,
- InteractionContextManager.ACTIVITY_DELTA_ADDED, 1f, startTime1.getTime(), endTime1.getTime());
-
- InteractionEvent activityEvent2 = new InteractionEvent(InteractionEvent.Kind.ATTENTION,
- InteractionContextManager.ACTIVITY_STRUCTUREKIND_TIMING, "handle2",
- InteractionContextManager.ACTIVITY_ORIGINID_WORKBENCH, null,
- InteractionContextManager.ACTIVITY_DELTA_ADDED, 1f, startTime2.getTime(), endTime2.getTime());
-
- mockContext.parseEvent(activityEvent1);
- mockContext.parseEvent(activityEvent2);
-
- // Since these event times are within same hour, normally they would get collapsed
- // here we test that if the event belongs to two different tasks remain discrete
-
- assertEquals(2, mockContext.getInteractionHistory().size());
- mockContext = ContextCorePlugin.getContextManager().collapseActivityMetaContext(mockContext);
- assertEquals(2, mockContext.getInteractionHistory().size());
- }
-
- public void testCollapeedByTheHour() {
- Calendar startTime1 = Calendar.getInstance();
- startTime1.set(Calendar.MINUTE, 2);
- startTime1.set(Calendar.SECOND, 0);
- startTime1.set(Calendar.MILLISECOND, 0);
-
- Calendar endTime1 = Calendar.getInstance();
- endTime1.setTime(startTime1.getTime());
- endTime1.add(Calendar.MINUTE, 2);
-
- Calendar startTime2 = Calendar.getInstance();
- startTime2.add(Calendar.HOUR_OF_DAY, 1);
- startTime2.set(Calendar.MINUTE, 2);
- startTime2.set(Calendar.SECOND, 0);
- startTime2.set(Calendar.MILLISECOND, 0);
-
- Calendar endTime2 = Calendar.getInstance();
- endTime2.setTime(startTime2.getTime());
- endTime2.add(Calendar.MINUTE, 3);
-
- Calendar startTime3 = Calendar.getInstance();
- startTime3.add(Calendar.HOUR_OF_DAY, 1);
- startTime3.set(Calendar.MINUTE, 20);
- startTime3.set(Calendar.SECOND, 0);
- startTime3.set(Calendar.MILLISECOND, 0);
-
- Calendar endTime3 = Calendar.getInstance();
- endTime3.setTime(startTime3.getTime());
- endTime3.add(Calendar.MINUTE, 5);
-
- AbstractTask task1 = new LocalTask("task 1", "Task 1");
- TasksUiPlugin.getTaskList().addTask(task1);
-
- InteractionEvent activityEvent1 = new InteractionEvent(InteractionEvent.Kind.ATTENTION,
- InteractionContextManager.ACTIVITY_STRUCTUREKIND_TIMING, task1.getHandleIdentifier(),
- InteractionContextManager.ACTIVITY_ORIGINID_WORKBENCH, null,
- InteractionContextManager.ACTIVITY_DELTA_ADDED, 1f, startTime1.getTime(), endTime1.getTime());
-
- InteractionEvent activityEvent2 = new InteractionEvent(InteractionEvent.Kind.ATTENTION,
- InteractionContextManager.ACTIVITY_STRUCTUREKIND_TIMING, task1.getHandleIdentifier(),
- InteractionContextManager.ACTIVITY_ORIGINID_WORKBENCH, null,
- InteractionContextManager.ACTIVITY_DELTA_ADDED, 1f, startTime2.getTime(), endTime2.getTime());
-
- InteractionEvent activityEvent3 = new InteractionEvent(InteractionEvent.Kind.ATTENTION,
- InteractionContextManager.ACTIVITY_STRUCTUREKIND_TIMING, task1.getHandleIdentifier(),
- InteractionContextManager.ACTIVITY_ORIGINID_WORKBENCH, null,
- InteractionContextManager.ACTIVITY_DELTA_ADDED, 1f, startTime3.getTime(), endTime3.getTime());
-
- List<InteractionEvent> events = new ArrayList<InteractionEvent>();
- events.add(activityEvent1);
- events.add(activityEvent2);
- events.add(activityEvent3);
- List<InteractionEvent> collapsedEvents = ContextCorePlugin.getContextManager().collapseEventsByHour(events);
-
- assertEquals(2, collapsedEvents.size());
- }
-
- public void testTaskListManagerInactivity() {
-
- AbstractTask task1 = new LocalTask("task 1", "Task 1");
- TasksUiPlugin.getTaskList().addTask(task1);
-
- ScheduledTaskContainer activityThisWeek = new ScheduledTaskContainer(TasksUiPlugin.getTaskActivityManager(),
- TaskActivityUtil.getCurrentWeek());
- assertNotNull(activityThisWeek);
- assertEquals(0, activityThisWeek.getChildren().size());
-
- InteractionEvent event1 = new InteractionEvent(InteractionEvent.Kind.SELECTION, "structureKind",
- task1.getHandleIdentifier(), "originId", "navigatedRelation",
- InteractionContextManager.ACTIVITY_DELTA_ACTIVATED, 2f, activityThisWeek.getStart().getTime(),
- activityThisWeek.getStart().getTime());
- InteractionEvent event2 = new InteractionEvent(InteractionEvent.Kind.SELECTION, "structureKind",
- task1.getHandleIdentifier(), "originId", "navigatedRelation",
- InteractionContextManager.ACTIVITY_DELTA_DEACTIVATED, 2f, activityThisWeek.getEnd().getTime(),
- activityThisWeek.getEnd().getTime());
-
- Calendar activityStart = Calendar.getInstance();
- Calendar activityEnd = Calendar.getInstance();
- activityEnd.add(Calendar.HOUR_OF_DAY, 1);
-
- InteractionEvent activityEvent = new InteractionEvent(InteractionEvent.Kind.ATTENTION,
- InteractionContextManager.ACTIVITY_STRUCTUREKIND_TIMING, task1.getHandleIdentifier(),
- InteractionContextManager.ACTIVITY_ORIGINID_WORKBENCH, null,
- InteractionContextManager.ACTIVITY_DELTA_ADDED, 1f, activityStart.getTime(), activityEnd.getTime());
-
- TasksUiPlugin.getTaskActivityMonitor().parseInteractionEvent(event1, false);
- TasksUiPlugin.getTaskActivityMonitor().parseInteractionEvent(activityEvent, false);
- TasksUiPlugin.getTaskActivityMonitor().parseInteractionEvent(event2, false);
-
- long expectedTotalTime = (activityEnd.getTime().getTime() - activityStart.getTime().getTime());
- assertEquals(expectedTotalTime, TasksUiPlugin.getTaskActivityManager().getElapsedTime(task1));
- }
-
- public void testElapsedSameAfterRead() {
- // test that granularity of elapsed time map is retained after
- // being re-read from disk
-
- Calendar startTime1 = Calendar.getInstance();
- startTime1.set(Calendar.MINUTE, 2);
- startTime1.set(Calendar.SECOND, 0);
- startTime1.set(Calendar.MILLISECOND, 0);
-
- Calendar endTime1 = Calendar.getInstance();
- endTime1.setTime(startTime1.getTime());
- endTime1.add(Calendar.MINUTE, 2);
-
- Calendar startTime2 = Calendar.getInstance();
- startTime2.add(Calendar.HOUR_OF_DAY, 1);
- startTime2.set(Calendar.MINUTE, 2);
- startTime2.set(Calendar.SECOND, 0);
- startTime2.set(Calendar.MILLISECOND, 0);
-
- Calendar endTime2 = Calendar.getInstance();
- endTime2.setTime(startTime2.getTime());
- endTime2.add(Calendar.MINUTE, 3);
-
- Calendar startTime3 = Calendar.getInstance();
- startTime3.add(Calendar.HOUR_OF_DAY, 1);
- startTime3.set(Calendar.MINUTE, 20);
- startTime3.set(Calendar.SECOND, 0);
- startTime3.set(Calendar.MILLISECOND, 0);
-
- Calendar endTime3 = Calendar.getInstance();
- endTime3.setTime(startTime3.getTime());
- endTime3.add(Calendar.MINUTE, 5);
-
- AbstractTask task1 = new LocalTask("task 1", "Task 1");
- TasksUiPlugin.getTaskList().addTask(task1);
- TasksUiPlugin.getTaskActivityManager().activateTask(task1);
- InteractionContext metaContext = ContextCorePlugin.getContextManager().getActivityMetaContext();
- metaContext.reset();
- assertEquals(0, metaContext.getInteractionHistory().size());
-
- InteractionEvent activityEvent1 = new InteractionEvent(InteractionEvent.Kind.ATTENTION,
- InteractionContextManager.ACTIVITY_STRUCTUREKIND_TIMING, task1.getHandleIdentifier(),
- InteractionContextManager.ACTIVITY_ORIGINID_WORKBENCH, null,
- InteractionContextManager.ACTIVITY_DELTA_ADDED, 1f, startTime1.getTime(), endTime1.getTime());
-
- InteractionEvent activityEvent2 = new InteractionEvent(InteractionEvent.Kind.ATTENTION,
- InteractionContextManager.ACTIVITY_STRUCTUREKIND_TIMING, task1.getHandleIdentifier(),
- InteractionContextManager.ACTIVITY_ORIGINID_WORKBENCH, null,
- InteractionContextManager.ACTIVITY_DELTA_ADDED, 1f, startTime2.getTime(), endTime2.getTime());
-
- InteractionEvent activityEvent3 = new InteractionEvent(InteractionEvent.Kind.ATTENTION,
- InteractionContextManager.ACTIVITY_STRUCTUREKIND_TIMING, task1.getHandleIdentifier(),
- InteractionContextManager.ACTIVITY_ORIGINID_WORKBENCH, null,
- InteractionContextManager.ACTIVITY_DELTA_ADDED, 1f, startTime3.getTime(), endTime3.getTime());
-
- metaContext.parseEvent(activityEvent1);
- TasksUiPlugin.getTaskActivityMonitor().parseInteractionEvent(activityEvent1, false);
- metaContext.parseEvent(activityEvent2);
- TasksUiPlugin.getTaskActivityMonitor().parseInteractionEvent(activityEvent2, false);
- metaContext.parseEvent(activityEvent3);
- TasksUiPlugin.getTaskActivityMonitor().parseInteractionEvent(activityEvent3, false);
-
- assertEquals(1000 * 60 * 10, TasksUiPlugin.getTaskActivityManager().getElapsedTime(task1));
- assertEquals(1000 * 60 * 2, activityManager.getElapsedTime(task1, startTime1, endTime1));
- assertEquals(1000 * 60 * 8, activityManager.getElapsedTime(task1, startTime2, endTime2));
-
- TasksUi.getTaskActivityManager().deactivateActiveTask();
- assertEquals(4, ContextCorePlugin.getContextManager().getActivityMetaContext().getInteractionHistory().size());
- TaskTestUtil.saveTaskList();
- ContextCorePlugin.getContextManager().saveActivityMetaContext();
- ContextCorePlugin.getContextManager().getActivityMetaContext().reset();
- assertEquals(0, ContextCorePlugin.getContextManager().getActivityMetaContext().getInteractionHistory().size());
- TasksUiPlugin.getTaskActivityMonitor().reloadActivityTime();
- assertEquals(0, activityManager.getElapsedTime(task1));
- assertEquals(0, activityManager.getElapsedTime(task1, startTime1, endTime1));
- assertEquals(0, activityManager.getElapsedTime(task1, startTime2, endTime2));
-
- ContextCorePlugin.getContextManager().loadActivityMetaContext();
- assertEquals(3, ContextCorePlugin.getContextManager().getActivityMetaContext().getInteractionHistory().size());
- TasksUiPlugin.getTaskActivityMonitor().reloadActivityTime();
-
- startTime1 = Calendar.getInstance();
- startTime1.set(Calendar.MINUTE, 0);
- startTime1.set(Calendar.SECOND, 0);
- startTime1.set(Calendar.MILLISECOND, 0);
-
- assertEquals(1000 * 60 * 10, activityManager.getElapsedTime(task1));
- assertEquals(1000 * 60 * 2, activityManager.getElapsedTime(task1, startTime1, endTime1));
- assertEquals(1000 * 60 * 8, activityManager.getElapsedTime(task1, startTime2, endTime2));
- }
-
- /**
- * @author Yuri Baburov (burchik@gmail.com)
- * @author Rob Elves adaption to test LegacyActivityAdaptor
- */
- public void testLegacyTimingMigration() {
- AbstractTask task1 = new LocalTask("task 1", "Task 1");
- TasksUiPlugin.getTaskList().addTask(task1);
-
-// ScheduledTaskContainer thisWeekActivity = new ScheduledTaskContainer(TasksUiPlugin.getTaskActivityManager(),
-// TaskActivityUtil.getCurrentWeek());
-//
-// assertNotNull(thisWeekActivity);
-// assertEquals(0, thisWeekActivity.getChildren().size());
-// thisWeekActivity.getStart().setTimeInMillis(1149490800000L);
-// // Start
-// // of
-// // the
-// // week
-// // Jun 5
-// // 2006
-// // - Jun
-// // 11
-// // 2006,
-// // NOVST
-// thisWeekActivity.getEnd().setTimeInMillis(1150095600000L); // End of
-// // the week
-
- Date time1 = new Date(1150007053171L); // Sun Jun 11 13:24:13 NOVST
- // 2006 - task 1 - activated
- Date time2 = new Date(1150007263468L); // Sun Jun 11 13:27:43 NOVST
- // 2006 - attention -
- // deactivated
- Date time3 = new Date(1150021535953L); // Sun Jun 11 17:25:35 NOVST
- // 2006 - attention - activated
- Date time4 = new Date(1150021658500L); // Sun Jun 11 17:27:38 NOVST
- // 2006 - attention -
- // deactivated
- Date time5 = new Date(1150031089250L); // Sun Jun 11 20:04:49 NOVST
- // 2006 - attention - activated
- Date time6 = new Date(1150031111578L); // Sun Jun 11 20:05:11 NOVST
- // 2006 - attention -
- // deactivated
- Date time7 = new Date(1150031111578L); // Sun Jun 11 20:05:11 NOVST
- // 2006 - task 1 - deactivated
-
- String task1handle = task1.getHandleIdentifier();
- InteractionEvent event1 = new InteractionEvent(InteractionEvent.Kind.SELECTION, "structureKind", task1handle,
- "originId", "navigatedRelation", InteractionContextManager.ACTIVITY_DELTA_ACTIVATED, 2f, time1, time1);
-
- InteractionEvent event2 = new InteractionEvent(InteractionEvent.Kind.SELECTION, "structureKind", "attention",
- "originId", "navigatedRelation", InteractionContextManager.ACTIVITY_DELTA_ACTIVATED, 2f, time1, time2);
- InteractionEvent event3 = new InteractionEvent(InteractionEvent.Kind.SELECTION, "structureKind", "attention",
- "originId", "navigatedRelation", InteractionContextManager.ACTIVITY_DELTA_ACTIVATED, 2f, time3, time4);
- InteractionEvent event5 = new InteractionEvent(InteractionEvent.Kind.SELECTION, "structureKind", "attention",
- "originId", "navigatedRelation", InteractionContextManager.ACTIVITY_DELTA_ACTIVATED, 2f, time5, time6);
- InteractionEvent event7 = new InteractionEvent(InteractionEvent.Kind.SELECTION, "structureKind", task1handle,
- "originId", "navigatedRelation", InteractionContextManager.ACTIVITY_DELTA_DEACTIVATED, 2f, time7, time7);
-
- LegacyActivityAdaptor legacyAdaptor = new LegacyActivityAdaptor();
- TasksUiPlugin.getTaskActivityMonitor()
- .parseInteractionEvent(legacyAdaptor.parseInteractionEvent(event1), false);
- TasksUiPlugin.getTaskActivityMonitor()
- .parseInteractionEvent(legacyAdaptor.parseInteractionEvent(event2), false);
- TasksUiPlugin.getTaskActivityMonitor()
- .parseInteractionEvent(legacyAdaptor.parseInteractionEvent(event3), false);
- // TasksUiPlugin.getTaskListManager().parseInteractionEvent(event4);
- TasksUiPlugin.getTaskActivityMonitor()
- .parseInteractionEvent(legacyAdaptor.parseInteractionEvent(event5), false);
- // TaskActivityManager.getInstance().parseInteractionEvent(event6);
- TasksUiPlugin.getTaskActivityMonitor()
- .parseInteractionEvent(legacyAdaptor.parseInteractionEvent(event7), false);
- long expectedTotalTime = time6.getTime() - time5.getTime() + time4.getTime() - time3.getTime()
- + time2.getTime() - time1.getTime();
- assertEquals(expectedTotalTime, TasksUiPlugin.getTaskActivityManager().getElapsedTime(task1));
- }
-
-// DND: OLD ACTIVITY TESTS - Will be using to test activity report/view
-// public void testInterleavedActivation() {
-//
-// AbstractTask task1 = new LocalTask("task 1", "Task 1");
-// TasksUiPlugin.getTaskList().addTask(task1);
-//
-// ScheduledTaskContainer activityThisWeek = TasksUiPlugin.getTaskListManager().getActivityThisWeek();
-// assertNotNull(activityThisWeek);
-// assertEquals(0, activityThisWeek.getChildren().size());
-//
-// Calendar taskActivationStart = GregorianCalendar.getInstance();
-// taskActivationStart.add(Calendar.MILLISECOND, 15);
-// Calendar taskActivationStop = GregorianCalendar.getInstance();
-// taskActivationStop.add(Calendar.MILLISECOND, 25);
-//
-// Calendar inactivityStart1 = GregorianCalendar.getInstance();
-// inactivityStart1.add(Calendar.MILLISECOND, 5);
-// Calendar inactivityStop1 = GregorianCalendar.getInstance();
-// inactivityStop1.add(Calendar.MILLISECOND, 10);
-//
-// Calendar inactivityStart2 = GregorianCalendar.getInstance();
-// inactivityStart2.add(Calendar.MILLISECOND, 18);
-// Calendar inactivityStop2 = GregorianCalendar.getInstance();
-// inactivityStop2.add(Calendar.MILLISECOND, 25);
-//
-// InteractionEvent event1 = new InteractionEvent(InteractionEvent.Kind.SELECTION, "structureKind",
-// task1.getHandleIdentifier(), "originId", "navigatedRelation",
-// InteractionContextManager.ACTIVITY_DELTA_ACTIVATED, 2f, taskActivationStart.getTime(),
-// taskActivationStart.getTime());
-// InteractionEvent event2 = new InteractionEvent(InteractionEvent.Kind.SELECTION, "structureKind",
-// task1.getHandleIdentifier(), "originId", "navigatedRelation",
-// InteractionContextManager.ACTIVITY_DELTA_DEACTIVATED, 2f, taskActivationStop.getTime(),
-// taskActivationStop.getTime());
-//
-// InteractionEvent inactivityEvent1 = new InteractionEvent(InteractionEvent.Kind.COMMAND, "structureKind",
-// task1.getHandleIdentifier(), "originId", "navigatedRelation",
-// InteractionContextManager.ACTIVITY_DELTA_DEACTIVATED, 2f, inactivityStart1.getTime(),
-// inactivityStop1.getTime());
-// InteractionEvent inactivityEvent2 = new InteractionEvent(InteractionEvent.Kind.COMMAND, "structureKind",
-// task1.getHandleIdentifier(), "originId", "navigatedRelation",
-// InteractionContextManager.ACTIVITY_DELTA_ACTIVATED, 2f, inactivityStart2.getTime(),
-// inactivityStop2.getTime());
-//
-// TasksUiPlugin.getTaskListManager().parseInteractionEvent(inactivityEvent1);
-// TasksUiPlugin.getTaskListManager().parseInteractionEvent(event1);
-// TasksUiPlugin.getTaskListManager().parseInteractionEvent(event2);
-// TasksUiPlugin.getTaskListManager().parseInteractionEvent(inactivityEvent2);
-// assertEquals(1, activityThisWeek.getChildren().size());
-//
-// // long expectedTotalTime = taskActivationStop.getTimeInMillis() -
-// // taskActivationStart.getTimeInMillis();
-// long expectedTotalTime = 0;
-// assertEquals(expectedTotalTime, activityThisWeek.getTotalElapsed());
-// assertEquals(expectedTotalTime, activityThisWeek.getElapsed(new ScheduledTaskDelegate(activityThisWeek, task1,
-// null, null)));
-// }
-//
-// public void testInterleavedActivation2() {
-//
-// AbstractTask task1 = new LocalTask("task 1", "Task 1");
-// TasksUiPlugin.getTaskList().addTask(task1);
-//
-// ScheduledTaskContainer activityThisWeek = TasksUiPlugin.getTaskListManager().getActivityThisWeek();
-// assertNotNull(activityThisWeek);
-// assertEquals(0, activityThisWeek.getChildren().size());
-//
-// Calendar taskActivationStart = GregorianCalendar.getInstance();
-// taskActivationStart.add(Calendar.MILLISECOND, 10);
-// Calendar taskActivationStop = GregorianCalendar.getInstance();
-// taskActivationStop.add(Calendar.MILLISECOND, 25);
-//
-// Calendar inactivityStart = GregorianCalendar.getInstance();
-// inactivityStart.add(Calendar.MILLISECOND, 15);
-// Calendar inactivityStop = GregorianCalendar.getInstance();
-// inactivityStop.add(Calendar.MILLISECOND, 20);
-//
-// InteractionEvent event1 = new InteractionEvent(InteractionEvent.Kind.SELECTION, "structureKind",
-// task1.getHandleIdentifier(), "originId", "navigatedRelation",
-// InteractionContextManager.ACTIVITY_DELTA_ACTIVATED, 2f, taskActivationStart.getTime(),
-// taskActivationStart.getTime());
-// InteractionEvent event2 = new InteractionEvent(InteractionEvent.Kind.SELECTION, "structureKind",
-// task1.getHandleIdentifier(), "originId", "navigatedRelation",
-// InteractionContextManager.ACTIVITY_DELTA_DEACTIVATED, 2f, taskActivationStop.getTime(),
-// taskActivationStop.getTime());
-//
-// InteractionEvent inactivityEvent1 = new InteractionEvent(InteractionEvent.Kind.COMMAND, "structureKind",
-// task1.getHandleIdentifier(), "originId", "navigatedRelation",
-// InteractionContextManager.ACTIVITY_DELTA_ADDED, 2f, inactivityStart.getTime(),
-// inactivityStop.getTime());
-//
-// TasksUiPlugin.getTaskListManager().parseInteractionEvent(event1);
-// TasksUiPlugin.getTaskListManager().parseInteractionEvent(inactivityEvent1);
-// TasksUiPlugin.getTaskListManager().parseInteractionEvent(event1);
-// TasksUiPlugin.getTaskListManager().parseInteractionEvent(inactivityEvent1);
-// TasksUiPlugin.getTaskListManager().parseInteractionEvent(event2);
-//
-// assertEquals(1, activityThisWeek.getChildren().size());
-//
-// long expectedTotalTime = 2 * (inactivityStart.getTimeInMillis() - taskActivationStart.getTimeInMillis());
-// assertEquals(expectedTotalTime, activityThisWeek.getTotalElapsed());
-// assertEquals(expectedTotalTime, activityThisWeek.getElapsed(new ScheduledTaskDelegate(activityThisWeek, task1,
-// null, null)));
-// }
-//
-//
-// /**
-// * Some 'attention' events when all tasks are inactive
-// *
-// * @author Yuri Baburov (burchik@gmail.com)
-// */
-// public void testTaskListManagerActivity2() {
-// AbstractTask task1 = new LocalTask("task 1", "Task 1");
-// TasksUiPlugin.getTaskList().addTask(task1);
-// ScheduledTaskContainer thisWeekActivity = TasksUiPlugin.getTaskListManager().getActivityThisWeek();
-// assertNotNull(thisWeekActivity);
-// assertEquals(0, thisWeekActivity.getChildren().size());
-// assertEquals(0, thisWeekActivity.getTotalElapsed());
-// thisWeekActivity.getStart().setTimeInMillis(1149490800000L); // Start
-// // of
-// // the
-// // week
-// // Jun 5
-// // 2006
-// // - Jun
-// // 11
-// // 2006,
-// // NOVST
-// thisWeekActivity.getEnd().setTimeInMillis(1150095600000L); // End of
-// // the week
-//
-// Date time1 = new Date(1149911820812L); // Sat Jun 10 10:57:00 NOVST
-// // 2006 - task 1 - activated
-// Date time2 = new Date(1149911820812L); // Sat Jun 10 10:57:00 NOVST
-// // 2006 - task 1 - deactivated
-// Date time3 = new Date(1149911840812L); // Sat Jun 10 10:57:20 NOVST
-// // 2006 - attention -
-// // deactivated
-// Date time4 = new Date(1149911941765L); // Sat Jun 10 10:59:01 NOVST
-// // 2006 - attention - activated
-// Date time5 = new Date(1149911948953L); // Sat Jun 10 10:59:08 NOVST
-// // 2006 - task 1 - activated
-// Date time6 = new Date(1149911988781L); // Sat Jun 10 10:59:48 NOVST
-// // 2006 - task 1 - deactivated
-//
-// String task1handle = task1.getHandleIdentifier();
-// InteractionEvent event1 = new InteractionEvent(InteractionEvent.Kind.SELECTION, "structureKind", task1handle,
-// "originId", "navigatedRelation", InteractionContextManager.ACTIVITY_DELTA_ACTIVATED, 2f, time1, time1);
-// InteractionEvent event2 = new InteractionEvent(InteractionEvent.Kind.SELECTION, "structureKind", task1handle,
-// "originId", "navigatedRelation", InteractionContextManager.ACTIVITY_DELTA_DEACTIVATED, 2f, time2, time2);
-// InteractionEvent event3 = new InteractionEvent(InteractionEvent.Kind.SELECTION, "structureKind", "attention",
-// "originId", "navigatedRelation", InteractionContextManager.ACTIVITY_DELTA_DEACTIVATED, 2f, time3, time3);
-// InteractionEvent event4 = new InteractionEvent(InteractionEvent.Kind.SELECTION, "structureKind", "attention",
-// "originId", "navigatedRelation", InteractionContextManager.ACTIVITY_DELTA_ACTIVATED, 2f, time4, time4);
-// InteractionEvent event5 = new InteractionEvent(InteractionEvent.Kind.SELECTION, "structureKind", task1handle,
-// "originId", "navigatedRelation", InteractionContextManager.ACTIVITY_DELTA_ACTIVATED, 2f, time5, time5);
-// InteractionEvent event6 = new InteractionEvent(InteractionEvent.Kind.SELECTION, "structureKind", task1handle,
-// "originId", "navigatedRelation", InteractionContextManager.ACTIVITY_DELTA_DEACTIVATED, 2f, time6, time6);
-//
-// TasksUiPlugin.getTaskListManager().parseInteractionEvent(event1);
-// TasksUiPlugin.getTaskListManager().parseInteractionEvent(event2);
-// TasksUiPlugin.getTaskListManager().parseInteractionEvent(event3);
-// TasksUiPlugin.getTaskListManager().parseInteractionEvent(event4);
-// TasksUiPlugin.getTaskListManager().parseInteractionEvent(event5);
-// TasksUiPlugin.getTaskListManager().parseInteractionEvent(event6);
-// assertEquals(1, thisWeekActivity.getChildren().size());
-// long expectedTotalTime = 0;// time6.getTime() - time5.getTime() +
-// // time2.getTime() - time1.getTime();
-// assertEquals(expectedTotalTime, thisWeekActivity.getTotalElapsed());
-// assertEquals(expectedTotalTime, TasksUiPlugin.getTaskListManager().getElapsedTime(task1));
-// assertEquals(expectedTotalTime, thisWeekActivity.getElapsed(new ScheduledTaskDelegate(thisWeekActivity, task1,
-// null, null)));
-// }
-//
-// public void testTaskListManagerActivity() {
-//
-// AbstractTask task1 = new LocalTask("task 1", "Task 1");
-// AbstractTask task2 = new LocalTask("task 2", "Task 2");
-// TasksUiPlugin.getTaskList().addTask(task1);
-// TasksUiPlugin.getTaskList().addTask(task2);
-//
-// // test this week
-// ScheduledTaskContainer thisWeekActivity = TasksUiPlugin.getTaskListManager().getActivityThisWeek();
-// assertNotNull(thisWeekActivity);
-// assertEquals(0, thisWeekActivity.getChildren().size());
-// assertEquals(0, thisWeekActivity.getTotalElapsed());
-// Calendar thisWeekCalendarStart = GregorianCalendar.getInstance();
-// thisWeekCalendarStart.setTime(thisWeekActivity.getStart().getTime());
-// Calendar thisWeekCalendarStop = GregorianCalendar.getInstance();
-// thisWeekCalendarStop.setTime(thisWeekActivity.getStart().getTime());
-// thisWeekCalendarStop.add(Calendar.MILLISECOND, 2);
-// assertTrue(thisWeekActivity.includes(thisWeekCalendarStart));
-//
-// InteractionEvent event1 = new InteractionEvent(InteractionEvent.Kind.SELECTION, "structureKind",
-// task1.getHandleIdentifier(), "originId", "navigatedRelation",
-// InteractionContextManager.ACTIVITY_DELTA_ACTIVATED, 2f, thisWeekCalendarStart.getTime(),
-// thisWeekCalendarStart.getTime());
-// InteractionEvent event2 = new InteractionEvent(InteractionEvent.Kind.SELECTION, "structureKind",
-// task1.getHandleIdentifier(), "originId", "navigatedRelation",
-// InteractionContextManager.ACTIVITY_DELTA_DEACTIVATED, 2f, thisWeekCalendarStop.getTime(),
-// thisWeekCalendarStop.getTime());
-//
-// TasksUiPlugin.getTaskListManager().parseInteractionEvent(event1);
-// TasksUiPlugin.getTaskListManager().parseInteractionEvent(event2);
-// assertEquals(1, thisWeekActivity.getChildren().size());
-// assertEquals(0, thisWeekActivity.getTotalElapsed());
-// // assertEquals(thisWeekCalendarStop.getTime().getTime() -
-// // thisWeekCalendarStart.getTime().getTime(),
-// // thisWeekActivity.getTotalElapsed());
-//
-// TasksUiPlugin.getTaskListManager().parseInteractionEvent(event1);
-// TasksUiPlugin.getTaskListManager().parseInteractionEvent(event2);
-// assertEquals(1, thisWeekActivity.getChildren().size());
-// // assertEquals(2 * (thisWeekCalendarStop.getTime().getTime() -
-// // thisWeekCalendarStart.getTime().getTime()),
-// // thisWeekActivity.getTotalElapsed());
-// // assertEquals(2 * (thisWeekCalendarStop.getTime().getTime() -
-// // thisWeekCalendarStart.getTime().getTime()),
-// // thisWeekActivity.getElapsed(new
-// // DateRangeActivityDelegate(thisWeekActivity, task1, null, null)));
-//
-// // multiple tasks in category
-// event1 = new InteractionEvent(InteractionEvent.Kind.SELECTION, "structureKind", task2.getHandleIdentifier(),
-// "originId", "navigatedRelation", InteractionContextManager.ACTIVITY_DELTA_ACTIVATED, 2f,
-// thisWeekCalendarStart.getTime(), thisWeekCalendarStart.getTime());
-// event2 = new InteractionEvent(InteractionEvent.Kind.SELECTION, "structureKind", task2.getHandleIdentifier(),
-// "originId", "navigatedRelation", InteractionContextManager.ACTIVITY_DELTA_DEACTIVATED, 2f,
-// thisWeekCalendarStop.getTime(), thisWeekCalendarStop.getTime());
-// TasksUiPlugin.getTaskListManager().parseInteractionEvent(event1);
-// TasksUiPlugin.getTaskListManager().parseInteractionEvent(event2);
-// assertEquals(2, thisWeekActivity.getChildren().size());
-//
-// // test Past
-// ScheduledTaskContainer pastActivity = TasksUiPlugin.getTaskListManager().getActivityPast();
-// assertNotNull(pastActivity);
-// assertEquals(0, pastActivity.getChildren().size());
-//
-// InteractionEvent event3 = new InteractionEvent(InteractionEvent.Kind.SELECTION, "structureKind",
-// task2.getHandleIdentifier(), "originId", "navigatedRelation",
-// InteractionContextManager.ACTIVITY_DELTA_ACTIVATED, 2f, pastActivity.getStart().getTime(),
-// pastActivity.getStart().getTime());
-// InteractionEvent event4 = new InteractionEvent(InteractionEvent.Kind.SELECTION, "structureKind",
-// task2.getHandleIdentifier(), "originId", "navigatedRelation",
-// InteractionContextManager.ACTIVITY_DELTA_DEACTIVATED, 2f, pastActivity.getEnd().getTime(),
-// pastActivity.getEnd().getTime());
-//
-// TasksUiPlugin.getTaskListManager().parseInteractionEvent(event3);
-// TasksUiPlugin.getTaskListManager().parseInteractionEvent(event4);
-// assertEquals(1, pastActivity.getChildren().size());
-//
-// // test Future
-// ScheduledTaskContainer futureActivity = TasksUiPlugin.getTaskListManager().getActivityFuture();
-// assertNotNull(futureActivity);
-// assertEquals(0, futureActivity.getChildren().size());
-//
-// InteractionEvent event5 = new InteractionEvent(InteractionEvent.Kind.SELECTION, "structureKind",
-// task2.getHandleIdentifier(), "originId", "navigatedRelation",
-// InteractionContextManager.ACTIVITY_DELTA_ACTIVATED, 2f, futureActivity.getStart().getTime(),
-// futureActivity.getStart().getTime());
-// InteractionEvent event6 = new InteractionEvent(InteractionEvent.Kind.SELECTION, "structureKind",
-// task2.getHandleIdentifier(), "originId", "navigatedRelation",
-// InteractionContextManager.ACTIVITY_DELTA_DEACTIVATED, 2f, futureActivity.getEnd().getTime(),
-// futureActivity.getEnd().getTime());
-//
-// TasksUiPlugin.getTaskListManager().parseInteractionEvent(event5);
-// TasksUiPlugin.getTaskListManager().parseInteractionEvent(event6);
-// // No longer adding activity to future bins (days of week, next week, or
-// // future)
-// assertEquals(0, futureActivity.getChildren().size());
-//
-// // test Next week activity
-// ScheduledTaskContainer activityNextWeek = TasksUiPlugin.getTaskListManager().getActivityNextWeek();
-// assertNotNull(activityNextWeek);
-// assertEquals(0, activityNextWeek.getChildren().size());
-//
-// InteractionEvent event7 = new InteractionEvent(InteractionEvent.Kind.SELECTION, "structureKind",
-// task2.getHandleIdentifier(), "originId", "navigatedRelation",
-// InteractionContextManager.ACTIVITY_DELTA_ACTIVATED, 2f, activityNextWeek.getStart().getTime(),
-// activityNextWeek.getStart().getTime());
-// InteractionEvent event8 = new InteractionEvent(InteractionEvent.Kind.SELECTION, "structureKind",
-// task2.getHandleIdentifier(), "originId", "navigatedRelation",
-// InteractionContextManager.ACTIVITY_DELTA_DEACTIVATED, 2f, activityNextWeek.getEnd().getTime(),
-// activityNextWeek.getEnd().getTime());
-//
-// TasksUiPlugin.getTaskListManager().parseInteractionEvent(event7);
-// TasksUiPlugin.getTaskListManager().parseInteractionEvent(event8);
-// // No longer adding activity to future bins (days of week, next week, or
-// // future)
-// assertEquals(0, activityNextWeek.getChildren().size());
-//
-// // test Previous week activity
-// ScheduledTaskContainer activityPreviousWeek = TasksUiPlugin.getTaskListManager().getActivityPrevious();
-// assertNotNull(activityPreviousWeek);
-// assertEquals(0, activityPreviousWeek.getChildren().size());
-//
-// InteractionEvent event9 = new InteractionEvent(InteractionEvent.Kind.SELECTION, "structureKind",
-// task2.getHandleIdentifier(), "originId", "navigatedRelation",
-// InteractionContextManager.ACTIVITY_DELTA_ACTIVATED, 2f, activityPreviousWeek.getStart().getTime(),
-// activityPreviousWeek.getStart().getTime());
-// InteractionEvent event10 = new InteractionEvent(InteractionEvent.Kind.SELECTION, "structureKind",
-// task2.getHandleIdentifier(), "originId", "navigatedRelation",
-// InteractionContextManager.ACTIVITY_DELTA_DEACTIVATED, 2f, activityPreviousWeek.getEnd().getTime(),
-// activityPreviousWeek.getEnd().getTime());
-//
-// TasksUiPlugin.getTaskListManager().parseInteractionEvent(event9);
-// TasksUiPlugin.getTaskListManager().parseInteractionEvent(event10);
-// assertEquals(1, activityPreviousWeek.getChildren().size());
-// }
-
-}
diff --git a/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TaskAttachmentTest.java b/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TaskAttachmentTest.java
deleted file mode 100644
index b0e134b39..000000000
--- a/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TaskAttachmentTest.java
+++ /dev/null
@@ -1,112 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2004, 2008 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.tasks.tests;
-
-import java.io.File;
-import java.io.RandomAccessFile;
-
-import junit.framework.TestCase;
-
-import org.eclipse.core.runtime.Status;
-import org.eclipse.mylyn.internal.tasks.core.TaskAttachment;
-import org.eclipse.mylyn.internal.tasks.core.TaskRepositoryManager;
-import org.eclipse.mylyn.internal.tasks.ui.TasksUiPlugin;
-import org.eclipse.mylyn.internal.tasks.ui.util.CopyAttachmentToClipboardJob;
-import org.eclipse.mylyn.internal.tasks.ui.util.DownloadAttachmentJob;
-import org.eclipse.mylyn.tasks.core.ITaskAttachment;
-import org.eclipse.mylyn.tasks.core.TaskRepository;
-import org.eclipse.mylyn.tasks.core.data.TaskAttributeMapper;
-import org.eclipse.mylyn.tasks.core.data.TaskData;
-import org.eclipse.mylyn.tasks.tests.connector.MockAttachmentHandler;
-import org.eclipse.mylyn.tasks.tests.connector.MockRepositoryConnector;
-import org.eclipse.mylyn.tasks.tests.connector.MockTask;
-import org.eclipse.swt.dnd.Clipboard;
-import org.eclipse.swt.dnd.TextTransfer;
-import org.eclipse.ui.PlatformUI;
-
-/**
- * Test task attachment jobs.
- *
- * @author Steffen Pingel
- */
-public class TaskAttachmentTest extends TestCase {
-
- private TaskRepositoryManager manager;
-
- private MockRepositoryConnector connector;
-
- private MockAttachmentHandler attachmentHandler;
-
- private TaskRepository repository;
-
- private ITaskAttachment attachment;
-
- @Override
- protected void setUp() throws Exception {
- super.setUp();
-
- manager = TasksUiPlugin.getRepositoryManager();
-
- repository = new TaskRepository(MockRepositoryConnector.REPOSITORY_KIND, MockRepositoryConnector.REPOSITORY_URL);
- manager.addRepository(repository);
-
- attachmentHandler = new MockAttachmentHandler();
-
- connector = new MockRepositoryConnector();
- connector.setTaskAttachmentHandler(attachmentHandler);
- manager.addRepositoryConnector(connector);
-
- TaskData taskData = new TaskData(new TaskAttributeMapper(repository), MockRepositoryConnector.REPOSITORY_KIND,
- MockRepositoryConnector.REPOSITORY_URL, "1");
- attachment = new TaskAttachment(repository, new MockTask("1"), taskData.getRoot().createAttribute("attachment"));
- }
-
- @Override
- protected void tearDown() throws Exception {
- manager.removeRepository(repository, TasksUiPlugin.getDefault().getRepositoriesFilePath());
- }
-
- public void testCopyToClipboardAction() throws Exception {
- String expected = "attachment content";
- attachmentHandler.setAttachmentData(expected.getBytes());
-
- CopyAttachmentToClipboardJob job = new CopyAttachmentToClipboardJob(attachment);
- job.schedule();
- job.join();
-
- Clipboard clipboard = new Clipboard(PlatformUI.getWorkbench().getDisplay());
- assertEquals(expected, clipboard.getContents(TextTransfer.getInstance()));
- }
-
- public void testDownloadAttachmentJob() throws Exception {
- File file = File.createTempFile("mylyn", null);
- file.deleteOnExit();
-
- String expected = "attachment\ncontent";
- attachmentHandler.setAttachmentData(expected.getBytes());
-
- DownloadAttachmentJob job = new DownloadAttachmentJob(attachment, file);
- job.schedule();
- job.join();
-
- assertEquals(Status.OK_STATUS, job.getResult());
-
- RandomAccessFile raf = new RandomAccessFile(file, "r");
- byte[] data = new byte[expected.getBytes().length];
- try {
- raf.readFully(data);
- } finally {
- raf.close();
- }
- assertEquals(expected, new String(data));
- }
-}
diff --git a/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TaskContainerTest.java b/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TaskContainerTest.java
deleted file mode 100644
index e65783e0c..000000000
--- a/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TaskContainerTest.java
+++ /dev/null
@@ -1,39 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2004, 2008 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.tasks.tests;
-
-import junit.framework.TestCase;
-
-import org.eclipse.mylyn.tasks.tests.connector.MockTask;
-
-/**
- * @author Steffen Pingel
- */
-public class TaskContainerTest extends TestCase {
-
- public void testGetChildren() {
- MockTask task1 = new MockTask("1");
- MockTask task2 = new MockTask("2");
- MockTask task3 = new MockTask("3");
- MockTask task4 = new MockTask("4");
-
- task1.internalAddChild(task2);
- task2.internalAddChild(task3);
- task3.internalAddChild(task1);
- task3.internalAddChild(task4);
-
- assertTrue(task1.contains(task4.getHandleIdentifier()));
- assertTrue(task3.contains(task4.getHandleIdentifier()));
- assertFalse(task3.contains("abc"));
- }
-
-}
diff --git a/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TaskDataExportTest.java b/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TaskDataExportTest.java
deleted file mode 100644
index 1b26119a7..000000000
--- a/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TaskDataExportTest.java
+++ /dev/null
@@ -1,169 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2004, 2008 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.tasks.tests;
-
-import java.io.File;
-import java.io.FileInputStream;
-import java.util.ArrayList;
-import java.util.zip.ZipEntry;
-import java.util.zip.ZipInputStream;
-
-import org.eclipse.core.runtime.NullProgressMonitor;
-import org.eclipse.mylyn.commons.tests.support.CommonsTestUtil;
-import org.eclipse.mylyn.context.tests.AbstractContextTest;
-import org.eclipse.mylyn.internal.tasks.ui.TasksUiPlugin;
-import org.eclipse.mylyn.internal.tasks.ui.util.TaskDataExportOperation;
-import org.eclipse.mylyn.internal.tasks.ui.util.TaskDataSnapshotOperation;
-import org.eclipse.mylyn.internal.tasks.ui.wizards.TaskDataExportWizard;
-import org.eclipse.mylyn.internal.tasks.ui.wizards.TaskDataExportWizardPage;
-import org.eclipse.swt.widgets.Shell;
-
-/**
- * Test case for the Task Export Wizard
- *
- * @author Wesley Coelho
- * @author Mik Kersten (fixes)
- */
-public class TaskDataExportTest extends AbstractContextTest {
-
- private TaskDataExportWizard wizard;
-
- private TaskDataExportWizardPage wizardPage;
-
- private File destinationDir;
-
- @Override
- protected void setUp() throws Exception {
- super.setUp();
-
- // Create the export wizard
- wizard = new TaskDataExportWizard();
- wizard.addPages();
- wizard.createPageControls(new Shell());
- wizardPage = (TaskDataExportWizardPage) wizard.getPage("org.eclipse.mylyn.tasklist.exportPage");
- assertNotNull(wizardPage);
-
- // Create test export destination directory
- File mylynFolder = new File(TasksUiPlugin.getDefault().getDataDirectory());
- destinationDir = new File(mylynFolder.getParent(), "TestDir");
- CommonsTestUtil.deleteFolder(destinationDir);
- destinationDir.mkdir();
-
- // Create folder/file structure
- File tasklist = new File(mylynFolder, "tasks.xml.zip");
- if (!tasklist.exists()) {
- assertTrue(tasklist.createNewFile());
- }
- File hidden = new File(mylynFolder, ".hidden");
- if (!hidden.exists()) {
- assertTrue(hidden.createNewFile());
- }
- File tasksandstuff = new File(mylynFolder, "tasksandstuff");
- if (!tasksandstuff.exists()) {
- assertTrue(tasksandstuff.mkdir());
- }
- File backup = new File(mylynFolder, "backup");
- if (!backup.exists()) {
- assertTrue(backup.mkdir());
- }
- File tasksFile = new File(tasksandstuff, "file1.xml.zip");
- if (!tasksFile.exists()) {
- assertTrue(tasksFile.createNewFile());
- }
-
- File tasksSubDir = new File(tasksandstuff, "sub");
- if (!tasksSubDir.exists()) {
- assertTrue(tasksSubDir.mkdir());
- }
-
- File tasksSubDirFile = new File(tasksSubDir, "file2.xml.zip");
- if (!tasksSubDirFile.exists()) {
- assertTrue(tasksSubDirFile.createNewFile());
- }
-
- }
-
- @Override
- protected void tearDown() throws Exception {
- wizard.dispose();
- wizardPage.dispose();
- CommonsTestUtil.deleteFolder(destinationDir);
- File mylynFolder = new File(TasksUiPlugin.getDefault().getDataDirectory());
- // Create folder/file structure
- File tasklist = new File(mylynFolder, "tasks.xml.zip");
- tasklist.delete();
- File hidden = new File(mylynFolder, ".hidden");
- hidden.delete();
- File tasks = new File(mylynFolder, "tasksandstuff");
- File tasksSubDir = new File(tasks, "sub");
- File backup = new File(mylynFolder, "backup");
- CommonsTestUtil.deleteFolder(backup);
- CommonsTestUtil.deleteFolder(tasksSubDir);
- CommonsTestUtil.deleteFolder(tasks);
- super.tearDown();
- }
-
- /**
- * Tests the wizard when it has been asked to export all task data to a zip file.
- */
- public void testExportAllToZip() throws Exception {
- // set parameters in the wizard to simulate a user setting them and clicking "Finish"
- wizardPage.setDestinationDirectory(destinationDir.getPath());
- wizard.performFinish();
-
- // check that the task list file was exported
- File[] files = destinationDir.listFiles();
- assertEquals(1, files.length);
- ZipInputStream zipInputStream = new ZipInputStream(new FileInputStream(files[0]));
- try {
- ArrayList<String> entries = new ArrayList<String>();
- ZipEntry entry = zipInputStream.getNextEntry();
- while (entry != null) {
- entries.add(entry.getName());
- entry = zipInputStream.getNextEntry();
- }
- assertFalse(entries.contains(".hidden"));
- assertTrue(entries.contains("tasks.xml.zip"));
- assertTrue(entries.contains("tasksandstuff/file1.xml.zip"));
- assertTrue(entries.contains("tasksandstuff/sub/file2.xml.zip"));
- assertFalse(entries.contains("backup"));
- } finally {
- zipInputStream.close();
- }
- }
-
- public void testSnapshot() throws Exception {
- final TaskDataExportOperation backupJob = new TaskDataSnapshotOperation(destinationDir.getPath(),
- "testBackup.zip");
- backupJob.run(new NullProgressMonitor());
- // check that the task list file was exported
- File[] files = destinationDir.listFiles();
- assertEquals(1, files.length);
- ZipInputStream zipInputStream = new ZipInputStream(new FileInputStream(files[0]));
- try {
- ArrayList<String> entries = new ArrayList<String>();
- ZipEntry entry = zipInputStream.getNextEntry();
- while (entry != null) {
- entries.add(entry.getName());
- entry = zipInputStream.getNextEntry();
- }
- assertFalse(entries.contains(".hidden"));
- assertTrue(entries.contains("tasks.xml.zip"));
- assertTrue(entries.contains("repositories.xml.zip"));
- assertTrue(entries.contains("contexts/activity.xml.zip"));
- assertFalse(entries.contains("tasks"));
- assertEquals(3, entries.size());
- } finally {
- zipInputStream.close();
- }
- }
-}
diff --git a/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TaskDataImportTest.java b/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TaskDataImportTest.java
deleted file mode 100644
index 90ed04c0d..000000000
--- a/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TaskDataImportTest.java
+++ /dev/null
@@ -1,124 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2004, 2008 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.tasks.tests;
-
-import java.io.File;
-import java.util.Collection;
-
-import org.eclipse.mylyn.context.tests.AbstractContextTest;
-import org.eclipse.mylyn.internal.context.core.ContextCorePlugin;
-import org.eclipse.mylyn.internal.context.core.InteractionContext;
-import org.eclipse.mylyn.internal.tasks.core.AbstractTask;
-import org.eclipse.mylyn.internal.tasks.core.LocalTask;
-import org.eclipse.mylyn.internal.tasks.core.TaskList;
-import org.eclipse.mylyn.internal.tasks.ui.TasksUiPlugin;
-import org.eclipse.mylyn.internal.tasks.ui.wizards.TaskDataImportWizard;
-import org.eclipse.mylyn.internal.tasks.ui.wizards.TaskDataImportWizardPage;
-import org.eclipse.swt.widgets.Shell;
-
-/**
- * Test case for the Task Import Wizard
- *
- * @author Rob Elves
- */
-public class TaskDataImportTest extends AbstractContextTest {
-
- private TaskDataImportWizard wizard = null;
-
- private TaskDataImportWizardPage wizardPage = null;
-
- private final String sourceZipPath = "testdata/taskdataimporttest/mylardata-2007-01-19.zip";
-
- private File sourceZipFile = null;
-
- @Override
- protected void setUp() throws Exception {
- super.setUp();
-
- // Create the import wizard
- wizard = new TaskDataImportWizard();
- wizard.addPages();
- wizard.createPageControls(new Shell());
- wizardPage = (TaskDataImportWizardPage) wizard.getPage("org.eclipse.mylyn.tasklist.importPage");
- assertNotNull(wizardPage);
-
- TaskTestUtil.resetTaskListAndRepositories();
-
- sourceZipFile = TaskTestUtil.getLocalFile(sourceZipPath);
- assertTrue(sourceZipFile.exists());
-
- ContextCorePlugin.getContextManager().getActivityMetaContext().reset();
- }
-
- @Override
- protected void tearDown() throws Exception {
- wizard.dispose();
- wizardPage.dispose();
- ContextCorePlugin.getContextManager().resetActivityMetaContext();
- TasksUiPlugin.getRepositoryManager().clearRepositories(TasksUiPlugin.getDefault().getRepositoriesFilePath());
- TaskTestUtil.resetTaskList();
- super.tearDown();
- }
-
- /**
- * Tests the wizard when it has been asked to import all task data from a zip file
- */
- public void testImportRepositoriesZip() {
- TaskList taskList = TasksUiPlugin.getTaskList();
- InteractionContext historyContext = ContextCorePlugin.getContextManager().getActivityMetaContext();
- assertNotNull(taskList);
- assertNotNull(historyContext);
- assertTrue(taskList.getAllTasks().size() == 0);
- assertTrue(historyContext.getInteractionHistory().size() == 0);
-
- wizardPage.setSource(true, sourceZipFile.getPath());
- wizard.performFinish();
-
- Collection<AbstractTask> tasks = taskList.getAllTasks();
- assertEquals(2, tasks.size());
- for (AbstractTask task : tasks) {
- assertTrue(ContextCorePlugin.getContextManager().hasContext(task.getHandleIdentifier()));
- }
- historyContext = ContextCorePlugin.getContextManager().getActivityMetaContext();
- assertNotNull(historyContext);
- assertTrue(historyContext.getInteractionHistory().size() > 0);
- assertTrue(TasksUiPlugin.getRepositoryManager().getAllRepositories().size() > 2);
- }
-
- public void testImportOverwritesAllTasks() {
- TaskList taskList = TasksUiPlugin.getTaskList();
- InteractionContext historyContext = ContextCorePlugin.getContextManager().getActivityMetaContext();
- assertNotNull(taskList);
- assertNotNull(historyContext);
- assertTrue(taskList.getAllTasks().size() == 0);
- assertTrue(historyContext.getInteractionHistory().size() == 0);
-
- AbstractTask task1 = new LocalTask("999", "label");
- taskList.addTask(task1);
- Collection<AbstractTask> tasks = taskList.getAllTasks();
- assertEquals(1, tasks.size());
-
- wizardPage.setSource(true, sourceZipFile.getPath());
- wizard.performFinish();
-
- tasks = taskList.getAllTasks();
- assertEquals(2, tasks.size());
- assertTrue(!taskList.getAllTasks().contains(task1));
- for (AbstractTask task : tasks) {
- assertTrue(ContextCorePlugin.getContextManager().hasContext(task.getHandleIdentifier()));
- }
- historyContext = ContextCorePlugin.getContextManager().getActivityMetaContext();
- assertNotNull(historyContext);
- assertTrue(historyContext.getInteractionHistory().size() > 0);
- assertTrue(TasksUiPlugin.getRepositoryManager().getAllRepositories().size() > 2);
- }
-}
diff --git a/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TaskDataManagerTest.java b/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TaskDataManagerTest.java
deleted file mode 100644
index 8eda90899..000000000
--- a/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TaskDataManagerTest.java
+++ /dev/null
@@ -1,293 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2004, 2008 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.tasks.tests;
-
-import junit.framework.TestCase;
-
-import org.eclipse.mylyn.internal.tasks.core.TaskTask;
-import org.eclipse.mylyn.internal.tasks.core.data.TaskDataManager;
-import org.eclipse.mylyn.internal.tasks.ui.TasksUiPlugin;
-import org.eclipse.mylyn.tasks.core.TaskRepository;
-import org.eclipse.mylyn.tasks.core.ITask.SynchronizationState;
-import org.eclipse.mylyn.tasks.core.data.TaskData;
-
-/**
- * @author Rob Elves
- * @author Steffen Pingel
- */
-public class TaskDataManagerTest extends TestCase {
-
- private TaskDataManager taskDataManger;
-
- @Override
- protected void setUp() throws Exception {
- taskDataManger = TasksUiPlugin.getTaskDataManager();
- }
-
- public void testPutUpdatedTaskData() throws Exception {
- TaskRepository taskRepository = TaskTestUtil.createMockRepository();
- TaskTask task = TaskTestUtil.createMockTask("1");
- task.setSynchronizationState(SynchronizationState.SYNCHRONIZED);
- TaskData taskData = TaskTestUtil.createTaskData(taskRepository, "1");
- taskDataManger.putUpdatedTaskData(task, taskData, true, null);
- assertEquals(SynchronizationState.SYNCHRONIZED, task.getSynchronizationState());
- }
-
-// public void testHasIncomingDateComparison() {
-// final Stack<Date> dates = new Stack<Date>();
-// MockTask task = new MockTask(MOCCK_ID);
-// RepositoryTaskData taskData = new RepositoryTaskData(new MockAttributeFactory() {
-// private static final long serialVersionUID = 1L;
-//
-// @Override
-// public Date getDateForAttributeType(String attributeKey, String dateString) {
-// return dates.pop();
-// }
-// }, connector.getConnectorKind(), MockRepositoryConnector.REPOSITORY_URL, MOCCK_ID);
-// task.setLastReadTimeStamp("never");
-//
-// assertTrue(TasksUiPlugin.getTaskDataManager().checkHasIncoming(task, taskData));
-//
-// // strings and dates mismatch
-// dates.push(new Date(1));
-// dates.push(new Date(2));
-// taskData.setAttributeValue(RepositoryTaskAttribute.DATE_MODIFIED, "2006-06-21 15:29:39");
-// assertTrue(TasksUiPlugin.getTaskDataManager().checkHasIncoming(task, taskData));
-//
-// dates.push(null);
-// dates.push(new Date(2));
-// assertTrue(TasksUiPlugin.getTaskDataManager().checkHasIncoming(task, taskData));
-//
-// dates.push(new Date());
-// dates.push(null);
-// assertTrue(TasksUiPlugin.getTaskDataManager().checkHasIncoming(task, taskData));
-//
-// // strings mismatch but dates match
-// dates.push(new Date(1));
-// dates.push(new Date(1));
-// assertFalse(TasksUiPlugin.getTaskDataManager().checkHasIncoming(task, taskData));
-//
-// // strings match, dates should not be checked
-// task.setLastReadTimeStamp("2006-06-21 15:29:39");
-// assertFalse(TasksUiPlugin.getTaskDataManager().checkHasIncoming(task, taskData));
-// }
-
-// public void testIncomingToIncoming() {
- /*
- * - Synchronize task with incoming changes - Make another change using
- * browser - Open report in tasklist (editor opens with old 'new' data
- * and background sync occurs) - Incoming status set again on task due
- * to 2nd occurrence of new incoming data
- */
-
-// // Test unforced
-// AbstractTask task = primeTaskAndRepository(SynchronizationState.INCOMING, SynchronizationState.INCOMING);
-// RepositoryTaskData taskData = TasksUiPlugin.getTaskDataStorageManager().getNewTaskData(task.getRepositoryUrl(),
-// task.getTaskId());
-// assertEquals(DATE_STAMP_1, task.getLastReadTimeStamp());
-// assertEquals(SynchronizationState.INCOMING, task.getSynchronizationState());
-// assertEquals(DATE_STAMP_2, newData.getLastModified());
-// TasksUiPlugin.getTaskDataManager().saveIncoming(task, newData, false);
-// assertEquals(DATE_STAMP_1, task.getLastReadTimeStamp());
-// assertEquals(SynchronizationState.INCOMING, task.getSynchronizationState());
-// // TasksUiPlugin.getSynchronizationManager().setTaskRead(task, true);
-// // assertEquals(DATE_STAMP_2, task.getLastSyncDateStamp());
-// // and again...
-//
-// RepositoryTaskData taskData3 = new RepositoryTaskData(new MockAttributeFactory(), connector.getConnectorKind(),
-// MockRepositoryConnector.REPOSITORY_URL, "1");
-// taskData3.setAttributeValue(RepositoryTaskAttribute.DATE_MODIFIED, DATE_STAMP_3);
-// TasksUiPlugin.getTaskDataManager().saveIncoming(task, taskData3, false);
-// // last modified stamp not updated until user synchronizes (newdata ==
-// // olddata)
-// assertEquals(SynchronizationState.INCOMING, task.getSynchronizationState());
-// assertEquals(DATE_STAMP_1, task.getLastReadTimeStamp());
-// taskData = TasksUiPlugin.getTaskDataStorageManager().getNewTaskData(task.getRepositoryUrl(), task.getTaskId());
-// assertEquals(DATE_STAMP_3, taskData.getLastModified());
-//
-// // Should keep INCOMING state state since new data has same date samp
-// // and sych is not forced.
-// TasksUiPlugin.getTaskDataManager().saveIncoming(task, taskData3, false);
-// assertEquals(SynchronizationState.INCOMING, task.getSynchronizationState());
-// assertEquals(DATE_STAMP_1, task.getLastReadTimeStamp());
-// taskData = TasksUiPlugin.getTaskDataStorageManager().getNewTaskData(task.getRepositoryUrl(), task.getTaskId());
-// assertEquals(DATE_STAMP_3, taskData.getLastModified());
-// }
- // public void testIncomingToSynchronizedWithVoidSyncTime() {
- // // IF the last sync time (modified timestamp on task) is null, this can
- // result
- // // in the editor refresh/repoen going into an infinite loops since the
- // task never
- // // gets to a synchronized state if the last mod time isn't set. It is now
- // being set
- // // if found to be null.
- // AbstractTask task =
- // primeTaskAndRepository(SynchronizationState.INCOMING,
- // SynchronizationState.SYNCHRONIZED);
- // assertEquals(DATE_STAMP_1, task.getLastSyncDateStamp());
- // task.setLastSyncDateStamp(null);
- // TasksUiPlugin.getSynchronizationManager().updateOfflineState(task,
- // newData, false);
- // assertEquals(SynchronizationState.INCOMING, task.getSyncState());
- // assertEquals(DATE_STAMP_1, task.getLastSyncDateStamp());
- //
- // TasksUiPlugin.getSynchronizationManager().updateOfflineState(task,
- // newData, false);
- // assertEquals(SynchronizationState.SYNCHRONIZED, task.getSyncState());
- // assertEquals(DATE_STAMP_1, task.getLastSyncDateStamp());
- // }
-// public void testMarkRead() {
-// AbstractTask task = primeTaskAndRepository(SynchronizationState.INCOMING, SynchronizationState.SYNCHRONIZED);
-// task.setLastReadTimeStamp(null);
-// assertEquals(SynchronizationState.INCOMING, task.getSynchronizationState());
-// TasksUiPlugin.getTaskDataManager().setTaskRead(task, true);
-// assertEquals(DATE_STAMP_1, task.getLastReadTimeStamp());
-// assertEquals(SynchronizationState.SYNCHRONIZED, task.getSynchronizationState());
-// }
-//
-// public void testMarkUnread() {
-// AbstractTask task = primeTaskAndRepository(SynchronizationState.SYNCHRONIZED, SynchronizationState.SYNCHRONIZED);
-// task.setLastReadTimeStamp(null);
-// assertEquals(SynchronizationState.SYNCHRONIZED, task.getSynchronizationState());
-// TasksUiPlugin.getTaskDataManager().setTaskRead(task, false);
-// assertEquals(SynchronizationState.INCOMING, task.getSynchronizationState());
-// }
-// public void testClearOutgoing() {
-// AbstractTask task = primeTaskAndRepository(SynchronizationState.SYNCHRONIZED, SynchronizationState.SYNCHRONIZED);
-// RepositoryTaskData taskData1 = new RepositoryTaskData(new MockAttributeFactory(),
-// MockRepositoryConnector.REPOSITORY_KIND, MockRepositoryConnector.REPOSITORY_URL, "1");
-// TasksUiPlugin.getTaskDataStorageManager().setNewTaskData(taskData1);
-// taskData1 = TasksUiPlugin.getTaskDataStorageManager()
-// .getEditableCopy(task.getRepositoryUrl(), task.getTaskId());
-//
-// taskData1.setNewComment("Testing");
-// Set<RepositoryTaskAttribute> edits = new HashSet<RepositoryTaskAttribute>();
-// edits.add(taskData1.getAttribute(RepositoryTaskAttribute.COMMENT_NEW));
-// TasksUiPlugin.getTaskDataStorageManager().saveEdits(task.getRepositoryUrl(), task.getTaskId(), edits);
-//
-// RepositoryTaskData editedData = TasksUiPlugin.getTaskDataStorageManager().getEditableCopy(
-// task.getRepositoryUrl(), task.getTaskId());
-// assertEquals("Testing", editedData.getNewComment());
-//
-// TasksUiPlugin.getTaskDataManager().discardOutgoing(task);
-//
-// assertTrue(task.getSynchronizationState().equals(SynchronizationState.SYNCHRONIZED));
-// RepositoryTaskData taskData = TasksUiPlugin.getTaskDataStorageManager().getEditableCopy(
-// task.getRepositoryUrl(), task.getTaskId());
-// assertEquals("", taskData.getNewComment());
-//
-// }
-//
-// public void testMarkTaskRead() {
-// // TODO reimplement
-// String repositoryUrl = "http://mylyn.eclipse.org/bugs222";
-// MockTask task1 = new MockTask(repositoryUrl, "1");
-// MockTask task2 = new MockTask(repositoryUrl, "2");
-// task1.setSynchronizationState(SynchronizationState.INCOMING);
-// task2.setSynchronizationState(SynchronizationState.INCOMING);
-// List<ITaskElement> elements = new ArrayList<ITaskElement>();
-// elements.add(task1);
-// elements.add(task2);
-// MarkTaskReadAction readAction = new MarkTaskReadAction(elements);
-// readAction.run();
-// assertEquals(SynchronizationState.SYNCHRONIZED, task1.getSynchronizationState());
-// assertEquals(SynchronizationState.SYNCHRONIZED, task2.getSynchronizationState());
-//
-// taskList.reset();
-// MockTask hit1 = new MockTask("1");
-// MockTask hit2 = new MockTask("2");
-// MockRepositoryQuery query = new MockRepositoryQuery("summary");
-// taskList.addQuery(query);
-// taskList.addTask(hit1, query);
-// taskList.addTask(hit2, query);
-//
-// elements.clear();
-// elements.add(query);
-// readAction = new MarkTaskReadAction(elements);
-// readAction.run();
-// assertEquals(2, query.getChildren().size());
-// for (ITaskElement element : query.getChildren()) {
-// if (element instanceof MockTask) {
-// MockTask mockTask = (MockTask) element;
-// assertEquals(SynchronizationState.SYNCHRONIZED, mockTask.getSynchronizationState());
-// }
-// }
-// }
-// public void testMarkUnRead() {
- // TODO reimplement
-// String repositoryUrl = "http://mylyn.eclipse.org/bugs222";
-// MockTask task1 = new MockTask(repositoryUrl, "1");
-// MockTask task2 = new MockTask(repositoryUrl, "2");
-// assertEquals(SynchronizationState.SYNCHRONIZED, task1.getSynchronizationState());
-// assertEquals(SynchronizationState.SYNCHRONIZED, task2.getSynchronizationState());
-// List<ITaskElement> elements = new ArrayList<ITaskElement>();
-// elements.add(task1);
-// elements.add(task2);
-// MarkTaskUnreadAction unreadAction = new MarkTaskUnreadAction(elements);
-// unreadAction.run();
-// assertEquals(SynchronizationState.INCOMING, task1.getSynchronizationState());
-// assertEquals(SynchronizationState.INCOMING, task2.getSynchronizationState());
-//
-// taskList.reset();
-// MockTask hit1 = new MockTask("1");
-// MockTask hit2 = new MockTask("2");
-// MockRepositoryQuery query = new MockRepositoryQuery("summary");
-// taskList.addQuery(query);
-// taskList.addTask(hit1, query);
-// taskList.addTask(hit2, query);
-//
-// elements.clear();
-// elements.add(query);
-// MarkTaskReadAction readAction = new MarkTaskReadAction(elements);
-// readAction.run();
-// assertEquals(2, query.getChildren().size());
-// for (ITaskElement element : query.getChildren()) {
-// if (element instanceof MockTask) {
-// MockTask mockTask = (MockTask) element;
-// assertEquals(SynchronizationState.SYNCHRONIZED, mockTask.getSynchronizationState());
-// } else {
-// fail();
-// }
-// }
-//
-// unreadAction = new MarkTaskUnreadAction(elements);
-// unreadAction.run();
-// assertEquals(2, query.getChildren().size());
-// for (ITaskElement element : query.getChildren()) {
-// if (element instanceof MockTask) {
-// MockTask mockTask = (MockTask) element;
-// assertEquals(SynchronizationState.INCOMING, mockTask.getSynchronizationState());
-// } else {
-// fail();
-// }
-// }
-// }
-// public void testQueryHitsNotDropped() {
-// MockTask task1 = new MockTask("1");
-// MockTask task2 = new MockTask("2");
-// task1.setLastReadTimeStamp("today");
-// task2.setLastReadTimeStamp("today");
-// MockRepositoryQuery query = new MockRepositoryQuery("summary");
-// taskList.addQuery(query);
-// taskList.addTask(task1, query);
-// taskList.addTask(task2, query);
-// //assertEquals(0, taskList.getArchiveContainer().getChildren().size());
-// assertEquals(2, query.getChildren().size());
-// TaskRepository repository = TasksUiPlugin.getRepositoryManager().getRepository(
-// MockRepositoryConnector.REPOSITORY_URL);
-// Set<RepositoryQuery> queries = new HashSet<RepositoryQuery>();
-// queries.add(query);
-// TasksUiInternal.synchronizeQueries(new MockRepositoryConnector(), repository, queries, null, true);
-// //assertEquals(2, taskList.getArchiveContainer().getChildren().size());
-// assertEquals(0, query.getChildren().size());
-// }
-}
diff --git a/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TaskDataStoreTest.java b/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TaskDataStoreTest.java
deleted file mode 100644
index 3e41040af..000000000
--- a/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TaskDataStoreTest.java
+++ /dev/null
@@ -1,196 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2004, 2008 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.tasks.tests;
-
-import java.io.File;
-import java.util.Date;
-
-import junit.framework.TestCase;
-
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.mylyn.internal.tasks.core.TaskRepositoryManager;
-import org.eclipse.mylyn.internal.tasks.core.data.TaskDataState;
-import org.eclipse.mylyn.internal.tasks.core.data.TaskDataStore;
-import org.eclipse.mylyn.tasks.core.TaskRepository;
-import org.eclipse.mylyn.tasks.core.data.TaskAttachmentMapper;
-import org.eclipse.mylyn.tasks.core.data.TaskAttribute;
-import org.eclipse.mylyn.tasks.core.data.TaskAttributeMapper;
-import org.eclipse.mylyn.tasks.core.data.TaskCommentMapper;
-import org.eclipse.mylyn.tasks.core.data.TaskData;
-import org.eclipse.mylyn.tasks.core.data.TaskMapper;
-import org.eclipse.mylyn.tasks.core.data.TaskOperation;
-import org.eclipse.mylyn.tasks.tests.connector.MockRepositoryConnector;
-
-/**
- * @author Robert Elves
- * @author Steffen Pingel
- */
-public class TaskDataStoreTest extends TestCase {
-
- private static final String MOCK_ID = "1";
-
- private TaskDataStore storage;
-
- private TaskRepository taskRepository;
-
- private File file;
-
- private TaskData data;
-
- private TaskDataState state;
-
- @Override
- protected void setUp() throws Exception {
- TaskRepositoryManager taskRepositoryManager = new TaskRepositoryManager();
- storage = new TaskDataStore(taskRepositoryManager);
- taskRepository = new TaskRepository(MockRepositoryConnector.REPOSITORY_KIND,
- MockRepositoryConnector.REPOSITORY_URL);
- file = File.createTempFile("mylyn", null);
- file.deleteOnExit();
-
- taskRepositoryManager.addRepositoryConnector(new MockRepositoryConnector());
- taskRepositoryManager.addRepository(taskRepository);
- }
-
- @Override
- protected void tearDown() throws Exception {
- file.delete();
- }
-
- public void testPutAndGet() throws Exception {
- TaskDataState state = new TaskDataState(MockRepositoryConnector.REPOSITORY_KIND,
- MockRepositoryConnector.REPOSITORY_URL, MOCK_ID);
-
- TaskData data = new TaskData(new TaskAttributeMapper(taskRepository), MockRepositoryConnector.REPOSITORY_KIND,
- MockRepositoryConnector.REPOSITORY_URL, MOCK_ID);
- TaskMapper mapper = new TaskMapper(data, true);
- mapper.getTaskData().getRoot().createAttribute("attributeKey1").setValue("attValue!");
- mapper.setDescription("description");
- mapper.setSummary("summary");
- mapper.setTaskKind("task kind");
-
- TaskData oldData = new TaskData(new TaskAttributeMapper(taskRepository),
- MockRepositoryConnector.REPOSITORY_KIND, MockRepositoryConnector.REPOSITORY_URL, MOCK_ID);
-
- state.setRepositoryData(data);
- state.setLastReadData(oldData);
- state.setEditsData(null);
-
- storage.putTaskData(file, state);
-
- TaskDataState retrieved = storage.getTaskDataState(file);
- assertNotNull(retrieved);
- TaskData newTaskData = retrieved.getRepositoryData();
- assertNotNull(newTaskData);
- assertEquals(MockRepositoryConnector.REPOSITORY_KIND, newTaskData.getConnectorKind());
- mapper = new TaskMapper(newTaskData);
- assertEquals("description", mapper.getDescription());
- assertEquals("summary", mapper.getSummary());
- assertEquals("task kind", mapper.getTaskKind());
- }
-
- public void testDelete() throws Exception {
- TaskData data = new TaskData(new TaskAttributeMapper(taskRepository), MockRepositoryConnector.REPOSITORY_KIND,
- MockRepositoryConnector.REPOSITORY_URL, MOCK_ID);
- TaskDataState state = new TaskDataState(MockRepositoryConnector.REPOSITORY_KIND,
- MockRepositoryConnector.REPOSITORY_URL, MOCK_ID);
- state.setRepositoryData(data);
- storage.putTaskData(file, state);
- storage.deleteTaskData(file);
- assertFalse(file.exists());
- assertNull(storage.getTaskDataState(file));
- }
-
- private void setupData() {
- data = new TaskData(new TaskAttributeMapper(taskRepository), MockRepositoryConnector.REPOSITORY_KIND,
- MockRepositoryConnector.REPOSITORY_URL, MOCK_ID);
- state = new TaskDataState(MockRepositoryConnector.REPOSITORY_KIND, MockRepositoryConnector.REPOSITORY_URL,
- MOCK_ID);
- state.setRepositoryData(data);
- }
-
- public void testAttributes() throws Exception {
- setupData();
-
- TaskAttribute attribute = data.getRoot().createAttribute("testId");
- attribute.getMetaData().setLabel("testName").setReadOnly(true);
- attribute.putOption("Option Name 1", "Option Value 1");
- attribute.putOption("Option Name 2", "Option Value 2");
- attribute.addValue("Value 1");
- attribute.addValue("Value 2");
- attribute.addValue("Value 3");
- attribute.getMetaData().putValue("MetaKey1", "MetaValue1");
- attribute.getMetaData().putValue("MetaKey2", "MetaValue2");
- attribute.getMetaData().putValue("MetaKey3", "MetaValue3");
- attribute.getMetaData().putValue("MetaKey4", "MetaValue4");
-
- assertData(1);
- }
-
- private void assertData(int attributeCount) throws CoreException {
- storage.putTaskData(file, state);
- state = storage.getTaskDataState(file);
-
- assertNotNull(state);
- assertNotNull(state.getRepositoryData());
- assertEquals(data.getRoot().toString(), state.getRepositoryData().getRoot().toString());
- assertEquals(attributeCount, state.getRepositoryData().getRoot().getAttributes().size());
- }
-
- public void testOperations() throws Exception {
- setupData();
-
- TaskOperation.applyTo(data.getRoot().createAttribute("op1"), "op1 id", "op1 label");
- TaskOperation.applyTo(data.getRoot().createAttribute("op2"), "op2 id", "op2 label");
-
- assertData(2);
- }
-
- public void testComments() throws Exception {
- setupData();
-
- TaskCommentMapper comment1 = new TaskCommentMapper();
- comment1.setCommentId("attachmentId1");
- TaskAttribute attr = data.getRoot().createAttribute("1");
- comment1.applyTo(attr);
- attr.createAttribute("attr1").setValue("attr1Name");
-
- TaskCommentMapper comment2 = new TaskCommentMapper();
- comment2.setCommentId("attachmentId2");
- comment2.setCreationDate(new Date());
- comment2.setNumber(100);
- comment2.applyTo(data.getRoot().createAttribute("2"));
-
- assertData(2);
- }
-
- public void testAttachments() throws Exception {
- setupData();
-
- TaskAttachmentMapper attachment1 = new TaskAttachmentMapper();
- attachment1.setAuthor(taskRepository.createPerson("thecreator"));
- attachment1.setDeprecated(false);
- attachment1.setPatch(true);
- TaskAttribute attr = data.getRoot().createAttribute("1");
- attachment1.applyTo(attr);
- attr.createAttribute("attr1").setValue("attr1Name");
- attr.createAttribute("attr2").setValue("attr1Name");
-
- TaskAttachmentMapper attachment2 = new TaskAttachmentMapper();
- attachment2.setAuthor(taskRepository.createPerson("thecreator2"));
- attachment2.setDeprecated(true);
- attachment2.setPatch(false);
- attachment2.applyTo(data.getRoot().createAttribute("2"));
-
- assertData(2);
- }
-}
diff --git a/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TaskDiffUtilTest.java b/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TaskDiffUtilTest.java
deleted file mode 100644
index 9d8fdf320..000000000
--- a/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TaskDiffUtilTest.java
+++ /dev/null
@@ -1,56 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2004, 2008 Eugene Kuleshov 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:
- * Eugene Kuleshov - initial API and implementation
- * Tasktop Technologies - improvements
- *******************************************************************************/
-
-package org.eclipse.mylyn.tasks.tests;
-
-import junit.framework.TestCase;
-
-import org.eclipse.mylyn.internal.tasks.ui.notifications.TaskDiffUtil;
-
-/**
- * @author Eugene Kuleshov
- * @author Steffen Pingel
- */
-public class TaskDiffUtilTest extends TestCase {
-
- public void testFoldSpaces() {
- assertEquals("a b", TaskDiffUtil.foldSpaces("a b"));
- assertEquals("", TaskDiffUtil.foldSpaces(" "));
- assertEquals("a b c d", TaskDiffUtil.cleanCommentText("a b c d"));
- assertEquals("b", TaskDiffUtil.cleanCommentText(" b "));
- assertEquals("b", TaskDiffUtil.cleanCommentText(" b"));
- }
-
- public void testCleanComment() {
- assertEquals("attachment: some attachment. attachment description",
- TaskDiffUtil.cleanCommentText(("Created an attachment (id=111)\n" //
- + "some attachment\n" //
- + "\n" //
- + "attachment description")));
- assertEquals("attachment: some attachment", TaskDiffUtil.cleanCommentText(("Created an attachment (id=111)\n" //
- + "some attachment\n" //
- + "\n")));
- assertEquals("some comment", TaskDiffUtil.cleanCommentText(("(In reply to comment #11)\n" //
- + "some comment\n")));
- assertEquals("some comment. other comment", TaskDiffUtil.cleanCommentText((" (In reply to comment #11)\n" //
- + "some comment\n" //
- + "\n" //
- + " (In reply to comment #12)\n" //
- + "other comment\n")));
- assertEquals("some comment. other comment", TaskDiffUtil.cleanCommentText((" (In reply to comment #11)\n" //
- + "some comment. \n" //
- + "\n" //
- + " (In reply to comment #12)\n" //
- + "> loren ipsum\n" + "> loren ipsum\n" + "other comment\n")));
- }
-
-}
diff --git a/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TaskExportImportTest.java b/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TaskExportImportTest.java
deleted file mode 100644
index 25d2f9208..000000000
--- a/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TaskExportImportTest.java
+++ /dev/null
@@ -1,117 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2004, 2008 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:
- * Jevgeni Holodkov - initial API and implementation
- *******************************************************************************/
-
-package org.eclipse.mylyn.tasks.tests;
-
-import org.eclipse.mylyn.context.tests.AbstractContextTest;
-
-/**
- *
- * @author Jevgeni Holodkov
- */
-//FIXME fix test
-public class TaskExportImportTest extends AbstractContextTest {
-
- public void testRewriteTestCases() {
- }
-
-// private File destinationDir;
-//
-// @Override
-// protected void setUp() throws Exception {
-// TasksUi.getTaskActivityManager().deactivateActiveTask();
-// super.setUp();
-//
-// // Create test export destination directory
-// destinationDir = new File(TasksUiPlugin.getDefault().getDataDirectory(), "TestDir");
-// CommonsTestUtil.deleteFolder(destinationDir);
-// destinationDir.mkdir();
-// assertTrue(destinationDir.exists());
-// }
-//
-// @Override
-// protected void tearDown() throws Exception {
-// CommonsTestUtil.deleteFolder(destinationDir);
-// super.tearDown();
-// }
-//
-// public void testTaskContextExport() throws Exception {
-//
-// LocalTask task = TasksUiInternal.createNewLocalTask("Test local task");
-// TaskList taskList = TasksUiPlugin.getTaskList();
-// taskList.addTask(task, taskList.getDefaultCategory());
-// assertTrue(taskList.getAllTasks().size() > 0);
-//
-// InteractionContext mockContext = (InteractionContext) ContextCorePlugin.getContextStore().loadContext(
-// task.getHandleIdentifier());
-//
-// ContextCorePlugin.getContextManager().internalActivateContext(mockContext);
-// InteractionEvent event = new InteractionEvent(InteractionEvent.Kind.EDIT, "structureKind", "handle", "originId");
-// mockContext.parseEvent(event);
-// ContextCore.getContextManager().deactivateContext(mockContext.getHandleIdentifier());
-//
-// assertTrue(ContextCorePlugin.getContextStore().getContextDirectory().exists());
-// ContextCorePlugin.getContextStore().saveContext(mockContext);
-// assertTrue(ContextCore.getContextManager().hasContext(task.getHandleIdentifier()));
-//
-// File outFile = new File(destinationDir + File.separator + "local-task.xml.zip");
-// TasksUiPlugin.getTaskListWriter().writeTask(task, outFile);
-// assertTrue(outFile.exists());
-//
-// // check the content of the archive
-// List<String> files = new ArrayList<String>();
-// ZipInputStream inputStream = new ZipInputStream(new FileInputStream(outFile));
-// ZipEntry entry = null;
-// while ((entry = inputStream.getNextEntry()) != null) {
-// files.add(entry.getName());
-// }
-// inputStream.close();
-//
-// assertTrue("exported file contains a file with queries", files.contains(ITasksCoreConstants.OLD_TASK_LIST_FILE));
-//
-// String handleIdentifier = mockContext.getHandleIdentifier();
-// String encoded = URLEncoder.encode(handleIdentifier, InteractionContextManager.CONTEXT_FILENAME_ENCODING);
-// String contextName = encoded + InteractionContextManager.CONTEXT_FILE_EXTENSION_OLD;
-// assertTrue("exported file contains a file with context", files.contains(contextName));
-//
-// // reset all data
-// TaskTestUtil.resetTaskList();
-// assertTrue(taskList.getAllTasks().size() == 0);
-//
-// ContextCore.getContextManager().deleteContext(handleIdentifier);
-// assertFalse(ContextCore.getContextManager().hasContext(task.getHandleIdentifier()));
-//
-// // load data back
-// List<AbstractTask> tasks = TasksUiPlugin.getTaskListWriter().readTasks(outFile);
-// IInteractionContext loadedContext = ContextCore.getContextStore().importContext(task.getHandleIdentifier(),
-// outFile);
-//
-// // check with original one
-// assertEquals("There is 1 task loaded", 1, tasks.size());
-// assertEquals("Loaded task is correct", task, tasks.get(0));
-// assertEquals("Loaded context is correct", mockContext, loadedContext);
-//
-// // import data
-// for (AbstractTask loadedTask : tasks) {
-// taskList.addTask(loadedTask);
-// }
-// ContextCore.getContextStore().importContext(task.getHandleIdentifier(), outFile);
-//// ContextCorePlugin.getContextStore().importContext(loadedContext);
-//
-// // check that context was imported and is the same as original one
-// IInteractionContext savedContext = ContextCorePlugin.getContextStore().loadContext(task.getHandleIdentifier());
-// assertEquals("Saved context is the same as original one", mockContext, savedContext);
-// assertEquals("Saved task is the same as original one", task, taskList.getTask(task.getHandleIdentifier()));
-//
-// ContextCorePlugin.getContextManager().deactivateAllContexts();
-// }
-
-}
diff --git a/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TaskKeyComparatorTest.java b/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TaskKeyComparatorTest.java
deleted file mode 100644
index 1e087c3c0..000000000
--- a/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TaskKeyComparatorTest.java
+++ /dev/null
@@ -1,69 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2004, 2008 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:
- * Eugene Kulehsov - initial API and implementation
- * Tasktop Technologies - improvements
- *******************************************************************************/
-
-package org.eclipse.mylyn.tasks.tests;
-
-import java.util.Arrays;
-
-import junit.framework.TestCase;
-
-import org.eclipse.mylyn.internal.tasks.ui.views.TaskKeyComparator;
-
-/**
- * @author Eugene Kuleshov - bug 129511
- * @author Mik Kersten
- */
-public class TaskKeyComparatorTest extends TestCase {
-
- public void testPatterns() {
- comparisonCheck("", new String[] { null, null, "" });
- comparisonCheck(" ", new String[] { null, null, " " });
- comparisonCheck("aa", new String[] { null, null, "aa" });
- comparisonCheck("11", new String[] { "", "11", "" });
- comparisonCheck("11 aa", new String[] { "", "11", " aa" });
- comparisonCheck(" 11 aa", new String[] { null, null, " 11 aa" });
- comparisonCheck("aa11 bb", new String[] { "aa", "11", " bb" });
- comparisonCheck("aa-11 bb", new String[] { "aa-", "11", " bb" });
- comparisonCheck("aa 11 bb", new String[] { null, null, "aa 11 bb" });
- comparisonCheck("aa bb 11 cc", new String[] { null, null, "aa bb 11 cc" });
-
- comparisonCheck("aa", "aa", 0);
- comparisonCheck("aa", "bb", -1);
- comparisonCheck("bb", "aa", 1);
-
- comparisonCheck("aa11", "aa11", 0);
- comparisonCheck("aa11", "aa12", -1);
- comparisonCheck("aa12", "aa11", 1);
-
- comparisonCheck("aa1", "aa11", -1);
- comparisonCheck("aa1", "aa2", -1);
- comparisonCheck("aa1", "aa21", -1);
-
- comparisonCheck("aa1 aaa", "aa1 aaa", 0);
- comparisonCheck("aa1 aaa", "aa1 bbb", -1);
- comparisonCheck("aa1 bbb", "aa11 aaa", -1);
- }
-
- private void comparisonCheck(String s, String[] exptecation) {
- String[] res = new TaskKeyComparator().split(s);
- assertTrue("Invalid " + Arrays.asList(res) + " " + Arrays.asList(exptecation), Arrays.equals(res, exptecation));
- }
-
- private static final TaskKeyComparator tkc = new TaskKeyComparator();
-
- public void comparisonCheck(String s1, String s2, int n) {
- final String[] c1 = new String[] { null, null, s1 };
- final String[] c2 = new String[] { null, null, s2 };
- assertEquals(n, tkc.compare(c1, c2));
- }
-
-}
diff --git a/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TaskListBackupManagerTest.java b/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TaskListBackupManagerTest.java
deleted file mode 100644
index 6cb74b8bf..000000000
--- a/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TaskListBackupManagerTest.java
+++ /dev/null
@@ -1,69 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2004, 2008 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.tasks.tests;
-
-import java.io.File;
-
-import junit.framework.TestCase;
-
-import org.eclipse.mylyn.commons.tests.support.CommonsTestUtil;
-import org.eclipse.mylyn.internal.tasks.core.AbstractTask;
-import org.eclipse.mylyn.internal.tasks.core.LocalTask;
-import org.eclipse.mylyn.internal.tasks.ui.TaskListBackupManager;
-import org.eclipse.mylyn.internal.tasks.ui.TasksUiPlugin;
-
-/**
- * @author Rob Elves
- */
-public class TaskListBackupManagerTest extends TestCase {
-
- private AbstractTask task1;
-
- private TaskListBackupManager backupManager;
-
- @Override
- protected void setUp() throws Exception {
- backupManager = TasksUiPlugin.getBackupManager();
- CommonsTestUtil.deleteFolder(new File(TasksUiPlugin.getDefault().getBackupFolderPath()));
- TaskTestUtil.resetTaskList();
- }
-
- public void testAutoBackupDisabled() throws Exception {
- backupManager.start(5);
- Thread.sleep(1000);
- assertEquals(0, backupManager.getBackupFiles().size());
-
- task1 = new LocalTask("handle", "label");
- TasksUiPlugin.getTaskList().addTask(task1);
- backupManager.stop();
- backupManager.start(5);
- Thread.sleep(1000);
- assertEquals(1, backupManager.getBackupFiles().size());
- }
-
- public void testAutoBackupEnabled() throws Exception {
- task1 = new LocalTask("handle", "label");
- TasksUiPlugin.getTaskList().addTask(task1);
- backupManager.backupNow(true, null);
- assertEquals(1, backupManager.getBackupFiles().size());
-
- // make sure a new date stamp is generated
- Thread.sleep(1000);
- backupManager.backupNow(true, null);
- assertEquals(2, backupManager.getBackupFiles().size());
-
- // test removal of old backups
- TasksUiPlugin.getBackupManager().removeOldBackups();
- assertEquals(1, backupManager.getBackupFiles().size());
- }
-
-}
diff --git a/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TaskListContentProviderTest.java b/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TaskListContentProviderTest.java
deleted file mode 100644
index 9dc62c7fb..000000000
--- a/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TaskListContentProviderTest.java
+++ /dev/null
@@ -1,70 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2004, 2008 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:
- * Felix Schwartz - initial API and implementation
- *******************************************************************************/
-
-package org.eclipse.mylyn.tasks.tests;
-
-import java.util.Date;
-
-import junit.framework.TestCase;
-
-import org.eclipse.mylyn.internal.tasks.core.AbstractTask;
-import org.eclipse.mylyn.internal.tasks.core.LocalTask;
-import org.eclipse.mylyn.internal.tasks.core.TaskList;
-import org.eclipse.mylyn.internal.tasks.ui.ITasksUiPreferenceConstants;
-import org.eclipse.mylyn.internal.tasks.ui.TasksUiPlugin;
-import org.eclipse.mylyn.internal.tasks.ui.views.TaskListContentProvider;
-import org.eclipse.mylyn.internal.tasks.ui.views.TaskListView;
-import org.eclipse.mylyn.tasks.ui.TasksUiUtil;
-
-/**
- * @author Felix Schwarz
- */
-public class TaskListContentProviderTest extends TestCase {
-
- private TaskListContentProvider provider;
-
- private TaskListView view;
-
- private TaskList taskList;
-
- @Override
- protected void setUp() throws Exception {
- super.setUp();
- TasksUiUtil.openTasksViewInActivePerspective();
- view = TaskListView.getFromActivePerspective();
- provider = (TaskListContentProvider) view.getViewer().getContentProvider();
- TasksUiPlugin.getDefault().getPreferenceStore().setValue(ITasksUiPreferenceConstants.GROUP_SUBTASKS, true);
- view.clearFilters();
- view.addFilter(view.getCompleteFilter());
- taskList = TasksUiPlugin.getTaskList();
- }
-
- @Override
- protected void tearDown() throws Exception {
- view.clearFilters();
- super.tearDown();
- }
-
- public void testHasChildren() {
-
- AbstractTask parent = new LocalTask("parent", "parent label");
- AbstractTask completedChild = new LocalTask("completed child", "completed child label");
- completedChild.setCompletionDate(new Date());
- taskList.addTask(parent);
- taskList.addTask(completedChild, parent);
- assertFalse(provider.hasChildren(parent));
-
- AbstractTask incompleteChild = new LocalTask("incomplete child", "incomplete child label");
- incompleteChild.setCompletionDate(null);
- taskList.addTask(incompleteChild, parent);
- assertTrue(provider.hasChildren(parent));
- }
-}
diff --git a/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TaskListDropAdapterTest.java b/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TaskListDropAdapterTest.java
deleted file mode 100644
index 7072f409c..000000000
--- a/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TaskListDropAdapterTest.java
+++ /dev/null
@@ -1,66 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2004, 2008 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.tasks.tests;
-
-import java.util.Collection;
-
-import junit.framework.TestCase;
-
-import org.eclipse.jface.viewers.TreeViewer;
-import org.eclipse.mylyn.internal.tasks.core.TaskList;
-import org.eclipse.mylyn.internal.tasks.ui.TasksUiPlugin;
-import org.eclipse.mylyn.internal.tasks.ui.views.TaskListDropAdapter;
-import org.eclipse.mylyn.internal.tasks.ui.views.TaskListView;
-import org.eclipse.mylyn.tasks.core.ITask;
-
-/**
- * @author Rob Elves
- * @author Mik Kersten
- */
-public class TaskListDropAdapterTest extends TestCase {
-
- private TaskListDropAdapter dropAdapter;
-
- private TaskList taskList;
-
- @Override
- protected void setUp() throws Exception {
- TaskTestUtil.resetTaskListAndRepositories();
-
- TreeViewer viewer = TaskListView.getFromActivePerspective().getViewer();
- assertNotNull(viewer);
- dropAdapter = new TaskListDropAdapter(viewer);
- taskList = TasksUiPlugin.getTaskList();
- }
-
- @Override
- protected void tearDown() throws Exception {
- TaskTestUtil.resetTaskList();
- }
-
- public void testUrlDrop() {
- assertEquals(0, taskList.getDefaultCategory().getChildren().size());
- String url = "http://eclipse.org/mylyn";
- String title = "Mylyn Project";
- String urlData = url + "\n" + title;
-
- dropAdapter.performDrop(urlData);
- Collection<ITask> tasks = taskList.getDefaultCategory().getChildren();
- assertNotNull(tasks);
- assertEquals(1, tasks.size());
- assertEquals(url, tasks.iterator().next().getUrl());
-
- // TODO: Failing due to asynchronous retrieval of title from url
- // assertEquals(title, tasks.get(0).getDescription(false));
- }
-
-}
diff --git a/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TaskListExternalizationTest.java b/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TaskListExternalizationTest.java
deleted file mode 100644
index 0df25e2ec..000000000
--- a/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TaskListExternalizationTest.java
+++ /dev/null
@@ -1,384 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2004, 2008 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.tasks.tests;
-
-import java.util.Collection;
-import java.util.HashSet;
-import java.util.Iterator;
-import java.util.Set;
-
-import junit.framework.TestCase;
-
-import org.eclipse.mylyn.internal.tasks.core.AbstractTask;
-import org.eclipse.mylyn.internal.tasks.core.AbstractTaskCategory;
-import org.eclipse.mylyn.internal.tasks.core.AbstractTaskContainer;
-import org.eclipse.mylyn.internal.tasks.core.LocalRepositoryConnector;
-import org.eclipse.mylyn.internal.tasks.core.LocalTask;
-import org.eclipse.mylyn.internal.tasks.core.RepositoryQuery;
-import org.eclipse.mylyn.internal.tasks.core.TaskCategory;
-import org.eclipse.mylyn.internal.tasks.core.TaskList;
-import org.eclipse.mylyn.internal.tasks.core.TaskTask;
-import org.eclipse.mylyn.internal.tasks.ui.ITasksUiPreferenceConstants;
-import org.eclipse.mylyn.internal.tasks.ui.TasksUiPlugin;
-import org.eclipse.mylyn.internal.tasks.ui.util.TasksUiInternal;
-import org.eclipse.mylyn.tasks.core.ITask;
-import org.eclipse.mylyn.tasks.core.ITaskContainer;
-import org.eclipse.mylyn.tasks.core.TaskRepository;
-import org.eclipse.mylyn.tasks.tests.connector.MockRepositoryConnector;
-
-/**
- * @author Robert Elves
- * @author Steffen Pingel
- */
-public class TaskListExternalizationTest extends TestCase {
-
- private TaskList taskList;
-
- private TaskRepository repository;
-
- @Override
- protected void setUp() throws Exception {
- super.setUp();
- TasksUiPlugin.getDefault().getPreferenceStore().setValue(
- ITasksUiPreferenceConstants.REPOSITORY_SYNCH_SCHEDULE_ENABLED, false);
-
- TaskTestUtil.resetTaskListAndRepositories();
-
- repository = new TaskRepository(MockRepositoryConnector.REPOSITORY_KIND, MockRepositoryConnector.REPOSITORY_URL);
- TasksUiPlugin.getRepositoryManager().addRepository(repository);
-
- taskList = TasksUiPlugin.getTaskList();
- }
-
- @Override
- protected void tearDown() throws Exception {
- TaskTestUtil.resetTaskList();
- }
-
- public void testTaskAttributes() throws Exception {
- AbstractTask task1 = TasksUiInternal.createNewLocalTask("task 1");
- task1.setAttribute("key", "value");
- assertEquals(1, task1.getAttributes().size());
-
- TaskTestUtil.saveAndReadTasklist();
-
- task1 = taskList.getTask(task1.getHandleIdentifier());
- assertNotNull(task1);
- assertEquals(1, task1.getAttributes().size());
- assertEquals("value", task1.getAttribute("key"));
- }
-
- public void testTaskAttributeDelete() throws Exception {
- AbstractTask task1 = TasksUiInternal.createNewLocalTask("task 1");
- task1.setAttribute("key", "value");
- task1.setAttribute("key", null);
- assertEquals(0, task1.getAttributes().size());
- assertEquals(null, task1.getAttribute("key"));
-
- TaskTestUtil.saveAndReadTasklist();
-
- task1 = taskList.getTask(task1.getHandleIdentifier());
- assertNotNull(task1);
- assertEquals(0, task1.getAttributes().size());
- assertEquals(null, task1.getAttribute("key"));
- }
-
- public void testUncategorizedTasksNotLost() throws Exception {
- RepositoryQuery query = TaskTestUtil.createMockQuery("1");
- taskList.addQuery(query);
- TaskTask task = TaskTestUtil.createMockTask("1");
- taskList.addTask(task, query);
- taskList.addTask(task, taskList.getDefaultCategory());
- assertTrue(query.contains(task.getHandleIdentifier()));
- assertTrue(taskList.getDefaultCategory().contains(task.getHandleIdentifier()));
-
- TaskTestUtil.saveAndReadTasklist();
-
- assertTrue(taskList.getDefaultCategory().contains(task.getHandleIdentifier()));
- }
-
- public void testUniqueTaskId() throws Exception {
- LocalTask task1 = TasksUiInternal.createNewLocalTask("label");
- taskList.addTask(task1);
- LocalTask task2 = TasksUiInternal.createNewLocalTask("label");
- taskList.addTask(task2);
- assertEquals(2, taskList.getLastLocalTaskId());
- taskList.deleteTask(task2);
- LocalTask task3 = TasksUiInternal.createNewLocalTask("label");
- taskList.addTask(task3);
- assertTrue(task3.getHandleIdentifier() + " should end with 3", task3.getHandleIdentifier().endsWith("3"));
- assertEquals(3, taskList.getLastLocalTaskId());
- assertEquals(2, taskList.getAllTasks().size());
-
- TaskTestUtil.saveAndReadTasklist();
- assertEquals(2, taskList.getAllTasks().size());
- assertEquals(3, taskList.getLastLocalTaskId());
- ITask task4 = TasksUiInternal.createNewLocalTask("label");
- assertTrue(task4.getHandleIdentifier() + " should end with 4", task4.getHandleIdentifier().endsWith("4"));
- }
-
- public void testSingleTaskDeletion() throws Exception {
- TaskTask task = TaskTestUtil.createMockTask("1");
- taskList.addTask(task, taskList.getUnmatchedContainer(LocalRepositoryConnector.REPOSITORY_URL));
- assertEquals(1, taskList.getAllTasks().size());
- taskList.deleteTask(task);
- assertEquals(0, taskList.getAllTasks().size());
- taskList.addTask(task, taskList.getUnmatchedContainer(LocalRepositoryConnector.REPOSITORY_URL));
- assertEquals(1, taskList.getAllTasks().size());
-
- TaskTestUtil.saveAndReadTasklist();
- assertEquals(1, taskList.getAllTasks().size());
-
- taskList.deleteTask(task);
- assertEquals(0, taskList.getAllTasks().size());
-
- TaskTestUtil.saveAndReadTasklist();
- assertEquals(0, taskList.getAllTasks().size());
- }
-
- public void testCategoryPersistance() throws Exception {
- TaskTask task = TaskTestUtil.createMockTask("1");
- TaskCategory category = new TaskCategory("cat");
- taskList.addCategory(category);
- taskList.addTask(task, category);
- assertNotNull(taskList);
- assertEquals(2, taskList.getCategories().size());
-
- TaskTestUtil.saveAndReadTasklist();
- assertEquals("" + taskList.getCategories(), 2, taskList.getCategories().size());
- assertEquals(1, taskList.getAllTasks().size());
- }
-
- public void testCreate() throws Exception {
- TaskTask repositoryTask = TaskTestUtil.createMockTask("1");
- taskList.addTask(repositoryTask, taskList.getDefaultCategory());
- assertEquals(1, taskList.getDefaultCategory().getChildren().size());
-
- TaskTestUtil.saveAndReadTasklist();
- assertEquals(1, taskList.getAllTasks().size());
- }
-
- public void testCreateAndMove() throws Exception {
- TaskTask repositoryTask = TaskTestUtil.createMockTask("1");
- taskList.addTask(repositoryTask);
- assertEquals(1, taskList.getAllTasks().size());
-
- TaskTestUtil.saveAndReadTasklist();
- assertEquals(1, taskList.getAllTasks().size());
- assertEquals(1, taskList.getUnmatchedContainer(MockRepositoryConnector.REPOSITORY_URL).getChildren().size());
- }
-
- public void testArchiveRepositoryTaskExternalization() throws Exception {
- TaskTask repositoryTask = TaskTestUtil.createMockTask("1");
- taskList.addTask(repositoryTask);
- assertEquals(1, taskList.getUnmatchedContainer(MockRepositoryConnector.REPOSITORY_URL).getChildren().size());
-
- TaskTestUtil.saveAndReadTasklist();
- assertEquals(1, taskList.getUnmatchedContainer(MockRepositoryConnector.REPOSITORY_URL).getChildren().size());
- }
-
- public void testRepositoryTasksAndCategoriesMultiRead() throws Exception {
- TaskCategory cat1 = new TaskCategory("Category 1");
- taskList.addCategory(cat1);
-
- TaskTask reportInCat1 = TaskTestUtil.createMockTask("123");
- taskList.addTask(reportInCat1, cat1);
- assertEquals(cat1, TaskCategory.getParentTaskCategory(reportInCat1));
-
- TaskTestUtil.saveAndReadTasklist();
-
- // read once
- Set<AbstractTaskCategory> readCats = taskList.getTaskCategories();
- assertTrue(taskList.getCategories().contains(cat1));
- Iterator<AbstractTaskCategory> iterator = readCats.iterator();
-
- boolean found = false;
- while (iterator.hasNext()) {
- ITaskContainer readCat1 = iterator.next();
- if (cat1.equals(readCat1)) {
- found = true;
- assertEquals(1, readCat1.getChildren().size());
- }
- }
- if (!found) {
- fail(" Category not found afer tasklist read");
- }
-
- TaskTestUtil.saveAndReadTasklist();
-
- // read again
- readCats = taskList.getTaskCategories();
- assertTrue(taskList.getCategories().contains(cat1));
-
- iterator = readCats.iterator();
- found = false;
- while (iterator.hasNext()) {
- ITaskContainer readCat1 = iterator.next();
- if (cat1.equals(readCat1)) {
- found = true;
- assertEquals(1, readCat1.getChildren().size());
- }
- }
- if (!found) {
- fail(" Category not found afer tasklist read");
- }
- }
-
- public void testSubTaskExternalization() throws Exception {
- Set<AbstractTask> rootTasks = new HashSet<AbstractTask>();
- AbstractTask task1 = new LocalTask("1", "task1");
- taskList.addTask(task1);
- rootTasks.add(task1);
-
- AbstractTask sub2 = new LocalTask("2", "sub 2");
- taskList.addTask(sub2, task1);
- assertEquals(1, task1.getChildren().size());
- assertTrue(rootTasks.containsAll(taskList.getDefaultCategory().getChildren()));
-
- TaskTestUtil.saveAndReadTasklist();
-
- // XXX: This should pass once sub tasks are handled properly
-// assertTrue(rootTasks.containsAll(taskList.getOrphanContainer(
-// LocalRepositoryConnector.REPOSITORY_URL).getChildren()));
-
- Collection<ITask> readList = taskList.getDefaultCategory().getChildren();
- for (ITask task : readList) {
- if (task.equals(task1)) {
- assertEquals(task1.getSummary(), task.getSummary());
- assertEquals(1, ((ITaskContainer) task).getChildren().size());
- }
- }
- }
-
- public void testCreationAndExternalization() throws Exception {
- Set<AbstractTask> rootTasks = new HashSet<AbstractTask>();
- AbstractTask task1 = TasksUiInternal.createNewLocalTask("task 1");
- rootTasks.add(task1);
- assertEquals(1, taskList.getAllTasks().size());
-
- AbstractTask sub1 = TasksUiInternal.createNewLocalTask("sub 1");
- taskList.addTask(sub1, task1);
- // default category, mock orphans, mock unsubmitted
- int baseRootElementsCount = 3;
- assertEquals(baseRootElementsCount, taskList.getRootElements().size());
-
- //taskList.moveToContainer(sub1, taskList.getArchiveContainer());
-
- AbstractTask task2 = TasksUiInternal.createNewLocalTask("task 2");
- rootTasks.add(task2);
- assertEquals(3, taskList.getAllTasks().size());
-
- Set<TaskCategory> categories = new HashSet<TaskCategory>();
- Set<AbstractTask> cat1Contents = new HashSet<AbstractTask>();
- TaskCategory cat1 = new TaskCategory("Category 1");
- taskList.addCategory(cat1);
- categories.add(cat1);
- assertEquals(baseRootElementsCount + 1, taskList.getRootElements().size());
-
- AbstractTask task3 = TasksUiInternal.createNewLocalTask("task 3");
- taskList.addTask(task3, cat1);
- cat1Contents.add(task3);
- assertEquals(4, taskList.getAllTasks().size());
- assertEquals(cat1, TaskCategory.getParentTaskCategory(task3));
- AbstractTask sub2 = TasksUiInternal.createNewLocalTask("sub 2");
- assertEquals(5, taskList.getAllTasks().size());
- taskList.addTask(sub2, task3);
- //taskList.moveToContainer(sub2, taskList.getArchiveContainer());
-
- AbstractTask task4 = TasksUiInternal.createNewLocalTask("task 4");
- taskList.addTask(task4, cat1);
- cat1Contents.add(task4);
- assertEquals(6, taskList.getAllTasks().size());
-
- TaskTask reportInCat1 = TaskTestUtil.createMockTask("123");
- taskList.addTask(reportInCat1, cat1);
- assertEquals(cat1, TaskCategory.getParentTaskCategory(reportInCat1));
- cat1Contents.add(reportInCat1);
- assertEquals(7, taskList.getAllTasks().size());
-
- assertEquals(baseRootElementsCount + 1, taskList.getRootElements().size());
-
- TaskTestUtil.saveAndReadTasklist();
-
- Collection<ITask> readList = taskList.getDefaultCategory().getChildren();
- for (ITask task : readList) {
- if (task.equals(task1)) {
- assertEquals(task1.getSummary(), task.getSummary());
- assertEquals(1, ((AbstractTaskContainer) task).getChildren().size());
- }
- }
-
- Set<AbstractTaskCategory> readCats = taskList.getTaskCategories();
- assertTrue(taskList.getCategories().contains(cat1));
- Iterator<AbstractTaskCategory> iterator = readCats.iterator();
- boolean found = false;
- while (iterator.hasNext()) {
- ITaskContainer readCat1 = iterator.next();
- if (cat1.equals(readCat1)) {
- found = true;
- for (ITask task : readCat1.getChildren()) {
- assertTrue(cat1Contents.contains(task));
- }
- }
- }
- if (!found) {
- fail(" Category not found afer tasklist read");
- }
- }
-
- public void testExternalizationOfHandlesWithDash() throws Exception {
- AbstractTask task1 = TasksUiInternal.createNewLocalTask("task 1");
- taskList.addTask(task1, taskList.getDefaultCategory());
-
- TaskTestUtil.saveAndReadTasklist();
- assertTrue(taskList.getDefaultCategory().getChildren().contains(task1));
- }
-
- /**
- * If a task exists in a category and is a query hit it should not be removed from the category
- *
- * @throws Exception
- */
- public void testQueryRemovedTaskInCategory() throws Exception {
- TaskTask mockTask = TaskTestUtil.createMockTask("1");
- RepositoryQuery mockQuery = TaskTestUtil.createMockQuery("mock query");
- taskList.addQuery(mockQuery);
- taskList.addTask(mockTask, mockQuery);
- assertTrue(taskList.getDefaultCategory().isEmpty());
- taskList.addTask(mockTask, taskList.getDefaultCategory());
- assertEquals(1, taskList.getCategories().size());
- assertFalse(taskList.getDefaultCategory().isEmpty());
-
- TaskTestUtil.saveAndReadTasklist();
- assertEquals(1, taskList.getCategories().size());
- assertEquals(1, taskList.getQueries().size());
- assertFalse(taskList.getDefaultCategory().isEmpty());
-
- taskList.deleteQuery(mockQuery);
- TaskTestUtil.saveAndReadTasklist();
- assertEquals(1, taskList.getCategories().size());
- assertEquals(0, taskList.getQueries().size());
- assertFalse(taskList.getDefaultCategory().isEmpty());
- }
-
- /**
- * New local tasks should automatically be created in the Local orphaned folder.
- */
- public void testAddLocalTask() {
- Set<ITask> tasks = taskList.getTasks(LocalRepositoryConnector.REPOSITORY_URL);
- assertTrue(tasks.isEmpty());
- ITask localTask = TasksUiInternal.createNewLocalTask("Task 1");
- assertNotNull(localTask);
- assertEquals(1, ((AbstractTask) localTask).getParentContainers().size());
- }
-
-}
diff --git a/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TaskListPresentationTest.java b/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TaskListPresentationTest.java
deleted file mode 100644
index d3034d9c9..000000000
--- a/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TaskListPresentationTest.java
+++ /dev/null
@@ -1,33 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2004, 2008 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.tasks.tests;
-
-import java.util.List;
-
-import junit.framework.TestCase;
-
-import org.eclipse.mylyn.internal.tasks.ui.views.AbstractTaskListPresentation;
-import org.eclipse.mylyn.internal.tasks.ui.views.TaskListView;
-
-/**
- * @author Mik Kersten
- */
-public class TaskListPresentationTest extends TestCase {
-
- public void testDefaultPresentations() {
-
- List<AbstractTaskListPresentation> presentations = TaskListView.getPresentations();
- // depends on whether Sandbox is running
- assertTrue(presentations.size() == 2 || presentations.size() == 7);
- }
-
-}
diff --git a/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TaskListSaveManagerTest.java b/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TaskListSaveManagerTest.java
deleted file mode 100644
index bfded4a7f..000000000
--- a/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TaskListSaveManagerTest.java
+++ /dev/null
@@ -1,109 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2004, 2008 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.tasks.tests;
-
-import java.io.File;
-import java.io.IOException;
-import java.text.SimpleDateFormat;
-import java.util.Calendar;
-import java.util.Locale;
-
-import junit.framework.TestCase;
-
-import org.eclipse.mylyn.internal.tasks.core.ITasksCoreConstants;
-import org.eclipse.mylyn.internal.tasks.core.TaskActivityUtil;
-import org.eclipse.mylyn.internal.tasks.ui.TasksUiPlugin;
-
-/**
- * @author Rob Elves
- */
-public class TaskListSaveManagerTest extends TestCase {
-
- @Override
- protected void setUp() throws Exception {
- super.setUp();
- }
-
- @Override
- protected void tearDown() throws Exception {
- super.tearDown();
- }
-
- public void testRemovalOfSnapshots() throws IOException {
- String backupPath = TasksUiPlugin.getDefault().getBackupFolderPath();
- File backupFolder = new File(backupPath);
- if (!backupFolder.exists()) {
- backupFolder.mkdir();
- }
-
- Calendar time = TaskActivityUtil.getCalendar();
-
- File thisHour = createFile(backupFolder, time);
- time.add(Calendar.MILLISECOND, -1000);
- File thisHourEarlier = createFile(backupFolder, time);
-
- TaskActivityUtil.snapStartOfHour(time);
- time.add(Calendar.HOUR_OF_DAY, -1);
- time.add(Calendar.MILLISECOND, -3000);
- File previousHour = createFile(backupFolder, time);
-
- time.add(Calendar.MILLISECOND, -3000);
- File previousHour2 = createFile(backupFolder, time);
-
- time.add(Calendar.DAY_OF_YEAR, -1);
- File previousDay = createFile(backupFolder, time);
-
- time.add(Calendar.HOUR_OF_DAY, -1);
- File previousDay2 = createFile(backupFolder, time);
-
- time.add(Calendar.DAY_OF_YEAR, -3);
- File previousDay3 = createFile(backupFolder, time);
-
- time.add(Calendar.HOUR_OF_DAY, -1);
- File previousDay4 = createFile(backupFolder, time);
-
- time.add(Calendar.MILLISECOND, -4000);
- File previousDay5 = createFile(backupFolder, time);
-
- TasksUiPlugin.getBackupManager().removeOldBackups();
- assertTrue(thisHour.exists());
- assertFalse(thisHourEarlier.exists());
- assertTrue(previousHour.exists());
- assertFalse(previousHour2.exists());
- assertTrue(previousDay.exists());
- assertFalse(previousDay2.exists());
- assertTrue(previousDay3.exists());
- assertFalse(previousDay4.exists());
- assertFalse(previousDay5.exists());
- }
-
- public void testAddTaskDuringSave() {
- // add task
- // save
- // try to add task during save
- }
-
- // test cancellation
-
- private File createFile(File backupFolder, Calendar time) {
- SimpleDateFormat format = new SimpleDateFormat(ITasksCoreConstants.FILENAME_TIMESTAMP_FORMAT, Locale.ENGLISH);
- File newFile = new File(backupFolder, ITasksCoreConstants.OLD_PREFIX_TASKLIST + "-"
- + format.format(time.getTime()) + ITasksCoreConstants.FILE_EXTENSION);
- try {
- newFile.createNewFile();
- } catch (IOException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- }
- return newFile;
- }
-}
diff --git a/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TaskListSorterTest.java b/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TaskListSorterTest.java
deleted file mode 100644
index ccbaff249..000000000
--- a/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TaskListSorterTest.java
+++ /dev/null
@@ -1,222 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2004, 2008 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
- * George Lindholm - improvements
- *******************************************************************************/
-
-package org.eclipse.mylyn.tasks.tests;
-
-import java.util.Calendar;
-import java.util.Date;
-
-import junit.framework.TestCase;
-
-import org.eclipse.jface.viewers.ISelection;
-import org.eclipse.jface.viewers.Viewer;
-import org.eclipse.mylyn.internal.tasks.core.AbstractTask;
-import org.eclipse.mylyn.internal.tasks.core.AbstractTaskContainer;
-import org.eclipse.mylyn.internal.tasks.core.DateRange;
-import org.eclipse.mylyn.internal.tasks.core.LocalTask;
-import org.eclipse.mylyn.internal.tasks.core.RepositoryQuery;
-import org.eclipse.mylyn.internal.tasks.core.TaskActivityUtil;
-import org.eclipse.mylyn.internal.tasks.core.TaskCategory;
-import org.eclipse.mylyn.internal.tasks.core.TaskGroup;
-import org.eclipse.mylyn.internal.tasks.core.UncategorizedTaskContainer;
-import org.eclipse.mylyn.internal.tasks.core.UnmatchedTaskContainer;
-import org.eclipse.mylyn.internal.tasks.core.UnsubmittedTaskContainer;
-import org.eclipse.mylyn.internal.tasks.core.WeekDateRange;
-import org.eclipse.mylyn.internal.tasks.ui.TasksUiPlugin;
-import org.eclipse.mylyn.internal.tasks.ui.util.TaskComparator;
-import org.eclipse.mylyn.internal.tasks.ui.views.TaskListInterestSorter;
-import org.eclipse.mylyn.internal.tasks.ui.views.TaskListSorter;
-import org.eclipse.mylyn.tasks.core.ITask;
-import org.eclipse.mylyn.tasks.tests.connector.MockTask;
-import org.eclipse.swt.widgets.Control;
-
-/**
- * @author Mik Kersten
- * @author George Lindholm
- * @author Frank Becker
- */
-public class TaskListSorterTest extends TestCase {
-
- public void testRootTaskSorting() {
- TaskListSorter sorter = new TaskListSorter();
- sorter.getComparator().setSortByIndex(TaskComparator.SortByIndex.SUMMARY);
-
- AbstractTask task = new LocalTask("1", "");
- UncategorizedTaskContainer uncategorizedTaskContainer = new UncategorizedTaskContainer();
- UnsubmittedTaskContainer unsubmittedTaskContainer = new UnsubmittedTaskContainer("connectorKind",
- "repositoryUrl");
- TaskCategory category = new TaskCategory("cat");
- RepositoryQuery repositoryQuery = new RepositoryQuery("connectorKind", "queryName");
- TaskGroup taskGroup = new TaskGroup("parentHandle", "summary", "groupBy");
- UnmatchedTaskContainer unmatchedTaskContainer = new UnmatchedTaskContainer("connectorKind", "repositoryUrl");
-
- checkToRootElements(sorter, uncategorizedTaskContainer, unsubmittedTaskContainer);
- checkToRootElements(sorter, uncategorizedTaskContainer, category);
- checkToRootElements(sorter, uncategorizedTaskContainer, repositoryQuery);
- checkToRootElements(sorter, uncategorizedTaskContainer, taskGroup);
- checkToRootElements(sorter, uncategorizedTaskContainer, unmatchedTaskContainer);
-
- checkToRootElements(sorter, unsubmittedTaskContainer, category);
- checkToRootElements(sorter, unsubmittedTaskContainer, repositoryQuery);
- checkToRootElements(sorter, unsubmittedTaskContainer, taskGroup);
- checkToRootElements(sorter, unsubmittedTaskContainer, unmatchedTaskContainer);
-
- checkToRootElements(sorter, category, repositoryQuery);
- checkToRootElements(sorter, category, taskGroup);
- checkToRootElements(sorter, category, unmatchedTaskContainer);
-
- checkToRootElements(sorter, repositoryQuery, taskGroup);
- checkToRootElements(sorter, repositoryQuery, unmatchedTaskContainer);
-
- checkToRootElements(sorter, taskGroup, unmatchedTaskContainer);
-
- checkToRootElements(sorter, task, uncategorizedTaskContainer);
- checkToRootElements(sorter, task, unsubmittedTaskContainer);
- checkToRootElements(sorter, task, category);
- checkToRootElements(sorter, task, repositoryQuery);
- checkToRootElements(sorter, task, taskGroup);
- checkToRootElements(sorter, task, unmatchedTaskContainer);
- }
-
- private void checkToRootElements(TaskListSorter sorter, AbstractTaskContainer e1, AbstractTaskContainer e2) {
- assertEquals(-1, sorter.compare(null, e1, e2));
- assertEquals(1, sorter.compare(null, e2, e1));
- }
-
- public class EmptyViewer extends Viewer {
- public EmptyViewer() {
- }
-
- @Override
- public Control getControl() {
- return null;
- }
-
- @Override
- public Object getInput() {
- return null;
- }
-
- @Override
- public ISelection getSelection() {
- return null;
- }
-
- @Override
- public void refresh() {
- }
-
- @Override
- public void setInput(Object input) {
- }
-
- @Override
- public void setSelection(ISelection selection, boolean reveal) {
- }
- }
-
- public void testScheduledTaskSorting() {
- final TaskListInterestSorter sorter = new TaskListInterestSorter();
- MockTask task1 = new MockTask("local", "MYLN:1", "1");
- MockTask task2 = new MockTask("local", "MYLN:2", "2");
-
- Calendar start1 = TaskActivityUtil.getCalendar();
- start1.add(Calendar.WEEK_OF_YEAR, -1);
- TaskActivityUtil.snapStartOfWorkWeek(start1);
- Calendar end1 = TaskActivityUtil.getCalendar();
- end1.setTimeInMillis(start1.getTimeInMillis());
- TaskActivityUtil.snapEndOfWeek(end1);
- WeekDateRange range1 = new WeekDateRange(start1, end1);
- TasksUiPlugin.getTaskActivityManager().setScheduledFor(task1, range1);
-
- Calendar start2 = TaskActivityUtil.getCalendar();
- start2.add(Calendar.HOUR_OF_DAY, -1);
- Calendar end2 = TaskActivityUtil.getCalendar();
- DateRange range2 = new DateRange(start2, end2);
- TasksUiPlugin.getTaskActivityManager().setScheduledFor(task2, range2);
-
- assertTrue(sorter.compare(new EmptyViewer(), task1, task2) < 0);
- }
-
- public void testSummaryOrderSorting() {
- MockTask[] tasks = new MockTask[6];
- tasks[0] = new MockTask("local", "4", "c");
- tasks[1] = new MockTask("local", "1", "b");
- tasks[2] = new MockTask("local", "11", "a");
- tasks[3] = new MockTask("local", "11", "d");
- tasks[4] = new MockTask("local", "3", "c");
- tasks[5] = new MockTask("local", "5", "a");
- Date start = new Date();
- tasks[5].setCreationDate(start);
- tasks[4].setCreationDate(new Date(start.getTime() - 1));
- tasks[3].setCreationDate(new Date(start.getTime() - 2));
- tasks[2].setCreationDate(new Date(start.getTime() - 3));
- tasks[1].setCreationDate(new Date(start.getTime() - 4));
- tasks[0].setCreationDate(new Date(start.getTime() - 5));
-
- TaskListSorter sorter = new TaskListSorter();
- sorter.getComparator().setSortByIndex(TaskComparator.SortByIndex.SUMMARY);
- sorter.getComparator().setSortByIndex2(TaskComparator.SortByIndex.DATE_CREATED);
- sorter.sort(new EmptyViewer(), tasks);
-
- assertEquals("11", tasks[0].getTaskKey());
- assertEquals("a", tasks[0].getSummary());
- assertEquals("5", tasks[1].getTaskKey());
- assertEquals("1", tasks[2].getTaskKey());
- assertEquals("4", tasks[3].getTaskKey());
- assertEquals("3", tasks[4].getTaskKey());
- assertEquals("11", tasks[5].getTaskKey());
- assertEquals("d", tasks[5].getSummary());
- }
-
- public void testModuleSummaryOrderSorting() {
- MockTask[] tasks = new MockTask[5];
- tasks[0] = new MockTask("local", "MYLN:4", "c");
- tasks[1] = new MockTask("local", "MYLN:1", "b");
- tasks[2] = new MockTask("local", "MYLN:11", "a");
- tasks[3] = new MockTask("local", "MYLN:11", "b");
- tasks[4] = new MockTask("local", "MYLN:5", "a");
- Date start = new Date();
- tasks[4].setCreationDate(start);
- tasks[3].setCreationDate(new Date(start.getTime() - 1));
- tasks[2].setCreationDate(new Date(start.getTime() - 2));
- tasks[1].setCreationDate(new Date(start.getTime() - 3));
- tasks[0].setCreationDate(new Date(start.getTime() - 4));
-
- TaskListSorter sorter = new TaskListSorter();
- sorter.getComparator().setSortByIndex(TaskComparator.SortByIndex.SUMMARY);
- sorter.getComparator().setSortByIndex2(TaskComparator.SortByIndex.DATE_CREATED);
- sorter.sort(new EmptyViewer(), tasks);
-
- assertEquals("MYLN:11", tasks[0].getTaskKey());
- assertEquals("a", tasks[0].getSummary());
- assertEquals("MYLN:5", tasks[1].getTaskKey());
- assertEquals("MYLN:1", tasks[2].getTaskKey());
- assertEquals("MYLN:11", tasks[3].getTaskKey());
- assertEquals("b", tasks[3].getSummary());
- assertEquals("MYLN:4", tasks[4].getTaskKey());
- }
-
- public void testLocalTaskSort() {
- final TaskListSorter sorter = new TaskListSorter();
- ITask task1 = new LocalTask("1", "task1");
- ITask task2 = new LocalTask("2", "task2");
- ITask task3 = new LocalTask("3", "task3");
- ITask[] tasks = { task1, task2, task3 };
- Date start = new Date();
- task3.setCreationDate(start);
- task2.setCreationDate(new Date(start.getTime() - 1));
- task1.setCreationDate(new Date(start.getTime() - 2));
- sorter.sort(new EmptyViewer(), tasks);
- }
-
-}
diff --git a/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TaskListTest.java b/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TaskListTest.java
deleted file mode 100644
index fedeb6c19..000000000
--- a/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TaskListTest.java
+++ /dev/null
@@ -1,555 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2004, 2008 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.tasks.tests;
-
-import java.util.Set;
-
-import junit.framework.TestCase;
-
-import org.eclipse.mylyn.internal.tasks.core.AbstractTask;
-import org.eclipse.mylyn.internal.tasks.core.AbstractTaskCategory;
-import org.eclipse.mylyn.internal.tasks.core.AbstractTaskContainer;
-import org.eclipse.mylyn.internal.tasks.core.LocalRepositoryConnector;
-import org.eclipse.mylyn.internal.tasks.core.LocalTask;
-import org.eclipse.mylyn.internal.tasks.core.TaskCategory;
-import org.eclipse.mylyn.internal.tasks.core.TaskList;
-import org.eclipse.mylyn.tasks.core.ITask;
-import org.eclipse.mylyn.tasks.core.ITaskContainer;
-import org.eclipse.mylyn.tasks.tests.connector.MockRepositoryConnector;
-import org.eclipse.mylyn.tasks.tests.connector.MockRepositoryQuery;
-import org.eclipse.mylyn.tasks.tests.connector.MockTask;
-
-/**
- * @author Mik Kersten
- * @author Rob Elves
- * @author Shawn Minto
- */
-public class TaskListTest extends TestCase {
-
- private TaskList taskList;
-
- @Override
- protected void setUp() throws Exception {
- taskList = new TaskList();
- }
-
- public void testGetCategories() {
- taskList.addCategory(new TaskCategory("a"));
- assertEquals(2, taskList.getCategories().size());
- }
-
- public void testLocalSubTaskAdd() {
- LocalTask task = new LocalTask("1", "summary");
- LocalTask subTask = new LocalTask("2", "subTask");
-
- taskList.addTask(task);
- taskList.addTask(subTask, task);
-
- assertEquals(1, task.getChildren().size());
- assertEquals(subTask, task.getChildren().iterator().next());
- }
-
- public void testLocalTaskAddToSelf() {
- LocalTask task = new LocalTask("1", "summary");
-
- taskList.addTask(task);
- assertFalse(taskList.addTask(task, task));
- assertEquals(0, task.getChildren().size());
- assertEquals(1, task.getParentContainers().size());
- }
-
- public void testLocalSubTaskAddCycle() {
- LocalTask task = new LocalTask("1", "summary");
- LocalTask subTask = new LocalTask("2", "subTask");
-
- taskList.addTask(task);
- taskList.addTask(subTask, task);
- taskList.addTask(task, subTask);
-
- assertEquals(2, taskList.getAllTasks().size());
- assertEquals(1, taskList.getCategories().size());
- assertEquals(1, taskList.getCategories().iterator().next().getChildren().size());
- assertEquals(1, task.getChildren().size());
- assertEquals(0, subTask.getChildren().size());
- assertEquals(subTask, task.getChildren().iterator().next());
- }
-
- public void testLocalSubTaskAddDeepCycle() {
- LocalTask task = new LocalTask("1", "summary");
- LocalTask subTask1 = new LocalTask("2", "subTask");
- LocalTask subTask2 = new LocalTask("3", "subTask");
- LocalTask subTask3 = new LocalTask("4", "subTask");
- LocalTask subTask4 = new LocalTask("5", "subTask");
- LocalTask subTask5 = new LocalTask("6", "subTask");
- LocalTask subTask6 = new LocalTask("7", "subTask");
- LocalTask subTask7 = new LocalTask("8", "subTask");
- LocalTask subTask8 = new LocalTask("9", "subTask");
- LocalTask subTask9 = new LocalTask("10", "subTask");
- LocalTask subTask10 = new LocalTask("11", "subTask");
-
- taskList.addTask(task);
- taskList.addTask(subTask1, task);
- taskList.addTask(subTask2, subTask1);
- taskList.addTask(subTask3, subTask2);
- taskList.addTask(subTask4, subTask3);
- taskList.addTask(subTask5, subTask4);
- taskList.addTask(subTask6, subTask5);
- taskList.addTask(subTask7, subTask6);
- taskList.addTask(subTask8, subTask7);
- taskList.addTask(subTask9, subTask8);
- taskList.addTask(subTask10, subTask9);
-
- taskList.addTask(task, subTask10);
-
- assertEquals(11, taskList.getAllTasks().size());
- assertEquals(1, taskList.getCategories().size());
- assertEquals(1, taskList.getCategories().iterator().next().getChildren().size());
- assertEquals(1, task.getChildren().size());
- assertEquals(subTask1, task.getChildren().iterator().next());
-
- assertEquals(1, subTask1.getChildren().size());
- assertEquals(subTask2, subTask1.getChildren().iterator().next());
-
- assertEquals(1, subTask2.getChildren().size());
- assertEquals(subTask3, subTask2.getChildren().iterator().next());
-
- assertEquals(1, subTask3.getChildren().size());
- assertEquals(subTask4, subTask3.getChildren().iterator().next());
-
- assertEquals(1, subTask4.getChildren().size());
- assertEquals(subTask5, subTask4.getChildren().iterator().next());
-
- assertEquals(1, subTask5.getChildren().size());
- assertEquals(subTask6, subTask5.getChildren().iterator().next());
-
- assertEquals(1, subTask6.getChildren().size());
- assertEquals(subTask7, subTask6.getChildren().iterator().next());
-
- assertEquals(1, subTask7.getChildren().size());
- assertEquals(subTask8, subTask7.getChildren().iterator().next());
-
- assertEquals(1, subTask8.getChildren().size());
- assertEquals(subTask9, subTask8.getChildren().iterator().next());
-
- assertEquals(1, subTask9.getChildren().size());
- assertEquals(subTask10, subTask9.getChildren().iterator().next());
-
- assertEquals(0, subTask10.getChildren().size());
- }
-
- public void testLocalSubTaskAddMaxSubTaskDepthDeepCycle() {
- LocalTask task = new LocalTask("1", "summary");
- LocalTask subTask1 = new LocalTask("2", "subTask");
- LocalTask subTask2 = new LocalTask("3", "subTask");
- LocalTask subTask3 = new LocalTask("4", "subTask");
- LocalTask subTask4 = new LocalTask("5", "subTask");
- LocalTask subTask5 = new LocalTask("6", "subTask");
- LocalTask subTask6 = new LocalTask("7", "subTask");
- LocalTask subTask7 = new LocalTask("8", "subTask");
- LocalTask subTask8 = new LocalTask("9", "subTask");
- LocalTask subTask9 = new LocalTask("10", "subTask");
- LocalTask subTask10 = new LocalTask("11", "subTask");
- LocalTask subTask11 = new LocalTask("12", "subTask");
-
- taskList.addTask(task);
- taskList.addTask(subTask1, task);
- taskList.addTask(subTask2, subTask1);
- taskList.addTask(subTask3, subTask2);
- taskList.addTask(subTask4, subTask3);
- taskList.addTask(subTask5, subTask4);
- taskList.addTask(subTask6, subTask5);
- taskList.addTask(subTask7, subTask6);
- taskList.addTask(subTask8, subTask7);
- taskList.addTask(subTask9, subTask8);
- taskList.addTask(subTask10, subTask9);
- taskList.addTask(subTask11, subTask10);
-
- taskList.addTask(task, subTask11);
-
- assertEquals(12, taskList.getAllTasks().size());
- assertEquals(1, taskList.getCategories().size());
- assertEquals(1, taskList.getCategories().iterator().next().getChildren().size());
- assertEquals(1, task.getChildren().size());
- assertEquals(subTask1, task.getChildren().iterator().next());
-
- assertEquals(1, subTask1.getChildren().size());
- assertEquals(subTask2, subTask1.getChildren().iterator().next());
-
- assertEquals(1, subTask2.getChildren().size());
- assertEquals(subTask3, subTask2.getChildren().iterator().next());
-
- assertEquals(1, subTask3.getChildren().size());
- assertEquals(subTask4, subTask3.getChildren().iterator().next());
-
- assertEquals(1, subTask4.getChildren().size());
- assertEquals(subTask5, subTask4.getChildren().iterator().next());
-
- assertEquals(1, subTask5.getChildren().size());
- assertEquals(subTask6, subTask5.getChildren().iterator().next());
-
- assertEquals(1, subTask6.getChildren().size());
- assertEquals(subTask7, subTask6.getChildren().iterator().next());
-
- assertEquals(1, subTask7.getChildren().size());
- assertEquals(subTask8, subTask7.getChildren().iterator().next());
-
- assertEquals(1, subTask8.getChildren().size());
- assertEquals(subTask9, subTask8.getChildren().iterator().next());
-
- assertEquals(1, subTask9.getChildren().size());
- assertEquals(subTask10, subTask9.getChildren().iterator().next());
-
- assertEquals(1, subTask10.getChildren().size());
- assertEquals(subTask11, subTask10.getChildren().iterator().next());
-
- assertEquals(0, subTask11.getChildren().size());
- }
-
- public void testLocalSubTaskAddReallyDeepCycle() {
- LocalTask task = new LocalTask("1", "summary");
- LocalTask subTask1 = new LocalTask("2", "subTask");
- LocalTask subTask2 = new LocalTask("3", "subTask");
- LocalTask subTask3 = new LocalTask("4", "subTask");
- LocalTask subTask4 = new LocalTask("5", "subTask");
- LocalTask subTask5 = new LocalTask("6", "subTask");
- LocalTask subTask6 = new LocalTask("7", "subTask");
- LocalTask subTask7 = new LocalTask("8", "subTask");
- LocalTask subTask8 = new LocalTask("9", "subTask");
- LocalTask subTask9 = new LocalTask("10", "subTask");
- LocalTask subTask10 = new LocalTask("11", "subTask");
- LocalTask subTask11 = new LocalTask("12", "subTask");
- LocalTask subTask12 = new LocalTask("13", "subTask");
- LocalTask subTask13 = new LocalTask("14", "subTask");
- LocalTask subTask14 = new LocalTask("15", "subTask");
- LocalTask subTask15 = new LocalTask("16", "subTask");
- LocalTask subTask16 = new LocalTask("17", "subTask");
- LocalTask subTask17 = new LocalTask("18", "subTask");
- LocalTask subTask18 = new LocalTask("19", "subTask");
-
- taskList.addTask(task);
- taskList.addTask(subTask1, task);
- taskList.addTask(subTask2, subTask1);
- taskList.addTask(subTask3, subTask2);
- taskList.addTask(subTask4, subTask3);
- taskList.addTask(subTask5, subTask4);
- taskList.addTask(subTask6, subTask5);
- taskList.addTask(subTask7, subTask6);
- taskList.addTask(subTask8, subTask7);
- taskList.addTask(subTask9, subTask8);
- taskList.addTask(subTask10, subTask9);
- taskList.addTask(subTask11, subTask10);
- taskList.addTask(subTask12, subTask11);
- taskList.addTask(subTask13, subTask12);
- taskList.addTask(subTask14, subTask13);
- taskList.addTask(subTask15, subTask14);
- taskList.addTask(subTask16, subTask15);
- taskList.addTask(subTask17, subTask16);
- taskList.addTask(subTask18, subTask17);
-
- taskList.addTask(task, subTask18);
-
- assertEquals(19, taskList.getAllTasks().size());
- assertEquals(1, taskList.getCategories().size());
- assertEquals(1, taskList.getCategories().iterator().next().getChildren().size());
- assertEquals(1, task.getChildren().size());
- assertEquals(subTask1, task.getChildren().iterator().next());
-
- assertEquals(1, subTask1.getChildren().size());
- assertEquals(subTask2, subTask1.getChildren().iterator().next());
-
- assertEquals(1, subTask2.getChildren().size());
- assertEquals(subTask3, subTask2.getChildren().iterator().next());
-
- assertEquals(1, subTask3.getChildren().size());
- assertEquals(subTask4, subTask3.getChildren().iterator().next());
-
- assertEquals(1, subTask4.getChildren().size());
- assertEquals(subTask5, subTask4.getChildren().iterator().next());
-
- assertEquals(1, subTask5.getChildren().size());
- assertEquals(subTask6, subTask5.getChildren().iterator().next());
-
- assertEquals(1, subTask6.getChildren().size());
- assertEquals(subTask7, subTask6.getChildren().iterator().next());
-
- assertEquals(1, subTask7.getChildren().size());
- assertEquals(subTask8, subTask7.getChildren().iterator().next());
-
- assertEquals(1, subTask8.getChildren().size());
- assertEquals(subTask9, subTask8.getChildren().iterator().next());
-
- assertEquals(1, subTask9.getChildren().size());
- assertEquals(subTask10, subTask9.getChildren().iterator().next());
-
- assertEquals(1, subTask10.getChildren().size());
- assertEquals(subTask11, subTask10.getChildren().iterator().next());
-
- assertEquals(1, subTask11.getChildren().size());
- assertEquals(subTask12, subTask11.getChildren().iterator().next());
-
- assertEquals(1, subTask11.getChildren().size());
- assertEquals(subTask12, subTask11.getChildren().iterator().next());
-
- assertEquals(1, subTask12.getChildren().size());
- assertEquals(subTask13, subTask12.getChildren().iterator().next());
-
- assertEquals(1, subTask13.getChildren().size());
- assertEquals(subTask14, subTask13.getChildren().iterator().next());
-
- assertEquals(1, subTask14.getChildren().size());
- assertEquals(subTask15, subTask14.getChildren().iterator().next());
-
- assertEquals(1, subTask15.getChildren().size());
- assertEquals(subTask16, subTask15.getChildren().iterator().next());
-
- assertEquals(1, subTask16.getChildren().size());
- assertEquals(subTask17, subTask16.getChildren().iterator().next());
-
- assertEquals(1, subTask17.getChildren().size());
- assertEquals(subTask18, subTask17.getChildren().iterator().next());
-
- assertEquals(0, subTask18.getChildren().size());
- }
-
- public void testQueryAndCategoryNameClash() {
- TaskCategory category = new TaskCategory("TestClash");
- taskList.addCategory(category);
- assertTrue(taskList.getCategories().contains(category));
- assertEquals(2, taskList.getCategories().size());
-
- MockRepositoryQuery query = new MockRepositoryQuery("TestClash");
- taskList.addQuery(query);
- assertTrue(taskList.getCategories().contains(category));
- assertEquals(2, taskList.getCategories().size());
- }
-
- public void testMoveToRoot() {
- AbstractTask task1 = new LocalTask("t1", "t1");
- taskList.addTask(task1, taskList.getUnmatchedContainer(LocalRepositoryConnector.REPOSITORY_URL));
- assertEquals(1, taskList.getDefaultCategory().getChildren().size());
- assertEquals(taskList.getDefaultCategory(), TaskCategory.getParentTaskCategory(task1));
-
- TaskCategory cat1 = new TaskCategory("c1");
- taskList.addCategory(cat1);
-
- taskList.addTask(task1, cat1);
- assertEquals(0, taskList.getDefaultCategory().getChildren().size());
- assertEquals(cat1, TaskCategory.getParentTaskCategory(task1));
-
- taskList.addTask(task1, taskList.getUnmatchedContainer(LocalRepositoryConnector.REPOSITORY_URL));
- assertEquals(1, taskList.getDefaultCategory().getChildren().size());
- assertEquals(0, cat1.getChildren().size());
- assertEquals(taskList.getDefaultCategory(), TaskCategory.getParentTaskCategory(task1));
- }
-
- public void testDeleteCategory() {
- assertEquals(1, taskList.getCategories().size());
- TaskCategory category = new TaskCategory("cat");
- taskList.addCategory(category);
- assertEquals(2, taskList.getCategories().size());
- taskList.deleteCategory(category);
- assertEquals(1, taskList.getCategories().size());
- }
-
- public void testDeleteCategoryMovesTasksToRoot() {
- AbstractTask task = new MockTask("delete");
- TaskCategory category = new TaskCategory("cat");
- taskList.addCategory(category);
- taskList.addTask(task, category);
- assertEquals(0, taskList.getDefaultCategory().getChildren().size());
- taskList.deleteCategory(category);
- taskList.getUnmatchedContainer(MockRepositoryConnector.REPOSITORY_URL);
- }
-
- @SuppressWarnings("deprecation")
- public void testRenameCategory() {
- TaskCategory category = new TaskCategory("handle", "cat");
- taskList.addCategory(category);
- assertEquals(2, taskList.getCategories().size());
- taskList.renameContainer(category, "newDescription");
- AbstractTaskCategory container = taskList.getContainerForHandle("handle");
- assertNotNull(container);
- assertEquals("newDescription", container.getSummary());
- taskList.deleteCategory(container);
- assertEquals(1, taskList.getCategories().size());
- }
-
- @SuppressWarnings("deprecation")
- public void testDeleteCategoryAfterRename() {
- String newDesc = "newDescription";
- assertNotNull(taskList);
- assertEquals(1, taskList.getCategories().size());
- TaskCategory category = new TaskCategory("cat");
- taskList.addCategory(category);
- assertEquals(2, taskList.getCategories().size());
- taskList.renameContainer(category, newDesc);
- taskList.deleteCategory(category);
- assertEquals(1, taskList.getCategories().size());
- }
-
- public void testCreateSameCategoryName() {
- assertEquals(1, taskList.getCategories().size());
- TaskCategory category = new TaskCategory("cat");
- taskList.addCategory(category);
- assertEquals(2, taskList.getCategories().size());
- TaskCategory category2 = new TaskCategory("cat");
- try {
- taskList.addCategory(category2);
- fail("expected IllegalArgumentException");
- } catch (IllegalArgumentException e) {
- }
- assertEquals(2, taskList.getCategories().size());
- ITaskContainer container = taskList.getContainerForHandle("cat");
- assertEquals(container, category);
- }
-
- public void testDeleteRootTask() {
- AbstractTask task = new LocalTask("1", "label");
- taskList.addTask(task);
- taskList.deleteTask(task);
- assertEquals(0, taskList.getAllTasks().size());
- assertEquals(0, taskList.getDefaultCategory().getChildren().size());
- }
-
- public void testDeleteFromCategory() {
- assertEquals(0, taskList.getAllTasks().size());
- assertEquals(0, taskList.getDefaultCategory().getChildren().size());
- //assertEquals(0, taskList.getArchiveContainer().getChildren().size());
- assertEquals(1, taskList.getCategories().size());
-
- AbstractTask task = new LocalTask("1", "label");
- TaskCategory category = new TaskCategory("handleAndDescription");
- taskList.addTask(task);
- assertEquals(1, taskList.getDefaultCategory().getChildren().size());
-
- taskList.addCategory(category);
- taskList.addTask(task, category);
- assertEquals(2, taskList.getCategories().size());
- assertEquals(1, category.getChildren().size());
- assertEquals(0, taskList.getDefaultCategory().getChildren().size());
- assertEquals(1, taskList.getAllTasks().size());
-
- taskList.deleteTask(task);
- assertEquals(0, taskList.getAllTasks().size());
- assertEquals(0, taskList.getDefaultCategory().getChildren().size());
- assertEquals(0, category.getChildren().size());
- }
-
- public void testDeleteRepositoryTask() {
- String repositoryUrl = "http://somewhere.com";
- MockTask task = new MockTask(repositoryUrl, "1");
- taskList.addTask(task, taskList.getDefaultCategory());
- MockRepositoryQuery query = new MockRepositoryQuery("query");
- taskList.addQuery(query);
- taskList.addTask(task, query);
- assertEquals(1, taskList.getAllTasks().size());
- assertEquals(1, taskList.getDefaultCategory().getChildren().size());
- taskList.deleteTask(task);
- assertEquals(0, taskList.getAllTasks().size());
- assertEquals(0, taskList.getDefaultCategory().getChildren().size());
- }
-
- public void testgetQueriesAndHitsForHandle() {
- MockTask hit1 = new MockTask("1");
- MockTask hit2 = new MockTask("2");
- MockTask hit3 = new MockTask("3");
-
- MockTask hit1twin = new MockTask("1");
- MockTask hit2twin = new MockTask("2");
- MockTask hit3twin = new MockTask("3");
-
- MockRepositoryQuery query1 = new MockRepositoryQuery("query1");
- MockRepositoryQuery query2 = new MockRepositoryQuery("query2");
-
- taskList.addQuery(query1);
- taskList.addQuery(query2);
- taskList.addTask(hit1, query1);
- taskList.addTask(hit2, query1);
- taskList.addTask(hit3, query1);
-
- assertEquals(3, query1.getChildren().size());
-
- taskList.addTask(hit1twin, query2);
- taskList.addTask(hit2twin, query2);
- taskList.addTask(hit3twin, query2);
-
- assertEquals(3, query2.getChildren().size());
-
- Set<AbstractTaskContainer> queriesReturned = hit1.getParentContainers();
- assertNotNull(queriesReturned);
- assertEquals(2, queriesReturned.size());
- assertTrue(queriesReturned.contains(query1));
- assertTrue(queriesReturned.contains(query2));
- }
-
- public void testUpdateQueryHits() {
- MockTask hit1 = new MockTask("1");
- MockTask hit2 = new MockTask("2");
- MockTask hit3 = new MockTask("3");
-
- MockTask hit1twin = new MockTask("1");
- MockTask hit2twin = new MockTask("2");
- MockTask hit3twin = new MockTask("3");
-
- MockRepositoryQuery query1 = new MockRepositoryQuery("query1");
- taskList.addQuery(query1);
-
- taskList.addTask(hit1, query1);
- taskList.addTask(hit2, query1);
- taskList.addTask(hit3, query1);
-
- taskList.addTask(hit1twin, query1);
- taskList.addTask(hit2twin, query1);
- taskList.addTask(hit3twin, query1);
-
- assertEquals(3, query1.getChildren().size());
- for (ITask child : query1.getChildren()) {
- taskList.removeFromContainer(query1, child);
- }
- assertEquals(0, query1.getChildren().size());
- taskList.addTask(hit1, query1);
- taskList.addTask(hit2, query1);
- assertEquals(2, query1.getChildren().size());
- hit1.setNotified(true);
-
- taskList.addTask(hit1twin, query1);
- taskList.addTask(hit2twin, query1);
- taskList.addTask(hit3twin, query1);
- assertEquals(3, query1.getChildren().size());
- assertTrue(query1.getChildren().contains(hit1twin));
- assertTrue(query1.getChildren().contains(hit2twin));
- assertTrue(query1.getChildren().contains(hit3twin));
- for (ITask hit : query1.getChildren()) {
- if (hit.equals(hit1twin)) {
- assertTrue(((AbstractTask) hit).isNotified());
- } else {
- assertFalse(((AbstractTask) hit).isNotified());
- }
- }
- }
-
- public void testGetRepositoryTasks() {
- String repositoryUrl = "https://bugs.eclipse.org/bugs";
- String bugNumber = "106939";
- MockTask task1 = new MockTask(repositoryUrl, bugNumber);
- taskList.addTask(task1);
- MockTask task2 = new MockTask("https://unresolved", bugNumber);
- taskList.addTask(task2);
-
- assertEquals(2, taskList.getAllTasks().size());
- Set<ITask> tasksReturned = taskList.getTasks(repositoryUrl);
- assertNotNull(tasksReturned);
- assertEquals(1, tasksReturned.size());
- assertTrue(tasksReturned.contains(task1));
- }
-
-}
diff --git a/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TaskListUiTest.java b/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TaskListUiTest.java
deleted file mode 100644
index ba3de5558..000000000
--- a/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TaskListUiTest.java
+++ /dev/null
@@ -1,357 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2004, 2008 Ken Sueda 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:
- * Ken Sueda - initial API and implementation
- * Tasktop Technologies - improvements
- *******************************************************************************/
-
-package org.eclipse.mylyn.tasks.tests;
-
-import java.util.Date;
-import java.util.List;
-import java.util.Set;
-import java.util.Vector;
-
-import junit.framework.TestCase;
-
-import org.eclipse.jface.action.IContributionItem;
-import org.eclipse.jface.action.MenuManager;
-import org.eclipse.jface.viewers.TreeViewer;
-import org.eclipse.mylyn.internal.tasks.core.AbstractTask;
-import org.eclipse.mylyn.internal.tasks.core.ITaskListChangeListener;
-import org.eclipse.mylyn.internal.tasks.core.TaskCategory;
-import org.eclipse.mylyn.internal.tasks.core.TaskList;
-import org.eclipse.mylyn.internal.tasks.ui.MoveToCategoryMenuContributor;
-import org.eclipse.mylyn.internal.tasks.ui.TaskPriorityFilter;
-import org.eclipse.mylyn.internal.tasks.ui.TasksUiPlugin;
-import org.eclipse.mylyn.internal.tasks.ui.actions.NewCategoryAction;
-import org.eclipse.mylyn.internal.tasks.ui.util.TasksUiInternal;
-import org.eclipse.mylyn.internal.tasks.ui.views.TaskListView;
-import org.eclipse.mylyn.tasks.core.IRepositoryElement;
-import org.eclipse.mylyn.tasks.core.ITask;
-import org.eclipse.mylyn.tasks.core.ITask.PriorityLevel;
-import org.eclipse.mylyn.tasks.tests.connector.MockRepositoryQuery;
-import org.eclipse.mylyn.tasks.ui.TasksUiUtil;
-import org.eclipse.swt.widgets.TreeItem;
-
-/**
- * Tests TaskListView's filtering mechanism.
- *
- * @author Ken Sueda
- * @author Steffen Pingel
- */
-public class TaskListUiTest extends TestCase {
-
- private TaskCategory cat1 = null;
-
- private AbstractTask cat1task1 = null;
-
- private AbstractTask cat1task2 = null;
-
- private AbstractTask cat1task3 = null;
-
- private AbstractTask cat1task4 = null;
-
- private AbstractTask cat1task5 = null;
-
- private AbstractTask cat1task1sub1 = null;
-
- private TaskCategory cat2 = null;
-
- private AbstractTask cat2task1 = null;
-
- private AbstractTask cat2task2 = null;
-
- private AbstractTask cat2task3 = null;
-
- private AbstractTask cat2task4 = null;
-
- private AbstractTask cat2task5 = null;
-
- private AbstractTask cat2task1sub1 = null;
-
- private TaskList taskList;
-
- private final static int CHECK_COMPLETE_FILTER = 1;
-
- private final static int CHECK_INCOMPLETE_FILTER = 2;
-
- private final static int CHECK_PRIORITY_FILTER = 3;
-
- @Override
- public void setUp() throws Exception {
- taskList = TasksUiPlugin.getTaskList();
-
- // make sure no unmatched folders exist
- TaskTestUtil.resetTaskListAndRepositories();
- TasksUiUtil.openTasksViewInActivePerspective();
-
- cat1 = new TaskCategory("First Category");
- taskList.addCategory(cat1);
-
- cat1task1 = TasksUiInternal.createNewLocalTask("task 1");
- cat1task1.setPriority(PriorityLevel.P1.toString());
- cat1task1.setCompletionDate(new Date());
- taskList.addTask(cat1task1, cat1);
-
- cat1task1sub1 = TasksUiInternal.createNewLocalTask("sub task 1");
- cat1task1sub1.setPriority(PriorityLevel.P1.toString());
- cat1task1sub1.setCompletionDate(new Date());
- taskList.addTask(cat1task1sub1, cat1task1);
-
- cat1task2 = TasksUiInternal.createNewLocalTask("task 2");
- cat1task2.setPriority(PriorityLevel.P2.toString());
- taskList.addTask(cat1task2, cat1);
-
- cat1task3 = TasksUiInternal.createNewLocalTask("task 3");
- cat1task3.setPriority(PriorityLevel.P3.toString());
- cat1task3.setCompletionDate(new Date());
- taskList.addTask(cat1task3, cat1);
-
- cat1task4 = TasksUiInternal.createNewLocalTask("task 4");
- cat1task4.setPriority(PriorityLevel.P4.toString());
- taskList.addTask(cat1task4, cat1);
-
- cat1task5 = TasksUiInternal.createNewLocalTask("task 5");
- cat1task5.setPriority(PriorityLevel.P5.toString());
- cat1task5.setCompletionDate(new Date());
- taskList.addTask(cat1task5, cat1);
-
- assertEquals(cat1.getChildren().size(), 5);
-
- cat2 = new TaskCategory("Second Category");
- taskList.addCategory(cat2);
-
- cat2task1 = TasksUiInternal.createNewLocalTask("task 1");
- cat2task1.setPriority(PriorityLevel.P1.toString());
- taskList.addTask(cat2task1, cat2);
-
- cat2task1sub1 = TasksUiInternal.createNewLocalTask("sub task 1");
- cat2task1sub1.setPriority(PriorityLevel.P1.toString());
- taskList.addTask(cat2task1sub1, cat2task1);
-
- cat2task2 = TasksUiInternal.createNewLocalTask("task 2");
- cat2task2.setPriority(PriorityLevel.P2.toString());
- cat2task2.setCompletionDate(new Date());
- taskList.addTask(cat2task2, cat2);
-
- cat2task3 = TasksUiInternal.createNewLocalTask("task 3");
- cat2task3.setPriority(PriorityLevel.P3.toString());
- taskList.addTask(cat2task3, cat2);
-
- cat2task4 = TasksUiInternal.createNewLocalTask("task 4");
- cat2task4.setPriority(PriorityLevel.P4.toString());
- cat2task4.setCompletionDate(new Date());
- taskList.addTask(cat2task4, cat2);
-
- cat2task5 = TasksUiInternal.createNewLocalTask("task 5");
- cat2task5.setPriority(PriorityLevel.P5.toString());
- taskList.addTask(cat2task5, cat2);
- }
-
- @Override
- public void tearDown() throws Exception {
- // clear everything
- }
-
- public void testUiFilter() {
- assertNotNull(TaskListView.getFromActivePerspective());
- TreeViewer viewer = TaskListView.getFromActivePerspective().getViewer();
- TaskListView.getFromActivePerspective().addFilter(TaskListView.getFromActivePerspective().getCompleteFilter());
- viewer.refresh();
- viewer.expandAll();
- TreeItem[] items = viewer.getTree().getItems();
- assertTrue(checkFilter(CHECK_COMPLETE_FILTER, items));
- TaskListView.getFromActivePerspective().removeFilter(
- TaskListView.getFromActivePerspective().getCompleteFilter());
-
- TaskPriorityFilter filter = TaskListView.getFromActivePerspective().getPriorityFilter();
- filter.displayPrioritiesAbove("P2");
- TaskListView.getFromActivePerspective().addFilter(filter);
- viewer.refresh();
- viewer.expandAll();
- items = viewer.getTree().getItems();
-
- // check priority tasks
- assertTrue(checkFilter(CHECK_PRIORITY_FILTER, items));
- }
-
- /**
- * Tests that TaskEditors remove all listeners when closed
- */
- public void testListenersRemoved() {
- int numListenersBefore = 0;
- int numListenersDuring = 0;
- int numListenersAfter = 0;
-
- Set<ITaskListChangeListener> listeners = taskList.getChangeListeners();
- numListenersBefore = listeners.size();
-
- TasksUiUtil.openTask(cat1task1);
- TasksUiUtil.openTask(cat1task2);
-
- listeners = taskList.getChangeListeners();
- numListenersDuring = listeners.size();
-
- assertEquals(numListenersDuring, numListenersBefore + 2);
-
- TasksUiPlugin.getDefault().getWorkbench().getActiveWorkbenchWindow().getActivePage().closeAllEditors(false);
-
- listeners = taskList.getChangeListeners();
- numListenersAfter = listeners.size();
- assertEquals(numListenersBefore, numListenersAfter);
- }
-
- /**
- * Tests whether an additional NewCategory action is added to the category
- */
- public void testGetSubMenuManagerContainsAllCategoriesPlusNewCategory() {
- // setup
- MoveToCategoryMenuContributor moveToMenuContrib = new MoveToCategoryMenuContributor();
- List<IRepositoryElement> selectedElements = new Vector<IRepositoryElement>();
- selectedElements.add(cat1task1);
- int numCategories = taskList.getCategories().size();
- int numSeparators = 1;
- // adding a separator and the New Category... action
- int expectedNrOfSubMenuEntries = numCategories + numSeparators + 1;
- NewCategoryAction newCatActon = new NewCategoryAction();
-
- // execute sytem under test
- MenuManager menuManager = moveToMenuContrib.getSubMenuManager(selectedElements);
- IContributionItem[] items = menuManager.getItems();
- IContributionItem item = items[menuManager.getItems().length - 1];
-
- // +1 for separator
- assertEquals(expectedNrOfSubMenuEntries, menuManager.getItems().length);
-
- if (item instanceof NewCategoryAction) {
- NewCategoryAction action = (NewCategoryAction) item;
- assertEquals(newCatActon.getText(), action.getText());
- }
-
- // teardown
- }
-
- /**
- * Tests visibility of SubMenuManager
- */
- public void testVisibilityOfSubMenuManager() {
- //setup
- MoveToCategoryMenuContributor moveToMenuContrib = new MoveToCategoryMenuContributor();
- MenuManager menuManager = null;
- List<IRepositoryElement> selectedElements = new Vector<IRepositoryElement>();
- selectedElements.add(cat1task1);
-
- List<IRepositoryElement> emptySelection = new Vector<IRepositoryElement>();
-
- List<IRepositoryElement> categorySelection = new Vector<IRepositoryElement>();
- categorySelection.add(cat1);
-
- List<IRepositoryElement> querySelection = new Vector<IRepositoryElement>();
- querySelection.add(new MockRepositoryQuery("query", null));
-
- //execute system under test & assert
- menuManager = moveToMenuContrib.getSubMenuManager(selectedElements);
- assertTrue(menuManager.isVisible());
-
- menuManager = null;
- menuManager = moveToMenuContrib.getSubMenuManager(emptySelection);
- assertFalse(menuManager.isVisible());
-
- menuManager = null;
- menuManager = moveToMenuContrib.getSubMenuManager(categorySelection);
- assertFalse(menuManager.isVisible());
-
- menuManager = null;
- menuManager = moveToMenuContrib.getSubMenuManager(querySelection);
- assertFalse(menuManager.isVisible());
-
- //teardown
- }
-
- /**
- * Tests that the category name is shown in the Move To Category submenu, even when they have an @ in their name
- */
- public void testCategoryNameIsShownInMoveToCategoryAction() {
- String catNameWithAtBefore = "@CatName";
- String catNameWithAtExpected = "@CatName@";
- String catNameWithAtActual = "";
-
- String catNameNoAtBefore = "CatName";
- String catNameNoAtExpected = "CatName";
- String catNameNoAtActual = "";
-
- MoveToCategoryMenuContributor menuContrib = new MoveToCategoryMenuContributor();
-
- catNameWithAtActual = menuContrib.handleAcceleratorKeys(catNameWithAtBefore);
- catNameNoAtActual = menuContrib.handleAcceleratorKeys(catNameNoAtBefore);
-
- assertEquals(catNameWithAtExpected, catNameWithAtActual);
- assertEquals(catNameNoAtExpected, catNameNoAtActual);
- }
-
- public boolean checkFilter(int type, TreeItem[] items) {
- switch (type) {
- case CHECK_COMPLETE_FILTER:
- return checkCompleteIncompleteFilter(items, false);
- case CHECK_INCOMPLETE_FILTER:
- return checkCompleteIncompleteFilter(items, true);
- case CHECK_PRIORITY_FILTER:
- return checkPriorityFilter(items);
- default:
- return false;
- }
- }
-
- public boolean checkCompleteIncompleteFilter(TreeItem[] items, boolean checkComplete) {
- assertEquals(3, items.length);
- int count = 0;
- for (TreeItem item : items) {
- if (item.getData() instanceof TaskCategory) {
- TreeItem[] sub = item.getItems();
- for (TreeItem element : sub) {
- assertTrue(element.getData() instanceof ITask);
- ITask task = (ITask) element.getData();
- if (checkComplete) {
- assertTrue(task.isCompleted());
- } else {
- assertFalse(task.isCompleted());
- }
- count++;
- }
- }
- }
- assertTrue(count == 5);
- return true;
- }
-
- public boolean checkPriorityFilter(TreeItem[] items) {
- assertTrue(items.length == 3);
- int p2Count = 0;
- int p1Count = 0;
- for (TreeItem item : items) {
- if (item.getData() instanceof TaskCategory) {
- TreeItem[] sub = item.getItems();
- for (TreeItem element : sub) {
- assertTrue(element.getData() instanceof ITask);
- ITask task = (ITask) element.getData();
- assertTrue(task.getPriority().equals("P2") || task.getPriority().equals("P1"));
- if (task.getPriority().equals("P2")) {
- p2Count++;
- } else {
- p1Count++;
- }
- }
- }
- }
- assertEquals(2, p1Count);
- assertEquals(2, p2Count);
- return true;
- }
-
-}
diff --git a/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TaskMapperTest.java b/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TaskMapperTest.java
deleted file mode 100644
index e42b4abe3..000000000
--- a/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TaskMapperTest.java
+++ /dev/null
@@ -1,186 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2004, 2008 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.tasks.tests;
-
-import java.util.HashMap;
-import java.util.List;
-import java.util.Map;
-
-import junit.framework.TestCase;
-
-import org.eclipse.mylyn.tasks.core.TaskRepository;
-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.TaskMapper;
-import org.eclipse.mylyn.tasks.tests.connector.MockRepositoryConnector;
-
-/**
- * @author Steffen Pingel
- */
-public class TaskMapperTest extends TestCase {
-
- private StubTaskAttributeMapper mapper;
-
- private TaskMapper source;
-
- private TaskMapper target;
-
- private TaskRepository taskRepository;
-
- @Override
- protected void setUp() throws Exception {
- taskRepository = new TaskRepository(MockRepositoryConnector.REPOSITORY_KIND,
- MockRepositoryConnector.REPOSITORY_URL);
- mapper = new StubTaskAttributeMapper(taskRepository);
- source = new TaskMapper(new TaskData(mapper, "kind", "http://url", "1"), true);
- target = new TaskMapper(new TaskData(mapper, "kind", "http://url", "2"), true);
- }
-
- public void testCloneTaskCloneCommonAttributes() {
- source.setDescription("sourceDescription");
- target.setDescription("");
- // TODO 3.1 remove (bug 247595)
- target.getTaskData().getRoot().getAttribute(TaskAttribute.DESCRIPTION).getMetaData().setReadOnly(false);
- target.merge(source);
- assertEquals("sourceDescription", target.getDescription());
- assertEquals(null, target.getSummary());
-
- source.setSummary("sourceSummary");
- target.setSummary("");
- // TODO 3.1 remove (bug 247595)
- target.getTaskData().getRoot().getAttribute(TaskAttribute.SUMMARY).getMetaData().setReadOnly(false);
- target.merge(source);
- assertEquals("sourceSummary", target.getSummary());
- }
-
- public void testCloneTaskDataAttributeWithValues() {
- source.getTaskData().getRoot().createAttribute("key1").addValue("value1");
- target.merge(source);
- assertEquals(null, target.getTaskData().getRoot().getAttribute("key1"));
-
- target.getTaskData().getRoot().createAttribute("key1").addValue("value2");
- target.merge(source);
- assertEquals("value1", target.getTaskData().getRoot().getAttribute("key1").getValue());
-
- TaskAttribute attribute = source.getTaskData().getRoot().createAttribute("multi");
- attribute.addValue("v1");
- attribute.addValue("v2");
- target.getTaskData().getRoot().createAttribute("multi");
- target.merge(source);
- assertEquals("value1", target.getTaskData().getRoot().getAttribute("key1").getValue());
- List<String> values = target.getTaskData().getRoot().getAttribute("multi").getValues();
- assertEquals(2, values.size());
- assertEquals("v1", values.get(0));
- assertEquals("v2", values.get(1));
- }
-
- public void testCloneTaskDataAttributeWithOptions() {
- TaskAttribute sourceAttribute = source.getTaskData().getRoot().createAttribute("key");
- sourceAttribute.setValue("o2");
- sourceAttribute.putOption("o1", "");
- sourceAttribute.putOption("o2", "");
- target.getTaskData().getRoot().createAttribute("key");
- target.merge(source);
- assertEquals("o2", target.getTaskData().getRoot().getAttribute("key").getValue());
-
- // test target with options that don't contain value
- TaskAttribute targetAttribute = target.getTaskData().getRoot().getAttribute("key");
- targetAttribute.putOption("o3", "");
- target.merge(source);
- assertEquals("", target.getTaskData().getRoot().getAttribute("key").getValue());
-
- // test target with options that contain value
- targetAttribute.putOption("o2", "");
- target.merge(source);
- assertEquals("o2", target.getTaskData().getRoot().getAttribute("key").getValue());
-
- // test multiple values
- sourceAttribute.addValue("o3");
- target.merge(source);
- List<String> values = targetAttribute.getValues();
- assertEquals(2, values.size());
- assertEquals("o2", values.get(0));
- assertEquals("o3", values.get(1));
- }
-
- public void testCloneTaskDifferentRepositoryTypesCloneCommonAttributes() {
- target = new TaskMapper(new TaskData(mapper, "otherkind", "http://url", "2"), true);
-
- source.setDescription("sourceDescription");
- target.setDescription("");
- // TODO 3.1 remove (bug 247595)
- target.getTaskData().getRoot().getAttribute(TaskAttribute.DESCRIPTION).getMetaData().setReadOnly(false);
- target.merge(source);
- assertEquals("sourceDescription", target.getDescription());
- assertEquals(null, target.getSummary());
-
- source.setSummary("sourceSummary");
- target.merge(source);
- assertEquals("sourceSummary", target.getSummary());
- }
-
- public void testCloneTaskDifferentRepositoryTypesCloneMappedAttribues() {
- StubTaskAttributeMapper targetMapper = new StubTaskAttributeMapper(taskRepository);
- target = new TaskMapper(new TaskData(targetMapper, "otherkind", "http://url", "2"), true);
-
- // key is not part of common schema
- source.getTaskData().getRoot().createAttribute("key").setValue("source");
- target.getTaskData().getRoot().createAttribute("key").setValue("target");
- target.merge(source);
- assertEquals("target", target.getTaskData().getRoot().getAttribute("key").getValue());
-
- // map key in source factory only
- mapper.attributeMap.put(TaskAttribute.COMPONENT, "key");
- target.merge(source);
- assertEquals("target", target.getTaskData().getRoot().getAttribute("key").getValue());
-
- // map key in target factory to different key
- targetMapper.attributeMap.put(TaskAttribute.PRODUCT, "key");
- target.merge(source);
- assertEquals("target", target.getTaskData().getRoot().getAttribute("key").getValue());
-
- // map key in both factories
- targetMapper.attributeMap.put(TaskAttribute.COMPONENT, "key");
- target.merge(source);
- assertEquals("source", target.getTaskData().getRoot().getAttribute("key").getValue());
- }
-
- public void testNoCreationOfAttributes() {
- target = new TaskMapper(new TaskData(mapper, "otherkind", "http://url", "2"));
- target.setDescription("abc");
- assertNull(target.getTaskData().getRoot().getAttribute(TaskAttribute.DESCRIPTION));
- assertEquals(0, target.getTaskData().getRoot().getAttributes().size());
-
- target = new TaskMapper(new TaskData(mapper, "otherkind", "http://url", "2"), false);
- target.setDescription("abc");
- assertNull(target.getTaskData().getRoot().getAttribute(TaskAttribute.DESCRIPTION));
- assertEquals(0, target.getTaskData().getRoot().getAttributes().size());
- }
-
- private class StubTaskAttributeMapper extends TaskAttributeMapper {
-
- public StubTaskAttributeMapper(TaskRepository taskRepository) {
- super(taskRepository);
- }
-
- private final Map<String, String> attributeMap = new HashMap<String, String>();
-
- @Override
- public String mapToRepositoryKey(TaskAttribute parent, String key) {
- String mappedKey = attributeMap.get(key);
- return (mappedKey != null) ? mappedKey : key;
- }
-
- }
-
-}
diff --git a/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TaskPlanningEditorTest.java b/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TaskPlanningEditorTest.java
deleted file mode 100644
index 6178b9846..000000000
--- a/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TaskPlanningEditorTest.java
+++ /dev/null
@@ -1,112 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2004, 2008 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.tasks.tests;
-
-import junit.framework.TestCase;
-
-import org.eclipse.core.runtime.NullProgressMonitor;
-import org.eclipse.mylyn.internal.tasks.core.LocalTask;
-import org.eclipse.mylyn.internal.tasks.ui.TasksUiPlugin;
-import org.eclipse.mylyn.internal.tasks.ui.editors.TaskPlanningEditor;
-import org.eclipse.mylyn.tasks.ui.TasksUiUtil;
-import org.eclipse.mylyn.tasks.ui.editors.TaskEditor;
-import org.eclipse.ui.IWorkbenchPage;
-import org.eclipse.ui.PlatformUI;
-
-/**
- * @author Rob Elves
- */
-public class TaskPlanningEditorTest extends TestCase {
-
- private static final String MOCK_LABEL = "label";
-
- private static final String DESCRIPTION = "summary";
-
- private static final String NEW_DESCRIPTION = "new summary";
-
- @Override
- protected void setUp() throws Exception {
- TasksUiPlugin.getDefault().getLocalTaskRepository();
- }
-
- @Override
- protected void tearDown() throws Exception {
- PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().closeAllEditors(false);
- TasksUiPlugin.getRepositoryManager().clearRepositories(TasksUiPlugin.getDefault().getRepositoriesFilePath());
- TaskTestUtil.resetTaskList();
- }
-
- public void testDirtyOnEdit() {
- LocalTask task = new LocalTask("1", MOCK_LABEL);
- task.setSummary(DESCRIPTION);
- TasksUiPlugin.getTaskList().addTask(task);
- TasksUiUtil.openTask(task);
- IWorkbenchPage page = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage();
- assertTrue(page.getActiveEditor() instanceof TaskEditor);
- TaskEditor taskEditor = (TaskEditor) page.getActiveEditor();
- assertTrue(taskEditor.getActivePageInstance() instanceof TaskPlanningEditor);
- TaskPlanningEditor editor = (TaskPlanningEditor) taskEditor.getActivePageInstance();
- assertFalse(editor.isDirty());
- editor.setNotes("notes");
- assertTrue(editor.isDirty());
- editor.doSave(new NullProgressMonitor());
- assertFalse(editor.isDirty());
- editor.setDescription(NEW_DESCRIPTION);
- assertTrue(editor.isDirty());
- editor.doSave(new NullProgressMonitor());
- assertEquals(NEW_DESCRIPTION, task.getSummary());
- assertFalse(editor.isDirty());
- }
-
- public void testNotDirtyOnRename() {
- LocalTask task = new LocalTask("1", MOCK_LABEL);
- task.setSummary(DESCRIPTION);
- TasksUiPlugin.getTaskList().addTask(task);
- TasksUiUtil.openTask(task);
- IWorkbenchPage page = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage();
- assertTrue(page.getActiveEditor() instanceof TaskEditor);
- TaskEditor taskEditor = (TaskEditor) page.getActiveEditor();
- assertTrue(taskEditor.getActivePageInstance() instanceof TaskPlanningEditor);
- TaskPlanningEditor editor = (TaskPlanningEditor) taskEditor.getActivePageInstance();
- assertFalse(editor.isDirty());
- assertEquals(DESCRIPTION, editor.getDescription());
- task.setSummary(NEW_DESCRIPTION);
- editor.updateTaskData(task);
- //assertEquals(NEW_DESCRIPTION, editor.getFormTitle());
- assertEquals(NEW_DESCRIPTION, editor.getDescription());
- assertFalse(editor.isDirty());
- }
-
- /**
- * Test that if editor is dirty and external rename happens editor remains dirty
- */
- public void testRenameInDirtyState() {
- LocalTask task = new LocalTask("1", MOCK_LABEL);
- task.setSummary(DESCRIPTION);
- TasksUiPlugin.getTaskList().addTask(task);
- TasksUiUtil.openTask(task);
- IWorkbenchPage page = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage();
- assertTrue(page.getActiveEditor() instanceof TaskEditor);
- TaskEditor taskEditor = (TaskEditor) page.getActiveEditor();
- assertTrue(taskEditor.getActivePageInstance() instanceof TaskPlanningEditor);
-
- TaskPlanningEditor editor = (TaskPlanningEditor) taskEditor.getActivePageInstance();
- assertFalse(editor.isDirty());
- editor.setDescription(NEW_DESCRIPTION);
- assertTrue(editor.isDirty());
-
- task.setSummary(NEW_DESCRIPTION + "2");
- editor.updateTaskData(task);
- assertEquals(NEW_DESCRIPTION, editor.getDescription());
- assertTrue(editor.isDirty());
- }
-}
diff --git a/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TaskRepositoriesExternalizerTest.java b/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TaskRepositoriesExternalizerTest.java
deleted file mode 100644
index bc906a9e1..000000000
--- a/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TaskRepositoriesExternalizerTest.java
+++ /dev/null
@@ -1,111 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2004, 2008 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
- * Erik Ramfelt - bug 168782
- *******************************************************************************/
-
-package org.eclipse.mylyn.tasks.tests;
-
-import java.io.File;
-import java.util.HashSet;
-import java.util.Set;
-
-import junit.framework.TestCase;
-
-import org.eclipse.mylyn.internal.tasks.core.TaskRepositoriesExternalizer;
-import org.eclipse.mylyn.tasks.core.TaskRepository;
-
-/**
- * @author Rob Elves
- */
-public class TaskRepositoriesExternalizerTest extends TestCase {
-
- private Set<TaskRepository> taskRepositories = new HashSet<TaskRepository>();
-
- private static final String REP_TYPE = "bugzilla";
-
- private static final String REPURL1 = "http://somewhere1";
-
- private static final String REPURL2 = "http://somewhere2";
-
- private static final String TIMEZONE = "test time zone";
-
- private static final String VERSION = "test version";
-
- private static final String ENCODING = "test encoding";
-
- private static final String TIMESTAMP = "test time stamp";
-
- private static final String SUFFIX = "2";
-
- private TaskRepository repository1;
-
- private TaskRepository repository2;
-
- @Override
- protected void setUp() throws Exception {
- repository1 = new TaskRepository(REP_TYPE, REPURL1);
- repository2 = new TaskRepository("bugzilla", REPURL2);
-
- repository1.setTimeZoneId(TIMEZONE);
- repository1.setVersion(VERSION);
- repository1.setCharacterEncoding(ENCODING);
- repository1.setSynchronizationTimeStamp(TIMESTAMP);
- taskRepositories.add(repository1);
-
- repository2.setTimeZoneId(TIMEZONE + SUFFIX);
- repository2.setVersion(VERSION + SUFFIX);
- repository2.setCharacterEncoding(ENCODING + SUFFIX);
- repository2.setSynchronizationTimeStamp(TIMESTAMP + SUFFIX);
- taskRepositories.add(repository2);
- }
-
- public void testExternalization() {
- TaskRepositoriesExternalizer externalizer = new TaskRepositoriesExternalizer();
- String path = "repositories.xml";
- File file = new File(path);
- file.deleteOnExit();
- externalizer.writeRepositoriesToXML(taskRepositories, file);
- taskRepositories.clear();
- assertEquals(0, taskRepositories.size());
- taskRepositories = externalizer.readRepositoriesFromXML(file);
- assertEquals(2, taskRepositories.size());
- taskRepositories.contains(repository1);
- taskRepositories.contains(repository2);
- for (TaskRepository repository : taskRepositories) {
- if (repository.getRepositoryUrl().equals(REPURL1)) {
- assertEquals(TIMEZONE, repository.getTimeZoneId());
- assertEquals(VERSION, repository.getVersion());
- assertEquals(ENCODING, repository.getCharacterEncoding());
- assertEquals(TIMESTAMP, repository.getSynchronizationTimeStamp());
- } else if (repository.getRepositoryUrl().equals(REPURL2)) {
- assertEquals(TIMEZONE + SUFFIX, repository.getTimeZoneId());
- assertEquals(VERSION + SUFFIX, repository.getVersion());
- assertEquals(ENCODING + SUFFIX, repository.getCharacterEncoding());
- assertEquals(TIMESTAMP + SUFFIX, repository.getSynchronizationTimeStamp());
- }
- }
-
- }
-
- public void testExternalizationEmptyRepository() {
- TaskRepositoriesExternalizer externalizer = new TaskRepositoriesExternalizer();
- String path = "repositories.xml";
- File file = new File(path);
- file.deleteOnExit();
- externalizer.writeRepositoriesToXML(taskRepositories, file);
- taskRepositories = externalizer.readRepositoriesFromXML(file);
- assertEquals(2, taskRepositories.size());
- taskRepositories.clear();
- externalizer.writeRepositoriesToXML(taskRepositories, file);
- taskRepositories = externalizer.readRepositoriesFromXML(file);
- assertEquals(0, taskRepositories.size());
- }
-
-}
diff --git a/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TaskRepositoryFilterTests.java b/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TaskRepositoryFilterTests.java
deleted file mode 100644
index 010106543..000000000
--- a/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TaskRepositoryFilterTests.java
+++ /dev/null
@@ -1,81 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2004, 2008 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.tasks.tests;
-
-import junit.framework.TestCase;
-
-import org.eclipse.mylyn.internal.tasks.core.ITaskRepositoryFilter;
-import org.eclipse.mylyn.internal.tasks.core.LocalRepositoryConnector;
-import org.eclipse.mylyn.internal.tasks.ui.TasksUiPlugin;
-import org.eclipse.mylyn.tasks.core.AbstractRepositoryConnector;
-import org.eclipse.mylyn.tasks.core.TaskRepository;
-import org.eclipse.mylyn.tasks.tests.connector.MockRepositoryConnector;
-
-/**
- * @author Shawn Minto
- */
-public class TaskRepositoryFilterTests extends TestCase {
-
- public void testCanCreateTaskFilter() {
- ITaskRepositoryFilter canCreateTaskFilter = ITaskRepositoryFilter.CAN_CREATE_NEW_TASK;
- TaskRepository repository = new TaskRepository(MockRepositoryConnector.REPOSITORY_KIND,
- MockRepositoryConnector.REPOSITORY_URL);
- MockRepositoryConnector connector = (MockRepositoryConnector) TasksUiPlugin.getConnector(MockRepositoryConnector.REPOSITORY_KIND);
- assertFalse(canCreateTaskFilter.accept(repository, connector));
-
- connector.setCanCreateNewTask(true);
- assertTrue(canCreateTaskFilter.accept(repository, connector));
-
- repository.setOffline(true);
- assertFalse(canCreateTaskFilter.accept(repository, connector));
-
- connector.resetDefaults();
- }
-
- public void testCanQueryTaskFilter() {
- ITaskRepositoryFilter canQueryFilter = ITaskRepositoryFilter.CAN_QUERY;
- TaskRepository repository = new TaskRepository(MockRepositoryConnector.REPOSITORY_KIND,
- MockRepositoryConnector.REPOSITORY_URL);
- MockRepositoryConnector connector = (MockRepositoryConnector) TasksUiPlugin.getConnector(MockRepositoryConnector.REPOSITORY_KIND);
- assertFalse(canQueryFilter.accept(repository, connector));
-
- repository = new TaskRepository(LocalRepositoryConnector.CONNECTOR_KIND,
- LocalRepositoryConnector.REPOSITORY_URL);
- AbstractRepositoryConnector localConnector = TasksUiPlugin.getConnector(LocalRepositoryConnector.CONNECTOR_KIND);
- assertFalse(canQueryFilter.accept(repository, localConnector));
-
- // need a second mock repo
- connector.setCanQuery(true);
- assertTrue(canQueryFilter.accept(repository, connector));
-
- repository.setOffline(true);
- assertFalse(canQueryFilter.accept(repository, connector));
-
- connector.resetDefaults();
- }
-
- public void testCanCreateTaskFromKeyTaskFilter() {
- ITaskRepositoryFilter canCreateTaskFromKeyFilter = ITaskRepositoryFilter.CAN_CREATE_TASK_FROM_KEY;
- TaskRepository repository = new TaskRepository(MockRepositoryConnector.REPOSITORY_KIND,
- MockRepositoryConnector.REPOSITORY_URL);
- MockRepositoryConnector connector = (MockRepositoryConnector) TasksUiPlugin.getConnector(MockRepositoryConnector.REPOSITORY_KIND);
- assertFalse(canCreateTaskFromKeyFilter.accept(repository, connector));
-
- // need a second mock repo
- connector.setCanCreateTaskFromKey(true);
- assertTrue(canCreateTaskFromKeyFilter.accept(repository, connector));
-
- repository.setOffline(true);
- assertFalse(canCreateTaskFromKeyFilter.accept(repository, connector));
- connector.resetDefaults();
- }
-}
diff --git a/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TaskRepositoryManagerTest.java b/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TaskRepositoryManagerTest.java
deleted file mode 100644
index 29437b571..000000000
--- a/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TaskRepositoryManagerTest.java
+++ /dev/null
@@ -1,239 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2004, 2008 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.tasks.tests;
-
-import java.net.MalformedURLException;
-import java.util.ArrayList;
-import java.util.Date;
-import java.util.List;
-
-import junit.framework.TestCase;
-
-import org.eclipse.mylyn.commons.net.AuthenticationCredentials;
-import org.eclipse.mylyn.commons.net.AuthenticationType;
-import org.eclipse.mylyn.internal.tasks.core.AbstractTask;
-import org.eclipse.mylyn.internal.tasks.core.RepositoryTaskHandleUtil;
-import org.eclipse.mylyn.internal.tasks.core.TaskRepositoryManager;
-import org.eclipse.mylyn.internal.tasks.ui.TasksUiPlugin;
-import org.eclipse.mylyn.tasks.core.AbstractRepositoryConnector;
-import org.eclipse.mylyn.tasks.core.ITask;
-import org.eclipse.mylyn.tasks.core.TaskRepository;
-import org.eclipse.mylyn.tasks.tests.connector.MockRepositoryConnector;
-import org.eclipse.mylyn.tasks.tests.connector.MockRepositoryQuery;
-import org.eclipse.mylyn.tasks.tests.connector.MockTask;
-
-/**
- * @author Mik Kersten
- * @author Rob Elves
- */
-public class TaskRepositoryManagerTest extends TestCase {
-
- private static final String DEFAULT_KIND = MockRepositoryConnector.REPOSITORY_KIND;
-
- private static final String DEFAULT_URL = "http://eclipse.org";
-
- private static final String ANOTHER_URL = "http://codehaus.org";
-
- private TaskRepositoryManager manager;
-
- @Override
- protected void setUp() throws Exception {
- super.setUp();
- manager = TasksUiPlugin.getRepositoryManager();
- assertNotNull(manager);
- manager.clearRepositories(TasksUiPlugin.getDefault().getRepositoriesFilePath());
- }
-
- @Override
- protected void tearDown() throws Exception {
- super.tearDown();
- if (manager != null) {
- manager.clearRepositories(TasksUiPlugin.getDefault().getRepositoriesFilePath());
- }
- }
-
- public void testRepositoryWithSlash() throws MalformedURLException {
-
- TaskRepository repository1 = new TaskRepository("bugzilla", "http://repository1/");
- manager.addRepository(repository1);
- assertNotNull(manager.getRepository("http://repository1"));
- assertNotNull(manager.getRepository("http://repository1/"));
-
- assertNotNull(manager.getRepository("bugzilla", "http://repository1"));
- assertNotNull(manager.getRepository("bugzilla", "http://repository1/"));
-
- }
-
- public void testQueryDeletion() {
- TaskRepository repository = new TaskRepository(MockRepositoryConnector.REPOSITORY_KIND,
- MockRepositoryConnector.REPOSITORY_URL);
- TasksUiPlugin.getRepositoryManager().addRepository(repository);
-
- MockTask task = new MockTask("1");
- MockRepositoryQuery query = new MockRepositoryQuery("Test");
- TasksUiPlugin.getTaskList().addQuery(query);
- TasksUiPlugin.getTaskList().addTask(task, query);
-
- assertNotNull(TasksUiPlugin.getTaskList().getTask(task.getHandleIdentifier()));
- TasksUiPlugin.getTaskList().deleteQuery(query);
- ITask task2 = TasksUiPlugin.getTaskList().getTask(task.getHandleIdentifier());
- assertNotNull(task2);
- assertEquals(1, ((AbstractTask) task2).getParentContainers().size());
-
- }
-
- public void testHandles() {
- String url = "http://foo.bar";
- String id = "123";
- String handle = RepositoryTaskHandleUtil.getHandle(url, id);
- assertEquals(url, RepositoryTaskHandleUtil.getRepositoryUrl(handle));
- assertEquals(id, RepositoryTaskHandleUtil.getTaskId(handle));
-// assertEquals(123, AbstractTask.getTaskIdAsInt(handle));
- }
-
- public void testMultipleNotAdded() throws MalformedURLException {
- TaskRepository repository = new TaskRepository(DEFAULT_KIND, DEFAULT_URL);
- manager.addRepository(repository);
- TaskRepository repository2 = new TaskRepository(DEFAULT_KIND, DEFAULT_URL);
- manager.addRepository(repository2);
- assertEquals(1, manager.getAllRepositories().size());
- }
-
- public void testGet() throws MalformedURLException {
- assertEquals("", TasksUiPlugin.getDefault().getPreferenceStore().getString(
- TaskRepositoryManager.PREF_REPOSITORIES));
-
- TaskRepository repository = new TaskRepository(DEFAULT_KIND, DEFAULT_URL);
- manager.addRepository(repository);
- assertEquals(repository, manager.getRepository(DEFAULT_KIND, DEFAULT_URL));
- assertNull(manager.getRepository(DEFAULT_KIND, "foo"));
- assertNull(manager.getRepository("foo", DEFAULT_URL));
- }
-
- public void testConnectorAddition() {
- AbstractRepositoryConnector connector = new MockRepositoryConnector();
- manager.addRepositoryConnector(connector);
- assertNotNull(manager.getRepositoryConnector(connector.getConnectorKind()));
- }
-
- public void testRepositoryPersistance() throws MalformedURLException {
- TaskRepository repository1 = new TaskRepository("bugzilla", "http://bugzilla");
- TaskRepository repository2 = new TaskRepository("jira", "http://jira");
- TaskRepository repository3 = new TaskRepository("local", "http://local");
- manager.addRepository(repository3);
- manager.addRepository(repository1);
- manager.addRepository(repository2);
- TasksUiPlugin.getDefault();
- TasksUiPlugin.getExternalizationManager().load();
- //manager.readRepositories(TasksUiPlugin.getDefault().getRepositoriesFilePath());
-
- if (manager.getRepositoryConnector("bugzilla") != null) {
- assertTrue(manager.getAllRepositories().contains(repository2));
- }
- if (manager.getRepositoryConnector("jira") != null) {
- assertTrue(manager.getAllRepositories().contains(repository2));
- }
- assertTrue(manager.getAllRepositories().contains(repository3));
- }
-
- public void testRepositoryAttributePersistance() throws MalformedURLException {
- assertEquals("", TasksUiPlugin.getDefault().getPreferenceStore().getString(
- TaskRepositoryManager.PREF_REPOSITORIES));
-
- String version = "123";
- String encoding = "UTF-16";
- String fakeTimeZone = "nowhere";
- Date now = new Date();
- String dateString = now.toString();
-
- TaskRepository repository1 = new TaskRepository("local", "http://bugzilla");
- repository1.setVersion(version);
- repository1.setCharacterEncoding(encoding);
- repository1.setTimeZoneId(fakeTimeZone);
- repository1.setSynchronizationTimeStamp(dateString);
- manager.addRepository(repository1);
- TasksUiPlugin.getDefault();
- TasksUiPlugin.getExternalizationManager().load();
- //manager.readRepositories(TasksUiPlugin.getDefault().getRepositoriesFilePath());
- TaskRepository temp = manager.getRepository(repository1.getConnectorKind(), repository1.getRepositoryUrl());
- assertNotNull(temp);
- assertEquals(version, temp.getVersion());
- assertEquals(encoding, temp.getCharacterEncoding());
- assertEquals(fakeTimeZone, temp.getTimeZoneId());
- assertEquals(dateString, temp.getSynchronizationTimeStamp());
-
- }
-
- public void testRepositoryPersistanceAfterDelete() throws MalformedURLException {
-
- TaskRepository repository = new TaskRepository(DEFAULT_KIND, DEFAULT_URL);
- manager.addRepository(repository);
- assertNotNull(manager.getRepository(repository.getConnectorKind(), repository.getRepositoryUrl()));
-
- TaskRepository repository2 = new TaskRepository(DEFAULT_KIND, ANOTHER_URL);
- manager.addRepository(repository2);
- assertNotNull(manager.getRepository(repository2.getConnectorKind(), repository2.getRepositoryUrl()));
-
- manager.removeRepository(repository2, TasksUiPlugin.getDefault().getRepositoriesFilePath());
-
- assertNull(manager.getRepository(repository2.getConnectorKind(), repository2.getRepositoryUrl()));
- }
-
- public void testRepositoryWithUnknownUrlHandler() {
- TaskRepository repository = new TaskRepository("eclipse.technology.mylar",
- "abc://news.eclipse.org/eclipse.technology.mylar");
-
- repository.setCredentials(AuthenticationType.REPOSITORY, new AuthenticationCredentials("testUser",
- "testPassword"), true);
-
- AuthenticationCredentials credentials = repository.getCredentials(AuthenticationType.REPOSITORY);
- assertNotNull(credentials);
- assertEquals("testUser", credentials.getUserName());
- assertEquals("testPassword", credentials.getPassword());
- }
-
- public void testRepositoryWithCustomAttributes() throws Exception {
- // Note: if a connector doesn't exist the associated repositories are not loaded (orphaned)
- // causing this test to fail.
- AbstractRepositoryConnector connector = new MockRepositoryConnector();
- manager.addRepositoryConnector(connector);
-
- TaskRepository repository = new TaskRepository(MockRepositoryConnector.REPOSITORY_KIND,
- "http://mylyn.eclipse.org/");
- repository.setProperty("owner", "euxx");
- manager.addRepository(repository);
- TasksUiPlugin.getDefault();
- TasksUiPlugin.getExternalizationManager().load();
- //manager.readRepositories(TasksUiPlugin.getDefault().getRepositoriesFilePath());
-
- TaskRepository temp = manager.getRepository(repository.getConnectorKind(), repository.getRepositoryUrl());
- assertNotNull(temp);
- assertEquals("euxx", temp.getProperty("owner"));
- }
-
- public void testRepositoryPersistanceSameUrl() throws MalformedURLException {
- TaskRepository repository1 = new TaskRepository("local", "http://repository");
- TaskRepository repository2 = new TaskRepository("web", "http://repository");
- manager.addRepository(repository1);
- manager.addRepository(repository2);
- assertEquals(2, manager.getAllRepositories().size());
-
- List<TaskRepository> repositoryList = new ArrayList<TaskRepository>();
- repositoryList.add(repository2);
- repositoryList.add(repository1);
- //manager.readRepositories(TasksUiPlugin.getDefault().getRepositoriesFilePath());
- TasksUiPlugin.getDefault();
- TasksUiPlugin.getExternalizationManager().load();
- assertEquals("got: " + manager.getAllRepositories(), 2, manager.getAllRepositories().size());
- }
-
-}
diff --git a/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TaskRepositorySorterTest.java b/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TaskRepositorySorterTest.java
deleted file mode 100644
index 12d6835ce..000000000
--- a/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TaskRepositorySorterTest.java
+++ /dev/null
@@ -1,75 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2004, 2008 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.tasks.tests;
-
-import junit.framework.TestCase;
-
-import org.eclipse.mylyn.internal.tasks.core.IRepositoryConstants;
-import org.eclipse.mylyn.internal.tasks.ui.views.TaskRepositoriesSorter;
-import org.eclipse.mylyn.tasks.core.TaskRepository;
-
-/**
- * @author Mik Kersten
- */
-public class TaskRepositorySorterTest extends TestCase {
-
- @Override
- protected void setUp() throws Exception {
- super.setUp();
- }
-
- @Override
- protected void tearDown() throws Exception {
- super.tearDown();
- }
-
- public void testCategorySorting() {
- TaskRepositoriesSorter sorter = new TaskRepositoriesSorter();
- TaskRepository t1 = new TaskRepository("t1", "http://a");
- TaskRepository t2 = new TaskRepository("t2", "http://a");
- TaskRepository t3 = new TaskRepository("t3", "http://a");
- assertTrue(sorter.compare(null, t1, t2) < 0);
- assertTrue(sorter.compare(null, t3, t1) > 0);
- }
-
- public void testUrlSorting() {
- TaskRepositoriesSorter sorter = new TaskRepositoriesSorter();
- TaskRepository t1 = new TaskRepository("t", "http://a");
- TaskRepository t2 = new TaskRepository("t", "http://b");
- TaskRepository t3 = new TaskRepository("t", "http://c");
- assertTrue(sorter.compare(null, t1, t2) < 0);
- assertTrue(sorter.compare(null, t3, t1) > 0);
- }
-
- public void testLabelSorting() {
- TaskRepositoriesSorter sorter = new TaskRepositoriesSorter();
- TaskRepository t1 = new TaskRepository("kind", "http://a");
- t1.setProperty(IRepositoryConstants.PROPERTY_LABEL, "a");
- TaskRepository t2 = new TaskRepository("kind", "http://a");
- t2.setProperty(IRepositoryConstants.PROPERTY_LABEL, "b");
- TaskRepository t3 = new TaskRepository("kind", "http://a");
- t3.setProperty(IRepositoryConstants.PROPERTY_LABEL, "c");
-
- assertTrue(sorter.compare(null, t1, t2) < 0);
- assertTrue(sorter.compare(null, t3, t1) > 0);
- }
-
- public void testLabelVsNoLabel() {
- TaskRepositoriesSorter sorter = new TaskRepositoriesSorter();
- TaskRepository t1 = new TaskRepository("kind", "http://a");
- t1.setProperty(IRepositoryConstants.PROPERTY_LABEL, "a");
- TaskRepository t2 = new TaskRepository("kind", "http://a");
-
- assertTrue(sorter.compare(null, t1, t2) < 0);
- }
-
-}
diff --git a/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TaskRepositoryTest.java b/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TaskRepositoryTest.java
deleted file mode 100644
index 586ff518e..000000000
--- a/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TaskRepositoryTest.java
+++ /dev/null
@@ -1,163 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2004, 2008 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.tasks.tests;
-
-import java.net.URL;
-import java.util.Collections;
-import java.util.Date;
-import java.util.Map;
-
-import junit.framework.TestCase;
-
-import org.eclipse.core.runtime.Platform;
-import org.eclipse.mylyn.commons.net.AuthenticationCredentials;
-import org.eclipse.mylyn.commons.net.AuthenticationType;
-import org.eclipse.mylyn.internal.tasks.core.IRepositoryConstants;
-import org.eclipse.mylyn.tasks.core.TaskRepository;
-
-/**
- * @author Mik Kersten
- */
-public class TaskRepositoryTest extends TestCase {
-
- @SuppressWarnings("deprecation")
- public void testPlatformAuthHandlerAvailable() throws Exception {
- URL url = new URL("http://mylyn");
- Platform.addAuthorizationInfo(url, "", "", Collections.EMPTY_MAP);
- assertNotNull("Tests require org.eclipse.core.runtime.compatibility.auth", Platform.getAuthorizationInfo(url,
- "", ""));
- }
-
- public void testLabel() {
- TaskRepository repository = new TaskRepository("kind", "http://foo.bar");
- assertTrue(repository.getRepositoryLabel().equals(repository.getRepositoryUrl()));
-
- repository.setProperty(IRepositoryConstants.PROPERTY_LABEL, "label");
- assertTrue(repository.getRepositoryLabel().equals("label"));
- }
-
- @SuppressWarnings("deprecation")
- public void testPassword() throws Exception {
- password(AuthenticationType.REPOSITORY);
-
- // test old API
- TaskRepository taskRepository = new TaskRepository("kind", "url");
- taskRepository.setCredentials(AuthenticationType.REPOSITORY, new AuthenticationCredentials("user", "pwd"), true);
- assertEquals("user", taskRepository.getUserName());
- assertEquals("pwd", taskRepository.getPassword());
-
- assertEquals(null, taskRepository.getHttpUser());
- assertEquals(null, taskRepository.getHttpPassword());
- }
-
- @SuppressWarnings("deprecation")
- public void testHttpPassword() throws Exception {
- password(AuthenticationType.HTTP);
-
- TaskRepository taskRepository = new TaskRepository("kind", "url");
- taskRepository.setCredentials(AuthenticationType.HTTP, new AuthenticationCredentials("user", "pwd"), true);
- assertEquals("user", taskRepository.getHttpUser());
- assertEquals("pwd", taskRepository.getHttpPassword());
- }
-
- @SuppressWarnings("deprecation")
- public void testProxyPassword() throws Exception {
- password(AuthenticationType.PROXY);
-
- TaskRepository taskRepository = new TaskRepository("kind", "url");
- taskRepository.setCredentials(AuthenticationType.PROXY, new AuthenticationCredentials("user", "pwd"), false);
- assertEquals("user", taskRepository.getProxyUsername());
- assertEquals("pwd", taskRepository.getProxyPassword());
- }
-
- @SuppressWarnings("deprecation")
- public void testFlushCredentials() throws Exception {
- TaskRepository taskRepository = new TaskRepository("kind", "url");
- taskRepository.setCredentials(AuthenticationType.REPOSITORY, new AuthenticationCredentials("user", "pwd"),
- false);
- taskRepository.setCredentials(AuthenticationType.HTTP, new AuthenticationCredentials("user", "pwd"), true);
- taskRepository.flushAuthenticationCredentials();
- assertEquals(null, taskRepository.getUserName());
- assertEquals(null, taskRepository.getPassword());
- assertEquals(null, taskRepository.getHttpUser());
- assertEquals(null, taskRepository.getHttpPassword());
- assertNull(taskRepository.getCredentials(AuthenticationType.REPOSITORY));
- assertNull(taskRepository.getCredentials(AuthenticationType.HTTP));
- assertNull(taskRepository.getCredentials(AuthenticationType.PROXY));
- }
-
- public void testPlatformIsRunning() {
- assertTrue(Platform.isRunning());
- }
-
- // TODO e3.4 move to new api
- @SuppressWarnings("deprecation")
- public void password(AuthenticationType authType) throws Exception {
- URL url = new URL("http://url");
- TaskRepository taskRepository = new TaskRepository("kind", url.toString());
- try {
- taskRepository.flushAuthenticationCredentials();
-
- assertNull(taskRepository.getCredentials(authType));
- assertTrue(taskRepository.getSavePassword(authType));
-
- taskRepository.setCredentials(authType, new AuthenticationCredentials("user", "pwd"), true);
- AuthenticationCredentials credentials = taskRepository.getCredentials(authType);
- assertNotNull(credentials);
- assertEquals("user", credentials.getUserName());
- assertEquals("pwd", credentials.getPassword());
-
- Map<?, ?> map = Platform.getAuthorizationInfo(url, "", "Basic");
- assertNotNull(map);
- assertTrue(map.containsValue("user"));
- assertTrue(map.containsValue("pwd"));
-
- // test not saving password
- taskRepository.setCredentials(authType, new AuthenticationCredentials("user1", "pwd1"), false);
- assertFalse(taskRepository.getSavePassword(authType));
- credentials = taskRepository.getCredentials(authType);
- assertNotNull(credentials);
- assertEquals("user1", credentials.getUserName());
- assertEquals("pwd1", credentials.getPassword());
-
- // make sure old passwords are not in the key ring
- map = Platform.getAuthorizationInfo(url, "", "Basic");
- assertNotNull(map);
- assertTrue(map.containsValue("user1"));
- assertFalse(map.containsValue("pwd1"));
- assertFalse(map.containsValue("user"));
- assertFalse(map.containsValue("pwd"));
-
- taskRepository.setCredentials(authType, new AuthenticationCredentials("user2", "pwd2"), true);
- assertTrue(taskRepository.getSavePassword(authType));
- credentials = taskRepository.getCredentials(authType);
- assertNotNull(credentials);
- assertEquals("user2", credentials.getUserName());
- assertEquals("pwd2", credentials.getPassword());
- } finally {
- taskRepository.flushAuthenticationCredentials();
- }
- }
-
- public void testConfigUpdateStoring() throws Exception {
- URL url = new URL("http://url");
- TaskRepository taskRepository = new TaskRepository("kind", url.toString());
- Date stamp = taskRepository.getConfigurationDate();
- assertNull("unset configuration date returns null", stamp);
- stamp = new Date();
- stamp.setTime(stamp.getTime() - 35000L);
-
- taskRepository.setConfigurationDate(stamp);
- assertEquals("Time stamp set", stamp.getTime(), taskRepository.getConfigurationDate().getTime());
- }
-
-}
diff --git a/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TaskTest.java b/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TaskTest.java
deleted file mode 100644
index f893ae4e0..000000000
--- a/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TaskTest.java
+++ /dev/null
@@ -1,78 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2004, 2008 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.tasks.tests;
-
-import junit.framework.TestCase;
-
-import org.eclipse.mylyn.internal.tasks.core.AbstractTask;
-import org.eclipse.mylyn.internal.tasks.core.LocalTask;
-import org.eclipse.mylyn.internal.tasks.ui.util.TasksUiInternal;
-import org.eclipse.mylyn.tasks.core.ITask;
-import org.eclipse.mylyn.tasks.core.ITask.PriorityLevel;
-
-/**
- * @author Mik Kersten
- * @author Steffen Pingel
- */
-public class TaskTest extends TestCase {
-
- @Override
- protected void setUp() throws Exception {
- super.setUp();
- }
-
- @Override
- protected void tearDown() throws Exception {
- super.tearDown();
- }
-
- public void testUrl() {
- AbstractTask task = new LocalTask("handle", "label");
- task.setUrl("http://eclipse.org/mylyn/doc");
- assertTrue(TasksUiInternal.isValidUrl(task.getUrl()));
-
- task.setUrl("http://");
- assertFalse(TasksUiInternal.isValidUrl(task.getUrl()));
-
- task.setUrl("https://");
- assertFalse(TasksUiInternal.isValidUrl(task.getUrl()));
-
- task.setUrl("");
- assertFalse(TasksUiInternal.isValidUrl(task.getUrl()));
-
- task.setUrl(null);
- assertFalse(TasksUiInternal.isValidUrl(task.getUrl()));
- }
-
- public void testPriorityNeverNull() {
- ITask task = new LocalTask("handle", "label");
- assertNotNull(task.getPriority());
-
- PriorityLevel def = PriorityLevel.getDefault();
- assertNotNull(def);
- assertEquals(def, PriorityLevel.fromDescription("garbage"));
- assertEquals(def, PriorityLevel.fromString("garbage"));
- }
-
- public void testPriorityLevelFromLevel() {
- assertEquals(PriorityLevel.P1, PriorityLevel.fromLevel(Integer.MIN_VALUE));
- assertEquals(PriorityLevel.P1, PriorityLevel.fromLevel(-1));
- assertEquals(PriorityLevel.P1, PriorityLevel.fromLevel(0));
- assertEquals(PriorityLevel.P1, PriorityLevel.fromLevel(1));
- assertEquals(PriorityLevel.P2, PriorityLevel.fromLevel(2));
- assertEquals(PriorityLevel.P3, PriorityLevel.fromLevel(3));
- assertEquals(PriorityLevel.P4, PriorityLevel.fromLevel(4));
- assertEquals(PriorityLevel.P5, PriorityLevel.fromLevel(5));
- assertEquals(PriorityLevel.P5, PriorityLevel.fromLevel(6));
- assertEquals(PriorityLevel.P5, PriorityLevel.fromLevel(Integer.MAX_VALUE));
- }
-}
diff --git a/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TaskTestUtil.java b/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TaskTestUtil.java
deleted file mode 100644
index e56c3e819..000000000
--- a/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TaskTestUtil.java
+++ /dev/null
@@ -1,148 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2004, 2008 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.tasks.tests;
-
-import java.io.File;
-import java.io.IOException;
-import java.net.URL;
-
-import junit.framework.Assert;
-
-import org.eclipse.core.runtime.FileLocator;
-import org.eclipse.jface.viewers.StructuredSelection;
-import org.eclipse.mylyn.internal.tasks.core.RepositoryQuery;
-import org.eclipse.mylyn.internal.tasks.core.TaskTask;
-import org.eclipse.mylyn.internal.tasks.ui.TasksUiPlugin;
-import org.eclipse.mylyn.internal.tasks.ui.views.TaskListView;
-import org.eclipse.mylyn.tasks.core.ITask;
-import org.eclipse.mylyn.tasks.core.TaskRepository;
-import org.eclipse.mylyn.tasks.core.data.TaskAttributeMapper;
-import org.eclipse.mylyn.tasks.core.data.TaskData;
-import org.eclipse.mylyn.tasks.tests.connector.MockRepositoryConnector;
-import org.eclipse.mylyn.tasks.ui.TasksUi;
-import org.eclipse.ui.IViewPart;
-import org.eclipse.ui.IWorkbenchPart;
-import org.eclipse.ui.PlatformUI;
-import org.eclipse.ui.internal.ViewIntroAdapterPart;
-
-/**
- * @author Mik Kersten
- */
-public class TaskTestUtil {
-
- public static File getLocalFile(String path) {
- try {
- URL installURL = TasksTestsPlugin.getDefault().getBundle().getEntry(path);
- URL localURL = FileLocator.toFileURL(installURL);
- return new File(localURL.getFile());
- } catch (IOException e) {
- return null;
- }
- }
-
- public static File getFile(String path) throws IOException {
- if (TasksTestsPlugin.getDefault() != null) {
- URL installURL = TasksTestsPlugin.getDefault().getBundle().getEntry(path);
- URL localURL = FileLocator.toFileURL(installURL);
- return new File(localURL.getFile());
- } else {
- URL localURL = TaskTestUtil.class.getResource("");
- return new File(localURL.getFile() + "../../../../../../" + path);
- }
- }
-
- /**
- * Clears tasks and repositories. When this method returns only the local task repository will exist and the task
- * list will only have default categories but no tasks.
- */
- public static void resetTaskListAndRepositories() throws Exception {
- TasksUiPlugin.getRepositoryManager().clearRepositories(TasksUiPlugin.getDefault().getRepositoriesFilePath());
- TasksUiPlugin.getDefault().getLocalTaskRepository();
- resetTaskList();
- }
-
- /**
- * Clears all tasks.
- */
- public static void resetTaskList() throws Exception {
- TasksUi.getTaskActivityManager().deactivateActiveTask();
- TasksUiPlugin.getTaskListExternalizationParticipant().resetTaskList();
- TaskListView view = TaskListView.getFromActivePerspective();
- if (view != null) {
- view.refresh();
- }
- }
-
- /**
- * @see #resetTaskList()
- */
- public static void saveAndReadTasklist() throws Exception {
- TasksUiPlugin.getTaskList().notifyElementsChanged(null);
- saveTaskList();
- TaskTestUtil.resetTaskList();
- TasksUiPlugin.getDefault().initializeDataSources();
- }
-
- public static void saveTaskList() {
- TasksUiPlugin.getExternalizationManager().requestSave();
- }
-
- public static TaskRepository createMockRepository() {
- return new TaskRepository(MockRepositoryConnector.REPOSITORY_KIND, MockRepositoryConnector.REPOSITORY_URL);
- }
-
- public static TaskTask createMockTask(String taskId) {
- return new TaskTask(MockRepositoryConnector.REPOSITORY_KIND, MockRepositoryConnector.REPOSITORY_URL, taskId);
- }
-
- public static RepositoryQuery createMockQuery(String queryId) {
- return new RepositoryQuery(MockRepositoryConnector.REPOSITORY_KIND, queryId);
- }
-
- public static TaskListView openTasksViewInActivePerspective() throws Exception {
- IWorkbenchPart activePart = PlatformUI.getWorkbench()
- .getActiveWorkbenchWindow()
- .getActivePage()
- .getActivePart();
- if (activePart instanceof ViewIntroAdapterPart) {
- PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().hideView((IViewPart) activePart);
- }
- TaskListView taskListView = (TaskListView) PlatformUI.getWorkbench()
- .getActiveWorkbenchWindow()
- .getActivePage()
- .showView(TaskListView.ID);
- Assert.assertSame("Failed to make task list view active", PlatformUI.getWorkbench()
- .getActiveWorkbenchWindow()
- .getActivePage()
- .getActivePart(), taskListView);
- return taskListView;
- }
-
- public static void addAndSelectTask(ITask task) throws Exception {
- TasksUiPlugin.getTaskList().addTask(task);
- TaskListView taskListView = TaskTestUtil.openTasksViewInActivePerspective();
- taskListView.refresh();
- taskListView.getViewer().expandAll();
- taskListView.getViewer().setSelection(new StructuredSelection(task), true);
- Assert.assertSame("Failed to select task", task, taskListView.getSelectedTask());
- }
-
- public static TaskData createTaskData(TaskRepository taskRepository, String taskId) {
- return new TaskData(new TaskAttributeMapper(taskRepository), taskRepository.getConnectorKind(),
- taskRepository.getRepositoryUrl(), taskId);
- }
-
- public static TaskData createMockTaskData(String taskId) {
- return createTaskData(createMockRepository(), taskId);
- }
-
-}
diff --git a/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TaskWorkingSetTest.java b/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TaskWorkingSetTest.java
deleted file mode 100644
index 176a5a010..000000000
--- a/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TaskWorkingSetTest.java
+++ /dev/null
@@ -1,158 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2004, 2008 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.tasks.tests;
-
-import java.lang.reflect.InvocationTargetException;
-import java.util.Arrays;
-
-import junit.framework.TestCase;
-
-import org.eclipse.core.internal.resources.ProjectDescription;
-import org.eclipse.core.resources.IProject;
-import org.eclipse.core.resources.IProjectDescription;
-import org.eclipse.core.resources.IWorkspaceRoot;
-import org.eclipse.core.resources.ResourcesPlugin;
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.core.runtime.IAdaptable;
-import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.core.runtime.NullProgressMonitor;
-import org.eclipse.mylyn.internal.tasks.core.TaskList;
-import org.eclipse.mylyn.internal.tasks.ui.TasksUiPlugin;
-import org.eclipse.mylyn.internal.tasks.ui.workingsets.TaskWorkingSetUpdater;
-import org.eclipse.mylyn.resources.tests.ResourceTestUtil;
-import org.eclipse.mylyn.tasks.tests.connector.MockRepositoryQuery;
-import org.eclipse.ui.IWorkingSet;
-import org.eclipse.ui.IWorkingSetManager;
-import org.eclipse.ui.actions.WorkspaceModifyOperation;
-import org.eclipse.ui.internal.Workbench;
-
-/**
- * @author Mik Kersten
- */
-public class TaskWorkingSetTest extends TestCase {
-
- private IProject project;
-
- private IWorkspaceRoot root;
-
- private IWorkingSet workingSet;
-
- private IWorkingSetManager workingSetManager;
-
- @Override
- protected void setUp() throws Exception {
- workingSetManager = Workbench.getInstance().getWorkingSetManager();
- root = ResourcesPlugin.getWorkspace().getRoot();
- }
-
- @Override
- protected void tearDown() throws Exception {
- if (workingSet != null) {
- workingSetManager.removeWorkingSet(workingSet);
- }
-
- if (project != null) {
- ResourceTestUtil.deleteProject(project);
- }
- }
-
- public void testDeleteQuery() {
- MockRepositoryQuery query = new MockRepositoryQuery("description");
- TaskList taskList = TasksUiPlugin.getTaskList();
- taskList.addQuery(query);
- workingSet = createWorkingSet(query);
- assertTrue(Arrays.asList(workingSet.getElements()).contains(query));
- TasksUiPlugin.getTaskList().deleteQuery(query);
- assertFalse(Arrays.asList(workingSet.getElements()).contains(query));
- }
-
- public void testRenameQuery() {
- MockRepositoryQuery query = new MockRepositoryQuery("description");
- TaskList taskList = TasksUiPlugin.getTaskList();
- taskList.addQuery(query);
- workingSet = createWorkingSet(query);
- assertTrue(workingSet.getElements().length == 1);
- IAdaptable[] elements = workingSet.getElements();
- assertTrue(elements.length == 1);
- assertTrue(elements[0] instanceof MockRepositoryQuery);
- assertTrue(((MockRepositoryQuery) elements[0]).getHandleIdentifier().equals("description"));
- assertTrue(Arrays.asList(workingSet.getElements()).contains(query));
-
- query.setHandleIdentifier("Test");
- assertTrue(workingSet.getElements().length == 1);
- elements = workingSet.getElements();
- assertTrue(elements.length == 1);
- assertTrue(elements[0] instanceof MockRepositoryQuery);
- assertTrue(((MockRepositoryQuery) elements[0]).getHandleIdentifier().equals("Test"));
- assertTrue(Arrays.asList(workingSet.getElements()).contains(query));
- }
-
- // XXX see bug 212962
-// public void testRenameQuery() {
-// MockRepositoryQuery query = new MockRepositoryQuery("description");
-// TaskList taskList = TasksUiPlugin.getTaskList();
-// taskList.addQuery(query);
-// workingSet = createWorkingSet(query);
-//
-// TasksUiPlugin.getTaskList().deleteQuery(query);
-// query = new MockRepositoryQuery("newDescription");
-// TasksUiPlugin.getTaskList().addQuery(query);
-// assertTrue(Arrays.asList(workingSet.getElements()).contains(query));
-// }
-//
-// public void testEditQuery() {
-// MockRepositoryQuery query = new MockRepositoryQuery("description");
-// TaskList taskList = TasksUiPlugin.getTaskList();
-// taskList.addQuery(query);
-// workingSet = createWorkingSet(query);
-//
-// TasksUiPlugin.getTaskList().deleteQuery(query);
-// TasksUiPlugin.getTaskList().addQuery(query);
-// assertTrue(Arrays.asList(workingSet.getElements()).contains(query));
-// }
-
- public void testRenameProject() throws Exception {
- createProject("Test Rename");
- workingSet = createWorkingSet(project);
-
- WorkspaceModifyOperation op = new WorkspaceModifyOperation() {
- @Override
- protected void execute(IProgressMonitor monitor) throws CoreException, InvocationTargetException,
- InterruptedException {
- IProjectDescription description = new ProjectDescription();
- description.setName("New Name");
- project.move(description, true, new NullProgressMonitor());
- }
- };
- op.run(new NullProgressMonitor());
-
- IProject oldProject = root.getProject("Test Rename");
- IProject newProject = root.getProject("New Name");
- assertFalse(Arrays.asList(workingSet.getElements()).contains(oldProject));
- assertTrue(Arrays.asList(workingSet.getElements()).contains(newProject));
- }
-
- private void createProject(String name) throws CoreException {
- project = root.getProject(name);
- project.create(null);
- project.open(null);
- }
-
- private IWorkingSet createWorkingSet(IAdaptable element) {
- IWorkingSet workingSet = workingSetManager.createWorkingSet("Task Working Set", new IAdaptable[] { element });
- workingSet.setId(TaskWorkingSetUpdater.ID_TASK_WORKING_SET);
- assertTrue(Arrays.asList(workingSet.getElements()).contains(element));
- workingSetManager.addWorkingSet(workingSet);
- return workingSet;
- }
-
-}
diff --git a/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TasksTestsPlugin.java b/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TasksTestsPlugin.java
deleted file mode 100644
index da070eda4..000000000
--- a/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TasksTestsPlugin.java
+++ /dev/null
@@ -1,47 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2004, 2008 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.tasks.tests;
-
-import org.eclipse.core.runtime.Plugin;
-import org.osgi.framework.BundleContext;
-
-/**
- * @author Mik Kersten
- */
-public class TasksTestsPlugin extends Plugin {
-
- private static TasksTestsPlugin plugin;
-
- public TasksTestsPlugin() {
- super();
- plugin = this;
- }
-
- @Override
- public void start(BundleContext context) throws Exception {
- super.start(context);
- }
-
- @Override
- public void stop(BundleContext context) throws Exception {
- super.stop(context);
- plugin = null;
- }
-
- /**
- * Returns the shared instance.
- */
- public static TasksTestsPlugin getDefault() {
- return plugin;
- }
-
-}
diff --git a/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TasksUiUtilTest.java b/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TasksUiUtilTest.java
deleted file mode 100644
index b16a672a4..000000000
--- a/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TasksUiUtilTest.java
+++ /dev/null
@@ -1,164 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2004, 2008 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.tasks.tests;
-
-import java.lang.reflect.Field;
-import java.util.Date;
-
-import junit.framework.TestCase;
-
-import org.eclipse.mylyn.internal.tasks.core.AbstractTask;
-import org.eclipse.mylyn.internal.tasks.core.TaskCategory;
-import org.eclipse.mylyn.internal.tasks.core.TaskList;
-import org.eclipse.mylyn.internal.tasks.ui.TasksUiPlugin;
-import org.eclipse.mylyn.internal.tasks.ui.util.TasksUiInternal;
-import org.eclipse.mylyn.tasks.core.ITask.PriorityLevel;
-import org.eclipse.mylyn.tasks.ui.TasksUiUtil;
-import org.eclipse.mylyn.tasks.ui.editors.TaskEditor;
-import org.eclipse.ui.IEditorPart;
-import org.eclipse.ui.IWorkbenchPage;
-import org.eclipse.ui.PlatformUI;
-import org.eclipse.ui.internal.browser.WebBrowserEditor;
-import org.eclipse.ui.internal.browser.WebBrowserEditorInput;
-
-/**
- * @author Shawn Minto
- */
-public class TasksUiUtilTest extends TestCase {
-
- private TaskCategory cat1;
-
- private AbstractTask cat1task1;
-
- private AbstractTask cat1task2;
-
- private IWorkbenchPage activePage;
-
- private TaskList taskList;
-
- @Override
- public void setUp() throws Exception {
- taskList = TasksUiPlugin.getTaskList();
-
- TaskTestUtil.resetTaskListAndRepositories();
-
- cat1 = new TaskCategory("First Category");
- taskList.addCategory(cat1);
-
- cat1task1 = TasksUiInternal.createNewLocalTask("task 1");
- cat1task1.setPriority(PriorityLevel.P1.toString());
- cat1task1.setCompletionDate(new Date());
- taskList.addTask(cat1task1, cat1);
-
- cat1task2 = TasksUiInternal.createNewLocalTask("task 2");
- cat1task2.setPriority(PriorityLevel.P2.toString());
- taskList.addTask(cat1task2, cat1);
-
- assertEquals(cat1.getChildren().size(), 2);
-
- activePage = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage();
- activePage.closeAllEditors(false);
- assertEquals(0, activePage.getEditorReferences().length);
- }
-
- @Override
- public void tearDown() throws Exception {
- TaskTestUtil.resetTaskListAndRepositories();
- activePage.closeAllEditors(false);
- }
-
- public void testOpenTaskFromTask() {
- TasksUiUtil.openTask(cat1task1);
- assertEquals(1, activePage.getEditorReferences().length);
- assertTrue(activePage.getEditorReferences()[0].getEditor(true) instanceof TaskEditor);
-
- TasksUiUtil.openTask(cat1task2);
- assertEquals(2, activePage.getEditorReferences().length);
- assertTrue(activePage.getEditorReferences()[0].getEditor(true) instanceof TaskEditor);
- assertTrue(activePage.getEditorReferences()[1].getEditor(true) instanceof TaskEditor);
- }
-
- public void testOpenTaskFromString() {
- TasksUiUtil.openTask((String) null);
- assertEquals(1, activePage.getEditorReferences().length);
- assertTrue(activePage.getEditorReferences()[0].getEditor(true) instanceof WebBrowserEditor);
- }
-
- public void testOpenUrl() {
- TasksUiUtil.openUrl(null);
- assertEquals(1, activePage.getEditorReferences().length);
- IEditorPart editor = activePage.getEditorReferences()[0].getEditor(true);
- assertTrue(editor instanceof WebBrowserEditor);
- assertTrue(editor.getEditorInput() instanceof WebBrowserEditorInput);
- assertEquals(null, ((WebBrowserEditorInput) editor.getEditorInput()).getURL());
-
- TasksUiUtil.openUrl("http://eclipse.org/mylyn");
- assertEquals(2, activePage.getEditorReferences().length);
- editor = activePage.getEditorReferences()[0].getEditor(true);
- assertTrue(editor instanceof WebBrowserEditor);
- assertEquals(null, ((WebBrowserEditorInput) editor.getEditorInput()).getURL());
-
- IEditorPart editor2 = activePage.getEditorReferences()[1].getEditor(true);
- assertTrue(editor2 instanceof WebBrowserEditor);
- assertNotNull(((WebBrowserEditorInput) editor2.getEditorInput()).getURL());
- assertEquals("http://eclipse.org/mylyn", ((WebBrowserEditorInput) editor2.getEditorInput()).getURL().toString());
- }
-
- public void testFlagNoRichEditor() throws SecurityException, NoSuchFieldException, IllegalArgumentException,
- IllegalAccessException {
- TasksUiUtil.openUrl(null);
- assertEquals(1, activePage.getEditorReferences().length);
- IEditorPart editor = activePage.getEditorReferences()[0].getEditor(true);
- assertTrue(editor instanceof WebBrowserEditor);
- assertTrue(editor.getEditorInput() instanceof WebBrowserEditorInput);
- assertEquals(null, ((WebBrowserEditorInput) editor.getEditorInput()).getURL());
- WebBrowserEditorInput input = ((WebBrowserEditorInput) editor.getEditorInput());
- Field f = input.getClass().getDeclaredField("style");
- f.setAccessible(true);
- int style = (Integer) f.get(input);
- assertFalse((style & TasksUiUtil.FLAG_NO_RICH_EDITOR) == 0);
-
- TasksUiUtil.openUrl("http://eclipse.org/mylyn");
- assertEquals(2, activePage.getEditorReferences().length);
- editor = activePage.getEditorReferences()[0].getEditor(true);
- assertTrue(editor instanceof WebBrowserEditor);
- assertEquals(null, ((WebBrowserEditorInput) editor.getEditorInput()).getURL());
- input = ((WebBrowserEditorInput) editor.getEditorInput());
- f = input.getClass().getDeclaredField("style");
- f.setAccessible(true);
- style = (Integer) f.get(input);
- assertFalse((style & TasksUiUtil.FLAG_NO_RICH_EDITOR) == 0);
-
- IEditorPart editor2 = activePage.getEditorReferences()[1].getEditor(true);
- assertTrue(editor2 instanceof WebBrowserEditor);
- assertNotNull(((WebBrowserEditorInput) editor2.getEditorInput()).getURL());
- assertEquals("http://eclipse.org/mylyn", ((WebBrowserEditorInput) editor2.getEditorInput()).getURL().toString());
- input = ((WebBrowserEditorInput) editor.getEditorInput());
- f = input.getClass().getDeclaredField("style");
- f.setAccessible(true);
- style = (Integer) f.get(input);
- assertFalse((style & TasksUiUtil.FLAG_NO_RICH_EDITOR) == 0);
-
- // open task should not set FLAG_NO_RICH_EDITOR
- TasksUiUtil.openTask("http://eclipse.org/mylyn/test");
- assertEquals(3, activePage.getEditorReferences().length);
- editor = activePage.getEditorReferences()[2].getEditor(true);
- assertTrue(editor instanceof WebBrowserEditor);
- assertEquals("http://eclipse.org/mylyn/test", ((WebBrowserEditorInput) editor.getEditorInput()).getURL()
- .toString());
- input = ((WebBrowserEditorInput) editor.getEditorInput());
- f = input.getClass().getDeclaredField("style");
- f.setAccessible(true);
- style = (Integer) f.get(input);
- assertTrue((style & TasksUiUtil.FLAG_NO_RICH_EDITOR) == 0);
- }
-} \ No newline at end of file
diff --git a/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TasksUtilTest.java b/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TasksUtilTest.java
deleted file mode 100644
index e7528f703..000000000
--- a/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TasksUtilTest.java
+++ /dev/null
@@ -1,47 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2004, 2008 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.tasks.tests;
-
-import junit.framework.TestCase;
-
-import org.eclipse.mylyn.internal.provisional.tasks.core.TasksUtil;
-
-public class TasksUtilTest extends TestCase {
-
- public void testDecode() {
- assertEquals("abc", TasksUtil.encode("abc"));
- assertEquals("%2D_", TasksUtil.encode("-"));
- assertEquals("abc%2D_123", TasksUtil.encode("abc-123"));
- assertEquals("", TasksUtil.encode(""));
- }
-
- public void testDecodeInvalid() {
- try {
- String s = TasksUtil.decode("abc-123");
- fail("Expected IllegalArgumentException, got '" + s + "'");
- } catch (IllegalArgumentException e) {
- }
- try {
- String s = TasksUtil.decode("%Z_");
- fail("Expected IllegalArgumentException, got '" + s + "'");
- } catch (IllegalArgumentException e) {
- }
- }
-
- public void testEncode() {
- assertEquals("abc", TasksUtil.decode("abc"));
- assertEquals("-", TasksUtil.decode("%2D_"));
- assertEquals("abc-123", TasksUtil.decode("abc%2D_123"));
- assertEquals("abc-123", TasksUtil.decode(TasksUtil.decode(TasksUtil.encode(TasksUtil.encode("abc-123")))));
- }
-
-}
diff --git a/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/connector/MockAttachmentHandler.java b/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/connector/MockAttachmentHandler.java
deleted file mode 100644
index ec2fe6364..000000000
--- a/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/connector/MockAttachmentHandler.java
+++ /dev/null
@@ -1,57 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2004, 2008 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.tasks.tests.connector;
-
-import java.io.ByteArrayInputStream;
-import java.io.InputStream;
-
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.mylyn.tasks.core.ITask;
-import org.eclipse.mylyn.tasks.core.TaskRepository;
-import org.eclipse.mylyn.tasks.core.data.AbstractTaskAttachmentHandler;
-import org.eclipse.mylyn.tasks.core.data.AbstractTaskAttachmentSource;
-import org.eclipse.mylyn.tasks.core.data.TaskAttribute;
-
-/**
- * @author Steffen Pingel
- */
-public class MockAttachmentHandler extends AbstractTaskAttachmentHandler {
-
- private byte[] data;
-
- public void setAttachmentData(byte[] data) {
- this.data = data;
- }
-
- @Override
- public boolean canGetContent(TaskRepository repository, ITask task) {
- return true;
- }
-
- @Override
- public boolean canPostContent(TaskRepository repository, ITask task) {
- return true;
- }
-
- @Override
- public InputStream getContent(TaskRepository repository, ITask task, TaskAttribute attachmentAttribute,
- IProgressMonitor monitor) throws CoreException {
- return new ByteArrayInputStream(data);
- }
-
- @Override
- public void postContent(TaskRepository repository, ITask task, AbstractTaskAttachmentSource source, String comment,
- TaskAttribute attachmentAttribute, IProgressMonitor monitor) throws CoreException {
- }
-
-}
diff --git a/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/connector/MockRepositoryConnector.java b/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/connector/MockRepositoryConnector.java
deleted file mode 100644
index 71f9054a3..000000000
--- a/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/connector/MockRepositoryConnector.java
+++ /dev/null
@@ -1,173 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2004, 2008 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.tasks.tests.connector;
-
-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.mylyn.tasks.core.AbstractRepositoryConnector;
-import org.eclipse.mylyn.tasks.core.IRepositoryQuery;
-import org.eclipse.mylyn.tasks.core.ITask;
-import org.eclipse.mylyn.tasks.core.TaskRepository;
-import org.eclipse.mylyn.tasks.core.data.AbstractTaskAttachmentHandler;
-import org.eclipse.mylyn.tasks.core.data.TaskData;
-import org.eclipse.mylyn.tasks.core.data.TaskDataCollector;
-import org.eclipse.mylyn.tasks.core.sync.ISynchronizationSession;
-import org.eclipse.mylyn.tasks.ui.TasksUi;
-
-/**
- * @author Mik Kersten
- * @author Rob Elves
- * @author Shawn Minto
- * @author Steffen Pingel
- */
-public class MockRepositoryConnector extends AbstractRepositoryConnector {
-
- // TODO 3.1 rename to CONNECTOR_KIND
- public static final String REPOSITORY_KIND = "mock";
-
- public static final String REPOSITORY_URL = "http://mockrepository.test";
-
- public static MockRepositoryConnector getDefault() {
- return (MockRepositoryConnector) TasksUi.getRepositoryConnector(REPOSITORY_KIND);
- }
-
- private AbstractTaskAttachmentHandler attachmentHandler;
-
- private boolean canQuery;
-
- private boolean canCreateNewTask;
-
- private boolean canCreateTaskFromKey;
-
- private boolean hasLocalCompletionState;
-
- public MockRepositoryConnector() {
- resetDefaults();
- }
-
- public void resetDefaults() {
- canQuery = false;
- canCreateNewTask = false;
- canCreateTaskFromKey = false;
- hasLocalCompletionState = false;
- }
-
- public void setCanCreateNewTask(boolean canCreateNewTask) {
- this.canCreateNewTask = canCreateNewTask;
- }
-
- public void setCanCreateTaskFromKey(boolean canCreateTaskFromKey) {
- this.canCreateTaskFromKey = canCreateTaskFromKey;
- }
-
- public void setCanQuery(boolean canQuery) {
- this.canQuery = canQuery;
- }
-
- public void setHasLocalCompletionState(boolean hasLocalCompletionState) {
- this.hasLocalCompletionState = hasLocalCompletionState;
- }
-
- @Override
- public boolean canQuery(TaskRepository repository) {
- return canQuery;
- }
-
- @Override
- public boolean canCreateNewTask(TaskRepository repository) {
- return canCreateNewTask;
- }
-
- @Override
- public boolean canCreateTaskFromKey(TaskRepository repository) {
- return canCreateTaskFromKey;
- }
-
- @Override
- public String getLabel() {
- return "Mock Repository (for unit tests)";
- }
-
- @Override
- public String getConnectorKind() {
- return REPOSITORY_KIND;
- }
-
- @Override
- public String getRepositoryUrlFromTaskUrl(String url) {
- // ignore
- return null;
- }
-
- @Override
- public String getTaskIdFromTaskUrl(String url) {
- // ignore
- return null;
- }
-
- @Override
- public String getTaskUrl(String repositoryUrl, String taskId) {
- return null;
- }
-
- @Override
- public void updateRepositoryConfiguration(TaskRepository repository, IProgressMonitor monitor) throws CoreException {
- // ignore
- }
-
- @Override
- public IStatus performQuery(TaskRepository repository, IRepositoryQuery query, TaskDataCollector resultCollector,
- ISynchronizationSession event, IProgressMonitor monitor) {
- return Status.OK_STATUS;
- }
-
- @Override
- public AbstractTaskAttachmentHandler getTaskAttachmentHandler() {
- return attachmentHandler;
- }
-
- public void setTaskAttachmentHandler(MockAttachmentHandler attachmentHandler) {
- this.attachmentHandler = attachmentHandler;
- }
-
- @Override
- public TaskData getTaskData(TaskRepository taskRepository, String taskId, IProgressMonitor monitor)
- throws CoreException {
- return null;
- }
-
- @Override
- public boolean hasTaskChanged(TaskRepository taskRepository, ITask task, TaskData taskData) {
- return false;
- }
-
- @Override
- public boolean hasLocalCompletionState(TaskRepository taskRepository, ITask task) {
- return hasLocalCompletionState;
- }
-
- @Override
- public void updateTaskFromTaskData(TaskRepository taskRepository, ITask task, TaskData taskData) {
- }
-
-// @Override
-// public Set<RepositoryTemplate> getTemplates() {
-// Set<RepositoryTemplate> templates = new HashSet<RepositoryTemplate>();
-// RepositoryTemplate template = new RepositoryTemplate("Mock Template", REPOSITORY_URL, "utf-8", "1", "new",
-// "prefix", "query", "newAccountUrl", false, true);
-// templates.add(template);
-// return templates;
-// }
-
-}
diff --git a/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/connector/MockRepositoryConnectorUi.java b/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/connector/MockRepositoryConnectorUi.java
deleted file mode 100644
index 221d201a0..000000000
--- a/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/connector/MockRepositoryConnectorUi.java
+++ /dev/null
@@ -1,74 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2004, 2008 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.tasks.tests.connector;
-
-import java.util.ArrayList;
-import java.util.List;
-import java.util.regex.Matcher;
-import java.util.regex.Pattern;
-
-import org.eclipse.jface.text.Region;
-import org.eclipse.jface.text.hyperlink.IHyperlink;
-import org.eclipse.jface.wizard.IWizard;
-import org.eclipse.mylyn.tasks.core.IRepositoryQuery;
-import org.eclipse.mylyn.tasks.core.ITaskMapping;
-import org.eclipse.mylyn.tasks.core.TaskRepository;
-import org.eclipse.mylyn.tasks.ui.AbstractRepositoryConnectorUi;
-import org.eclipse.mylyn.tasks.ui.TaskHyperlink;
-import org.eclipse.mylyn.tasks.ui.wizards.ITaskRepositoryPage;
-
-/**
- * @author Mik Kersten
- * @author Steffen Pingel
- */
-public class MockRepositoryConnectorUi extends AbstractRepositoryConnectorUi {
-
- private static Pattern HYPERLINK_PATTERN = Pattern.compile("(\\d+)");
-
- @Override
- public String getConnectorKind() {
- return "mock";
- }
-
- @Override
- public ITaskRepositoryPage getSettingsPage(TaskRepository taskRepository) {
- // ignore
- return null;
- }
-
- @Override
- public boolean hasSearchPage() {
- return false;
- }
-
- @Override
- public IWizard getQueryWizard(TaskRepository repository, IRepositoryQuery query) {
- // ignore
- return null;
- }
-
- @Override
- public IWizard getNewTaskWizard(TaskRepository taskRepository, ITaskMapping selection) {
- // ignore
- return null;
- }
-
- @Override
- public IHyperlink[] findHyperlinks(TaskRepository repository, String text, int index, int textOffset) {
- List<IHyperlink> links = new ArrayList<IHyperlink>();
- Matcher m = HYPERLINK_PATTERN.matcher(text);
- while (m.find()) {
- links.add(new TaskHyperlink(new Region(textOffset + m.start(), m.end() - m.start()), repository, m.group()));
- }
- return links.toArray(new IHyperlink[0]);
- }
-}
diff --git a/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/connector/MockRepositoryQuery.java b/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/connector/MockRepositoryQuery.java
deleted file mode 100644
index d23cf0ebb..000000000
--- a/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/connector/MockRepositoryQuery.java
+++ /dev/null
@@ -1,39 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2004, 2008 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.tasks.tests.connector;
-
-import org.eclipse.mylyn.internal.tasks.core.RepositoryQuery;
-
-/**
- * @author Mik Kersten
- */
-public class MockRepositoryQuery extends RepositoryQuery {
-
- public String MOCK_QUERY_URL = MockRepositoryConnector.REPOSITORY_URL + ".query";
-
- public MockRepositoryQuery(String description) {
- super(MockRepositoryConnector.REPOSITORY_KIND, description);
- super.setUrl(MOCK_QUERY_URL);
- super.setRepositoryUrl(MockRepositoryConnector.REPOSITORY_URL);
- }
-
- public MockRepositoryQuery(String description, String url) {
- super(MockRepositoryConnector.REPOSITORY_KIND, description);
- super.setUrl(url);
- }
-
- @Override
- public String getConnectorKind() {
- return "mock";
- }
-
-}
diff --git a/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/connector/MockTask.java b/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/connector/MockTask.java
deleted file mode 100644
index 5a7ad3b4c..000000000
--- a/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/connector/MockTask.java
+++ /dev/null
@@ -1,65 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2004, 2008 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.tasks.tests.connector;
-
-import org.eclipse.mylyn.internal.tasks.core.AbstractTask;
-
-/**
- * @author Mik Kersten
- */
-public class MockTask extends AbstractTask {
-
- private String ownerId;
-
- public MockTask(String taskId) {
- super(MockRepositoryConnector.REPOSITORY_URL, taskId, taskId);
- }
-
- public MockTask(String repositoryUrl, String taskId) {
- super(repositoryUrl, taskId, taskId);
- }
-
- public MockTask(String repositoryUrl, String taskId, String summary) {
- super(repositoryUrl, taskId, summary);
- }
-
- @Override
- public String getConnectorKind() {
- return "mock";
- }
-
- @Override
- public void setOwner(String ownerId) {
- this.ownerId = ownerId;
- }
-
- @Override
- public String getOwner() {
- if (ownerId == null) {
- return super.getOwner();
- } else {
- return ownerId;
- }
- }
-
- @Override
- public String toString() {
- return "Mock Task: " + super.getHandleIdentifier();
- }
-
- @Override
- public boolean isLocal() {
- // ignore
- return false;
- }
-
-}
diff --git a/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/core/ITasksCoreConstantsTest.java b/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/core/ITasksCoreConstantsTest.java
deleted file mode 100644
index 7eb513763..000000000
--- a/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/core/ITasksCoreConstantsTest.java
+++ /dev/null
@@ -1,41 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2004, 2008 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.tasks.tests.core;
-
-import junit.framework.TestCase;
-
-import org.eclipse.mylyn.internal.tasks.core.ITasksCoreConstants;
-import org.eclipse.mylyn.internal.tasks.core.ITasksCoreConstants.MutexSchedulingRule;
-import org.eclipse.mylyn.internal.tasks.core.ITasksCoreConstants.ObjectSchedulingRule;
-
-/**
- * @author Steffen Pingel
- */
-public class ITasksCoreConstantsTest extends TestCase {
-
- public void testRootRuleConflicts() {
- assertTrue(ITasksCoreConstants.ROOT_SCHEDULING_RULE.isConflicting(ITasksCoreConstants.ROOT_SCHEDULING_RULE));
- assertTrue(ITasksCoreConstants.ROOT_SCHEDULING_RULE.isConflicting(ITasksCoreConstants.TASKLIST_SCHEDULING_RULE));
- assertTrue(ITasksCoreConstants.ROOT_SCHEDULING_RULE.isConflicting(new MutexSchedulingRule()));
- assertTrue(ITasksCoreConstants.ROOT_SCHEDULING_RULE.isConflicting(new ObjectSchedulingRule(this)));
- assertTrue(ITasksCoreConstants.TASKLIST_SCHEDULING_RULE.isConflicting(ITasksCoreConstants.ROOT_SCHEDULING_RULE));
- assertTrue(new MutexSchedulingRule().isConflicting(ITasksCoreConstants.ROOT_SCHEDULING_RULE));
- assertTrue(new ObjectSchedulingRule(this).isConflicting(ITasksCoreConstants.ROOT_SCHEDULING_RULE));
- }
-
- public void testObjectSchdedulingRuleConflicts() {
- assertTrue(new ObjectSchedulingRule(this).isConflicting(new ObjectSchedulingRule(this)));
- assertFalse(new ObjectSchedulingRule(new Object()).isConflicting(new ObjectSchedulingRule(this)));
- ObjectSchedulingRule rule = new ObjectSchedulingRule(this);
- assertTrue(rule.isConflicting(rule));
- }
-}
diff --git a/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/core/TaskListUnmatchedContainerTest.java b/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/core/TaskListUnmatchedContainerTest.java
deleted file mode 100644
index 3ecc288a2..000000000
--- a/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/core/TaskListUnmatchedContainerTest.java
+++ /dev/null
@@ -1,296 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2004, 2008 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.tasks.tests.core;
-
-import java.util.Set;
-
-import junit.framework.TestCase;
-
-import org.eclipse.mylyn.internal.tasks.core.LocalTask;
-import org.eclipse.mylyn.internal.tasks.core.RepositoryQuery;
-import org.eclipse.mylyn.internal.tasks.core.TaskCategory;
-import org.eclipse.mylyn.internal.tasks.core.TaskList;
-import org.eclipse.mylyn.internal.tasks.core.UnmatchedTaskContainer;
-import org.eclipse.mylyn.tasks.core.ITask;
-import org.eclipse.mylyn.tasks.tests.connector.MockRepositoryConnector;
-import org.eclipse.mylyn.tasks.tests.connector.MockRepositoryQuery;
-import org.eclipse.mylyn.tasks.tests.connector.MockTask;
-
-/**
- * @author Rob Elves
- * @author Steffen Pingel
- */
-public class TaskListUnmatchedContainerTest extends TestCase {
-
- private TaskList taskList;
-
- private UnmatchedTaskContainer unmatchedContainer;
-
- @Override
- protected void setUp() throws Exception {
- taskList = new TaskList();
- unmatchedContainer = new UnmatchedTaskContainer(MockRepositoryConnector.REPOSITORY_KIND,
- MockRepositoryConnector.REPOSITORY_URL);
- taskList.addUnmatchedContainer(unmatchedContainer);
- }
-
- @Override
- protected void tearDown() throws Exception {
- }
-
- /**
- * When a local tasks is removed from a category it should be placed in the Uncategorized folder.
- */
- public void testRemoveLocalTask() {
- TaskCategory category = new TaskCategory("taskCategoryHandle");
- taskList.addCategory(category);
- LocalTask newTask = new LocalTask("" + taskList.getNextLocalTaskId(), "new local task");
- taskList.addTask(newTask, category);
- //assertEquals(1, taskList.getOrphanContainers().size());
- assertEquals(2, taskList.getCategories().size());
- taskList.removeFromContainer(category, newTask);
- //assertEquals(taskList.getOrphanContainers().size(), 1);
- assertFalse(category.contains(newTask.getHandleIdentifier()));
- assertTrue(taskList.getDefaultCategory().contains(newTask.getHandleIdentifier()));
- assertEquals(1, newTask.getParentContainers().size());
- assertEquals(taskList.getDefaultCategory(), TaskCategory.getParentTaskCategory(newTask));
- }
-
- /**
- * Local tasks in a removed category should be orphaned.
- */
- public void testLocalTaskOrphanedInDeletedTaskCategory() {
- assertTrue(taskList.getDefaultCategory().isEmpty());
- TaskCategory category = new TaskCategory("taskCategoryHandle");
- taskList.addCategory(category);
- LocalTask newTask = new LocalTask("" + taskList.getNextLocalTaskId(), "new local task");
- taskList.addTask(newTask, category);
- assertTrue(taskList.getDefaultCategory().isEmpty());
- taskList.deleteCategory(category);
- assertTrue(taskList.getDefaultCategory().contains(newTask.getHandleIdentifier()));
-
- }
-
- /**
- * Query removed with task in category, just query removed task remains.
- */
- public void testTaskRemovedFromQuery() {
- MockTask mockTask = new MockTask("1");
- MockRepositoryQuery mockQuery = new MockRepositoryQuery("mock query");
- taskList.addQuery(mockQuery);
- taskList.addTask(mockTask, mockQuery);
-
- taskList.removeFromContainer(mockQuery, mockTask);
-
- assertFalse(mockQuery.contains(mockTask.getHandleIdentifier()));
- assertTrue(unmatchedContainer.contains(mockTask.getHandleIdentifier()));
- }
-
- /**
- * Query removed with task in category, just query removed task remains.
- */
- public void testTaskRemovedFromQueryButInCategory() {
- MockTask mockTask = new MockTask("1");
- MockRepositoryQuery mockQuery = new MockRepositoryQuery("mock query");
- taskList.addQuery(mockQuery);
- taskList.addTask(mockTask, mockQuery);
-
- TaskCategory category = new TaskCategory("taskCategoryHandle");
- taskList.addCategory(category);
- taskList.addTask(mockTask, category);
- assertTrue(category.contains(mockTask.getHandleIdentifier()));
- taskList.removeFromContainer(mockQuery, mockTask);
-
- assertFalse(mockQuery.contains(mockTask.getHandleIdentifier()));
- assertEquals(2, taskList.getCategories().size());
- assertTrue(category.contains(mockTask.getHandleIdentifier()));
-
- //* Repository tasks within a removed category that are not in a query should be orphaned.
-
- taskList.removeFromContainer(category, mockTask);
- assertTrue(unmatchedContainer.contains(mockTask.getHandleIdentifier()));
- }
-
- /**
- * Repository tasks that exists in a query are not orphaned.
- */
- public void testRepositoryTaskInDeletedCategory() {
- MockTask mockTask = new MockTask("1");
- MockRepositoryQuery mockQuery = new MockRepositoryQuery("mock query");
- taskList.addQuery(mockQuery);
- taskList.addTask(mockTask, mockQuery);
- assertEquals(1, taskList.getCategories().size());
- TaskCategory category = new TaskCategory("taskCategoryHandle");
- taskList.addCategory(category);
- taskList.addTask(mockTask, category);
- assertEquals(2, taskList.getCategories().size());
- assertTrue(taskList.getDefaultCategory().isEmpty());
- taskList.deleteCategory(category);
- assertTrue(unmatchedContainer.isEmpty());
- assertEquals(1, taskList.getCategories().size());
- }
-
- /**
- * Repository tasks in deleted queries are orphaned.
- */
- public void testRepositoryTaskInDeletedQuery() {
- MockTask mockTask = new MockTask("1");
- MockRepositoryQuery mockQuery = new MockRepositoryQuery("mock query");
- taskList.addQuery(mockQuery);
- assertTrue(taskList.getQueries().size() > 0);
- taskList.addTask(mockTask, mockQuery);
- assertTrue(mockQuery.contains(mockTask.getHandleIdentifier()));
- assertTrue(unmatchedContainer.isEmpty());
- taskList.deleteQuery(mockQuery);
- assertTrue(taskList.getQueries().size() == 0);
- assertFalse(unmatchedContainer.isEmpty());
- }
-
- /**
- * Repository tasks that exist in another query are not orphaned
- */
- public void testRemovalOfTaskInTwoQueries() {
- MockTask mockTask = new MockTask("1");
- MockRepositoryQuery mockQuery = new MockRepositoryQuery("mock query 1");
- MockRepositoryQuery mockQuery2 = new MockRepositoryQuery("mock query 2");
- taskList.addQuery(mockQuery);
- taskList.addQuery(mockQuery2);
- taskList.addTask(mockTask, mockQuery);
- taskList.addTask(mockTask, mockQuery2);
-
- taskList.removeFromContainer(mockQuery2, mockTask);
- assertTrue(mockQuery2.isEmpty());
- assertFalse(mockQuery.isEmpty());
- assertTrue(unmatchedContainer.isEmpty());
- }
-
- /**
- * Moving an orphan to a Category should result in the task only being present in the target Category
- */
- public void testMoveLocalTask() {
- TaskCategory category = new TaskCategory("taskCategoryHandle");
- taskList.addCategory(category);
- LocalTask newTask = new LocalTask("" + taskList.getNextLocalTaskId(), "new local task");
- taskList.addTask(newTask, null);
- assertTrue(taskList.getDefaultCategory().contains(newTask.getHandleIdentifier()));
- taskList.addTask(newTask, category);
- assertFalse(taskList.getDefaultCategory().contains(newTask.getHandleIdentifier()));
- }
-
- public void testAddRepositoryTask() {
- MockTask mockTask = new MockTask("1");
- MockRepositoryQuery mockQuery = new MockRepositoryQuery("mock query");
- taskList.addQuery(mockQuery);
- taskList.addTask(mockTask, mockQuery);
- Set<ITask> tasks = taskList.getTasks(MockRepositoryConnector.REPOSITORY_URL);
- assertFalse(tasks.isEmpty());
-
- RepositoryQuery query = (RepositoryQuery) mockTask.getParentContainers().iterator().next();
- assertEquals(mockQuery, query);
- assertFalse(query.isEmpty());
- assertTrue(unmatchedContainer.isEmpty());
- }
-
- public void testMoveRepositoryTask() {
- TaskList tasklist = taskList;
- assertTrue(tasklist.getAllTasks().isEmpty());
-
- MockTask mockTask = new MockTask("1");
- MockRepositoryQuery mockQuery = new MockRepositoryQuery("mock query");
- taskList.addQuery(mockQuery);
- taskList.addTask(mockTask, mockQuery);
-
- TaskCategory category = new TaskCategory("taskCategoryHandle");
- taskList.addCategory(category);
-
- taskList.addTask(mockTask, category);
- assertTrue(taskList.getDefaultCategory().isEmpty());
- assertTrue(category.contains(mockTask.getHandleIdentifier()));
- assertTrue(mockQuery.contains(mockTask.getHandleIdentifier()));
-
- }
-
- public void testRefactorOrphanedHandle() {
- MockTask mockTask = new MockTask("1");
- MockRepositoryQuery mockQuery = new MockRepositoryQuery("mock query");
- taskList.addQuery(mockQuery);
- taskList.addTask(mockTask, mockQuery);
-
- taskList.removeFromContainer(mockQuery, mockTask);
-
- assertFalse(mockQuery.contains(mockTask.getHandleIdentifier()));
- assertTrue(unmatchedContainer.contains(mockTask.getHandleIdentifier()));
-
- taskList.refactorRepositoryUrl(MockRepositoryConnector.REPOSITORY_URL, MockRepositoryConnector.REPOSITORY_URL
- + "new");
- assertTrue(taskList.getUnmatchedContainer(MockRepositoryConnector.REPOSITORY_URL + "new").contains(
- mockTask.getHandleIdentifier()));
- }
-
- public void testOrphanedSubtasks() {
- MockTask mockTask = new MockTask("1");
- MockTask mockTask2 = new MockTask("2");
- MockRepositoryQuery mockQuery = new MockRepositoryQuery("mock query");
- taskList.addQuery(mockQuery);
- taskList.addTask(mockTask, mockQuery);
- taskList.addTask(mockTask2, mockTask);
-
- assertFalse(unmatchedContainer.contains(mockTask.getHandleIdentifier()));
- assertFalse(unmatchedContainer.contains(mockTask2.getHandleIdentifier()));
-
- assertNotNull(taskList.getTask(mockTask.getHandleIdentifier()));
- assertNotNull(taskList.getTask(mockTask2.getHandleIdentifier()));
- assertNotNull(unmatchedContainer);
- taskList.removeFromContainer(mockQuery, mockTask);
- assertTrue(unmatchedContainer.contains(mockTask.getHandleIdentifier()));
- assertTrue(mockTask.contains(mockTask2.getHandleIdentifier()));
- taskList.deleteTask(mockTask);
- assertFalse(unmatchedContainer.contains(mockTask.getHandleIdentifier()));
- // mockTask2 should be orphaned when the parent task is deleted
- assertTrue(unmatchedContainer.contains(mockTask2.getHandleIdentifier()));
- }
-
- /**
- * If a task with subtasks falls out of a query, if its subtasks are subtasks of another task that is still around,
- * they shouldn't be in the archive.
- */
- public void testOrphanedSubtaskWithOtherParent() {
- MockTask mockTask = new MockTask("1");
- MockTask mockTask2 = new MockTask("2");
- MockTask mockTask3 = new MockTask("3");
- MockRepositoryQuery mockQuery = new MockRepositoryQuery("mock query");
- taskList.addQuery(mockQuery);
- taskList.addTask(mockTask, mockQuery);
- taskList.addTask(mockTask2, mockTask);
- taskList.addTask(mockTask3, mockQuery);
- taskList.addTask(mockTask2, mockTask3);
- assertFalse(unmatchedContainer.contains(mockTask.getHandleIdentifier()));
- assertFalse(unmatchedContainer.contains(mockTask2.getHandleIdentifier()));
- assertFalse(unmatchedContainer.contains(mockTask3.getHandleIdentifier()));
-
- taskList.removeFromContainer(mockQuery, mockTask);
- assertTrue(unmatchedContainer.contains(mockTask.getHandleIdentifier()));
- assertTrue(mockTask.contains(mockTask2.getHandleIdentifier()));
-
- // True since mockTask is contained and has mockTask2 as a subtask
-// assertFalse(unmatchedContainer.contains(
-// mockTask2.getHandleIdentifier()));
-
- taskList.removeFromContainer(mockQuery, mockTask3);
- assertTrue(unmatchedContainer.contains(mockTask3.getHandleIdentifier()));
- assertTrue(mockTask3.contains(mockTask2.getHandleIdentifier()));
- // True since mockTask is contained and has mockTask2 as a subtask
-// assertFalse(unmatchedContainer.contains(
-// mockTask2.getHandleIdentifier()));
-
- }
-}
diff --git a/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/core/TaskRepositoryLocationTest.java b/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/core/TaskRepositoryLocationTest.java
deleted file mode 100644
index 018e977fa..000000000
--- a/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/core/TaskRepositoryLocationTest.java
+++ /dev/null
@@ -1,106 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2004, 2008 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.tasks.tests.core;
-
-import java.net.InetSocketAddress;
-import java.net.Proxy;
-
-import junit.framework.TestCase;
-
-import org.eclipse.core.net.proxy.IProxyData;
-import org.eclipse.mylyn.commons.net.AuthenticationCredentials;
-import org.eclipse.mylyn.commons.net.AuthenticationType;
-import org.eclipse.mylyn.commons.net.UnsupportedRequestException;
-import org.eclipse.mylyn.internal.commons.net.AuthenticatedProxy;
-import org.eclipse.mylyn.internal.tasks.core.TaskRepositoryLocation;
-import org.eclipse.mylyn.tasks.core.TaskRepository;
-
-/**
- * @author Steffen Pingel
- */
-public class TaskRepositoryLocationTest extends TestCase {
-
- public void testGetCredentials() {
- TaskRepository taskRepository = new TaskRepository("kind", "http://url");
- taskRepository.flushAuthenticationCredentials();
- TaskRepositoryLocation location = new TaskRepositoryLocation(taskRepository);
- assertNull(location.getCredentials(AuthenticationType.HTTP));
-
- taskRepository.setCredentials(AuthenticationType.HTTP, new AuthenticationCredentials("user", "pwd"), true);
- AuthenticationCredentials credentials = location.getCredentials(AuthenticationType.HTTP);
- assertNotNull(credentials);
- assertEquals("user", credentials.getUserName());
- assertEquals("pwd", credentials.getPassword());
-
- assertNull(location.getCredentials(AuthenticationType.PROXY));
-
- taskRepository.setCredentials(AuthenticationType.PROXY, new AuthenticationCredentials("user2", "pwd2"), true);
- credentials = location.getCredentials(AuthenticationType.PROXY);
- assertNotNull(credentials);
- assertEquals("user2", credentials.getUserName());
- assertEquals("pwd2", credentials.getPassword());
- }
-
- public void testGetProxyForHost() {
- TaskRepository taskRepository = new TaskRepository("kind", "http://url");
- TaskRepositoryLocation location = new TaskRepositoryLocation(taskRepository);
-
- assertTrue(taskRepository.isDefaultProxyEnabled());
- assertEquals(null, location.getProxyForHost("localhost", IProxyData.HTTP_PROXY_TYPE));
-
- taskRepository.setProperty(TaskRepository.PROXY_USEDEFAULT, "false");
- assertFalse(taskRepository.isDefaultProxyEnabled());
- assertEquals(null, location.getProxyForHost("localhost", IProxyData.HTTP_PROXY_TYPE));
-
- taskRepository.setProperty(TaskRepository.PROXY_HOSTNAME, "host");
- taskRepository.setProperty(TaskRepository.PROXY_PORT, "1234");
- Proxy proxy = location.getProxyForHost("localhost", IProxyData.HTTP_PROXY_TYPE);
- assertNotNull(proxy);
- assertEquals(new InetSocketAddress("host", 1234), proxy.address());
-
- taskRepository.setCredentials(AuthenticationType.PROXY, new AuthenticationCredentials("user", "pwd"), false);
- proxy = location.getProxyForHost("localhost", IProxyData.HTTP_PROXY_TYPE);
- assertNotNull(proxy);
- assertEquals(new InetSocketAddress("host", 1234), proxy.address());
-
- assertTrue(proxy instanceof AuthenticatedProxy);
- assertEquals("user", ((AuthenticatedProxy) proxy).getUserName());
- assertEquals("pwd", ((AuthenticatedProxy) proxy).getPassword());
- }
-
- public void testGetProxyForHostEmptyProxy() {
- TaskRepository taskRepository = new TaskRepository("kind", "http://url");
- TaskRepositoryLocation location = new TaskRepositoryLocation(taskRepository);
-
- taskRepository.setDefaultProxyEnabled(false);
- assertEquals(null, location.getProxyForHost("localhost", IProxyData.HTTP_PROXY_TYPE));
-
- taskRepository.setProperty(TaskRepository.PROXY_HOSTNAME, "");
- taskRepository.setProperty(TaskRepository.PROXY_PORT, "");
- assertEquals(null, location.getProxyForHost("localhost", IProxyData.HTTP_PROXY_TYPE));
-
- taskRepository.setProperty(TaskRepository.PROXY_HOSTNAME, "");
- taskRepository.setProperty(TaskRepository.PROXY_PORT, "abc");
- assertEquals(null, location.getProxyForHost("localhost", IProxyData.HTTP_PROXY_TYPE));
- }
-
- public void testRequestCredentials() {
- TaskRepository taskRepository = new TaskRepository("kind", "http://url");
- TaskRepositoryLocation location = new TaskRepositoryLocation(taskRepository);
- try {
- location.requestCredentials(AuthenticationType.REPOSITORY, null, null);
- fail("Expected UnsupportedRequestException");
- } catch (UnsupportedRequestException expected) {
- }
- }
-
-} \ No newline at end of file
diff --git a/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/data/TaskDataExternalizerTest.java b/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/data/TaskDataExternalizerTest.java
deleted file mode 100644
index 3ebf0a5b5..000000000
--- a/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/data/TaskDataExternalizerTest.java
+++ /dev/null
@@ -1,193 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2004, 2008 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.tasks.tests.data;
-
-import java.io.ByteArrayInputStream;
-import java.io.ByteArrayOutputStream;
-import java.io.File;
-import java.io.FileInputStream;
-import java.io.IOException;
-import java.io.StringReader;
-import java.io.StringWriter;
-import java.util.zip.ZipInputStream;
-
-import javax.xml.transform.OutputKeys;
-import javax.xml.transform.Transformer;
-import javax.xml.transform.TransformerFactory;
-import javax.xml.transform.sax.SAXTransformerFactory;
-import javax.xml.transform.sax.TransformerHandler;
-import javax.xml.transform.stream.StreamResult;
-
-import junit.framework.Assert;
-import junit.framework.TestCase;
-
-import org.eclipse.mylyn.internal.tasks.core.data.ITaskDataConstants;
-import org.eclipse.mylyn.internal.tasks.core.data.TaskDataExternalizer;
-import org.eclipse.mylyn.internal.tasks.core.data.TaskDataState;
-import org.eclipse.mylyn.tasks.core.data.ITaskDataWorkingCopy;
-import org.eclipse.mylyn.tasks.core.data.TaskData;
-import org.eclipse.mylyn.tasks.core.data.TaskMapper;
-import org.eclipse.mylyn.tasks.tests.TaskTestUtil;
-import org.xml.sax.EntityResolver;
-import org.xml.sax.InputSource;
-import org.xml.sax.SAXException;
-import org.xml.sax.XMLReader;
-import org.xml.sax.helpers.AttributesImpl;
-import org.xml.sax.helpers.DefaultHandler;
-import org.xml.sax.helpers.XMLReaderFactory;
-
-/**
- * @author Steffen Pingel
- */
-public class TaskDataExternalizerTest extends TestCase {
-
- private class SimpleCharacterReader extends DefaultHandler {
-
- private char ch;
-
- public SimpleCharacterReader() {
- }
-
- @Override
- public void characters(char[] ch, int start, int length) throws SAXException {
- Assert.assertEquals(1, length);
- this.ch = ch[start];
- }
-
- public char getCharacter() {
- return ch;
- }
-
- }
-
- private final class SimpleCharacterWriter {
- private final TransformerHandler handler;
-
- public SimpleCharacterWriter(TransformerHandler handler) {
- this.handler = handler;
- }
-
- public void write(char character) throws SAXException {
- handler.startDocument();
- AttributesImpl atts = new AttributesImpl();
- handler.startElement("", "", ITaskDataConstants.ELEMENT_VALUE, atts); //$NON-NLS-1$ //$NON-NLS-2$
- ///handler.startCDATA();
- handler.characters(new char[] { character }, 0, 1);
- //handler.endCDATA();
- handler.endElement("", "", ITaskDataConstants.ELEMENT_VALUE);
- handler.endDocument();
- }
- }
-
- TaskDataExternalizer externalizer;
-
- @Override
- protected void setUp() throws Exception {
- externalizer = new TaskDataExternalizer(null);
- }
-
- public void testMapFromLegacy() throws Exception {
- File file = TaskTestUtil.getFile("testdata/taskdata-1.0-bug-219897.zip");
- ZipInputStream in = new ZipInputStream(new FileInputStream(file));
- ITaskDataWorkingCopy state;
- try {
- in.getNextEntry();
- state = externalizer.readState(in);
- } finally {
- in.close();
- }
-
- TaskData taskData = state.getRepositoryData();
- @SuppressWarnings("unused")
- TaskMapper taskScheme = new TaskMapper(taskData);
-
- fail("fixme");
-// RepositoryTaskData legacyData = TaskDataUtil.toLegacyData(taskData, IdentityAttributeFactory.getInstance());
-// assertEquals(taskData.getConnectorKind(), legacyData.getConnectorKind());
-// assertEquals(taskData.getRepositoryUrl(), legacyData.getRepositoryUrl());
-// assertEquals(taskData.getTaskId(), legacyData.getTaskId());
-// assertEquals(taskScheme.getTaskKind(), legacyData.getTaskKind());
-// assertEquals(taskScheme.getComments().length, legacyData.getComments().size());
-// assertEquals(taskScheme.getAttachments().length, legacyData.getAttachments().size());
-//
-// TaskData taskData2 = TaskDataUtil.toTaskData(legacyData, IdentityAttributeMapper.getInstance());
-// assertEquals(taskData.getConnectorKind(), taskData2.getConnectorKind());
-// assertEquals(taskData.getRepositoryUrl(), taskData2.getRepositoryUrl());
-// assertEquals(taskData.getTaskId(), taskData2.getTaskId());
-//
-// assertEquals(taskData.getRoot().toString(), taskData2.getRoot().toString());
- }
-
- public void testRead() throws Exception {
- File file = TaskTestUtil.getFile("testdata/taskdata-1.0-bug-219897.zip");
- ZipInputStream in = new ZipInputStream(new FileInputStream(file));
- try {
- in.getNextEntry();
- @SuppressWarnings("unused")
- ITaskDataWorkingCopy state = externalizer.readState(in);
- } finally {
- in.close();
- }
- }
-
- public void testReadWrite() throws Exception {
- File file = TaskTestUtil.getFile("testdata/taskdata-1.0-bug-219897.zip");
- ZipInputStream in = new ZipInputStream(new FileInputStream(file));
- ITaskDataWorkingCopy state;
- try {
- in.getNextEntry();
- state = externalizer.readState(in);
- } finally {
- in.close();
- }
- ByteArrayOutputStream out = new ByteArrayOutputStream();
- externalizer.writeState(out, state);
- TaskDataState state2 = externalizer.readState(new ByteArrayInputStream(out.toByteArray()));
- assertEquals(state.getConnectorKind(), state2.getConnectorKind());
- assertEquals(state.getRepositoryUrl(), state2.getRepositoryUrl());
- assertEquals(state.getTaskId(), state2.getTaskId());
-
- assertEquals(state.getRepositoryData().getRoot().toString(), state2.getRepositoryData().getRoot().toString());
-
- }
-
- public void testWriteandReadBadCharacter() throws Exception {
- for (int i = 0; i < 0xFFFF; i++) {
- char badChar = (char) i;
-
- StringWriter stringWriter = new StringWriter();
- SAXTransformerFactory transformerFactory = (SAXTransformerFactory) TransformerFactory.newInstance();
- TransformerHandler handler = transformerFactory.newTransformerHandler();
- Transformer serializer = handler.getTransformer();
- serializer.setOutputProperty(OutputKeys.VERSION, "1.0");
- serializer.setOutputProperty(OutputKeys.ENCODING, "UTF-8"); //$NON-NLS-1$
- serializer.setOutputProperty(OutputKeys.INDENT, "yes"); //$NON-NLS-1$
- handler.setResult(new StreamResult(stringWriter));
- SimpleCharacterWriter writer = new SimpleCharacterWriter(handler);
- writer.write(badChar);
-
- XMLReader parser = XMLReaderFactory.createXMLReader();
- SimpleCharacterReader readHandler = new SimpleCharacterReader();
- parser.setEntityResolver(new EntityResolver() {
- public InputSource resolveEntity(String publicId, String systemId) throws SAXException, IOException {
- System.out.println(publicId);
- System.out.println(systemId);
- return null;
- }
- });
- parser.setContentHandler(readHandler);
- parser.parse(new InputSource(new StringReader(stringWriter.getBuffer().toString())));
- char character = readHandler.getCharacter();
- assertEquals(badChar, character);
- }
- }
-}
diff --git a/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/performance/TaskContainerTest.java b/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/performance/TaskContainerTest.java
deleted file mode 100644
index 9f9826113..000000000
--- a/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/performance/TaskContainerTest.java
+++ /dev/null
@@ -1,49 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2004, 2008 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.tasks.tests.performance;
-
-import org.eclipse.mylyn.internal.tasks.core.AbstractTask;
-import org.eclipse.mylyn.tasks.tests.connector.MockTask;
-import org.eclipse.test.performance.PerformanceTestCase;
-
-/**
- * @author Steffen Pingel
- */
-public class TaskContainerTest extends PerformanceTestCase {
-
- int counter;
-
- private void addChildren(AbstractTask parent, int[] childCount, int depth) {
- for (int i = 0; i < childCount[depth]; i++) {
- MockTask task = new MockTask("task", ++counter + "");
- parent.internalAddChild(task);
- if (depth < childCount.length - 1) {
- addChildren(task, childCount, depth + 1);
- }
- }
- }
-
- public void testContains() {
- MockTask task = new MockTask(++counter + "");
- addChildren(task, new int[] { 1000, 10, 2 }, 0);
-
- for (int i = 0; i < 10; i++) {
- startMeasuring();
- task.contains("handle");
- stopMeasuring();
- }
-
- commitMeasurements();
- assertPerformance();
- }
-
-}
diff --git a/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/performance/TaskListPerformanceTest.java b/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/performance/TaskListPerformanceTest.java
deleted file mode 100644
index dfef9ecac..000000000
--- a/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/performance/TaskListPerformanceTest.java
+++ /dev/null
@@ -1,74 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2004, 2008 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.tasks.tests.performance;
-
-import java.io.File;
-
-import org.eclipse.mylyn.internal.tasks.core.TaskList;
-import org.eclipse.mylyn.internal.tasks.core.TransferList;
-import org.eclipse.mylyn.internal.tasks.core.externalization.TaskListExternalizer;
-import org.eclipse.mylyn.internal.tasks.ui.TasksUiPlugin;
-import org.eclipse.mylyn.tasks.tests.TaskTestUtil;
-import org.eclipse.test.performance.PerformanceTestCase;
-
-public class TaskListPerformanceTest extends PerformanceTestCase {
-
- private static final String TASK_LIST_4000 = "testdata/performance/tasklist-4000.xml.zip";
-
- private TaskList taskList;
-
- @Override
- protected void setUp() throws Exception {
- super.setUp();
-
- taskList = TasksUiPlugin.getTaskList();
- taskList.reset();
- }
-
- @Override
- protected void tearDown() throws Exception {
- super.tearDown();
-
- taskList.reset();
- }
-
- public void testReadTasksWith4000Tasks() throws Exception {
- final File file = TaskTestUtil.getLocalFile(TASK_LIST_4000);
- final TaskListExternalizer taskListWriter = TasksUiPlugin.getDefault().createTaskListExternalizer();
-
- for (int i = 0; i < 10; i++) {
- startMeasuring();
- taskListWriter.readTaskList(new TransferList(), file);
- stopMeasuring();
- taskList.reset();
- }
-
- commitMeasurements();
- assertPerformance();
- }
-
- public void testReadTaskListWith4000Tasks() throws Exception {
- final File file = TaskTestUtil.getLocalFile(TASK_LIST_4000);
- final TaskListExternalizer taskListWriter = TasksUiPlugin.getDefault().createTaskListExternalizer();
-
- for (int i = 0; i < 10; i++) {
- startMeasuring();
- taskListWriter.readTaskList(new TransferList(), file);
- stopMeasuring();
- taskList.reset();
- }
-
- commitMeasurements();
- assertPerformance();
- }
-
-}
diff --git a/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/ui/ContextPerspectiveManagerTest.java b/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/ui/ContextPerspectiveManagerTest.java
deleted file mode 100644
index a588c1543..000000000
--- a/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/ui/ContextPerspectiveManagerTest.java
+++ /dev/null
@@ -1,97 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2004, 2008 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.tasks.tests.ui;
-
-import junit.framework.TestCase;
-
-import org.eclipse.mylyn.context.tests.support.TestUtil;
-import org.eclipse.mylyn.internal.context.ui.ContextUiPlugin;
-import org.eclipse.mylyn.internal.context.ui.IContextUiPreferenceContstants;
-import org.eclipse.mylyn.internal.tasks.core.TaskTask;
-import org.eclipse.mylyn.monitor.ui.MonitorUi;
-import org.eclipse.mylyn.tasks.tests.TaskTestUtil;
-import org.eclipse.mylyn.tasks.ui.TasksUi;
-import org.eclipse.ui.PlatformUI;
-
-/**
- * @author Steffen Pingel
- */
-public class ContextPerspectiveManagerTest extends TestCase {
-
- private static final String ID_RESOURCE_PERSPECTIVE = "org.eclipse.ui.resourcePerspective";
-
- private static final String ID_PLANNING_PERSPECTIVE = "org.eclipse.mylyn.tasks.ui.perspectives.planning";
-
- private boolean previousSetting;
-
- @Override
- protected void setUp() throws Exception {
- TestUtil.triggerContextUiLazyStart();
-
- TaskTestUtil.resetTaskListAndRepositories();
- previousSetting = ContextUiPlugin.getDefault().getPreferenceStore().getBoolean(
- IContextUiPreferenceContstants.AUTO_MANAGE_PERSPECTIVES);
- ContextUiPlugin.getDefault().getPreferenceStore().setValue(
- IContextUiPreferenceContstants.AUTO_MANAGE_PERSPECTIVES, true);
- }
-
- @Override
- protected void tearDown() throws Exception {
- ContextUiPlugin.getDefault().getPreferenceStore().setValue(
- IContextUiPreferenceContstants.AUTO_MANAGE_PERSPECTIVES, previousSetting);
- TaskTestUtil.resetTaskListAndRepositories();
- }
-
- public void testRestorePerspective() throws Exception {
- PlatformUI.getWorkbench().showPerspective(ID_RESOURCE_PERSPECTIVE, MonitorUi.getLaunchingWorkbenchWindow());
- assertEquals(ID_RESOURCE_PERSPECTIVE, getActivePerspective());
- TaskTask task = TaskTestUtil.createMockTask("1");
-
- // check that perspective is not switched for new task
- TasksUi.getTaskActivityManager().activateTask(task);
- assertEquals(ID_RESOURCE_PERSPECTIVE, getActivePerspective());
-
- // check if previous perspective is restored on deactivation
- PlatformUI.getWorkbench().showPerspective(ID_PLANNING_PERSPECTIVE, MonitorUi.getLaunchingWorkbenchWindow());
- assertEquals(ID_PLANNING_PERSPECTIVE, getActivePerspective());
- TasksUi.getTaskActivityManager().deactivateActiveTask();
- assertEquals(ID_RESOURCE_PERSPECTIVE, getActivePerspective());
-
- // check if perspective is restored on activation
- TasksUi.getTaskActivityManager().activateTask(task);
- assertEquals(ID_PLANNING_PERSPECTIVE, getActivePerspective());
- }
-
- // FIXME 3.1 re-enable test
-// public void testRecreateTask() throws Exception {
-// PlatformUI.getWorkbench().showPerspective(ID_RESOURCE_PERSPECTIVE, MonitorUi.getLaunchingWorkbenchWindow());
-// TaskTask task = TaskTestUtil.createMockTask("1");
-//
-// // check that deleting task switches back to original perspective
-// TasksUi.getTaskActivityManager().activateTask(task);
-// PlatformUI.getWorkbench().showPerspective(ID_PLANNING_PERSPECTIVE, MonitorUi.getLaunchingWorkbenchWindow());
-// TasksUiPlugin.getTaskActivityManager().deactivateActiveTask();
-// TasksUiPlugin.getTaskList().deleteTask(task);
-// assertEquals(ID_RESOURCE_PERSPECTIVE, getActivePerspective());
-//
-// task = TaskTestUtil.createMockTask("1");
-//
-// // check that activating new task with the same id does not switch the perspective
-// TasksUi.getTaskActivityManager().activateTask(task);
-// assertEquals(ID_RESOURCE_PERSPECTIVE, getActivePerspective());
-// }
-
- private String getActivePerspective() {
- return MonitorUi.getLaunchingWorkbenchWindow().getActivePage().getPerspective().getId();
- }
-
-}
diff --git a/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/ui/MarkTaskHandlerTest.java b/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/ui/MarkTaskHandlerTest.java
deleted file mode 100644
index 6bdc439db..000000000
--- a/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/ui/MarkTaskHandlerTest.java
+++ /dev/null
@@ -1,87 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2004, 2008 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.tasks.tests.ui;
-
-import junit.framework.TestCase;
-
-import org.eclipse.core.commands.NotEnabledException;
-import org.eclipse.mylyn.internal.tasks.core.LocalTask;
-import org.eclipse.mylyn.internal.tasks.core.TaskTask;
-import org.eclipse.mylyn.internal.tasks.ui.TasksUiPlugin;
-import org.eclipse.mylyn.internal.tasks.ui.commands.MarkTaskHandler.MarkTaskCompleteHandler;
-import org.eclipse.mylyn.tasks.core.TaskRepository;
-import org.eclipse.mylyn.tasks.tests.TaskTestUtil;
-import org.eclipse.mylyn.tasks.tests.connector.MockRepositoryConnector;
-import org.eclipse.ui.IWorkingSet;
-import org.eclipse.ui.PlatformUI;
-import org.eclipse.ui.handlers.IHandlerService;
-
-/**
- * @author Steffen Pingel
- */
-public class MarkTaskHandlerTest extends TestCase {
-
- private IHandlerService handlerService;
-
- @Override
- protected void setUp() throws Exception {
- TaskTestUtil.resetTaskListAndRepositories();
-
- handlerService = (IHandlerService) PlatformUI.getWorkbench().getService(IHandlerService.class);
-
- TaskRepository repository = TaskTestUtil.createMockRepository();
- TasksUiPlugin.getRepositoryManager().addRepository(repository);
-
- // TODO figure out which test leaves a filter enabled
- PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().setWorkingSets(new IWorkingSet[0]);
- TaskTestUtil.openTasksViewInActivePerspective().clearFilters();
- }
-
- @Override
- protected void tearDown() throws Exception {
- TaskTestUtil.resetTaskListAndRepositories();
- }
-
- public void testMarkTaskCompleted() throws Exception {
- MockRepositoryConnector.getDefault().setHasLocalCompletionState(true);
- TaskTask task = TaskTestUtil.createMockTask("1");
- TaskTestUtil.addAndSelectTask(task);
- assertFalse(task.isCompleted());
-
- handlerService.executeCommand(MarkTaskCompleteHandler.ID_COMMAND, null);
- assertTrue(task.isCompleted());
-
- try {
- handlerService.executeCommand(MarkTaskCompleteHandler.ID_COMMAND, null);
- fail("Expected NotEnabledException");
- } catch (NotEnabledException e) {
- // expected
- }
- }
-
- public void testMarkLocalTaskCompleted() throws Exception {
- LocalTask localTask = new LocalTask("1", "");
- TaskTestUtil.addAndSelectTask(localTask);
- assertFalse(localTask.isCompleted());
-
- handlerService.executeCommand(MarkTaskCompleteHandler.ID_COMMAND, null);
- assertTrue(localTask.isCompleted());
-
- try {
- handlerService.executeCommand(MarkTaskCompleteHandler.ID_COMMAND, null);
- fail("Expected NotEnabledException");
- } catch (NotEnabledException e) {
- // expected
- }
- }
-
-}
diff --git a/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/ui/RetrieveTitleFromUrlTest.java b/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/ui/RetrieveTitleFromUrlTest.java
deleted file mode 100644
index 438e9f5eb..000000000
--- a/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/ui/RetrieveTitleFromUrlTest.java
+++ /dev/null
@@ -1,47 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2000, 2008 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.tasks.tests.ui;
-
-import java.lang.reflect.InvocationTargetException;
-
-import junit.framework.TestCase;
-
-import org.eclipse.mylyn.internal.tasks.ui.util.AbstractRetrieveTitleFromUrlJob;
-import org.eclipse.ui.PlatformUI;
-
-/**
- * @author Mik Kersten
- * @author Steffen Pingel
- */
-public class RetrieveTitleFromUrlTest extends TestCase {
-
- private String retrievedTitle;
-
- public void testRetrieve() throws InterruptedException, InvocationTargetException {
- final String url = "http://eclipse.org/mylyn";
- final String knownTitle = "Eclipse Mylyn Open Source Project";
- AbstractRetrieveTitleFromUrlJob job = new AbstractRetrieveTitleFromUrlJob(url) {
- @Override
- public void titleRetrieved(String title) {
- retrievedTitle = title;
- }
- };
- job.schedule();
- job.join();
- assertEquals(knownTitle, job.getPageTitle());
- // process pending events
- while (PlatformUI.getWorkbench().getDisplay().readAndDispatch()) {
- }
- assertEquals(knownTitle, retrievedTitle);
- }
-
-}
diff --git a/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/ui/TaskAttachmentPropertyTesterTest.java b/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/ui/TaskAttachmentPropertyTesterTest.java
deleted file mode 100644
index 66b8d6c0b..000000000
--- a/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/ui/TaskAttachmentPropertyTesterTest.java
+++ /dev/null
@@ -1,46 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2004, 2008 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.tasks.tests.ui;
-
-import junit.framework.TestCase;
-
-import org.eclipse.mylyn.internal.tasks.core.TaskAttachment;
-import org.eclipse.mylyn.internal.tasks.ui.util.TaskAttachmentPropertyTester;
-import org.eclipse.mylyn.tasks.tests.TaskTestUtil;
-
-/**
- * @author Steffen Pingel
- */
-public class TaskAttachmentPropertyTesterTest extends TestCase {
-
- public void testHasUrl() {
- TaskAttachment attachment = new StubAttachment();
- TaskAttachmentPropertyTester tester = new TaskAttachmentPropertyTester();
- attachment.setUrl("url");
- assertTrue(tester.test(attachment, "hasUrl", null, Boolean.TRUE));
- attachment.setUrl("");
- assertTrue(tester.test(attachment, "hasUrl", null, Boolean.FALSE));
- attachment.setUrl(null);
- assertFalse(tester.test(attachment, "hasUrl", null, Boolean.TRUE));
- assertFalse(tester.test(new Object(), "hasUrl", null, Boolean.TRUE));
- }
-
- private class StubAttachment extends TaskAttachment {
-
- public StubAttachment() {
- super(TaskTestUtil.createMockRepository(), TaskTestUtil.createMockTask("1"),
- TaskTestUtil.createMockTaskData("1").getRoot());
- }
-
- }
-
-}
diff --git a/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/ui/TaskHyperlinkDetectorTest.java b/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/ui/TaskHyperlinkDetectorTest.java
deleted file mode 100644
index 0666da543..000000000
--- a/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/ui/TaskHyperlinkDetectorTest.java
+++ /dev/null
@@ -1,95 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2004, 2008 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.tasks.tests.ui;
-
-import junit.framework.TestCase;
-
-import org.eclipse.jface.text.Document;
-import org.eclipse.jface.text.IDocument;
-import org.eclipse.jface.text.ITextViewer;
-import org.eclipse.jface.text.Region;
-import org.eclipse.jface.text.TextViewer;
-import org.eclipse.jface.text.hyperlink.IHyperlink;
-import org.eclipse.mylyn.internal.tasks.ui.editors.TaskHyperlinkDetector;
-import org.eclipse.mylyn.tasks.core.TaskRepository;
-import org.eclipse.mylyn.tasks.tests.TaskTestUtil;
-import org.eclipse.mylyn.tasks.tests.connector.MockRepositoryConnectorUi;
-import org.eclipse.mylyn.tasks.ui.AbstractRepositoryConnectorUi;
-import org.eclipse.mylyn.tasks.ui.AbstractTaskHyperlinkDetector;
-
-/**
- * @author Steffen Pingel
- */
-public class TaskHyperlinkDetectorTest extends TestCase {
-
- protected MockRepositoryConnectorUi connectorUi;
-
- protected TaskRepository repository;
-
- @Override
- protected void setUp() throws Exception {
- repository = TaskTestUtil.createMockRepository();
- connectorUi = new MockRepositoryConnectorUi();
- }
-
- protected IHyperlink[] detect(final String text, int start, int length) {
- AbstractTaskHyperlinkDetector detector = createHyperlinkDetector();
- return detector.detectHyperlinks(new TextViewer() {
- @Override
- public IDocument getDocument() {
- return new Document(text);
- }
- }, new Region(start, length), true);
- }
-
- protected AbstractTaskHyperlinkDetector createHyperlinkDetector() {
- TaskHyperlinkDetector detector = new TaskHyperlinkDetector() {
- @Override
- protected TaskRepository getTaskRepository(ITextViewer textViewer) {
- return repository;
- }
-
- @Override
- protected AbstractRepositoryConnectorUi getConnectorUi(TaskRepository repository) {
- return connectorUi;
- }
- };
- return detector;
- }
-
- public void testMultiple() {
- IHyperlink[] links = detect("123 456 789", 4, 5);
- assertNotNull(links);
- assertEquals(2, links.length);
- assertEquals(new Region(4, 3), links[0].getHyperlinkRegion());
- assertEquals(new Region(8, 1), links[1].getHyperlinkRegion());
- }
-
- public void testMultipleFullRegion() {
- IHyperlink[] links = detect("123 456 789", 0, 11);
- assertEquals(3, links.length);
- assertEquals(new Region(0, 3), links[0].getHyperlinkRegion());
- assertEquals(new Region(4, 3), links[1].getHyperlinkRegion());
- assertEquals(new Region(8, 3), links[2].getHyperlinkRegion());
- }
-
- public void testSingleZeroLenghtRegion() {
- IHyperlink[] links = detect("123 456 789", 5, 0);
- assertEquals(1, links.length);
- }
-
- public void testSpaceZeroLengthRegion() {
- IHyperlink[] links = detect("1234 789", 5, 0);
- assertNull(links);
- }
-
-}
diff --git a/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/ui/TaskRelationHyperlinkDetectorTest.java b/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/ui/TaskRelationHyperlinkDetectorTest.java
deleted file mode 100644
index fb18b6340..000000000
--- a/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/ui/TaskRelationHyperlinkDetectorTest.java
+++ /dev/null
@@ -1,35 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2004, 2008 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.tasks.tests.ui;
-
-import org.eclipse.jface.text.ITextViewer;
-import org.eclipse.mylyn.internal.tasks.ui.editors.TaskRelationHyperlinkDetector;
-import org.eclipse.mylyn.tasks.core.TaskRepository;
-import org.eclipse.mylyn.tasks.ui.AbstractTaskHyperlinkDetector;
-
-/**
- * @author Steffen Pingel
- */
-public class TaskRelationHyperlinkDetectorTest extends TaskHyperlinkDetectorTest {
-
- @Override
- protected AbstractTaskHyperlinkDetector createHyperlinkDetector() {
- TaskRelationHyperlinkDetector detector = new TaskRelationHyperlinkDetector() {
- @Override
- protected TaskRepository getTaskRepository(ITextViewer textViewer) {
- return repository;
- }
- };
- return detector;
- }
-
-}
diff --git a/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/ui/editor/EditorUtilTest.java b/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/ui/editor/EditorUtilTest.java
deleted file mode 100644
index 36f5ac0de..000000000
--- a/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/ui/editor/EditorUtilTest.java
+++ /dev/null
@@ -1,105 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2004, 2008 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.tasks.tests.ui.editor;
-
-import junit.framework.TestCase;
-
-import org.eclipse.mylyn.internal.tasks.ui.editors.EditorUtil;
-import org.eclipse.swt.SWT;
-import org.eclipse.swt.widgets.Composite;
-import org.eclipse.swt.widgets.Label;
-import org.eclipse.swt.widgets.Shell;
-
-/**
- * @author Steffen Pingel
- */
-public class EditorUtilTest extends TestCase {
-
- public void testSetEnabledState() {
- Shell shell = new Shell();
- Composite composite = new Composite(shell, SWT.NONE);
- Label label = new Label(composite, SWT.NONE);
-
- EditorUtil.setEnabledState(composite, false);
- assertFalse(composite.getEnabled());
- assertFalse(label.getEnabled());
-
- EditorUtil.setEnabledState(composite, true);
- assertTrue(composite.getEnabled());
- assertTrue(label.getEnabled());
-
- EditorUtil.setEnabledState(composite, true);
- assertTrue(composite.getEnabled());
- assertTrue(label.getEnabled());
- }
-
- public void testSetEnabledStateDisabledChild() {
- Shell shell = new Shell();
- Composite composite = new Composite(shell, SWT.NONE);
- Label label = new Label(composite, SWT.NONE);
- label.setEnabled(false);
-
- EditorUtil.setEnabledState(composite, false);
- assertFalse(composite.getEnabled());
- assertFalse(label.getEnabled());
-
- EditorUtil.setEnabledState(composite, true);
- assertTrue(composite.getEnabled());
- assertFalse(label.getEnabled());
- }
-
- public void testSetEnabledStateDisabledParent() {
- Shell shell = new Shell();
- Composite composite = new Composite(shell, SWT.NONE);
- composite.setEnabled(false);
- Label label = new Label(composite, SWT.NONE);
-
- EditorUtil.setEnabledState(composite, false);
- assertFalse(composite.getEnabled());
- assertFalse(label.getEnabled());
-
- EditorUtil.setEnabledState(composite, true);
- assertFalse(composite.getEnabled());
- assertTrue(label.getEnabled());
- }
-
- public void testSetEnabledStateDisabledChildAndComposite() {
- Shell shell = new Shell();
- Composite composite = new Composite(shell, SWT.NONE);
- composite.setEnabled(false);
- Label label = new Label(composite, SWT.NONE);
- label.setEnabled(false);
-
- EditorUtil.setEnabledState(composite, false);
- assertFalse(composite.getEnabled());
- assertFalse(label.getEnabled());
-
- EditorUtil.setEnabledState(composite, true);
- assertFalse(composite.getEnabled());
- assertFalse(label.getEnabled());
- }
-
- public void testSetEnabledStateDisableStateRemoved() {
- Shell shell = new Shell();
- Composite composite = new Composite(shell, SWT.NONE);
- Label label = new Label(composite, SWT.NONE);
- label.setEnabled(false);
-
- EditorUtil.setEnabledState(composite, false);
- EditorUtil.setEnabledState(composite, true);
- // the second time all state information should have been removed and all controls enabled
- EditorUtil.setEnabledState(composite, true);
- assertTrue(composite.getEnabled());
- assertTrue(label.getEnabled());
- }
-
-}
diff --git a/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/ui/editor/TaskEditorPartDescriptorTest.java b/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/ui/editor/TaskEditorPartDescriptorTest.java
deleted file mode 100644
index 958fbcb30..000000000
--- a/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/ui/editor/TaskEditorPartDescriptorTest.java
+++ /dev/null
@@ -1,62 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2004, 2008 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.tasks.tests.ui.editor;
-
-import java.util.LinkedHashSet;
-import java.util.Set;
-
-import junit.framework.TestCase;
-
-import org.eclipse.mylyn.tasks.ui.editors.AbstractTaskEditorPage;
-import org.eclipse.mylyn.tasks.ui.editors.AbstractTaskEditorPart;
-import org.eclipse.mylyn.tasks.ui.editors.TaskEditorPartDescriptor;
-
-/**
- * @author Steffen Pingel
- */
-public class TaskEditorPartDescriptorTest extends TestCase {
-
- private TaskEditorPartDescriptor descriptor1;
-
- private TaskEditorPartDescriptor descriptor2;
-
- @Override
- protected void setUp() throws Exception {
- descriptor1 = new TaskEditorPartDescriptor("id") {
- @Override
- public AbstractTaskEditorPart createPart() {
- return null;
- }
- };
- descriptor2 = new TaskEditorPartDescriptor("id") {
- @Override
- public AbstractTaskEditorPart createPart() {
- // ignore
- return null;
- }
- }.setPath(AbstractTaskEditorPage.PATH_ACTIONS);
- }
-
- public void testEquals() {
- assertEquals(descriptor1, descriptor2);
- assertEquals(descriptor1.hashCode(), descriptor2.hashCode());
- }
-
- public void testInsertIntoSet() {
- Set<TaskEditorPartDescriptor> set = new LinkedHashSet<TaskEditorPartDescriptor>();
- set.add(descriptor1);
- set.add(descriptor2);
- assertEquals(1, set.size());
- assertSame(descriptor1, set.iterator().next());
- }
-
-}
diff --git a/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/ui/editor/TaskUrlHyperlinkDetectorTest.java b/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/ui/editor/TaskUrlHyperlinkDetectorTest.java
deleted file mode 100644
index d90f17b30..000000000
--- a/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/ui/editor/TaskUrlHyperlinkDetectorTest.java
+++ /dev/null
@@ -1,89 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2004, 2008 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
- * David Green - fix for bug 266693
- *******************************************************************************/
-
-package org.eclipse.mylyn.tasks.tests.ui.editor;
-
-import junit.framework.TestCase;
-
-import org.eclipse.jface.text.Document;
-import org.eclipse.jface.text.IDocument;
-import org.eclipse.jface.text.Region;
-import org.eclipse.jface.text.TextViewer;
-import org.eclipse.jface.text.hyperlink.AbstractHyperlinkDetector;
-import org.eclipse.jface.text.hyperlink.IHyperlink;
-import org.eclipse.mylyn.internal.tasks.ui.editors.TaskUrlHyperlink;
-import org.eclipse.mylyn.internal.tasks.ui.editors.TaskUrlHyperlinkDetector;
-
-/**
- * @author Steffen Pingel
- * @author David Green
- */
-public class TaskUrlHyperlinkDetectorTest extends TestCase {
-
- protected IHyperlink[] detect(final String text, int start, int length) {
- AbstractHyperlinkDetector detector = new TaskUrlHyperlinkDetector();
- return detector.detectHyperlinks(new TextViewer() {
- @Override
- public IDocument getDocument() {
- return new Document(text);
- }
- }, new Region(start, length), true);
- }
-
- public void testUrl() {
- IHyperlink[] links = detect("http://foo", 0, 0);
- assertNotNull(links);
- assertEquals(1, links.length);
- assertEquals("http://foo", ((TaskUrlHyperlink) links[0]).getURLString());
- }
-
- public void testInvalidUrl() {
- IHyperlink[] links = detect("abc", 0, 0);
- assertNull(links);
-
- links = detect("", 0, 0);
- assertNull(links);
-
- links = detect(").", 0, 0);
- assertNull(links);
- }
-
- public void testParenthesis() {
- IHyperlink[] links = detect("(http://foo)", 2, 0);
- assertNotNull(links);
- assertEquals(1, links.length);
- assertEquals("http://foo", ((TaskUrlHyperlink) links[0]).getURLString());
-
- links = detect("( http://foo)", 2, 0);
- assertNotNull(links);
- assertEquals(1, links.length);
- assertEquals("http://foo", ((TaskUrlHyperlink) links[0]).getURLString());
-
- links = detect("( http://foo).", 2, 0);
- assertNotNull(links);
- assertEquals(1, links.length);
- assertEquals("http://foo", ((TaskUrlHyperlink) links[0]).getURLString());
- }
-
- public void testDetectionUsingExtent() {
- IHyperlink[] hyperlinks = detect("aa http://www.eclipse.org test", 0, 30);
- assertNotNull(hyperlinks);
- assertEquals(1, hyperlinks.length);
- }
-
- public void testDetection() {
- IHyperlink[] hyperlinks = detect("aa http://www.eclipse.org test", 20, 0);
- assertNotNull(hyperlinks);
- assertEquals(1, hyperlinks.length);
- }
-
-}
diff --git a/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/util/TestTaskDataCollector.java b/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/util/TestTaskDataCollector.java
deleted file mode 100644
index 91d9383d9..000000000
--- a/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/util/TestTaskDataCollector.java
+++ /dev/null
@@ -1,53 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2004, 2008 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.tasks.tests.util;
-
-import java.util.ArrayList;
-import java.util.LinkedHashSet;
-import java.util.List;
-import java.util.Set;
-
-import org.eclipse.mylyn.tasks.core.AbstractRepositoryConnector;
-import org.eclipse.mylyn.tasks.core.ITask;
-import org.eclipse.mylyn.tasks.core.TaskRepository;
-import org.eclipse.mylyn.tasks.core.data.TaskData;
-import org.eclipse.mylyn.tasks.core.data.TaskDataCollector;
-import org.eclipse.mylyn.tasks.ui.TasksUi;
-
-/**
- * @author Steffen Pingel
- */
-public class TestTaskDataCollector extends TaskDataCollector {
-
- public List<TaskData> results = new ArrayList<TaskData>();
-
- @Override
- public void accept(TaskData taskData) {
- results.add(taskData);
- }
-
- public Set<ITask> getTasks(AbstractRepositoryConnector connector, TaskRepository repository) {
- Set<ITask> tasks = new LinkedHashSet<ITask>(results.size());
- for (TaskData taskData : results) {
- ITask task = TasksUi.getRepositoryModel().getTask(repository, taskData.getTaskId());
- if (task == null) {
- task = TasksUi.getRepositoryModel().createTask(repository, taskData.getTaskId());
- if (connector != null) {
- connector.updateTaskFromTaskData(repository, task, taskData);
- }
- }
- tasks.add(task);
- }
- return tasks;
- }
-
-}
diff --git a/org.eclipse.mylyn.tasks.tests/testdata/activityTests/.activity.xml.zip b/org.eclipse.mylyn.tasks.tests/testdata/activityTests/.activity.xml.zip
deleted file mode 100644
index 676a3e64f..000000000
--- a/org.eclipse.mylyn.tasks.tests/testdata/activityTests/.activity.xml.zip
+++ /dev/null
Binary files differ
diff --git a/org.eclipse.mylyn.tasks.tests/testdata/activityTests/activity.xml.zip b/org.eclipse.mylyn.tasks.tests/testdata/activityTests/activity.xml.zip
deleted file mode 100644
index fd825ed31..000000000
--- a/org.eclipse.mylyn.tasks.tests/testdata/activityTests/activity.xml.zip
+++ /dev/null
Binary files differ
diff --git a/org.eclipse.mylyn.tasks.tests/testdata/legacy/tasklist_0_4_8.xml b/org.eclipse.mylyn.tasks.tests/testdata/legacy/tasklist_0_4_8.xml
deleted file mode 100644
index ca6d3bb41..000000000
--- a/org.eclipse.mylyn.tasks.tests/testdata/legacy/tasklist_0_4_8.xml
+++ /dev/null
@@ -1 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?><TaskList Version="1.0.1"><BugzillaTaskRegistryCategory><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2005-12-18 15:05:08.174 PST" Dirty="false" Elapsed="710333" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-121313" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=121313" Kind="" Label="121313: PDE outline broken in 3.2 M4" LastDate="1134948318985" Notes="" Priority="P1" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2005-12-02 10:04:24.144 PST" Dirty="false" Elapsed="635683" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-116503" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=116503" Kind="" Label="116503: url format in bugzilla preference page is not clear" LastDate="1133571800075" Notes="" Priority="P2" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="false" CreationDate="2005-12-16 12:43:14.101 PST" Dirty="false" Elapsed="10248681" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-121280" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=121280" Kind="" Label="121280: create tips/tricks/quickref document" LastDate="1138147878358" Notes="" Priority="P2" Reminded="true" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2005-11-28 18:34:39.585 PST" Dirty="false" Elapsed="137758" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-117799" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=117799" Kind="" Label="117799: UI hangs after ResourceException" LastDate="1133232080872" Notes="" Priority="P1" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2005-12-07 14:30:27.438 PST" Dirty="false" Elapsed="9496954" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-103418" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=103418" Kind="" Label="103418: improve active search UI" LastDate="1121707407100" Notes="" Priority="P1" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="false" CreationDate="2005-11-22 13:55:18.46 PST" Dirty="false" Elapsed="0" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-117587" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=117587" Kind="normal" Label="117587: clean up 3.1 build process" LastDate="1139867273370" Notes="" Priority="P4" Reminded="false" ReminderDate="" offlineSyncState="INCOMING"/><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2005-11-03 16:28:12.745 PST" Dirty="false" Elapsed="0" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-114949" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=114949" Kind="" Label="114949: When Task List is Fast View, tasks disappear" LastDate="1131081597575" Notes="" Priority="P1" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2005-08-29 15:52:29.524 PDT" Dirty="false" Elapsed="67208963" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-104253" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=104253" Kind="" Label="104253: make mylar bridges extension points" LastDate="1125453336058" Notes="" Priority="P1" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="false" CreationDate="2005-10-07 19:34:14.962 PDT" Dirty="false" Elapsed="0" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-112016" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=112016" Kind="normal" Label="112016: text selections in xml files will get recorded twice" LastDate="1139867260542" Notes="" Priority="P4" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2005-11-08 10:51:47.725 PST" Dirty="false" Elapsed="5281739" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-114262" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=114262" Kind="" Label="114262: Ensure reporting collectors see interaction events in ascending order" LastDate="1132011200505" Notes="" Priority="P3" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2005-09-28 19:21:19.225 PDT" Dirty="false" Elapsed="22906549" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-111023" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=111023" Kind="" Label="111023: create one-to-one association tasks hyperlinks" LastDate="1138053045868" Notes="" Priority="P1" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2005-09-20 09:58:43.217 PDT" Dirty="false" Elapsed="2427962" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-110061" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=110061" Kind="" Label="110061: previous task history should be persistent" LastDate="1138053061851" Notes="" Priority="P2" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2005-12-07 14:30:27.428 PST" Dirty="false" Elapsed="8669328" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-103589" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=103589" Kind="" Label="103589: task list and active search contribution items fail to show on startup" LastDate="1134708976687" Notes="" Priority="P1" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="false" CreationDate="2005-12-07 14:30:27.428 PST" Dirty="false" Elapsed="0" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-107082" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=107082" Kind="normal" Label="107082: npe in IconAndMessageDialog.getSWTImage(..)" LastDate="1140115559340" Notes="" Priority="P4" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2005-12-07 14:30:27.448 PST" Dirty="false" Elapsed="0" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-107146" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=107146" Kind="" Label="107146: text selections cause too much refreshing ManifestEditor" LastDate="1124771063890" Notes="" Priority="P1" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2005-09-21 14:50:04.130 PDT" Dirty="false" Elapsed="2231576" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-106933" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=106933" Kind="" Label="106933: ensure empty root nodes not shown when Package Explorer in Working Sets mode" LastDate="1132619727013" Notes="" Priority="P2" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2005-10-14 15:30:11.390 PDT" Dirty="false" Elapsed="0" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-112718" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=112718" Kind="" Label="112718: mailing list statistics should specify list" LastDate="1130341917652" Notes="" Priority="P3" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2005-12-07 14:30:27.418 PST" Dirty="false" Elapsed="0" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-102676" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=102676" Kind="" Label="102676: add support for moving from study phase1 to phase2" LastDate="1121707455991" Notes="" Priority="P1" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2005-12-07 14:01:49.698 PST" Dirty="false" Elapsed="3853192" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-119372" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=119372" Kind="" Label="119372: workspace move breaks mylar paths" LastDate="1134101714271" Notes="" Priority="P1" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="false" CreationDate="2006-01-20 11:10:22.478 PST" Dirty="false" Elapsed="0" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-123980" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=123980" Kind="minor" Label="123980: Deleting an active task should just deactivate it." LastDate="1139969412802" Notes="" Priority="P2" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="false" CreationDate="2005-11-30 11:46:34.801 PST" Dirty="false" Elapsed="0" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-118692" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=118692" Kind="" Label="118692: support low-priority test launching" LastDate="1133576860231" Notes="" Priority="P3" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="false" CreationDate="2005-09-13 19:17:45.440 PDT" Dirty="false" Elapsed="0" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-109457" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=109457" Kind="" Label="109457: new visualization request: timeline view" LastDate="1134154661758" Notes="" Priority="P3" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2005-10-21 12:06:28.9 PDT" Dirty="false" Elapsed="2551808" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-113397" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=113397" Kind="" Label="113397: race condition in tests causing failure on slow machine" LastDate="1134688304924" Notes="" Priority="P1" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2005-12-16 13:18:10.736 PST" Dirty="false" Elapsed="452841" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-119368" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=119368" Kind="" Label="119368: http auth dialog freezes eclipse" LastDate="1134780694517" Notes="" Priority="P2" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2005-10-14 14:36:25.782 PDT" Dirty="false" Elapsed="27005677" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-112712" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=112712" Kind="" Label="112712: make monitor reports HTML based" LastDate="1129688072602" Notes="" Priority="P2" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="false" CreationDate="2005-12-07 14:30:27.418 PST" Dirty="false" Elapsed="14401" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-104247" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=104247" Kind="enhancement" Label="104247: support decorators in task list" LastDate="1139867211481" Notes="" Priority="P4" Reminded="false" ReminderDate="" offlineSyncState="INCOMING"/><BugzillaReport Active="false" Bugzilla="true" Complete="false" CreationDate="2005-09-16 10:10:49.283 PDT" Dirty="false" Elapsed="581446" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-109770" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=109770" Kind="" Label="109770: create future plan elements in summary" LastDate="1133323627373" Notes="" Priority="P4" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="false" CreationDate="2005-11-14 10:16:05.145 PST" Dirty="false" Elapsed="0" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-111258" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=111258" Kind="normal" Label="111258: verify interaction of Java active search with JSP resources" LastDate="1140232916095" Notes="" Priority="P3" Reminded="false" ReminderDate="" offlineSyncState="INCOMING"/><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2005-12-07 14:30:27.418 PST" Dirty="false" Elapsed="1653362" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-103585" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=103585" Kind="" Label="103585: package explorer refreshes too much" LastDate="1121707389826" Notes="" Priority="P1" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2005-10-31 12:08:11.699 PST" Dirty="false" Elapsed="0" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-114408" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=114408" Kind="" Label="114408: make bug report titles consistent" LastDate="1131421227649" Notes="" Priority="P2" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2005-09-12 11:55:27.299 PDT" Dirty="false" Elapsed="128314" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-106931" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=106931" Kind="" Label="106931: Improve icons for bugzilla tasks" LastDate="1126551639568" Notes="" Priority="P2" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2005-12-19 11:29:52.14 PST" Dirty="false" Elapsed="0" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-121381" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=121381" Kind="" Label="121381: Can't open mylar task view - NoClassDefFoundError" LastDate="1136427246438" Notes="" Priority="P1" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="false" CreationDate="2005-10-28 08:45:02.117 PDT" Dirty="false" Elapsed="0" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-114124" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=114124" Kind="normal" Label="114124: set up monitor scripts on eclipse.org" LastDate="1140232916145" Notes="" Priority="P3" Reminded="false" ReminderDate="" offlineSyncState="INCOMING"/><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2005-09-28 20:01:29.411 PDT" Dirty="false" Elapsed="0" EndDate="2005-11-07 18:08:00.0 PST" Estimated="0" Handle="https://bugs.eclipse.org/bugs-111025" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=111025" Kind="normal" Label="111025: [Viewers] setting background color on trees with columns" LastDate="1140115552520" Notes="" Priority="P3" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2005-12-13 09:29:27.644 PST" Dirty="false" Elapsed="56431126" EndDate="" Estimated="3" Handle="https://bugs.eclipse.org/bugs-120248" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=120248" Kind="" Label="120248: Context externalization optimization" LastDate="1134686229440" Notes="" Priority="P2" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2005-12-07 14:30:27.428 PST" Dirty="false" Elapsed="8573843" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-104259" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=104259" Kind="" Label="104259: mylar open type dialog integration" LastDate="1127876303230" Notes="" Priority="P2" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2006-01-09 18:03:51.700 PST" Dirty="false" Elapsed="12574542" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-123173" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=123173" Kind="" Label="123173: make task editor update title on description change" LastDate="1137178946080" Notes="" Priority="P1" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="false" CreationDate="2006-01-11 16:22:04.322 PST" Dirty="false" Elapsed="0" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-123527" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=123527" Kind="enhancement" Label="123527: support mutliple status values" LastDate="1139867232862" Notes="" Priority="P4" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2005-10-17 15:11:31.898 PDT" Dirty="false" Elapsed="15983568" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-112716" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=112716" Kind="" Label="112716: Create extension points to generalize monitor" LastDate="1130018750533" Notes="" Priority="P2" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="false" CreationDate="2005-09-19 13:15:48.48 PDT" Dirty="false" Elapsed="0" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-109928" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=109928" Kind="normal" Label="109928: make documentation available online" LastDate="1139867253992" Notes="" Priority="P4" Reminded="false" ReminderDate="" offlineSyncState="INCOMING"/><BugzillaReport Active="false" Bugzilla="true" Complete="false" CreationDate="2005-12-09 14:54:33.313 PST" Dirty="false" Elapsed="541729" EndDate="" Estimated="2" Handle="https://bugs.eclipse.org/bugs-117275" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=117275" Kind="" Label="117275: Gradient problem" LastDate="1138061378299" Notes="" Priority="P3" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2005-10-22 11:33:38.387 PDT" Dirty="false" Elapsed="10494" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-113457" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=113457" Kind="" Label="113457: improve formatting of task dates" LastDate="1138053050845" Notes="" Priority="P2" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="false" CreationDate="2005-12-12 07:42:37.955 PST" Dirty="false" Elapsed="11093787" EndDate="" Estimated="1" Handle="https://bugs.eclipse.org/bugs-120374" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=120374" Kind="" Label="120374: task activity time reportes is too high" LastDate="1138042966244" Notes="" Priority="P1" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2006-01-05 19:42:03.528 PST" Dirty="false" Elapsed="665237" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-122845" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=122845" Kind="" Label="122845: &quot;Could not save task list&quot; NPE" LastDate="1137193138698" Notes="" Priority="P1" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="false" CreationDate="2005-12-07 14:30:27.408 PST" Dirty="false" Elapsed="651" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-104341" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=104341" Kind="enhancement" Label="104341: add interest scaling factor control" LastDate="1139867214005" Notes="" Priority="P4" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2005-09-16 16:37:10.20 PDT" Dirty="false" Elapsed="4649526" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-109693" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=109693" Kind="" Label="109693: Tasklist's filter-completed doesn't work" LastDate="1128463755466" Notes="" Priority="P2" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2005-11-04 12:28:19.465 PST" Dirty="false" Elapsed="135959" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-107261" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=107261" Kind="" Label="107261: make task list tooltips more consistent with other Eclipse views" LastDate="1138053088269" Notes="" Priority="P2" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2005-08-24 16:50:02.624 PDT" Dirty="false" Elapsed="20330323" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-107384" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=107384" Kind="" Label="107384: active hierarchy can contain duplicate elements" LastDate="1126925295927" Notes="" Priority="P1" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="false" CreationDate="2005-12-19 11:29:39.205 PST" Dirty="false" Elapsed="513334635" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-120952" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=120952" Kind="normal" Label="120952: [discussion] provide task/issue repository view and extension points" LastDate="1140030392296" Notes="" Priority="P4" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="false" CreationDate="2005-12-07 14:30:27.438 PST" Dirty="false" Elapsed="0" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-103516" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=103516" Kind="enhancement" Label="103516: Should be able to map highlighters to priority" LastDate="1139867210750" Notes="" Priority="P4" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2005-09-12 10:47:20.132 PDT" Dirty="false" Elapsed="2366794" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-107645" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=107645" Kind="" Label="107645: content assist not available on initial startup" LastDate="1134773588208" Notes="" Priority="P4" Reminded="true" ReminderDate="2005-09-20 09:37:25.988 PDT" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="false" CreationDate="2006-01-23 15:18:33.51 PST" Dirty="false" Elapsed="0" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-124956" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=124956" Kind="" Label="124956: reduce amount of refresh needed for views that are not visible" LastDate="1138146805055" Notes="" Priority="P2" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2005-08-25 10:06:44.227 PDT" Dirty="false" Elapsed="0" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-108011" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=108011" Kind="" Label="108011: prevent automatic package explorer collapse" LastDate="1128742683567" Notes="" Priority="P2" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="false" CreationDate="2005-12-14 11:27:35.636 PST" Dirty="false" Elapsed="39427" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-120469" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=120469" Kind="enhancement" Label="120469: Decouple bugzilla task reading" LastDate="1139867229678" Notes="" Priority="P4" Reminded="false" ReminderDate="" offlineSyncState="INCOMING"/><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2005-10-14 18:25:27.241 PDT" Dirty="false" Elapsed="736022" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-109551" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=109551" Kind="" Label="109551: Provide keybinding for toggling folding" LastDate="1130545048548" Notes="" Priority="P2" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="false" CreationDate="2005-09-23 09:21:27.499 PDT" Dirty="false" Elapsed="0" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-104373" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=104373" Kind="normal" Label="104373: [projection] Entered text gets automatically folded away" LastDate="1140115547292" Notes="" Priority="P3" Reminded="false" ReminderDate="" offlineSyncState="INCOMING"/><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2005-10-28 14:00:19.178 PDT" Dirty="false" Elapsed="401338" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-108305" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=108305" Kind="" Label="108305: Commenting from Mylar's Bugzilla UI doesn't update CC" LastDate="1138053059047" Notes="" Priority="P2" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2006-01-13 09:35:35.806 PST" Dirty="false" Elapsed="232316" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-123167" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=123167" Kind="" Label="123167: invalid thread access on change set management" LastDate="1137203858182" Notes="" Priority="P2" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2005-11-24 09:12:06.967 PST" Dirty="false" Elapsed="5686681" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-117926" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=117926" Kind="" Label="117926: clean up Mylar usage reporting" LastDate="1132892503341" Notes="" Priority="P1" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2005-09-09 18:57:36.359 PDT" Dirty="false" Elapsed="15209775" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-109232" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=109232" Kind="" Label="109232: package explorer refreshes too much on marker change" LastDate="1126845173531" Notes="" Priority="P1" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2005-09-21 12:11:16.703 PDT" Dirty="false" Elapsed="324177" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-110236" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=110236" Kind="" Label="110236: guard against concurrent modification of context" LastDate="1128137904850" Notes="" Priority="P2" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2005-10-07 08:41:25.237 PDT" Dirty="false" Elapsed="0" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-110472" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=110472" Kind="" Label="110472: Text CVS label decorator interferes with landmark bolding" LastDate="1129311856571" Notes="" Priority="P2" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="false" CreationDate="2005-12-07 14:30:27.438 PST" Dirty="false" Elapsed="0" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-107169" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=107169" Kind="normal" Label="107169: consider making ITaskListElement(s) adapt to tasks" LastDate="1139867240143" Notes="" Priority="P4" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2005-11-15 14:14:11.417 PST" Dirty="false" Elapsed="0" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-116518" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=116518" Kind="" Label="116518: Submission to Bugzilla works but displays erroneous error" LastDate="1132105376411" Notes="" Priority="P3" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2005-12-07 14:30:27.428 PST" Dirty="false" Elapsed="0" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-104084" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=104084" Kind="" Label="104084: active search jobs should be terminated before shutdown" LastDate="1129564349999" Notes="" Priority="P4" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="false" CreationDate="2005-11-24 19:39:43.598 PST" Dirty="false" Elapsed="123873" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-117352" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=117352" Kind="" Label="117352: resources changes as part of applying patch should become interesting" LastDate="1134709524825" Notes="" Priority="P4" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2005-12-07 14:30:27.438 PST" Dirty="false" Elapsed="0" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-106927" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=106927" Kind="" Label="106927: automatic refresh of bugzilla reports fails" LastDate="1125005506463" Notes="" Priority="P1" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2006-01-18 15:25:36.657 PST" Dirty="false" Elapsed="2049534" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-123882" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=123882" Kind="" Label="123882: Allow to remove taks from the task activity list on task planner" LastDate="1137629533058" Notes="" Priority="P2" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2005-11-02 13:43:01.440 PST" Dirty="false" Elapsed="0" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-114841" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=114841" Kind="" Label="114841: live stats problem when date is set to &quot;Last 30 days&quot;" LastDate="1131063927948" Notes="" Priority="P3" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="false" CreationDate="2006-01-05 19:02:21.62 PST" Dirty="false" Elapsed="17728913" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-117035" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=117035" Kind="major" Label="117035: Bugzilla plugin ignores encoding" LastDate="1139969412792" Notes="" Priority="P2" Reminded="false" ReminderDate="" offlineSyncState="INCOMING"/><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2005-11-02 08:47:50.688 PST" Dirty="false" Elapsed="0" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-114786" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=114786" Kind="" Label="114786: sideitems get pushed past page border on MSIE" LastDate="1131063818310" Notes="" Priority="P3" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="false" CreationDate="2005-11-03 10:51:24.240 PST" Dirty="false" Elapsed="1009231" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-114966" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=114966" Kind="normal" Label="114966: fix web docs support" LastDate="1139867264458" Notes="" Priority="P4" Reminded="false" ReminderDate="" offlineSyncState="INCOMING"/><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2005-09-28 16:57:30.167 PDT" Dirty="false" Elapsed="1535040" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-110993" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=110993" Kind="" Label="110993: Super-flashy folding in Java editor" LastDate="1128377896888" Notes="" Priority="P1" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="false" CreationDate="2006-01-20 11:09:06.28 PST" Dirty="false" Elapsed="0" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-124572" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=124572" Kind="" Label="124572: Task Repository View not deleting properly" LastDate="1138146801700" Notes="" Priority="P1" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2005-08-26 08:23:29.339 PDT" Dirty="false" Elapsed="8435725" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-107304" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=107304" Kind="" Label="107304: Make key project resources always visible" LastDate="1125085600846" Notes="" Priority="P2" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="false" CreationDate="2005-12-07 14:30:27.448 PST" Dirty="false" Elapsed="0" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-104052" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=104052" Kind="enhancement" Label="104052: active search of local context" LastDate="1140232915965" Notes="" Priority="P3" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2005-12-07 14:30:27.438 PST" Dirty="false" Elapsed="250920" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-104063" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=104063" Kind="" Label="104063: toggling related element providers fails to remove the search hits" LastDate="1125010426838" Notes="" Priority="P1" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2005-11-28 18:46:06.172 PST" Dirty="false" Elapsed="3067570" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-115903" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=115903" Kind="" Label="115903: newly created resources should become interesting" LastDate="1133323080327" Notes="" Priority="P2" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2005-11-14 10:17:42.896 PST" Dirty="false" Elapsed="2435811" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-115307" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=115307" Kind="" Label="115307: Mylar tasks view should be in favorites" LastDate="1132004701209" Notes="" Priority="P2" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="false" CreationDate="2005-10-06 16:28:29.972 PDT" Dirty="false" Elapsed="0" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-111861" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=111861" Kind="normal" Label="111861: open type history might be missing some interesting types" LastDate="1140232905850" Notes="" Priority="P1" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2005-10-21 11:27:31.739 PDT" Dirty="false" Elapsed="0" EndDate="2005-11-07 13:08:00.0 PST" Estimated="0" Handle="https://bugs.eclipse.org/bugs-113392" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=113392" Kind="normal" Label="113392: [rulers]promote annotations for folded regions" LastDate="1140115552991" Notes="" Priority="P3" Reminded="false" ReminderDate="" offlineSyncState="INCOMING"/><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2005-08-26 11:26:23.409 PDT" Dirty="false" Elapsed="3042124" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-107165" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=107165" Kind="" Label="107165: disjoint/multiple selections and actions on the task list" LastDate="1134694378187" Notes="" Priority="P2" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2005-10-05 16:38:46.605 PDT" Dirty="false" Elapsed="8925291" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-111708" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=111708" Kind="" Label="111708: improve UI for opening tasks and contexts" LastDate="1130466659852" Notes="" Priority="P1" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2005-09-12 09:50:51.49 PDT" Dirty="false" Elapsed="0" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-109312" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=109312" Kind="" Label="109312: improve performance and execution of task activation/deactivation" LastDate="1128647223245" Notes="" Priority="P1" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2005-12-02 16:06:08.160 PST" Dirty="false" Elapsed="0" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-118942" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=118942" Kind="" Label="118942: Send statistics feedback now dialog problems" LastDate="1134789044123" Notes="" Priority="P2" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2005-12-07 14:30:27.418 PST" Dirty="false" Elapsed="0" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-107062" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=107062" Kind="" Label="107062: support custom queries" LastDate="1124992090362" Notes="" Priority="P1" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="false" CreationDate="2005-11-24 18:30:01.428 PST" Dirty="false" Elapsed="0" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-117979" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=117979" Kind="normal" Label="117979: new selection should always make parent interest positive" LastDate="1140232916165" Notes="" Priority="P3" Reminded="false" ReminderDate="" offlineSyncState="INCOMING"/><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2005-11-14 10:17:10.990 PST" Dirty="false" Elapsed="1608401" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-115156" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=115156" Kind="" Label="115156: unclear UI for turning off folding" LastDate="1133573889820" Notes="" Priority="P2" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2005-11-23 18:37:40.763 PST" Dirty="false" Elapsed="778116" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-117596" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=117596" Kind="" Label="117596: ConcurrentModificationException at Eclipse exit" LastDate="1132802005817" Notes="" Priority="P1" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="false" CreationDate="2006-01-13 15:15:51.815 PST" Dirty="false" Elapsed="0" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-123846" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=123846" Kind="" Label="123846: improve icons and labels of task repository view and wizards" LastDate="1138146785157" Notes="" Priority="P2" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="false" CreationDate="2006-02-09 11:58:59.361 PST" Dirty="false" Elapsed="0" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-109905" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=109905" Kind="enhancement" Label="109905: [discussion] plan JIRA support" LastDate="1139867215297" Notes="" Priority="P4" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2005-12-02 16:06:12.336 PST" Dirty="false" Elapsed="406965" EndDate="" Estimated="1" Handle="https://bugs.eclipse.org/bugs-118238" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=118238" Kind="" Label="118238: Bugzilla rare bug" LastDate="1133570823251" Notes="" Priority="P1" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2005-09-20 15:08:09.148 PDT" Dirty="false" Elapsed="7526294" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-110111" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=110111" Kind="" Label="110111: create context activity context" LastDate="1127263189654" Notes="" Priority="P1" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2005-11-02 10:40:00.230 PST" Dirty="false" Elapsed="1246770" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-114172" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=114172" Kind="" Label="114172: Switch task data directory option on the task list" LastDate="1138053080297" Notes="" Priority="P2" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2005-09-21 12:08:59.752 PDT" Dirty="false" Elapsed="342853" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-110234" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=110234" Kind="" Label="110234: guard against failure of elements to open" LastDate="1127432024980" Notes="" Priority="P1" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2005-09-23 14:50:44.591 PDT" Dirty="false" Elapsed="12682517" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-109810" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=109810" Kind="" Label="109810: Active Search / Hierarchy should display class names for methods" LastDate="1128367754203" Notes="" Priority="P2" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2005-10-27 15:36:34.237 PDT" Dirty="false" Elapsed="810483" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-113877" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=113877" Kind="" Label="113877: filter browser url tracking" LastDate="1138052473615" Notes="" Priority="P2" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2005-11-13 11:51:37.223 PST" Dirty="false" Elapsed="9992579" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-115705" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=115705" Kind="" Label="115705: dynamic change set in a sync view is not refreshed on task change" LastDate="1131998615368" Notes="" Priority="P1" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2005-10-14 10:52:24.332 PDT" Dirty="false" Elapsed="24537944" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-111945" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=111945" Kind="" Label="111945: Read-only activations of tasks" LastDate="1130342214489" Notes="" Priority="P2" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2005-09-20 15:17:29.33 PDT" Dirty="false" Elapsed="3107833" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-110113" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=110113" Kind="" Label="110113: restructure documentation" LastDate="1127273230502" Notes="" Priority="P1" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="false" CreationDate="2006-02-15 21:48:54.426 PST" Dirty="false" Elapsed="58995" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-128126" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=128126" Kind="normal" Label="128126: New repository validate button should validate credentials" LastDate="1140232404199" Notes="" Priority="P1" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2005-12-07 14:30:27.438 PST" Dirty="false" Elapsed="982424" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-103729" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=103729" Kind="" Label="103729: add support for disjoint selections in Mylar views" LastDate="1124994915133" Notes="" Priority="P1" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="false" CreationDate="2005-11-24 20:35:54.265 PST" Dirty="false" Elapsed="1334009" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-117517" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=117517" Kind="normal" Label="117517: add support for commit comment templates" LastDate="1139867272459" Notes="" Priority="P4" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2005-11-02 11:45:45.633 PST" Dirty="false" Elapsed="0" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-114419" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=114419" Kind="" Label="114419: create flash videos for 0.4" LastDate="1131672539748" Notes="working with tasks and bug reports&#13;&#10;- navigating to reports&#13;&#10;&#13;&#10;other &#13;&#10;- junit tests of active context&#13;&#10;- commit resources in context&#13;&#10;&#13;&#10;active search&#13;&#10;- qualify member names&#13;&#10;- drag-and-drop activation" Priority="P2" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2005-09-13 19:32:43.91 PDT" Dirty="false" Elapsed="2565729" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-109459" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=109459" Kind="" Label="109459: during bugzilla refresh focus is repeatedly lost.." LastDate="1138049392194" Notes="" Priority="P1" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2005-10-20 11:56:42.374 PDT" Dirty="false" Elapsed="1823323" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-113270" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=113270" Kind="" Label="113270: support URL monitoring for internal browser" LastDate="1129838098983" Notes="" Priority="P1" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2005-09-21 12:41:09.10 PDT" Dirty="false" Elapsed="15494252" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-110132" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=110132" Kind="" Label="110132: ClassCircularityError on startup" LastDate="1127487637375" Notes="" Priority="P1" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="false" CreationDate="2006-01-17 11:40:55.180 PST" Dirty="false" Elapsed="0" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-119554" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=119554" Kind="enhancement" Label="119554: Generalize monitor uploading" LastDate="1139867121722" Notes="" Priority="P2" Reminded="false" ReminderDate="" offlineSyncState="INCOMING"/><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2005-09-14 12:15:49.870 PDT" Dirty="false" Elapsed="0" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-108294" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=108294" Kind="" Label="108294: improve active search laziness" LastDate="1126846166238" Notes="" Priority="P1" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="false" CreationDate="2005-09-22 13:28:46.255 PDT" Dirty="false" Elapsed="0" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-110374" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=110374" Kind="" Label="110374: recursive bug editor activation attempt" LastDate="1138046667917" Notes="" Priority="P4" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2005-10-28 18:30:44.98 PDT" Dirty="false" Elapsed="0" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-114281" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=114281" Kind="" Label="114281: improve task list context menu action enablement" LastDate="1131417951909" Notes="" Priority="P3" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2005-12-07 14:30:27.438 PST" Dirty="false" Elapsed="3611363" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-106929" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=106929" Kind="" Label="106929: Add tooltip for description column in the tasklist" LastDate="1124994944826" Notes="" Priority="P1" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="false" CreationDate="2005-12-07 14:30:27.418 PST" Dirty="false" Elapsed="0" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-102678" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=102678" Kind="enhancement" Label="102678: improve distinguishing between editor selections and edits" LastDate="1139867208777" Notes="" Priority="P4" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="false" CreationDate="2006-01-20 17:01:02.813 PST" Dirty="false" Elapsed="204114" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-104637" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=104637" Kind="" Label="104637: Enhancment in folding" LastDate="1138046537209" Notes="" Priority="P4" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="false" CreationDate="2006-01-12 19:39:18.379 PST" Dirty="false" Elapsed="0" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-123710" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=123710" Kind="" Label="123710: repository failure is silent" LastDate="1137209889077" Notes="" Priority="P3" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2006-01-17 18:41:15.820 PST" Dirty="false" Elapsed="816574" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-124222" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=124222" Kind="" Label="124222: BugzillaTaskExternalizer creates elements for non-bugzilla queries" LastDate="1137552846979" Notes="" Priority="P3" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2005-12-07 14:30:27.438 PST" Dirty="false" Elapsed="0" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-104888" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=104888" Kind="" Label="104888: revise docs for 0.3.2" LastDate="1122298984543" Notes="" Priority="P1" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="false" CreationDate="2006-01-24 15:53:33.407 PST" Dirty="false" Elapsed="19233196" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-125095" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=125095" Kind="" Label="125095: make task/report editor extensible" LastDate="1138146819756" Notes="" Priority="P1" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2005-08-29 19:31:09.56 PDT" Dirty="false" Elapsed="1164165" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-108295" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=108295" Kind="" Label="108295: Intrusive suggestions in Java code completion" LastDate="1125370205400" Notes="" Priority="P3" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2005-12-07 14:30:27.428 PST" Dirty="false" Elapsed="0" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-103414" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=103414" Kind="" Label="103414: create task list documentation" LastDate="1124994926570" Notes="" Priority="P1" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="false" CreationDate="2005-08-24 16:50:40.949 PDT" Dirty="false" Elapsed="0" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-107949" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=107949" Kind="normal" Label="107949: active hierarchy should update based on model changes" LastDate="1139867240183" Notes="" Priority="P4" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2005-11-21 18:46:37.510 PST" Dirty="false" Elapsed="0" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-115128" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=115128" Kind="" Label="115128: Toggling Mylar in outline causes the editor to change to another file" LastDate="1132633898621" Notes="" Priority="P2" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2005-11-14 18:02:01.596 PST" Dirty="false" Elapsed="958759" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-115709" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=115709" Kind="" Label="115709: Allow to specify custom template for commit comments" LastDate="1132020936187" Notes="" Priority="P3" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2005-12-07 14:30:27.438 PST" Dirty="false" Elapsed="0" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-102090" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=102090" Kind="" Label="102090: package explorer synchronization with interest filtering off" LastDate="1121707393401" Notes="" Priority="P2" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2005-09-23 18:10:15.606 PDT" Dirty="false" Elapsed="4066079" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-110506" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=110506" Kind="" Label="110506: provide context for previous/next task actions" LastDate="1138053064544" Notes="" Priority="P2" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2005-12-07 14:30:27.438 PST" Dirty="false" Elapsed="1162" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-103107" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=103107" Kind="" Label="103107: bugzilla fails to load corrupted offline reports" LastDate="1124994942363" Notes="" Priority="P1" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2005-12-07 14:30:27.438 PST" Dirty="false" Elapsed="110170378" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-102674" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=102674" Kind="" Label="102674: reduce size of taskscapes" LastDate="1128647206732" Notes="" Priority="P2" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2006-01-24 12:37:32.2 PST" Dirty="false" Elapsed="0" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-124732" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=124732" Kind="" Label="124732: Move method to open URL in internal browser" LastDate="1138151676159" Notes="" Priority="P1" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2005-11-25 13:08:38.55 PST" Dirty="false" Elapsed="0" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-115707" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=115707" Kind="" Label="115707: support multiple active change sets" LastDate="1133415963978" Notes="" Priority="P1" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="false" CreationDate="2005-12-19 11:29:52.14 PST" Dirty="false" Elapsed="0" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-121315" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=121315" Kind="normal" Label="121315: Preferences: Highlighter with label &quot;orange gradient&quot; is rendered Brown" LastDate="1139969416758" Notes="" Priority="P2" Reminded="false" ReminderDate="" offlineSyncState="INCOMING"/><BugzillaReport Active="false" Bugzilla="true" Complete="false" CreationDate="2005-11-02 14:27:06.22 PST" Dirty="false" Elapsed="0" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-114849" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=114849" Kind="" Label="114849: flatten interaction event summary table" LastDate="1132699262262" Notes="" Priority="P4" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2005-12-07 14:30:27.418 PST" Dirty="false" Elapsed="0" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-103742" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=103742" Kind="" Label="103742: Packages do not reappear in Java Browsing Packages view when no task activated" LastDate="1124994931247" Notes="" Priority="P1" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2005-11-22 14:42:14.656 PST" Dirty="false" Elapsed="203632" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-117599" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=117599" Kind="" Label="117599: improve web site and phoneix use" LastDate="1133565678262" Notes="" Priority="P1" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2005-10-23 10:00:21.311 PDT" Dirty="false" Elapsed="0" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-113476" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=113476" Kind="" Label="113476: improve gradient highlighters" LastDate="1131487916357" Notes="" Priority="P2" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2005-12-07 14:30:27.418 PST" Dirty="false" Elapsed="2748584" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-104607" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=104607" Kind="" Label="104607: create FAQ document" LastDate="1127749128849" Notes="" Priority="P1" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2005-12-07 14:30:27.418 PST" Dirty="false" Elapsed="1150297" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-103726" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=103726" Kind="" Label="103726: reopened bug reports are filtered as completed" LastDate="1134688329920" Notes="" Priority="P2" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="false" CreationDate="2005-09-23 14:52:26.938 PDT" Dirty="false" Elapsed="4412659" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-109803" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=109803" Kind="" Label="109803: tooltips on task list cause loss of focus on GTK" LastDate="1131160761127" Notes="" Priority="P3" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="false" CreationDate="2005-08-25 10:45:19.516 PDT" Dirty="false" Elapsed="0" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-108021" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=108021" Kind="normal" Label="108021: make monitor listen to all preference changes" LastDate="1139867241575" Notes="" Priority="P4" Reminded="false" ReminderDate="" offlineSyncState="INCOMING"/><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2005-10-07 17:44:21.951 PDT" Dirty="false" Elapsed="0" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-93820" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=93820" Kind="" Label="93820: [Forms] Manifest editor not sending correct selection events" LastDate="1138052566979" Notes="" Priority="P3" Reminded="true" ReminderDate="2005-11-05 10:44:12.883 PST" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2005-12-07 14:30:27.428 PST" Dirty="false" Elapsed="0" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-103733" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=103733" Kind="" Label="103733: support gamma settings" LastDate="1124995054894" Notes="" Priority="P2" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2005-12-05 12:26:19.242 PST" Dirty="false" Elapsed="31794163" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-119300" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=119300" Kind="" Label="119300: fix setting of elapsed time to 0" LastDate="1134101994815" Notes="" Priority="P1" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2005-12-07 14:30:27.428 PST" Dirty="false" Elapsed="2869036" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-104263" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=104263" Kind="" Label="104263: support reminders in task list" LastDate="1124995026524" Notes="" Priority="P2" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2005-12-07 14:30:27.428 PST" Dirty="false" Elapsed="6676150" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-106800" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=106800" Kind="" Label="106800: Add an option to deactivate task without closing opened editors" LastDate="1123883880986" Notes="" Priority="P1" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="false" CreationDate="2005-12-09 10:54:37.242 PST" Dirty="false" Elapsed="1123295" EndDate="" Estimated="3" Handle="https://bugs.eclipse.org/bugs-118582" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=118582" Kind="minor" Label="118582: improve bugzilla client support for http auth" LastDate="1139969412792" Notes="" Priority="P2" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2005-12-07 14:30:27.408 PST" Dirty="false" Elapsed="0" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-106899" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=106899" Kind="" Label="106899: suppress filtering of active tasks" LastDate="1124994872602" Notes="" Priority="P3" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2006-01-16 20:09:10.912 PST" Dirty="false" Elapsed="45156728" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-123884" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=123884" Kind="" Label="123884: Collapse and sash controls in form editors" LastDate="1137808207006" Notes="" Priority="P1" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2005-12-07 14:30:27.428 PST" Dirty="false" Elapsed="105011" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-103236" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=103236" Kind="" Label="103236: make sure active reports can't disappear" LastDate="1124994893452" Notes="" Priority="P1" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="false" CreationDate="2006-01-23 17:08:32.241 PST" Dirty="false" Elapsed="2689280" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-124910" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=124910" Kind="" Label="124910: improve task planner UI" LastDate="1138147875064" Notes="" Priority="P1" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2005-12-07 14:30:27.428 PST" Dirty="false" Elapsed="0" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-103092" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=103092" Kind="" Label="103092: improve category filtering and sorting" LastDate="1124994954340" Notes="" Priority="P1" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2005-12-07 14:30:27.428 PST" Dirty="false" Elapsed="121836" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-103940" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=103940" Kind="" Label="103940: update documentation for 0.3.2" LastDate="1124994912950" Notes="" Priority="P2" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="false" CreationDate="2006-01-19 13:09:32.991 PST" Dirty="false" Elapsed="0" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-124545" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=124545" Kind="normal" Label="124545: [Viewers] FilteredTree refresh when filter is on" LastDate="1140115558108" Notes="" Priority="P3" Reminded="false" ReminderDate="2006-02-27 13:17:00.0 PST" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2006-01-04 18:30:16.573 PST" Dirty="false" Elapsed="3644520" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-122144" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=122144" Kind="" Label="122144: eclipse deadlocked while starting up" LastDate="1136522697176" Notes="" Priority="P1" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2005-11-17 16:58:06.383 PST" Dirty="false" Elapsed="0" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-114810" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=114810" Kind="" Label="114810: Hardware and OS attributes not auto determined in New Bug Report wizard" LastDate="1133460517749" Notes="" Priority="P2" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2006-01-23 18:17:51.25 PST" Dirty="false" Elapsed="862411" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-118151" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=118151" Kind="" Label="118151: Auto-Opening with external editors" LastDate="1138071494864" Notes="" Priority="P2" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2005-09-13 09:09:45.834 PDT" Dirty="false" Elapsed="12909242" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-108309" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=108309" Kind="" Label="108309: Improve usability of &quot;make less interesting&quot; action" LastDate="1132531380038" Notes="" Priority="P1" Reminded="true" ReminderDate="2005-09-20 09:37:30.935 PDT" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="false" CreationDate="2005-09-21 09:22:23.843 PDT" Dirty="false" Elapsed="0" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-110202" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=110202" Kind="" Label="110202: bug links should be clickable in bug editor" LastDate="1138061373522" Notes="" Priority="P4" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2005-08-26 11:32:01.114 PDT" Dirty="false" Elapsed="703962" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-107549" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=107549" Kind="" Label="107549: Accessibility of Mylar glasses in all view..." LastDate="1125081666308" Notes="" Priority="P2" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2005-08-25 09:56:18.287 PDT" Dirty="false" Elapsed="0" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-108006" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=108006" Kind="" Label="108006: add UI for restoring the tasklist from the backup copy" LastDate="1125448315248" Notes="" Priority="P2" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2005-09-26 12:35:28.227 PDT" Dirty="false" Elapsed="0" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-110701" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=110701" Kind="" Label="110701: explore drag and drop integration with browser" LastDate="1132092580337" Notes="" Priority="P3" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="false" CreationDate="2006-01-19 16:23:01.984 PST" Dirty="false" Elapsed="486388" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-124424" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=124424" Kind="" Label="124424: Write test cases for TaskReportGenerator" LastDate="1137716637594" Notes="" Priority="P1" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="false" CreationDate="2005-09-30 14:23:36.844 PDT" Dirty="false" Elapsed="0" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-111266" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=111266" Kind="normal" Label="111266: make Active Search work for Ant references" LastDate="1139867260522" Notes="" Priority="P4" Reminded="false" ReminderDate="" offlineSyncState="INCOMING"/><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2005-08-25 07:24:24.372 PDT" Dirty="false" Elapsed="1513406" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-82752" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=82752" Kind="" Label="82752: ProgramElement.getSourceSignature returns &quot;public&quot; for &quot;private&quot; members" LastDate="1124981375284" Notes="" Priority="P4" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="false" CreationDate="2005-11-02 13:31:27.342 PST" Dirty="false" Elapsed="0" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-114837" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=114837" Kind="" Label="114837: stack overflow in layout" LastDate="1134154665473" Notes="" Priority="P3" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2005-10-06 19:57:17.426 PDT" Dirty="false" Elapsed="13559770" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-111870" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=111870" Kind="" Label="111870: hour estimates are wrong" LastDate="1138053072876" Notes="" Priority="P2" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="false" CreationDate="2005-10-24 12:20:39.352 PDT" Dirty="false" Elapsed="0" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-113583" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=113583" Kind="enhancement" Label="113583: improve UI for activating multiple contexts" LastDate="1139867121722" Notes="" Priority="P4" Reminded="false" ReminderDate="" offlineSyncState="INCOMING"/><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2005-09-16 19:56:09.969 PDT" Dirty="false" Elapsed="4564380" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-109815" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=109815" Kind="" Label="109815: add phase 2 upgarde popup" LastDate="1127154172716" Notes="" Priority="P1" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="false" CreationDate="2006-02-13 10:33:10.141 PST" Dirty="false" Elapsed="3065" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-122849" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=122849" Kind="normal" Label="122849: [Model Sync] Support for change sets" LastDate="1140115553091" Notes="" Priority="P3" Reminded="false" ReminderDate="2006-02-26 10:33:26.434 PST" offlineSyncState="INCOMING"/><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2005-12-07 14:30:27.438 PST" Dirty="false" Elapsed="0" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-107754" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=107754" Kind="" Label="107754: entire tasklist can be lost if mylar is closed before load completes" LastDate="1124992095549" Notes="" Priority="P2" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2005-11-02 08:51:07.762 PST" Dirty="false" Elapsed="0" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-114789" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=114789" Kind="" Label="114789: red background of top tables is an eyesore when page is loading" LastDate="1131063923611" Notes="" Priority="P3" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2005-09-15 10:59:41.939 PDT" Dirty="false" Elapsed="1712705" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-109642" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=109642" Kind="" Label="109642: mylar can block workspace on startup" LastDate="1126897611293" Notes="" Priority="P1" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2005-09-11 13:19:02.666 PDT" Dirty="false" Elapsed="11145163" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-108742" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=108742" Kind="" Label="108742: Eclipse's Problems filters interact badly with Mylar" LastDate="1126481794835" Notes="" Priority="P2" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="false" CreationDate="2005-10-03 11:15:46.675 PDT" Dirty="false" Elapsed="0" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-111362" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=111362" Kind="enhancement" Label="111362: manage resource history" LastDate="1139867215307" Notes="" Priority="P4" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="false" CreationDate="2006-01-16 16:33:44.596 PST" Dirty="false" Elapsed="401446" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-106990" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=106990" Kind="major" Label="106990: Add support for Bugzilla integrated into Collabnet" LastDate="1139867234725" Notes="" Priority="P4" Reminded="true" ReminderDate="2006-02-13 17:00:42.132 PST" offlineSyncState="INCOMING"/><BugzillaReport Active="false" Bugzilla="true" Complete="false" CreationDate="2006-01-18 18:15:54.157 PST" Dirty="false" Elapsed="1676540" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-124225" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=124225" Kind="" Label="124225: generalize tasklist actions to be object contributions" LastDate="1138046528736" Notes="" Priority="P3" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2005-10-06 19:23:54.846 PDT" Dirty="false" Elapsed="1510302" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-111869" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=111869" Kind="" Label="111869: changing highlightre fails to refresh views" LastDate="1128724678166" Notes="" Priority="P1" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2005-10-31 11:25:14.127 PST" Dirty="false" Elapsed="187877" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-114399" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=114399" Kind="" Label="114399: make Get Description in New Task dialog use progress" LastDate="1138053083101" Notes="" Priority="P2" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2005-12-07 14:01:53.364 PST" Dirty="false" Elapsed="23191140" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-119380" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=119380" Kind="" Label="119380: MyLar Seems to Block and make Eclipse unusable when running external build" LastDate="1134160685272" Notes="" Priority="P1" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2005-09-21 09:13:14.543 PDT" Dirty="false" Elapsed="5852370" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-110200" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=110200" Kind="" Label="110200: clean up task list extension points and create JIRA plug-in" LastDate="1127502875246" Notes="" Priority="P1" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="false" CreationDate="2005-12-14 18:33:41.591 PST" Dirty="false" Elapsed="0" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-121000" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=121000" Kind="normal" Label="121000: make monitor interaction event externalization consistent with core" LastDate="1139867277076" Notes="" Priority="P4" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="false" CreationDate="2005-09-11 13:24:32.871 PDT" Dirty="false" Elapsed="0" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-109259" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=109259" Kind="normal" Label="109259: working set filter interacts badly with mylar filter" LastDate="1139867246852" Notes="" Priority="P4" Reminded="false" ReminderDate="" offlineSyncState="INCOMING"/><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2005-10-12 14:45:38.411 PDT" Dirty="false" Elapsed="0" EndDate="2005-10-31 17:15:00.0 PST" Estimated="0" Handle="https://bugs.eclipse.org/bugs-112406" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=112406" Kind="minor" Label="112406: misleading exception when web browser is not available" LastDate="1140115547292" Notes="" Priority="P3" Reminded="true" ReminderDate="2005-11-08 10:48:17.818 PST" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="false" CreationDate="2005-10-14 10:29:23.176 PDT" Dirty="false" Elapsed="0" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-112669" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=112669" Kind="enhancement" Label="112669: add optional categories for completed today, completed this week" LastDate="1139867219242" Notes="" Priority="P4" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2005-09-21 13:34:49.768 PDT" Dirty="false" Elapsed="1442227" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-110248" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=110248" Kind="" Label="110248: notes field needs scroll bar and word wrap" LastDate="1130161170532" Notes="" Priority="P3" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="false" CreationDate="2005-10-26 09:20:12.930 PDT" Dirty="false" Elapsed="0" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-113848" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=113848" Kind="enhancement" Label="113848: support attaching context to bug report" LastDate="1139867219883" Notes="" Priority="P4" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2005-09-12 10:03:33.505 PDT" Dirty="false" Elapsed="1250510" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-109313" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=109313" Kind="" Label="109313: outline view refreshes too often" LastDate="1126897669327" Notes="" Priority="P3" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="false" CreationDate="2005-11-29 08:47:21.422 PST" Dirty="false" Elapsed="0" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-118443" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=118443" Kind="" Label="118443: improve task list startup performance" LastDate="1134760891962" Notes="" Priority="P4" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2005-11-15 19:37:41.591 PST" Dirty="false" Elapsed="10358805" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-116493" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=116493" Kind="" Label="116493: mylar reopen closed editors on task acticvation" LastDate="1132591133670" Notes="" Priority="P1" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="false" CreationDate="2005-12-07 14:30:27.418 PST" Dirty="false" Elapsed="0" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-104782" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=104782" Kind="normal" Label="104782: ensure that mylar viewer management removes facilities on view close" LastDate="1139867238841" Notes="" Priority="P4" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2005-12-07 14:30:27.438 PST" Dirty="false" Elapsed="8805730" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-102870" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=102870" Kind="" Label="102870: provide documentation of known limitations" LastDate="1124994957354" Notes="" Priority="P1" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2005-09-23 09:05:31.714 PDT" Dirty="false" Elapsed="1395166" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-110464" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=110464" Kind="" Label="110464: make active search check box selections disjoint" LastDate="1127520726870" Notes="" Priority="P2" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="false" CreationDate="2005-12-07 19:01:41.61 PST" Dirty="false" Elapsed="9627252" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-119557" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=119557" Kind="" Label="119557: Tasklist data doesn't change when changing workspace" LastDate="1134154737126" Notes="" Priority="P3" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2005-09-21 08:18:35.468 PDT" Dirty="false" Elapsed="589688" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-110133" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=110133" Kind="" Label="110133: Unhandled event loop exception" LastDate="1127316728097" Notes="" Priority="P3" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="false" CreationDate="2005-09-13 19:36:49.956 PDT" Dirty="false" Elapsed="385995" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-109460" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=109460" Kind="normal" Label="109460: wrong incoming status on submitted reports/comments" LastDate="1139969412682" Notes="" Priority="P1" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2005-11-04 13:19:30.271 PST" Dirty="false" Elapsed="814328" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-114162" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=114162" Kind="" Label="114162: Export to zip files" LastDate="1138053067749" Notes="" Priority="P2" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="false" CreationDate="2006-02-09 11:12:33.675 PST" Dirty="false" Elapsed="0" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-125276" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=125276" Kind="normal" Label="125276: common navigation items are overly restritive and cumbersome to navigate" LastDate="1139518294878" Notes="" Priority="P3" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="false" CreationDate="2005-12-16 13:18:16.334 PST" Dirty="false" Elapsed="0" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-120502" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=120502" Kind="normal" Label="120502: [performance] pauses during casual editor navigation" LastDate="1140232919580" Notes="" Priority="P3" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="false" CreationDate="2005-12-01 09:48:38.114 PST" Dirty="false" Elapsed="0" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-118884" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=118884" Kind="normal" Label="118884: problems with PDE Outline update" LastDate="1140232912700" Notes="" Priority="P2" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="false" CreationDate="2005-09-21 11:36:57.207 PDT" Dirty="false" Elapsed="0" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-110225" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=110225" Kind="" Label="110225: plan merge with Jeff Pound's for of the Platform Team's Bugs plug-in" LastDate="1132619761563" Notes="" Priority="P4" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2005-09-29 19:33:01.991 PDT" Dirty="false" Elapsed="934144" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-111167" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=111167" Kind="" Label="111167: [Discussion] Re-activate last task when Eclipse starts" LastDate="1128377904669" Notes="" Priority="P3" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2005-12-07 14:30:27.428 PST" Dirty="false" Elapsed="0" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-103234" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=103234" Kind="" Label="103234: monitor seems to be storing too much for preferences" LastDate="1124994959878" Notes="" Priority="P2" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2005-11-04 17:45:27.647 PST" Dirty="false" Elapsed="0" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-114283" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=114283" Kind="" Label="114283: NPE setting colour of highlighter" LastDate="1131155763901" Notes="" Priority="P2" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2005-11-14 10:17:32.821 PST" Dirty="false" Elapsed="1311474" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-115183" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=115183" Kind="" Label="115183: &quot;make less interesting&quot; shortcut only decrements single element" LastDate="1132626798902" Notes="" Priority="P2" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2006-01-16 13:25:09.596 PST" Dirty="false" Elapsed="2719320" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-124038" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=124038" Kind="" Label="124038: new report creation wizard should require fewer clicks" LastDate="1137729238603" Notes="" Priority="P1" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2005-10-14 18:41:26.901 PDT" Dirty="false" Elapsed="550261" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-110127" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=110127" Kind="" Label="110127: Improvements for Alt-Click in all views with active Mylar filter" LastDate="1134752754989" Notes="" Priority="P2" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="false" CreationDate="2005-09-27 20:05:17.75 PDT" Dirty="false" Elapsed="0" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-110892" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=110892" Kind="normal" Label="110892: repeated searches should not induce landmark interest" LastDate="1139867260512" Notes="" Priority="P4" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2005-12-07 14:30:27.428 PST" Dirty="false" Elapsed="0" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-103570" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=103570" Kind="" Label="103570: ensure that task list writes versions" LastDate="1124994895776" Notes="" Priority="P2" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="false" CreationDate="2005-12-07 14:30:27.428 PST" Dirty="false" Elapsed="11425145" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-102663" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=102663" Kind="enhancement" Label="102663: support multiple workbench windows" LastDate="1140232912760" Notes="" Priority="P3" Reminded="true" ReminderDate="" offlineSyncState="INCOMING"/><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2005-10-07 17:41:17.827 PDT" Dirty="false" Elapsed="283767" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-112009" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=112009" Kind="" Label="112009: editing build.properties does not induce interest properly" LastDate="1132026760442" Notes="" Priority="P2" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2005-08-26 11:40:39.530 PDT" Dirty="false" Elapsed="0" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-108163" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=108163" Kind="" Label="108163: active tasks disappear" LastDate="1125085546998" Notes="" Priority="P1" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2006-01-16 14:48:14.894 PST" Dirty="false" Elapsed="2819995" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-124044" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=124044" Kind="" Label="124044: Task Repositories -&gt; Properties: IndexOutOfBounds on Mac OS X" LastDate="1137454257740" Notes="" Priority="P3" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="false" CreationDate="2005-12-14 09:59:40.621 PST" Dirty="false" Elapsed="0" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-120917" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=120917" Kind="normal" Label="120917: clean up collection of Mylar usage stats" LastDate="1140232919610" Notes="" Priority="P3" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2005-12-07 14:30:27.418 PST" Dirty="false" Elapsed="657505" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-103373" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=103373" Kind="" Label="103373: on task activation expand all intersting in managed views" LastDate="1121707409614" Notes="" Priority="P1" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="false" CreationDate="2006-02-13 18:17:26.932 PST" Dirty="false" Elapsed="0" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-127609" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=127609" Kind="normal" Label="127609: parametrize task completion status" LastDate="1140232905850" Notes="" Priority="P1" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2005-11-10 17:19:35.857 PST" Dirty="false" Elapsed="84689" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-114435" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=114435" Kind="" Label="114435: calendar month off-by-one" LastDate="1138053077814" Notes="" Priority="P2" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2005-12-30 06:47:43.416 PST" Dirty="false" Elapsed="9118991" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-121976" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=121976" Kind="" Label="121976: Delete Icon should be red" LastDate="1135963705640" Notes="" Priority="P2" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2005-12-07 14:30:27.438 PST" Dirty="false" Elapsed="4769748" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-104489" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=104489" Kind="" Label="104489: clean up composite context API" LastDate="1121873724873" Notes="" Priority="P3" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="false" CreationDate="2006-01-23 11:40:59.551 PST" Dirty="false" Elapsed="1319053" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-106939" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=106939" Kind="normal" Label="106939: Bugzilla query refresh in a task list should use scheduler" LastDate="1139969416537" Notes="" Priority="P2" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2005-12-07 14:30:27.418 PST" Dirty="false" Elapsed="1151886" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-104091" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=104091" Kind="" Label="104091: predicted interest items are never removed from the contest" LastDate="1121711114722" Notes="" Priority="P1" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2005-08-30 11:44:13.397 PDT" Dirty="false" Elapsed="5939" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-108409" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=108409" Kind="" Label="108409: make usage summary limit results to accepted users" LastDate="1138049389470" Notes="" Priority="P1" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="false" CreationDate="2005-11-15 14:00:12.30 PST" Dirty="false" Elapsed="2117796" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-116514" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=116514" Kind="normal" Label="116514: support building against IBM JDK" LastDate="1139867271688" Notes="" Priority="P4" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="false" CreationDate="2005-12-19 11:29:37.362 PST" Dirty="false" Elapsed="1582" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-118542" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=118542" Kind="normal" Label="118542: Open/close Java files leave interest on packages" LastDate="1140232909165" Notes="" Priority="P2" Reminded="false" ReminderDate="" offlineSyncState="INCOMING"/><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2005-12-07 14:30:27.438 PST" Dirty="false" Elapsed="0" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-104070" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=104070" Kind="" Label="104070: put back drill-down adapter on task list" LastDate="1121707402243" Notes="" Priority="P2" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2005-12-15 21:40:25.105 PST" Dirty="false" Elapsed="0" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-121171" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=121171" Kind="" Label="121171: improve task list filtering and decoration" LastDate="1136518714497" Notes="" Priority="P2" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2005-12-07 14:30:27.418 PST" Dirty="false" Elapsed="6520355" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-104644" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=104644" Kind="" Label="104644: monitor task activation" LastDate="1122298988699" Notes="" Priority="P1" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2005-09-28 18:46:41.538 PDT" Dirty="false" Elapsed="1062989" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-111020" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=111020" Kind="" Label="111020: Freeze editing Java file with outline view up" LastDate="1127960674847" Notes="" Priority="P1" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2005-12-07 14:30:27.428 PST" Dirty="false" Elapsed="2264" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-106926" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=106926" Kind="" Label="106926: too many &quot;download failed&quot; messages in log" LastDate="1124771110778" Notes="" Priority="P2" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2005-12-05 14:50:16.627 PST" Dirty="false" Elapsed="3883583" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-119254" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=119254" Kind="" Label="119254: New bug id error with Bugzilla 2.20 (parsing)" LastDate="1134162719217" Notes="" Priority="P1" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="false" CreationDate="2005-09-12 10:53:40.649 PDT" Dirty="false" Elapsed="19238155" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-106678" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=106678" Kind="normal" Label="106678: hierarchical layout in package explorer shows uninteresting elements" LastDate="1140232909145" Notes="" Priority="P2" Reminded="false" ReminderDate="" offlineSyncState="INCOMING"/><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2005-10-05 18:24:44.377 PDT" Dirty="false" Elapsed="0" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-107675" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=107675" Kind="" Label="107675: newly created resources should become interesting" LastDate="1129564555254" Notes="" Priority="P4" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2005-12-15 14:47:31.64 PST" Dirty="false" Elapsed="0" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-103276" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=103276" Kind="" Label="103276: Temporarily disable server property page test" LastDate="1134686879024" Notes="" Priority="P3" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2006-01-20 11:08:03.919 PST" Dirty="false" Elapsed="4460377" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-124676" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=124676" Kind="" Label="124676: Edit on F2 in Task view truncate task description" LastDate="1137795243286" Notes="" Priority="P1" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="false" CreationDate="2005-10-27 17:58:51.92 PDT" Dirty="false" Elapsed="516784" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-114047" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=114047" Kind="enhancement" Label="114047: allow junit test suite of current context to run with low process priority" LastDate="1139867226363" Notes="" Priority="P4" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="false" CreationDate="2006-01-23 11:39:07.430 PST" Dirty="false" Elapsed="0" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-124919" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=124919" Kind="normal" Label="124919: planner should only report time Elapsed during plan period" LastDate="1139969417058" Notes="" Priority="P2" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2005-08-25 16:04:15.442 PDT" Dirty="false" Elapsed="0" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-108068" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=108068" Kind="" Label="108068: update active search based on resource changes" LastDate="1125370199281" Notes="" Priority="P3" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="false" CreationDate="2005-11-19 15:42:40.551 PST" Dirty="false" Elapsed="0" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-117024" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=117024" Kind="" Label="117024: Content assist doesn't show static members (eg enum instances)" LastDate="1132630525591" Notes="" Priority="P3" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="false" CreationDate="2005-12-07 14:30:27.428 PST" Dirty="false" Elapsed="0" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-106428" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=106428" Kind="normal" Label="106428: Need support for deploying features depending on other features" LastDate="1140115552510" Notes="" Priority="P3" Reminded="false" ReminderDate="" offlineSyncState="INCOMING"/><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2005-12-07 14:30:27.438 PST" Dirty="false" Elapsed="215661" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-105094" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=105094" Kind="" Label="105094: invalidate search results" LastDate="1124994996120" Notes="" Priority="P2" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2005-12-12 07:21:41.57 PST" Dirty="false" Elapsed="6798932" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-120185" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=120185" Kind="" Label="120185: make task planner run with progress" LastDate="1134419352177" Notes="" Priority="P3" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2005-12-07 14:30:27.438 PST" Dirty="false" Elapsed="2784" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-104037" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=104037" Kind="" Label="104037: ensure that monitor can progress through phases" LastDate="1121707461108" Notes="" Priority="P1" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2005-12-07 14:30:27.418 PST" Dirty="false" Elapsed="0" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-103289" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=103289" Kind="" Label="103289: preserve downloaded labels during refresh" LastDate="1124994905640" Notes="" Priority="P1" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2005-10-06 09:41:07.674 PDT" Dirty="false" Elapsed="0" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-100635" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=100635" Kind="" Label="100635: Provide live, always up to date, combined online help at eclipse.org" LastDate="1128616867704" Notes="" Priority="P3" Reminded="true" ReminderDate="2005-10-13 11:02:31.211 PDT" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2006-02-10 10:11:16.684 PST" Dirty="false" Elapsed="475364" EndDate="2006-02-15 20:13:00.0 PST" Estimated="0" Handle="https://bugs.eclipse.org/bugs-126866" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=126866" Kind="normal" Label="126866: NPE in new bugzilla report wizard" LastDate="1140052509929" Notes="" Priority="P1" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2006-02-10 12:34:09.281 PST" Dirty="false" Elapsed="79043613" EndDate="2006-02-14 21:18:00.0 PST" Estimated="0" Handle="https://bugs.eclipse.org/bugs-125438" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=125438" Kind="normal" Label="125438: make tasklist icons overlay-based" LastDate="1139970010061" Notes="" Priority="P1" Reminded="true" ReminderDate="2006-02-10 16:00:00.546 PST" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="false" CreationDate="2005-08-25 15:01:28.826 PDT" Dirty="false" Elapsed="672957" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-108063" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=108063" Kind="normal" Label="108063: create policy for re-running active searches" LastDate="1139867242766" Notes="" Priority="P4" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="false" CreationDate="2005-10-21 12:17:58.101 PDT" Dirty="false" Elapsed="0" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-113399" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=113399" Kind="enhancement" Label="113399: add recommended preference changes" LastDate="1140232909115" Notes="" Priority="P2" Reminded="true" ReminderDate="" offlineSyncState="INCOMING"/><BugzillaReport Active="false" Bugzilla="true" Complete="false" CreationDate="2006-01-13 09:40:42.957 PST" Dirty="false" Elapsed="83721" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-224577" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=224577" Kind="" Label="224577: Bugzilla could use a web services interface" LastDate="1139867282053" Notes="" Priority="P4" Reminded="true" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="false" CreationDate="2005-09-20 08:35:03.28 PDT" Dirty="false" Elapsed="0" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-110042" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=110042" Kind="normal" Label="110042: consider limiting size of active search matches" LastDate="1139867257968" Notes="" Priority="P4" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2005-12-05 14:50:12.310 PST" Dirty="false" Elapsed="566453" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-119180" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=119180" Kind="" Label="119180: Cleanup of tasklist provider schema" LastDate="1133994245259" Notes="" Priority="P1" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2005-09-29 15:00:52.18 PDT" Dirty="false" Elapsed="0" EndDate="2005-09-30 09:43:00.0 PDT" Estimated="0" Handle="https://bugs.eclipse.org/bugs-111155" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=111155" Kind="normal" Label="111155: [Contributions] wrong toolbar height if first button has a pull-down menu" LastDate="1140115552540" Notes="" Priority="P3" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2005-11-04 10:48:02.103 PST" Dirty="false" Elapsed="0" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-115117" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=115117" Kind="" Label="115117: contexts junit tests failing to launch on 3.2M3" LastDate="1131938430713" Notes="" Priority="P2" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2005-10-27 18:00:09.345 PDT" Dirty="false" Elapsed="2359533" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-113585" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=113585" Kind="" Label="113585: Automatically fetch task title" LastDate="1138053053168" Notes="" Priority="P2" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2005-12-07 14:30:27.438 PST" Dirty="false" Elapsed="0" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-103364" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=103364" Kind="" Label="103364: add timestamp to user sign-up" LastDate="1124994983251" Notes="" Priority="P1" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2005-11-03 20:16:46.734 PST" Dirty="false" Elapsed="8880173" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-115017" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=115017" Kind="" Label="115017: bugzilla 2.20 hits only result in one match" LastDate="1131155473714" Notes="" Priority="P1" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2006-01-04 18:31:45.701 PST" Dirty="false" Elapsed="110174858" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-121041" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=121041" Kind="" Label="121041: Support more than one Bugzilla account per Workspace" LastDate="1137172947572" Notes="" Priority="P1" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2005-10-27 13:20:50.857 PDT" Dirty="false" Elapsed="0" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-113564" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=113564" Kind="" Label="113564: Bugzilla provider does not work from behind firewall" LastDate="1132028533361" Notes="" Priority="P2" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2005-12-07 14:30:27.418 PST" Dirty="false" Elapsed="1692734" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-107152" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=107152" Kind="" Label="107152: make &quot;unsure&quot; the default for questionnaire responses" LastDate="1124771103588" Notes="" Priority="P1" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="false" CreationDate="2005-08-25 07:30:34.984 PDT" Dirty="false" Elapsed="0" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-107991" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=107991" Kind="normal" Label="107991: make one level of subtypes show in Active Hierarchy" LastDate="1139867240904" Notes="" Priority="P4" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="false" CreationDate="2005-10-06 17:58:45.319 PDT" Dirty="false" Elapsed="0" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-111865" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=111865" Kind="enhancement" Label="111865: create welcome page" LastDate="1139867219162" Notes="" Priority="P4" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2005-12-18 15:41:03.794 PST" Dirty="false" Elapsed="1301522" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-121326" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=121326" Kind="" Label="121326: MylarUiPlugin fails to activate if no mylar views visible" LastDate="1134950896191" Notes="" Priority="P1" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2006-02-16 13:41:20.408 PST" Dirty="false" Elapsed="1373624" EndDate="2006-02-16 16:41:00.0 PST" Estimated="0" Handle="https://bugs.eclipse.org/bugs-128256" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=128256" Kind="critical" Label="128256: Task list disappeared on restart" LastDate="1140126239417" Notes="" Priority="P1" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="false" CreationDate="2006-02-17 19:21:28.956 PST" Dirty="false" Elapsed="0" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-128500" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=128500" Kind="normal" Label="128500: hits should show resolved status" LastDate="1140232940390" Notes="" Priority="P1" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="false" CreationDate="2005-12-07 14:30:27.408 PST" Dirty="false" Elapsed="831420" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-103283" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=103283" Kind="normal" Label="103283: make predicted interest errors work for plugin.xml and other resources" LastDate="1139867236367" Notes="" Priority="P4" Reminded="false" ReminderDate="" offlineSyncState="INCOMING"/><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2005-09-12 10:28:56.685 PDT" Dirty="false" Elapsed="1451607" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-109315" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=109315" Kind="" Label="109315: package explorer fails to unlink with editor when Mylar is enabled" LastDate="1126557631304" Notes="" Priority="P2" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2005-10-04 13:23:55.739 PDT" Dirty="false" Elapsed="7464071" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-111022" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=111022" Kind="" Label="111022: Edit .properties file should make it be important" LastDate="1128738563993" Notes="" Priority="P2" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2005-12-09 10:54:48.599 PST" Dirty="false" Elapsed="0" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-119553" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=119553" Kind="" Label="119553: Refactor error reporting and logging support" LastDate="1134154533774" Notes="" Priority="P2" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2005-08-23 20:00:12.121 PDT" Dirty="false" Elapsed="118550" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-107812" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=107812" Kind="" Label="107812: add prompt to view tutorial video on phase1 start" LastDate="1126485645903" Notes="" Priority="P1" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2005-11-07 13:35:35.792 PST" Dirty="false" Elapsed="17232461" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-115394" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=115394" Kind="" Label="115394: improve the Task Planner reporting on activity" LastDate="1138053055822" Notes="" Priority="P1" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="false" CreationDate="2005-09-13 18:15:58.940 PDT" Dirty="false" Elapsed="0" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-109454" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=109454" Kind="normal" Label="109454: make online access mode to report trigger offline mode" LastDate="1139867250257" Notes="" Priority="P4" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2005-09-08 20:00:17.293 PDT" Dirty="false" Elapsed="0" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-109114" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=109114" Kind="" Label="109114: command failures on startup" LastDate="1126897374142" Notes="" Priority="P3" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2005-09-11 16:44:39.983 PDT" Dirty="false" Elapsed="0" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-109262" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=109262" Kind="" Label="109262: problems list filter does not retain state on startup" LastDate="1126537281236" Notes="" Priority="P3" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="false" CreationDate="2005-12-19 11:29:35.700 PST" Dirty="false" Elapsed="1662" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-116652" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=116652" Kind="" Label="116652: Activated indicator column does not resize correctly" LastDate="1136596782292" Notes="" Priority="P2" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2005-12-07 14:30:27.418 PST" Dirty="false" Elapsed="0" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-107081" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=107081" Kind="" Label="107081: completed bugs don't filter from root" LastDate="1124771068697" Notes="" Priority="P3" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2005-10-26 15:52:27.854 PDT" Dirty="false" Elapsed="885419" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-113916" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=113916" Kind="" Label="113916: fix exceptions reported in logs" LastDate="1130536677341" Notes="" Priority="P1" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2005-11-19 17:30:11.868 PST" Dirty="false" Elapsed="1108444" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-117100" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=117100" Kind="" Label="117100: tasks view should not change its title when paused" LastDate="1132510052722" Notes="" Priority="P1" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2005-12-07 14:30:27.428 PST" Dirty="false" Elapsed="9465866" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-102679" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=102679" Kind="" Label="102679: add show filtered action to navigator" LastDate="1122066516762" Notes="" Priority="P1" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2005-08-31 08:28:22.165 PDT" Dirty="false" Elapsed="0" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-108475" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=108475" Kind="" Label="108475: if active task is only under archive reports it still needs to show up" LastDate="1126200114284" Notes="" Priority="P2" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2006-01-18 10:48:12.635 PST" Dirty="false" Elapsed="1040414" EndDate="2006-02-07 03:54:00.0 PST" Estimated="0" Handle="https://bugs.eclipse.org/bugs-119603" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=119603" Kind="normal" Label="119603: [api][content assist] allow contributions to filter and sort proposals" LastDate="1139510945170" Notes="" Priority="P3" Reminded="true" ReminderDate="2006-01-20 11:14:38.265 PST" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2005-08-25 13:07:22.471 PDT" Dirty="false" Elapsed="234350" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-103419" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=103419" Kind="" Label="103419: improve active search infrastructure" LastDate="1125010575602" Notes="" Priority="P1" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="false" CreationDate="2005-12-07 14:30:27.418 PST" Dirty="false" Elapsed="8776295" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-104287" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=104287" Kind="enhancement" Label="104287: Alt+Click does not work in the Java Browsing Perspective" LastDate="1139867211521" Notes="" Priority="P4" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="false" CreationDate="2006-02-09 11:51:18.388 PST" Dirty="false" Elapsed="3273570" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-126842" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=126842" Kind="enhancement" Label="126842: prototype JIRA support" LastDate="1140232905850" Notes="" Priority="P1" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2005-09-14 12:19:44.848 PDT" Dirty="false" Elapsed="15581" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-109536" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=109536" Kind="" Label="109536: add keybindings for common actions" LastDate="1130988941373" Notes="" Priority="P3" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2005-11-14 10:17:38.59 PST" Dirty="false" Elapsed="2416917" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-115201" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=115201" Kind="" Label="115201: Del action deletes task only on second call" LastDate="1132622491809" Notes="" Priority="P2" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="false" CreationDate="2006-02-09 14:13:12.40 PST" Dirty="false" Elapsed="0" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-126237" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=126237" Kind="normal" Label="126237: copying and pasting task contexts" LastDate="1140232912750" Notes="" Priority="P2" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="false" CreationDate="2005-10-20 12:58:36.666 PDT" Dirty="false" Elapsed="0" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-113275" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=113275" Kind="enhancement" Label="113275: improve PDE search and include manifest files" LastDate="1140232905850" Notes="" Priority="P2" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="false" CreationDate="2005-11-01 08:42:22.359 PST" Dirty="false" Elapsed="803727" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-114561" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=114561" Kind="normal" Label="114561: restructure and fix up documentation" LastDate="1139867264137" Notes="" Priority="P4" Reminded="false" ReminderDate="" offlineSyncState="INCOMING"/><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2005-10-22 14:11:29.324 PDT" Dirty="false" Elapsed="28067911" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-113461" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=113461" Kind="" Label="113461: allow mylar monitor to be disabled" LastDate="1130113992716" Notes="" Priority="P1" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2005-11-02 19:36:02.153 PST" Dirty="false" Elapsed="1854941" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-112722" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=112722" Kind="" Label="112722: adding task when drilled into a category should add it to that category" LastDate="1131036515614" Notes="" Priority="P2" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2005-11-02 15:05:10.808 PST" Dirty="false" Elapsed="4063139" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-114853" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=114853" Kind="" Label="114853: group Add actions into a submenu on the popup menu" LastDate="1130989290425" Notes="" Priority="P1" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2005-10-28 16:47:47.186 PDT" Dirty="false" Elapsed="269227" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-113277" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=113277" Kind="" Label="113277: Error while stopping &quot;org.eclipse.mylyn.java_0.3.12.e31&quot;." LastDate="1130543614295" Notes="" Priority="P1" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="false" CreationDate="2005-12-09 14:53:51.633 PST" Dirty="false" Elapsed="4175748" EndDate="" Estimated="2" Handle="https://bugs.eclipse.org/bugs-119137" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=119137" Kind="enhancement" Label="119137: Task does not remember perspective" LastDate="1140232915965" Notes="" Priority="P3" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2006-01-13 11:59:22.583 PST" Dirty="false" Elapsed="5766922" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-123817" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=123817" Kind="" Label="123817: make add of existing report use repository" LastDate="1137809376949" Notes="" Priority="P2" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2005-08-25 08:11:58.706 PDT" Dirty="false" Elapsed="90" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-107582" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=107582" Kind="" Label="107582: Implement F3 &quot;open declaration&quot; action for pointcuts" LastDate="1125420269367" Notes="" Priority="P3" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2005-09-13 18:48:32.309 PDT" Dirty="false" Elapsed="35045443" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-109456" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=109456" Kind="" Label="109456: problems list blinks in save in filtered mode" LastDate="1126893230364" Notes="" Priority="P1" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2005-10-14 10:52:31.482 PDT" Dirty="false" Elapsed="4970260" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-112572" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=112572" Kind="" Label="112572: allow a stats generating action to specify stats collectors" LastDate="1129326360528" Notes="" Priority="P2" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2005-11-20 10:04:13.856 PST" Dirty="false" Elapsed="8203474" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-117217" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=117217" Kind="" Label="117217: create action for navigating from change set to bug report" LastDate="1132531444892" Notes="" Priority="P2" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2005-09-16 11:02:39.585 PDT" Dirty="false" Elapsed="439031" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-106797" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=106797" Kind="" Label="106797: label decorator makes Package Explorer view flicker on marker change" LastDate="1132092845268" Notes="" Priority="P4" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="false" CreationDate="2006-02-09 12:00:44.382 PST" Dirty="false" Elapsed="0" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-125959" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=125959" Kind="normal" Label="125959: [OLE] in-place editor for PDFs" LastDate="1140115558959" Notes="" Priority="P3" Reminded="false" ReminderDate="" offlineSyncState="INCOMING"/><BugzillaReport Active="false" Bugzilla="true" Complete="false" CreationDate="2006-01-13 11:10:16.216 PST" Dirty="false" Elapsed="0" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-123813" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=123813" Kind="" Label="123813: bugzilla version should be associated with repository" LastDate="1138046466267" Notes="" Priority="P3" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2005-09-23 12:59:36.219 PDT" Dirty="false" Elapsed="0" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-110490" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=110490" Kind="" Label="110490: make the data elements of the Active Hiearchy view be java elements" LastDate="1128562010809" Notes="" Priority="P3" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="false" CreationDate="2005-12-07 14:30:27.438 PST" Dirty="false" Elapsed="0" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-103365" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=103365" Kind="normal" Label="103365: monitor scrolling activity" LastDate="1139867236627" Notes="" Priority="P4" Reminded="false" ReminderDate="" offlineSyncState="INCOMING"/><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2005-11-23 12:12:49.24 PST" Dirty="false" Elapsed="1922885" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-117775" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=117775" Kind="" Label="117775: navigating back can fail if element in nested class is selected" LastDate="1133576107329" Notes="" Priority="P1" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2005-11-19 17:47:54.926 PST" Dirty="false" Elapsed="14416227" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-116449" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=116449" Kind="" Label="116449: package explorer scrolling on activation" LastDate="1132611848731" Notes="" Priority="P1" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2005-12-07 14:30:27.428 PST" Dirty="false" Elapsed="0" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-102680" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=102680" Kind="" Label="102680: all views should de-register taskscape listeners when deactivated" LastDate="1125370254210" Notes="" Priority="P3" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="false" CreationDate="2005-09-22 13:30:45.296 PDT" Dirty="false" Elapsed="1487540" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-110375" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=110375" Kind="" Label="110375: concurrent modification exception during Java search" LastDate="1135954299415" Notes="" Priority="P4" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2006-02-10 11:36:58.478 PST" Dirty="false" Elapsed="34706105" EndDate="2006-02-16 10:53:00.0 PST" Estimated="0" Handle="https://bugs.eclipse.org/bugs-127123" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=127123" Kind="normal" Label="127123: Mylar does not remember Bugzilla Repository Settings" LastDate="1140105314338" Notes="" Priority="P2" Reminded="false" ReminderDate="" offlineSyncState="INCOMING"/><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2005-11-08 14:01:47.552 PST" Dirty="false" Elapsed="2986639" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-115496" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=115496" Kind="" Label="115496: ApplyMylarToPackageExplorerAction may not be fully initialized" LastDate="1133323740055" Notes="" Priority="P1" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2005-09-08 10:22:13.211 PDT" Dirty="false" Elapsed="2249987" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-109016" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=109016" Kind="" Label="109016: NullPointerException when building configuration" LastDate="1127403592919" Notes="" Priority="P2" Reminded="true" ReminderDate="2005-09-22 18:00:45.996 PDT" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2005-10-16 17:22:59.807 PDT" Dirty="false" Elapsed="93845" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-112751" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=112751" Kind="" Label="112751: temporary zip files don't get deleted" LastDate="1129564611014" Notes="" Priority="P2" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2005-12-07 14:30:27.418 PST" Dirty="false" Elapsed="1750957" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-106930" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=106930" Kind="" Label="106930: Task list is loosing its content after each restart" LastDate="1124994973027" Notes="" Priority="P1" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2006-01-20 16:10:56.490 PST" Dirty="false" Elapsed="974120" EndDate="2006-02-14 21:20:00.0 PST" Estimated="0" Handle="https://bugs.eclipse.org/bugs-122884" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=122884" Kind="normal" Label="122884: Mylar should provide a Milestone field in the Bug entering dialog box." LastDate="1139970596464" Notes="" Priority="P1" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2006-01-13 09:34:46.4 PST" Dirty="false" Elapsed="7028571" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-107487" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=107487" Kind="" Label="107487: add &quot;validate password&quot; to bugzilla prefs page" LastDate="1137188249087" Notes="" Priority="P1" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2005-11-21 19:35:28.154 PST" Dirty="false" Elapsed="91242" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-116869" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=116869" Kind="" Label="116869: Mylar classpath broken when using alt install locations in e3.1.1" LastDate="1134613130129" Notes="" Priority="P2" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2006-02-14 18:01:40.986 PST" Dirty="false" Elapsed="175461" EndDate="2006-02-14 21:07:00.0 PST" Estimated="0" Handle="https://bugs.eclipse.org/bugs-125982" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=125982" Kind="major" Label="125982: [linux] Tooltips don't disappear" LastDate="1139969384952" Notes="" Priority="P2" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2005-09-26 14:46:23.443 PDT" Dirty="false" Elapsed="0" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-110731" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=110731" Kind="" Label="110731: bugzilla task in category fails to activate on startup" LastDate="1128046911717" Notes="" Priority="P2" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="false" CreationDate="2005-11-19 16:41:22.15 PST" Dirty="false" Elapsed="1245737" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-115159" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=115159" Kind="" Label="115159: could not connect to Bugzilla, could not troubleshoot" LastDate="1132630522997" Notes="" Priority="P3" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2005-12-07 14:30:27.418 PST" Dirty="false" Elapsed="0" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-104555" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=104555" Kind="" Label="104555: add mechanism for analyzing statistics per-user" LastDate="1122298957294" Notes="" Priority="P2" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2005-10-18 16:36:05.847 PDT" Dirty="false" Elapsed="8128573" EndDate="" Estimated="3" Handle="https://bugs.eclipse.org/bugs-107457" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=107457" Kind="" Label="107457: Make tasklist saves more eager" LastDate="1133567856655" Notes="" Priority="P1" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2005-09-23 14:53:48.585 PDT" Dirty="false" Elapsed="2931195" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-107810" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=107810" Kind="" Label="107810: toggle of folding can cause file modification when using VSSPlugin" LastDate="1127521801865" Notes="" Priority="P2" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2005-12-07 18:52:38.401 PST" Dirty="false" Elapsed="2477210" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-119785" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=119785" Kind="" Label="119785: Endless flicker loop after CVS exception" LastDate="1134075577625" Notes="" Priority="P1" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="false" CreationDate="2005-12-07 14:30:27.428 PST" Dirty="false" Elapsed="0" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-104340" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=104340" Kind="normal" Label="104340: multiple tasks active not working correctly" LastDate="1139867237619" Notes="" Priority="P4" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2005-09-12 10:32:58.843 PDT" Dirty="false" Elapsed="6981265" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-109317" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=109317" Kind="" Label="109317: inconsistent coloring in when Mylar filter is off" LastDate="1129169570136" Notes="" Priority="P1" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2005-12-07 14:30:27.418 PST" Dirty="false" Elapsed="799029" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-103915" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=103915" Kind="" Label="103915: Parameters are missing from the context assist" LastDate="1121707397366" Notes="" Priority="P1" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2005-11-08 14:24:05.886 PST" Dirty="false" Elapsed="818480" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-115199" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=115199" Kind="" Label="115199: Pause/Resume Capturing Context action should be on the toolbar" LastDate="1131500615341" Notes="" Priority="P2" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="false" CreationDate="2005-10-27 18:42:12.994 PDT" Dirty="false" Elapsed="0" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-114050" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=114050" Kind="normal" Label="114050: support plans in task list" LastDate="1139867264137" Notes="" Priority="P4" Reminded="false" ReminderDate="" offlineSyncState="INCOMING"/><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2005-09-14 12:30:10.968 PDT" Dirty="false" Elapsed="2777286" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-109538" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=109538" Kind="" Label="109538: make active search disable when view is not active" LastDate="1126738790857" Notes="" Priority="P1" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2005-10-03 15:09:03.983 PDT" Dirty="false" Elapsed="10351623" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-111390" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=111390" Kind="" Label="111390: improve outline refresh lainess and ensure that outline does not set selections when link mode is off" LastDate="1128648740968" Notes="" Priority="P1" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="false" CreationDate="2005-09-21 18:53:20.151 PDT" Dirty="false" Elapsed="0" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-110281" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=110281" Kind="normal" Label="110281: move commons dependancies to be on SDK" LastDate="1139867260432" Notes="" Priority="P4" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2005-12-07 14:30:27.428 PST" Dirty="false" Elapsed="0" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-104057" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=104057" Kind="" Label="104057: on startup active task's context is inactive" LastDate="1121707426028" Notes="" Priority="P1" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="false" CreationDate="2006-02-13 12:36:09.662 PST" Dirty="false" Elapsed="107332" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-74795" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=74795" Kind="enhancement" Label="74795: [Viewers] Generic quick filter for large tree-based views" LastDate="1139867290525" Notes="" Priority="P4" Reminded="false" ReminderDate="" offlineSyncState="INCOMING"/><BugzillaReport Active="false" Bugzilla="true" Complete="false" CreationDate="2005-12-07 14:30:27.438 PST" Dirty="false" Elapsed="0" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-104062" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=104062" Kind="enhancement" Label="104062: in &quot;new bug report&quot;, put the previously-submitted to components on top" LastDate="1139867210760" Notes="" Priority="P4" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="false" CreationDate="2006-01-23 15:13:06.832 PST" Dirty="false" Elapsed="0" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-124955" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=124955" Kind="" Label="124955: modifying a task should refresh the containing query category" LastDate="1138061383156" Notes="" Priority="P3" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2005-11-08 11:52:57.262 PST" Dirty="false" Elapsed="0" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-115535" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=115535" Kind="" Label="115535: renamed perspective usage logged incorrectly" LastDate="1138052463590" Notes="" Priority="P2" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2005-10-21 11:41:31.6 PDT" Dirty="false" Elapsed="1539003" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-113394" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=113394" Kind="" Label="113394: refactor common per-user analysis code" LastDate="1129925458584" Notes="" Priority="P1" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2005-10-28 10:43:29.416 PDT" Dirty="false" Elapsed="4510333" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-114156" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=114156" Kind="" Label="114156: create new icons" LastDate="1130534618450" Notes="" Priority="P1" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2006-01-13 09:34:57.391 PST" Dirty="false" Elapsed="0" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-123681" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=123681" Kind="" Label="123681: query categories don't refresh after modification" LastDate="1137188934002" Notes="" Priority="P1" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="false" CreationDate="2005-12-07 14:30:27.448 PST" Dirty="false" Elapsed="74535177" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-103736" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=103736" Kind="enhancement" Label="103736: add interest sorter to problems list" LastDate="1139867210750" Notes="" Priority="P4" Reminded="false" ReminderDate="" offlineSyncState="INCOMING"/><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2006-02-09 14:22:59.134 PST" Dirty="false" Elapsed="0" EndDate="2006-02-16 00:43:00.0 PST" Estimated="0" Handle="https://bugs.eclipse.org/bugs-127182" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=127182" Kind="normal" Label="127182: bugzilla outline missing in generic task editor" LastDate="1139867126599" Notes="" Priority="P1" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2005-12-07 10:20:13.129 PST" Dirty="false" Elapsed="2753429" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-119692" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=119692" Kind="" Label="119692: tooltip showing current task summary on mylar task view icon" LastDate="1133982239215" Notes="" Priority="P3" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2005-11-02 11:45:41.677 PST" Dirty="false" Elapsed="740249" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-114318" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=114318" Kind="" Label="114318: Task in task list disappearing" LastDate="1131081231048" Notes="" Priority="P1" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2005-10-21 13:12:54.942 PDT" Dirty="false" Elapsed="724944" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-113292" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=113292" Kind="" Label="113292: Task summary editor tab for issue report web page" LastDate="1138053048471" Notes="" Priority="P2" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2005-12-07 14:30:27.428 PST" Dirty="false" Elapsed="2090707" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-106690" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=106690" Kind="" Label="106690: add &quot;edit highlighters&quot; button to &quot;choose highlighter&quot; menu" LastDate="1126663733675" Notes="" Priority="P2" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2006-01-13 15:11:00.797 PST" Dirty="false" Elapsed="5109170" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-123845" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=123845" Kind="" Label="123845: provide query page extensibility" LastDate="1138138923398" Notes="" Priority="P1" Reminded="false" ReminderDate="" offlineSyncState="SYNCHRONIZED"/><BugzillaReport Active="false" Bugzilla="true" Complete="true" CreationDate="2005-11-15 19:37:33.720 PST" Dirty="false" Elapsed="0" EndDate="" Estimated="0" Handle="https://bugs.eclipse.org/bugs-116450" IssueURL="https://bugs.eclipse.org/bugs/show_bug.cgi?id=116450" Kind="" Label="116450: making a resource less interesting fails to remove it from the commit set" LastDate="1132277808372" Notes="" Priority="P1" Reminded="false" ReminderDate="" off