diff options
author | spingel | 2011-03-03 00:27:58 +0000 |
---|---|---|
committer | spingel | 2011-03-03 00:27:58 +0000 |
commit | 6f8fd9d3c75567061716b7ffb6a38c7964d46d7e (patch) | |
tree | 40d22cf6e4adbec8251516e2b70a43b8e8185829 /org.eclipse.mylyn.tasks.core | |
parent | d4ec53f9f4b7977fd909cf2423ad2a5bbc4a3209 (diff) | |
download | org.eclipse.mylyn.tasks-6f8fd9d3c75567061716b7ffb6a38c7964d46d7e.tar.gz org.eclipse.mylyn.tasks-6f8fd9d3c75567061716b7ffb6a38c7964d46d7e.tar.xz org.eclipse.mylyn.tasks-6f8fd9d3c75567061716b7ffb6a38c7964d46d7e.zip |
NEW - bug 316233: reformat source code
https://bugs.eclipse.org/bugs/show_bug.cgi?id=316233
Diffstat (limited to 'org.eclipse.mylyn.tasks.core')
11 files changed, 44 insertions, 36 deletions
diff --git a/org.eclipse.mylyn.tasks.core/.settings/org.eclipse.jdt.core.prefs b/org.eclipse.mylyn.tasks.core/.settings/org.eclipse.jdt.core.prefs index fbac23913..bbaca6d64 100644 --- a/org.eclipse.mylyn.tasks.core/.settings/org.eclipse.jdt.core.prefs +++ b/org.eclipse.mylyn.tasks.core/.settings/org.eclipse.jdt.core.prefs @@ -1,4 +1,4 @@ -#Tue May 12 20:42:44 PDT 2009 +#Wed Mar 02 16:00:06 PST 2011 eclipse.preferences.version=1 org.eclipse.jdt.core.codeComplete.argumentPrefixes= org.eclipse.jdt.core.codeComplete.argumentSuffixes= @@ -81,6 +81,7 @@ org.eclipse.jdt.core.compiler.taskPriorities=NORMAL,HIGH,NORMAL org.eclipse.jdt.core.compiler.taskTags=TODO,FIXME,XXX org.eclipse.jdt.core.formatter.align_type_members_on_columns=false org.eclipse.jdt.core.formatter.alignment_for_arguments_in_allocation_expression=16 +org.eclipse.jdt.core.formatter.alignment_for_arguments_in_annotation=0 org.eclipse.jdt.core.formatter.alignment_for_arguments_in_enum_constant=16 org.eclipse.jdt.core.formatter.alignment_for_arguments_in_explicit_constructor_call=16 org.eclipse.jdt.core.formatter.alignment_for_arguments_in_method_invocation=16 @@ -88,9 +89,10 @@ org.eclipse.jdt.core.formatter.alignment_for_arguments_in_qualified_allocation_e 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_conditional_expression=48 org.eclipse.jdt.core.formatter.alignment_for_enum_constants=0 org.eclipse.jdt.core.formatter.alignment_for_expressions_in_array_initializer=16 +org.eclipse.jdt.core.formatter.alignment_for_method_declaration=0 org.eclipse.jdt.core.formatter.alignment_for_multiple_fields=16 org.eclipse.jdt.core.formatter.alignment_for_parameters_in_constructor_declaration=16 org.eclipse.jdt.core.formatter.alignment_for_parameters_in_method_declaration=16 @@ -137,10 +139,16 @@ org.eclipse.jdt.core.formatter.comment.indent_root_tags=true org.eclipse.jdt.core.formatter.comment.insert_new_line_before_root_tags=insert org.eclipse.jdt.core.formatter.comment.insert_new_line_for_parameter=insert org.eclipse.jdt.core.formatter.comment.line_length=120 +org.eclipse.jdt.core.formatter.comment.new_lines_at_block_boundaries=true +org.eclipse.jdt.core.formatter.comment.new_lines_at_javadoc_boundaries=true +org.eclipse.jdt.core.formatter.comment.preserve_white_space_between_code_and_line_comments=false org.eclipse.jdt.core.formatter.compact_else_if=true org.eclipse.jdt.core.formatter.continuation_indentation=2 org.eclipse.jdt.core.formatter.continuation_indentation_for_array_initializer=2 +org.eclipse.jdt.core.formatter.disabling_tag=@formatter\:off +org.eclipse.jdt.core.formatter.enabling_tag=@formatter\:on org.eclipse.jdt.core.formatter.format_guardian_clause_on_one_line=false +org.eclipse.jdt.core.formatter.format_line_comment_starting_on_first_column=true org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_annotation_declaration_header=true org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_constant_header=true org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_declaration_header=true @@ -153,9 +161,14 @@ org.eclipse.jdt.core.formatter.indent_switchstatements_compare_to_cases=true org.eclipse.jdt.core.formatter.indent_switchstatements_compare_to_switch=false org.eclipse.jdt.core.formatter.indentation.size=4 org.eclipse.jdt.core.formatter.insert_new_line_after_annotation=insert +org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_field=insert org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_local_variable=insert org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_member=insert -org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_parameter=do not insert +org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_method=insert +org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_package=insert +org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_parameter=insert +org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_type=insert +org.eclipse.jdt.core.formatter.insert_new_line_after_label=do not insert org.eclipse.jdt.core.formatter.insert_new_line_after_opening_brace_in_array_initializer=do not insert org.eclipse.jdt.core.formatter.insert_new_line_at_end_of_file_if_missing=do not insert org.eclipse.jdt.core.formatter.insert_new_line_before_catch_in_try_statement=do not insert @@ -338,5 +351,7 @@ org.eclipse.jdt.core.formatter.number_of_empty_lines_to_preserve=1 org.eclipse.jdt.core.formatter.put_empty_statement_on_new_line=true org.eclipse.jdt.core.formatter.tabulation.char=tab org.eclipse.jdt.core.formatter.tabulation.size=4 +org.eclipse.jdt.core.formatter.use_on_off_tags=false org.eclipse.jdt.core.formatter.use_tabs_only_for_leading_indentations=false org.eclipse.jdt.core.formatter.wrap_before_binary_operator=true +org.eclipse.jdt.core.formatter.wrap_outer_expressions_when_nested=true diff --git a/org.eclipse.mylyn.tasks.core/.settings/org.eclipse.jdt.ui.prefs b/org.eclipse.mylyn.tasks.core/.settings/org.eclipse.jdt.ui.prefs index 8d68e732b..61ac759a4 100644 --- a/org.eclipse.mylyn.tasks.core/.settings/org.eclipse.jdt.ui.prefs +++ b/org.eclipse.mylyn.tasks.core/.settings/org.eclipse.jdt.ui.prefs @@ -1,9 +1,9 @@ -#Thu Sep 11 16:27:18 PDT 2008 +#Wed Mar 02 16:00:04 PST 2011 cleanup_settings_version=2 eclipse.preferences.version=1 editor_save_participant_org.eclipse.jdt.ui.postsavelistener.cleanup=true formatter_profile=_Mylyn based on Eclipse -formatter_settings_version=11 +formatter_settings_version=12 internal.default.compliance=default org.eclipse.jdt.ui.exception.name=e org.eclipse.jdt.ui.gettersetter.use.is=true diff --git a/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/AbstractTaskContainer.java b/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/AbstractTaskContainer.java index 4e25a5d51..888e9f56e 100644 --- a/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/AbstractTaskContainer.java +++ b/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/AbstractTaskContainer.java @@ -64,9 +64,8 @@ public abstract class AbstractTaskContainer extends PlatformObject implements IR } /** - * Removes any cyclic dependencies in children. - * - * TODO: review to make sure that this is too expensive, or move to creation. + * Removes any cyclic dependencies in children. TODO: review to make sure that this is too expensive, or move to + * creation. * * @since 3.0 */ @@ -75,9 +74,7 @@ public abstract class AbstractTaskContainer extends PlatformObject implements IR } /** - * Maxes out at a depth of 10. - * - * TODO: review policy + * Maxes out at a depth of 10. TODO: review policy */ public boolean contains(String handle) { Assert.isNotNull(handle); diff --git a/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/ITaskList.java b/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/ITaskList.java index 5e3992c52..cee04499e 100644 --- a/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/ITaskList.java +++ b/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/ITaskList.java @@ -50,11 +50,8 @@ public interface ITaskList { public abstract void deleteQuery(RepositoryQuery query); /** - * TODO: refactor around querying containers for their tasks - * - * Task is removed from all containers: root, archive, category, and orphan bin - * - * Currently subtasks are not deleted but rather are rather potentially orphaned + * TODO: refactor around querying containers for their tasks Task is removed from all containers: root, archive, + * category, and orphan bin Currently subtasks are not deleted but rather are rather potentially orphaned */ public abstract void deleteTask(ITask task); diff --git a/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/SaxRepositoriesContentHandler.java b/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/SaxRepositoriesContentHandler.java index 220a3d5a4..81bc09b4e 100644 --- a/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/SaxRepositoriesContentHandler.java +++ b/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/SaxRepositoriesContentHandler.java @@ -30,7 +30,7 @@ public class SaxRepositoriesContentHandler extends DefaultHandler { private final Set<TaskRepository> taskRepositories = new HashSet<TaskRepository>(); - @SuppressWarnings( { "deprecation", "restriction" }) + @SuppressWarnings({ "deprecation", "restriction" }) @Override public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException { try { diff --git a/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/SaxRepositoriesWriter.java b/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/SaxRepositoriesWriter.java index 1bae4650a..b3e2ee66b 100644 --- a/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/SaxRepositoriesWriter.java +++ b/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/SaxRepositoriesWriter.java @@ -145,7 +145,7 @@ public class SaxRepositoriesWriter { return errorHandler; } - @SuppressWarnings( { "deprecation", "restriction" }) + @SuppressWarnings({ "deprecation", "restriction" }) public void parse(InputSource input) throws IOException, SAXException { if (!(input instanceof TaskRepositoriesInputSource)) { throw new SAXException("Can only parse writable input sources"); //$NON-NLS-1$ diff --git a/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/externalization/DelegatingTaskExternalizer.java b/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/externalization/DelegatingTaskExternalizer.java index c843e0a7f..707610c77 100644 --- a/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/externalization/DelegatingTaskExternalizer.java +++ b/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/externalization/DelegatingTaskExternalizer.java @@ -63,14 +63,10 @@ import org.w3c.dom.NodeList; /** * Subclass externalizers must override the get*TagName() methods for the types of externalized items they support to - * ensure that their externalizer does not externalize tasks from other connectors incorrectly. - * - * These tag names uniquely identify the externalizer to be used to read the task from externalized form on disk. - * - * The canCreateElementFor methods specify which tasks the externalizer should write to disk. - * - * The TaskList is read on startup, so externalizers extending this should not perform any slow (i.e., network) - * operations when overriding methods. + * ensure that their externalizer does not externalize tasks from other connectors incorrectly. These tag names uniquely + * identify the externalizer to be used to read the task from externalized form on disk. The canCreateElementFor methods + * specify which tasks the externalizer should write to disk. The TaskList is read on startup, so externalizers + * extending this should not perform any slow (i.e., network) operations when overriding methods. * * @author Mik Kersten * @author Steffen Pingel @@ -339,7 +335,7 @@ public final class DelegatingTaskExternalizer { } } - @SuppressWarnings( { "restriction" }) + @SuppressWarnings({ "restriction" }) private String stripControlCharacters(String text) { if (text == null) { return ""; //$NON-NLS-1$ diff --git a/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/sync/SubmitTaskAttachmentJob.java b/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/sync/SubmitTaskAttachmentJob.java index 7944131ed..ba0938377 100644 --- a/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/sync/SubmitTaskAttachmentJob.java +++ b/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/sync/SubmitTaskAttachmentJob.java @@ -96,8 +96,8 @@ public class SubmitTaskAttachmentJob extends SubmitJob { Policy.subMonitorFor(monitor, 100)); fireTaskSubmitted(monitor); monitor.subTask(Messages.SubmitTaskAttachmentJob_Updating_task); - TaskData taskData = connector.getTaskData(taskRepository, task.getTaskId(), Policy.subMonitorFor(monitor, - 100)); + TaskData taskData = connector.getTaskData(taskRepository, task.getTaskId(), + Policy.subMonitorFor(monitor, 100)); taskDataManager.putUpdatedTaskData(task, taskData, true); fireTaskSynchronized(monitor); } catch (CoreException e) { diff --git a/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/sync/SubmitTaskJob.java b/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/sync/SubmitTaskJob.java index 2c9dd1589..d65b7f475 100644 --- a/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/sync/SubmitTaskJob.java +++ b/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/sync/SubmitTaskJob.java @@ -79,8 +79,8 @@ public class SubmitTaskJob extends SubmitJob { // post task data AbstractTaskDataHandler taskDataHandler = connector.getTaskDataHandler(); monitor.subTask(Messages.SubmitTaskJob_Sending_data); - response = taskDataHandler.postTaskData(taskRepository, taskData, oldAttributes, Policy.subMonitorFor( - monitor, 100)); + response = taskDataHandler.postTaskData(taskRepository, taskData, oldAttributes, + Policy.subMonitorFor(monitor, 100)); if (response == null || response.getTaskId() == null) { throw new CoreException(new RepositoryStatus(IStatus.ERROR, ITasksCoreConstants.ID_PLUGIN, RepositoryStatus.ERROR_INTERNAL, @@ -91,8 +91,8 @@ public class SubmitTaskJob extends SubmitJob { // update task in task list String taskId = response.getTaskId(); monitor.subTask(Messages.SubmitTaskJob_Receiving_data); - TaskData updatedTaskData = connector.getTaskData(taskRepository, taskId, Policy.subMonitorFor(monitor, - 100)); + TaskData updatedTaskData = connector.getTaskData(taskRepository, taskId, + Policy.subMonitorFor(monitor, 100)); task = createTask(monitor, updatedTaskData); taskDataManager.putSubmittedTaskData(task, updatedTaskData); fireTaskSynchronized(monitor); diff --git a/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/sync/SynchronizeTasksJob.java b/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/sync/SynchronizeTasksJob.java index 8a3333ace..3348f171d 100644 --- a/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/sync/SynchronizeTasksJob.java +++ b/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/sync/SynchronizeTasksJob.java @@ -169,7 +169,8 @@ public class SynchronizeTasksJob extends SynchronizationJob { try { task = synchronizeTask(monitor, relation.getTaskId()); } catch (CoreException e) { - String taskKey = (task != null && task.getTaskKey() != null) ? task.getTaskKey() + String taskKey = (task != null && task.getTaskKey() != null) + ? task.getTaskKey() : relation.getTaskId(); StatusHandler.log(new Status(IStatus.ERROR, ITasksCoreConstants.ID_PLUGIN, NLS.bind( Messages.SynchronizeTasksJob_Synchronization_of_task_ID_REPOSITORY_failed, diff --git a/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/TaskRepository.java b/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/TaskRepository.java index 7d11b0455..5a11b998d 100644 --- a/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/TaskRepository.java +++ b/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/TaskRepository.java @@ -705,7 +705,8 @@ public final class TaskRepository extends PlatformObject { } public void setCharacterEncoding(String characterEncoding) { - properties.put(IRepositoryConstants.PROPERTY_ENCODING, characterEncoding == null ? DEFAULT_CHARACTER_ENCODING + properties.put(IRepositoryConstants.PROPERTY_ENCODING, characterEncoding == null + ? DEFAULT_CHARACTER_ENCODING : characterEncoding); } @@ -826,7 +827,8 @@ public final class TaskRepository extends PlatformObject { } public void setTimeZoneId(String timeZoneId) { - setProperty(IRepositoryConstants.PROPERTY_TIMEZONE, timeZoneId == null ? TimeZone.getDefault().getID() + setProperty(IRepositoryConstants.PROPERTY_TIMEZONE, timeZoneId == null + ? TimeZone.getDefault().getID() : timeZoneId); } |