Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorspingel2011-03-03 00:27:58 +0000
committerspingel2011-03-03 00:27:58 +0000
commit6f8fd9d3c75567061716b7ffb6a38c7964d46d7e (patch)
tree40d22cf6e4adbec8251516e2b70a43b8e8185829 /org.eclipse.mylyn.tasks.ui
parentd4ec53f9f4b7977fd909cf2423ad2a5bbc4a3209 (diff)
downloadorg.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.ui')
-rw-r--r--org.eclipse.mylyn.tasks.ui/.settings/org.eclipse.jdt.core.prefs21
-rw-r--r--org.eclipse.mylyn.tasks.ui/.settings/org.eclipse.jdt.ui.prefs4
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/DialogErrorReporter.java3
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/MoveToCategoryMenuContributor.java3
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/OpenRepositoryTaskJob.java4
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/TaskListNotificationManager.java5
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/TaskRepositoryUtil.java15
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/actions/AbstractChangeCompletionAction.java4
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/actions/ClearOutgoingAction.java10
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/actions/CloneTaskAction.java5
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/actions/CompareAttachmentsAction.java3
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/actions/ExportAction.java11
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/actions/FilterCompletedTasksAction.java10
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/actions/GroupSubTasksAction.java10
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/actions/NewCategoryAction.java3
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/actions/NewTaskFromSelectionAction.java3
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/actions/SynchronizeAutomaticallyAction.java10
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/actions/TaskSelectionDialog.java5
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/dialogs/AbstractWorkingSetDialogCOPY.java10
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/dialogs/TaskRepositoryCredentialsDialog.java23
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/AbstractHyperlinkTextPresentationManager.java3
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/AbstractTaskEditorSection.java6
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/AttachmentSizeFormatter.java6
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/AttachmentTableLabelProvider.java3
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/TaskAttachmentDropListener.java3
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/TaskEditorAttributePart.java3
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/TaskEditorExtensionSettingsContribution.java3
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/TaskEditorExtensions.java3
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/TaskEditorOutlineNode.java3
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/TaskEditorPeoplePart.java5
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/TaskEditorSummaryPart.java18
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/notifications/TaskListNotificationPopup.java3
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/util/TaskComparator.java6
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/views/AbstractTaskListPresentation.java5
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/views/PriorityDropDownAction.java25
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/views/TaskListFilteredTree.java5
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/wizards/AttachmentPreviewPage.java7
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/wizards/LocalRepositorySettingsPage.java3
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/TaskElementLabelProvider.java3
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/editors/AttributeEditorToolkit.java3
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/editors/TaskEditor.java9
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/wizards/AbstractTaskRepositoryPageContribution.java12
42 files changed, 183 insertions, 116 deletions
diff --git a/org.eclipse.mylyn.tasks.ui/.settings/org.eclipse.jdt.core.prefs b/org.eclipse.mylyn.tasks.ui/.settings/org.eclipse.jdt.core.prefs
index 88ef1a8ba..bbaca6d64 100644
--- a/org.eclipse.mylyn.tasks.ui/.settings/org.eclipse.jdt.core.prefs
+++ b/org.eclipse.mylyn.tasks.ui/.settings/org.eclipse.jdt.core.prefs
@@ -1,4 +1,4 @@
-#Sat Jun 27 14:22:12 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.ui/.settings/org.eclipse.jdt.ui.prefs b/org.eclipse.mylyn.tasks.ui/.settings/org.eclipse.jdt.ui.prefs
index 8d68e732b..5f565e6ff 100644
--- a/org.eclipse.mylyn.tasks.ui/.settings/org.eclipse.jdt.ui.prefs
+++ b/org.eclipse.mylyn.tasks.ui/.settings/org.eclipse.jdt.ui.prefs
@@ -1,9 +1,9 @@
-#Thu Sep 11 16:27:18 PDT 2008
+#Wed Mar 02 16:00:06 PST 2011
cleanup_settings_version=2
eclipse.preferences.version=1
editor_save_participant_org.eclipse.jdt.ui.postsavelistener.cleanup=true
formatter_profile=_Mylyn based on Eclipse
-formatter_settings_version=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.ui/src/org/eclipse/mylyn/internal/tasks/ui/DialogErrorReporter.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/DialogErrorReporter.java
index 5678368be..f7f581e4d 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/DialogErrorReporter.java
+++ b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/DialogErrorReporter.java
@@ -45,7 +45,8 @@ public class DialogErrorReporter extends AbstractErrorReporter {
if (!errorDialogOpen) {
errorDialogOpen = true;
Shell shell = Display.getDefault().getActiveShell();
- ErrorDialog.openError(shell, Messages.DialogErrorReporter_Mylyn_Error, Messages.DialogErrorReporter_Please_report_the_following_error_at, status);
+ ErrorDialog.openError(shell, Messages.DialogErrorReporter_Mylyn_Error,
+ Messages.DialogErrorReporter_Please_report_the_following_error_at, status);
}
} finally {
errorDialogOpen = false;
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/MoveToCategoryMenuContributor.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/MoveToCategoryMenuContributor.java
index d10c298f2..59e155f6d 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/MoveToCategoryMenuContributor.java
+++ b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/MoveToCategoryMenuContributor.java
@@ -37,7 +37,8 @@ import org.eclipse.mylyn.tasks.ui.TasksUiImages;
public class MoveToCategoryMenuContributor implements IDynamicSubMenuContributor {
public MenuManager getSubMenuManager(final List<IRepositoryElement> selectedElements) {
- final MenuManager subMenuManager = new MenuManager(Messages.MoveToCategoryMenuContributor_Set_Category_Menu_Item);
+ final MenuManager subMenuManager = new MenuManager(
+ Messages.MoveToCategoryMenuContributor_Set_Category_Menu_Item);
// Compute selected tasks
List<AbstractTask> selectedTasks = new ArrayList<AbstractTask>(selectedElements.size());
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/OpenRepositoryTaskJob.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/OpenRepositoryTaskJob.java
index ab3db156f..97b09de6f 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/OpenRepositoryTaskJob.java
+++ b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/OpenRepositoryTaskJob.java
@@ -91,7 +91,9 @@ public class OpenRepositoryTaskJob extends Job {
if (repository == null) {
PlatformUI.getWorkbench().getDisplay().asyncExec(new Runnable() {
public void run() {
- MessageDialog.openError(null, Messages.OpenRepositoryTaskJob_Repository_Not_Found,
+ MessageDialog.openError(
+ null,
+ Messages.OpenRepositoryTaskJob_Repository_Not_Found,
MessageFormat.format(
Messages.OpenRepositoryTaskJob_Could_not_find_repository_configuration_for_X,
repositoryUrl)
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/TaskListNotificationManager.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/TaskListNotificationManager.java
index 3e7236bcf..bb2a48d10 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/TaskListNotificationManager.java
+++ b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/TaskListNotificationManager.java
@@ -140,8 +140,9 @@ public class TaskListNotificationManager implements IPropertyChangeListener {
}
public void startNotification(long initialStartupTime) {
- if (TasksUiPlugin.getDefault().getPreferenceStore().getBoolean(
- ITasksUiPreferenceConstants.NOTIFICATIONS_ENABLED)) {
+ if (TasksUiPlugin.getDefault()
+ .getPreferenceStore()
+ .getBoolean(ITasksUiPreferenceConstants.NOTIFICATIONS_ENABLED)) {
if (!openJob.cancel()) {
try {
openJob.join();
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/TaskRepositoryUtil.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/TaskRepositoryUtil.java
index 6a65e1b94..712635dee 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/TaskRepositoryUtil.java
+++ b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/TaskRepositoryUtil.java
@@ -26,8 +26,9 @@ public class TaskRepositoryUtil {
* @since 2.1
*/
public static boolean isAddAutomaticallyDisabled(String repositoryUrl) {
- String deletedTemplates = TasksUiPlugin.getDefault().getPreferenceStore().getString(
- ITasksUiPreferenceConstants.TEMPLATES_DELETED);
+ String deletedTemplates = TasksUiPlugin.getDefault()
+ .getPreferenceStore()
+ .getString(ITasksUiPreferenceConstants.TEMPLATES_DELETED);
String[] templateUrls = deletedTemplates.split("\\" + ITasksUiPreferenceConstants.TEMPLATES_DELETED_DELIM); //$NON-NLS-1$
for (String deletedUrl : templateUrls) {
if (deletedUrl.equalsIgnoreCase(repositoryUrl)) {
@@ -44,11 +45,13 @@ public class TaskRepositoryUtil {
*/
public static void disableAddAutomatically(String repositoryUrl) {
if (!isAddAutomaticallyDisabled(repositoryUrl) && isAddAutomatically(repositoryUrl)) {
- String deletedTemplates = TasksUiPlugin.getDefault().getPreferenceStore().getString(
- ITasksUiPreferenceConstants.TEMPLATES_DELETED);
+ String deletedTemplates = TasksUiPlugin.getDefault()
+ .getPreferenceStore()
+ .getString(ITasksUiPreferenceConstants.TEMPLATES_DELETED);
deletedTemplates += ITasksUiPreferenceConstants.TEMPLATES_DELETED_DELIM + repositoryUrl;
- TasksUiPlugin.getDefault().getPreferenceStore().setValue(ITasksUiPreferenceConstants.TEMPLATES_DELETED,
- deletedTemplates);
+ TasksUiPlugin.getDefault()
+ .getPreferenceStore()
+ .setValue(ITasksUiPreferenceConstants.TEMPLATES_DELETED, deletedTemplates);
TasksUiPlugin.getDefault().savePluginPreferences();
}
}
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/actions/AbstractChangeCompletionAction.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/actions/AbstractChangeCompletionAction.java
index a0e6c9319..e0b6ca59e 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/actions/AbstractChangeCompletionAction.java
+++ b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/actions/AbstractChangeCompletionAction.java
@@ -39,8 +39,8 @@ public class AbstractChangeCompletionAction extends Action {
}
protected String generateMessage(List<AbstractTask> toComplete, String status) {
- String message = MessageFormat.format(Messages.AbstractChangeCompletionAction_Mark_selected_local_tasks_X, status)
- + "\n\n"; //$NON-NLS-1$
+ String message = MessageFormat.format(Messages.AbstractChangeCompletionAction_Mark_selected_local_tasks_X,
+ status) + "\n\n"; //$NON-NLS-1$
int i = 0;
for (ITask task : toComplete) {
i++;
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/actions/ClearOutgoingAction.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/actions/ClearOutgoingAction.java
index e43a91689..dd9307b1c 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/actions/ClearOutgoingAction.java
+++ b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/actions/ClearOutgoingAction.java
@@ -76,10 +76,9 @@ public class ClearOutgoingAction extends Action {
}
if (toClear.size() > 0) {
AbstractTask task = toClear.get(0);
- boolean confirm = MessageDialog.openConfirm(
- null,
- Messages.ClearOutgoingAction_Confirm_discard, Messages.ClearOutgoingAction_Discard_all_outgoing_changes_ + "\n\n" //$NON-NLS-1$
- + task.getSummary());
+ boolean confirm = MessageDialog.openConfirm(null, Messages.ClearOutgoingAction_Confirm_discard,
+ Messages.ClearOutgoingAction_Discard_all_outgoing_changes_ + "\n\n" //$NON-NLS-1$
+ + task.getSummary());
if (confirm) {
if (taskEditorPage != null) {
taskEditorPage.doSave(null);
@@ -87,8 +86,7 @@ public class ClearOutgoingAction extends Action {
try {
TasksUi.getTaskDataManager().discardEdits(task);
} catch (CoreException e) {
- TasksUiInternal.displayStatus(
- Messages.ClearOutgoingAction_Clear_outgoing_failed, e.getStatus());
+ TasksUiInternal.displayStatus(Messages.ClearOutgoingAction_Clear_outgoing_failed, e.getStatus());
}
}
}
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/actions/CloneTaskAction.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/actions/CloneTaskAction.java
index 63bd133f3..ea9e68f64 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/actions/CloneTaskAction.java
+++ b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/actions/CloneTaskAction.java
@@ -92,8 +92,9 @@ public class CloneTaskAction extends BaseSelectionListenerAction implements IVie
((DefaultTaskMapping) taskSelection).setDescription(description + "\n\n" //$NON-NLS-1$
+ mapping.getDescription());
- TaskAttribute attrDescription = mapping.getTaskData().getRoot().getMappedAttribute(
- TaskAttribute.DESCRIPTION);
+ TaskAttribute attrDescription = mapping.getTaskData()
+ .getRoot()
+ .getMappedAttribute(TaskAttribute.DESCRIPTION);
if (attrDescription != null) {
attrDescription.getMetaData().setReadOnly(false);
}
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/actions/CompareAttachmentsAction.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/actions/CompareAttachmentsAction.java
index fa60a2717..135b6d237 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/actions/CompareAttachmentsAction.java
+++ b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/actions/CompareAttachmentsAction.java
@@ -87,7 +87,8 @@ public class CompareAttachmentsAction extends BaseSelectionListenerAction implem
@Override
public String getTitle() {
- return Messages.CompareAttachmentsAction_Compare__ + attachment1.getFileName() + " - " + attachment2.getFileName() + ")"; //$NON-NLS-1$ //$NON-NLS-2$
+ return Messages.CompareAttachmentsAction_Compare__ + attachment1.getFileName()
+ + " - " + attachment2.getFileName() + ")"; //$NON-NLS-1$ //$NON-NLS-2$
}
@Override
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/actions/ExportAction.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/actions/ExportAction.java
index d6703a1a1..7da3b1a01 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/actions/ExportAction.java
+++ b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/actions/ExportAction.java
@@ -47,7 +47,8 @@ public class ExportAction implements IViewActionDelegate {
public void run(IAction action) {
if (selection.isEmpty() || !(selection instanceof StructuredSelection)) {
- MessageDialog.openError(WorkbenchUtil.getShell(), Messages.ExportAction_Dialog_Title, Messages.ExportAction_Nothing_selected);
+ MessageDialog.openError(WorkbenchUtil.getShell(), Messages.ExportAction_Dialog_Title,
+ Messages.ExportAction_Nothing_selected);
return;
}
@@ -60,8 +61,8 @@ public class ExportAction implements IViewActionDelegate {
File file = new File(path);
// Prompt the user to confirm if save operation will cause an overwrite
if (file.exists()) {
- if (!MessageDialog.openConfirm(WorkbenchUtil.getShell(), Messages.ExportAction_Dialog_Title, NLS.bind(
- Messages.ExportAction_X_exists_Do_you_wish_to_overwrite, file.getPath()))) {
+ if (!MessageDialog.openConfirm(WorkbenchUtil.getShell(), Messages.ExportAction_Dialog_Title,
+ NLS.bind(Messages.ExportAction_X_exists_Do_you_wish_to_overwrite, file.getPath()))) {
return;
}
}
@@ -70,8 +71,8 @@ public class ExportAction implements IViewActionDelegate {
} catch (CoreException e) {
StatusHandler.log(new Status(IStatus.ERROR, TasksUiPlugin.ID_PLUGIN,
"Problems encountered during export", e)); //$NON-NLS-1$
- TasksUiInternal.displayStatus(Messages.ExportAction_Dialog_Title, new MultiStatus(ITasksCoreConstants.ID_PLUGIN, 0,
- new IStatus[] { e.getStatus() },
+ TasksUiInternal.displayStatus(Messages.ExportAction_Dialog_Title, new MultiStatus(
+ ITasksCoreConstants.ID_PLUGIN, 0, new IStatus[] { e.getStatus() },
Messages.ExportAction_Problems_encountered, e));
}
}
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/actions/FilterCompletedTasksAction.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/actions/FilterCompletedTasksAction.java
index 4824f09d9..acdd833be 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/actions/FilterCompletedTasksAction.java
+++ b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/actions/FilterCompletedTasksAction.java
@@ -32,14 +32,16 @@ public class FilterCompletedTasksAction extends Action {
setToolTipText(Messages.FilterCompletedTasksAction_Filter_Completed_Tasks);
setId(ID);
setImageDescriptor(CommonImages.FILTER_COMPLETE);
- setChecked(TasksUiPlugin.getDefault().getPreferenceStore().contains(
- ITasksUiPreferenceConstants.FILTER_COMPLETE_MODE));
+ setChecked(TasksUiPlugin.getDefault()
+ .getPreferenceStore()
+ .contains(ITasksUiPreferenceConstants.FILTER_COMPLETE_MODE));
}
@Override
public void run() {
- TasksUiPlugin.getDefault().getPreferenceStore().setValue(ITasksUiPreferenceConstants.FILTER_COMPLETE_MODE,
- isChecked());
+ TasksUiPlugin.getDefault()
+ .getPreferenceStore()
+ .setValue(ITasksUiPreferenceConstants.FILTER_COMPLETE_MODE, isChecked());
if (isChecked()) {
view.addFilter(view.getCompleteFilter());
} else {
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/actions/GroupSubTasksAction.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/actions/GroupSubTasksAction.java
index 6086dc93b..061db4e14 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/actions/GroupSubTasksAction.java
+++ b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/actions/GroupSubTasksAction.java
@@ -32,14 +32,16 @@ public class GroupSubTasksAction extends Action {
setToolTipText(Messages.GroupSubTasksAction_Group_Subtasks);
setId(ID);
// setImageDescriptor(TasksUiImages.FILTER_COMPLETE);
- setChecked(TasksUiPlugin.getDefault().getPreferenceStore().getBoolean(
- ITasksUiPreferenceConstants.GROUP_SUBTASKS));
+ setChecked(TasksUiPlugin.getDefault()
+ .getPreferenceStore()
+ .getBoolean(ITasksUiPreferenceConstants.GROUP_SUBTASKS));
}
@Override
public void run() {
- TasksUiPlugin.getDefault().getPreferenceStore().setValue(ITasksUiPreferenceConstants.GROUP_SUBTASKS,
- isChecked());
+ TasksUiPlugin.getDefault()
+ .getPreferenceStore()
+ .setValue(ITasksUiPreferenceConstants.GROUP_SUBTASKS, isChecked());
// TODO: refresh not getting rid of subtasks
view.refresh(true);
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/actions/NewCategoryAction.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/actions/NewCategoryAction.java
index 3242693b3..846c37233 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/actions/NewCategoryAction.java
+++ b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/actions/NewCategoryAction.java
@@ -57,7 +57,8 @@ public class NewCategoryAction extends Action implements IViewActionDelegate {
public TaskCategory createCategory() {
InputDialog dialog = new InputDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(),
- Messages.NewCategoryAction_Enter_name, Messages.NewCategoryAction_Enter_a_name_for_the_Category, "", null); //$NON-NLS-1$
+ Messages.NewCategoryAction_Enter_name, Messages.NewCategoryAction_Enter_a_name_for_the_Category,
+ "", null); //$NON-NLS-1$
int dialogResult = dialog.open();
if (dialogResult == Window.OK) {
String name = dialog.getValue();
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/actions/NewTaskFromSelectionAction.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/actions/NewTaskFromSelectionAction.java
index 0d8aaab82..1dd62704f 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/actions/NewTaskFromSelectionAction.java
+++ b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/actions/NewTaskFromSelectionAction.java
@@ -53,7 +53,8 @@ public class NewTaskFromSelectionAction extends Action {
@Override
public void run() {
if (taskMapping == null) {
- MessageDialog.openError(null, Messages.NewTaskFromSelectionAction_New_Task_from_Selection, Messages.NewTaskFromSelectionAction_Nothing_selected_to_create_task_from);
+ MessageDialog.openError(null, Messages.NewTaskFromSelectionAction_New_Task_from_Selection,
+ Messages.NewTaskFromSelectionAction_Nothing_selected_to_create_task_from);
return;
}
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/actions/SynchronizeAutomaticallyAction.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/actions/SynchronizeAutomaticallyAction.java
index a84949799..bcd5ee234 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/actions/SynchronizeAutomaticallyAction.java
+++ b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/actions/SynchronizeAutomaticallyAction.java
@@ -26,13 +26,15 @@ public class SynchronizeAutomaticallyAction extends Action {
setText(Messages.SynchronizeAutomaticallyAction_Synchronize_Automatically);
setToolTipText(Messages.SynchronizeAutomaticallyAction_Synchronize_Automatically);
setId(ID);
- setChecked(TasksUiPlugin.getDefault().getPreferenceStore().getBoolean(
- ITasksUiPreferenceConstants.REPOSITORY_SYNCH_SCHEDULE_ENABLED));
+ setChecked(TasksUiPlugin.getDefault()
+ .getPreferenceStore()
+ .getBoolean(ITasksUiPreferenceConstants.REPOSITORY_SYNCH_SCHEDULE_ENABLED));
}
@Override
public void run() {
- TasksUiPlugin.getDefault().getPreferenceStore().setValue(
- ITasksUiPreferenceConstants.REPOSITORY_SYNCH_SCHEDULE_ENABLED, isChecked());
+ TasksUiPlugin.getDefault()
+ .getPreferenceStore()
+ .setValue(ITasksUiPreferenceConstants.REPOSITORY_SYNCH_SCHEDULE_ENABLED, isChecked());
}
}
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/actions/TaskSelectionDialog.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/actions/TaskSelectionDialog.java
index 63b2ff28c..a59ace76e 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/actions/TaskSelectionDialog.java
+++ b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/actions/TaskSelectionDialog.java
@@ -112,8 +112,9 @@ public class TaskSelectionDialog extends FilteredItemsSelectionDialog {
@Override
public void run() {
- IWorkingSetEditWizard wizard = PlatformUI.getWorkbench().getWorkingSetManager().createWorkingSetEditWizard(
- selectedWorkingSet);
+ IWorkingSetEditWizard wizard = PlatformUI.getWorkbench()
+ .getWorkingSetManager()
+ .createWorkingSetEditWizard(selectedWorkingSet);
if (wizard != null) {
WizardDialog dlg = new WizardDialog(getShell(), wizard);
dlg.open();
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/dialogs/AbstractWorkingSetDialogCOPY.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/dialogs/AbstractWorkingSetDialogCOPY.java
index 62c1364f9..45ebbe09d 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/dialogs/AbstractWorkingSetDialogCOPY.java
+++ b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/dialogs/AbstractWorkingSetDialogCOPY.java
@@ -219,8 +219,9 @@ public abstract class AbstractWorkingSetDialogCOPY extends SelectionDialog imple
editedWorkingSets.remove(editWorkingSet);
}
dialog.create();
- PlatformUI.getWorkbench().getHelpSystem().setHelp(dialog.getShell(),
- IWorkbenchHelpContextIds.WORKING_SET_EDIT_WIZARD);
+ PlatformUI.getWorkbench()
+ .getHelpSystem()
+ .setHelp(dialog.getShell(), IWorkbenchHelpContextIds.WORKING_SET_EDIT_WIZARD);
if (dialog.open() == Window.OK) {
editWorkingSet = wizard.getSelection();
availableWorkingSetsChanged();
@@ -247,8 +248,9 @@ public abstract class AbstractWorkingSetDialogCOPY extends SelectionDialog imple
WizardDialog dialog = new WizardDialog(getShell(), wizard);
dialog.create();
- PlatformUI.getWorkbench().getHelpSystem().setHelp(dialog.getShell(),
- IWorkbenchHelpContextIds.WORKING_SET_NEW_WIZARD);
+ PlatformUI.getWorkbench()
+ .getHelpSystem()
+ .setHelp(dialog.getShell(), IWorkbenchHelpContextIds.WORKING_SET_NEW_WIZARD);
if (dialog.open() == Window.OK) {
IWorkingSet workingSet = wizard.getSelection();
manager.addWorkingSet(workingSet);
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/dialogs/TaskRepositoryCredentialsDialog.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/dialogs/TaskRepositoryCredentialsDialog.java
index 13a6b71c0..90c58e001 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/dialogs/TaskRepositoryCredentialsDialog.java
+++ b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/dialogs/TaskRepositoryCredentialsDialog.java
@@ -103,9 +103,11 @@ public class TaskRepositoryCredentialsDialog extends TitleAreaDialog {
}
}
});
- GridDataFactory.fillDefaults().align(SWT.FILL, SWT.CENTER).hint(
- convertHorizontalDLUsToPixels(IDialogConstants.MINIMUM_MESSAGE_AREA_WIDTH), SWT.DEFAULT).grab(true,
- false).applyTo(link);
+ GridDataFactory.fillDefaults()
+ .align(SWT.FILL, SWT.CENTER)
+ .hint(convertHorizontalDLUsToPixels(IDialogConstants.MINIMUM_MESSAGE_AREA_WIDTH), SWT.DEFAULT)
+ .grab(true, false)
+ .applyTo(link);
}
private void createCenterArea(Composite parent) {
@@ -119,8 +121,11 @@ public class TaskRepositoryCredentialsDialog extends TitleAreaDialog {
layout.marginHeight = 0;
layout.marginWidth = 0;
labelComposite.setLayout(layout);
- GridDataFactory.fillDefaults().align(SWT.FILL, SWT.CENTER).grab(true, false).span(2, 1).applyTo(
- labelComposite);
+ GridDataFactory.fillDefaults()
+ .align(SWT.FILL, SWT.CENTER)
+ .grab(true, false)
+ .span(2, 1)
+ .applyTo(labelComposite);
Label label = new Label(labelComposite, SWT.NONE);
label.setImage(TasksUiPlugin.getDefault().getBrandingIcon(taskRepository.getConnectorKind()));
@@ -243,9 +248,11 @@ public class TaskRepositoryCredentialsDialog extends TitleAreaDialog {
label = new Label(composite, SWT.WRAP);
label.setText(Messages.TaskRepositoryCredentialsDialog_Saved_passwords_are_stored_that_is_difficult);
- GridDataFactory.fillDefaults().align(SWT.FILL, SWT.CENTER).hint(
- convertHorizontalDLUsToPixels(IDialogConstants.MINIMUM_MESSAGE_AREA_WIDTH), SWT.DEFAULT).grab(true,
- false).applyTo(label);
+ GridDataFactory.fillDefaults()
+ .align(SWT.FILL, SWT.CENTER)
+ .hint(convertHorizontalDLUsToPixels(IDialogConstants.MINIMUM_MESSAGE_AREA_WIDTH), SWT.DEFAULT)
+ .grab(true, false)
+ .applyTo(label);
}
public String getMessage() {
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/AbstractHyperlinkTextPresentationManager.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/AbstractHyperlinkTextPresentationManager.java
index f87d5b2f7..b8960cc74 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/AbstractHyperlinkTextPresentationManager.java
+++ b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/AbstractHyperlinkTextPresentationManager.java
@@ -137,7 +137,8 @@ public abstract class AbstractHyperlinkTextPresentationManager {
if (regions == null) {
regions = new ArrayList<IRegion>();
}
- regions.add(hyperlink instanceof IHighlightingHyperlink ? ((IHighlightingHyperlink) hyperlink).getHighlightingRegion()
+ regions.add(hyperlink instanceof IHighlightingHyperlink
+ ? ((IHighlightingHyperlink) hyperlink).getHighlightingRegion()
: hyperlink.getHyperlinkRegion());
}
}
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/AbstractTaskEditorSection.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/AbstractTaskEditorSection.java
index ff0782f09..5606101c8 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/AbstractTaskEditorSection.java
+++ b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/AbstractTaskEditorSection.java
@@ -117,8 +117,10 @@ public abstract class AbstractTaskEditorSection extends AbstractTaskEditorPart {
public void run() throws Exception {
part.createControl(sectionClient, toolkit);
if (part.getControl() != null) {
- GridDataFactory.fillDefaults().align(SWT.FILL, SWT.TOP).grab(true, false).applyTo(
- part.getControl());
+ GridDataFactory.fillDefaults()
+ .align(SWT.FILL, SWT.TOP)
+ .grab(true, false)
+ .applyTo(part.getControl());
}
}
});
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/AttachmentSizeFormatter.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/AttachmentSizeFormatter.java
index dc4a946be..1b6aed642 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/AttachmentSizeFormatter.java
+++ b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/AttachmentSizeFormatter.java
@@ -22,8 +22,10 @@ import java.util.Locale;
* This formatter tries to use the most applicable measure unit based on size magnitude, i.e.:
* <p>
* <ul>
- * <li>< 1 KB - byte based: 1 byte, 100 bytes, etc. <li>>= 1 KB and < 1 MB - KB based: 2.00 KB, 100.76 KB <li>>= 1 MB
- * and < 1 GB - MB based: 1.00 MB, 33.33 MB <li>>= 1 GB - GB based: 2.00 GB
+ * <li>< 1 KB - byte based: 1 byte, 100 bytes, etc.
+ * <li>>=1 KB and < 1 MB - KB based: 2.00 KB, 100.76 KB
+ * <li>>=1 MB and < 1 GB - MB based: 1.00 MB, 33.33 MB
+ * <li>>=1 GB - GB based: 2.00 GB
* </ul>
* <p>
* This formatter assumes 1 KB == 1024 bytes, <strong>NOT</strong> 1000 bytes.
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/AttachmentTableLabelProvider.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/AttachmentTableLabelProvider.java
index d144011e8..e9df06fbb 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/AttachmentTableLabelProvider.java
+++ b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/AttachmentTableLabelProvider.java
@@ -117,7 +117,8 @@ public class AttachmentTableLabelProvider extends ColumnLabelProvider {
case 3:
return (attachment.getAuthor() != null) ? attachment.getAuthor().toString() : ""; //$NON-NLS-1$
case 4:
- return (attachment.getCreationDate() != null) ? EditorUtil.formatDateTime(attachment.getCreationDate())
+ return (attachment.getCreationDate() != null)
+ ? EditorUtil.formatDateTime(attachment.getCreationDate())
: ""; //$NON-NLS-1$
case 5:
// FIXME add id to ITaskAttachment
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/TaskAttachmentDropListener.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/TaskAttachmentDropListener.java
index 58e3b05a0..f2db46ee2 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/TaskAttachmentDropListener.java
+++ b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/TaskAttachmentDropListener.java
@@ -96,7 +96,8 @@ public class TaskAttachmentDropListener implements DropTargetListener {
NewAttachmentWizardDialog dialog = EditorUtil.openNewAttachmentWizard(page, null,
new FileTaskAttachmentSource(file));
if (files.length > 1) {
- dialog.setMessage(Messages.TaskAttachmentDropListener_Note_that_only_the_first_file_dragged_will_be_attached,
+ dialog.setMessage(
+ Messages.TaskAttachmentDropListener_Note_that_only_the_first_file_dragged_will_be_attached,
IMessageProvider.WARNING);
}
}
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/TaskEditorAttributePart.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/TaskEditorAttributePart.java
index ed1c66612..2af23138a 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/TaskEditorAttributePart.java
+++ b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/TaskEditorAttributePart.java
@@ -79,7 +79,8 @@ public class TaskEditorAttributePart extends AbstractTaskEditorSection {
int currentColumn = 1;
int currentPriority = 0;
for (AbstractAttributeEditor attributeEditor : attributeEditors) {
- int priority = (attributeEditor.getLayoutHint() != null) ? attributeEditor.getLayoutHint().getPriority()
+ int priority = (attributeEditor.getLayoutHint() != null)
+ ? attributeEditor.getLayoutHint().getPriority()
: LayoutHint.DEFAULT_PRIORITY;
if (priority != currentPriority) {
currentPriority = priority;
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/TaskEditorExtensionSettingsContribution.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/TaskEditorExtensionSettingsContribution.java
index 432532e44..35aca42b9 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/TaskEditorExtensionSettingsContribution.java
+++ b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/TaskEditorExtensionSettingsContribution.java
@@ -80,7 +80,8 @@ public class TaskEditorExtensionSettingsContribution extends AbstractTaskReposit
parent.setLayout(layout);
String defaultExtensionId = TaskEditorExtensions.getDefaultTaskEditorExtensionId(getConnectorKind());
- selectedExtensionId = getRepository() == null ? defaultExtensionId
+ selectedExtensionId = getRepository() == null
+ ? defaultExtensionId
: TaskEditorExtensions.getTaskEditorExtensionId(getRepository());
// configure a 'Plain Text' (none) button
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/TaskEditorExtensions.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/TaskEditorExtensions.java
index 787944d92..54171ebb1 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/TaskEditorExtensions.java
+++ b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/TaskEditorExtensions.java
@@ -85,7 +85,6 @@ public class TaskEditorExtensions {
*
* @param taskRepository
* @return the extension, or null if there is none
- *
* @see #getDefaultTaskEditorExtension(TaskRepository)
*/
public static AbstractTaskEditorExtension getTaskEditorExtension(TaskRepository taskRepository) {
@@ -126,7 +125,6 @@ public class TaskEditorExtensions {
*
* @param connectorKind
* the kind of connector
- *
* @return the default task editor extension id or null if there is no default
*/
public static String getDefaultTaskEditorExtensionId(String connectorKind) {
@@ -139,7 +137,6 @@ public class TaskEditorExtensions {
*
* @param taskRepository
* @return the extension, or null if there is none
- *
* @see #getTaskEditorExtension(TaskRepository)
*/
public static AbstractTaskEditorExtension getDefaultTaskEditorExtension(TaskRepository taskRepository) {
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/TaskEditorOutlineNode.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/TaskEditorOutlineNode.java
index badcedf59..084c71e6a 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/TaskEditorOutlineNode.java
+++ b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/TaskEditorOutlineNode.java
@@ -261,7 +261,8 @@ public class TaskEditorOutlineNode {
}
public TaskEditorOutlineNode[] getChildren() {
- return (children == null) ? new TaskEditorOutlineNode[0]
+ return (children == null)
+ ? new TaskEditorOutlineNode[0]
: children.toArray(new TaskEditorOutlineNode[children.size()]);
}
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/TaskEditorPeoplePart.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/TaskEditorPeoplePart.java
index eb14c7e8f..f1bf1c40b 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/TaskEditorPeoplePart.java
+++ b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/TaskEditorPeoplePart.java
@@ -36,8 +36,9 @@ public class TaskEditorPeoplePart extends AbstractTaskEditorPart {
AbstractAttributeEditor editor = createAttributeEditor(attribute);
if (editor != null) {
editor.createLabelControl(composite, toolkit);
- GridDataFactory.defaultsFor(editor.getLabelControl()).indent(COLUMN_MARGIN, 0).applyTo(
- editor.getLabelControl());
+ GridDataFactory.defaultsFor(editor.getLabelControl())
+ .indent(COLUMN_MARGIN, 0)
+ .applyTo(editor.getLabelControl());
editor.createControl(composite, toolkit);
getTaskEditorPage().getAttributeEditorToolkit().adapt(editor);
GridDataFactory.fillDefaults().grab(true, false).align(SWT.FILL, SWT.TOP).applyTo(editor.getControl());
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/TaskEditorSummaryPart.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/TaskEditorSummaryPart.java
index f4f948ffa..527d0c097 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/TaskEditorSummaryPart.java
+++ b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/TaskEditorSummaryPart.java
@@ -63,8 +63,9 @@ public class TaskEditorSummaryPart extends AbstractTaskEditorPart {
if (showLabel && !isPriority) {
editor.createLabelControl(composite, toolkit);
- GridDataFactory.defaultsFor(editor.getLabelControl()).indent(indent, 0).applyTo(
- editor.getLabelControl());
+ GridDataFactory.defaultsFor(editor.getLabelControl())
+ .indent(indent, 0)
+ .applyTo(editor.getLabelControl());
}
if (isPriority) {
@@ -131,13 +132,18 @@ public class TaskEditorSummaryPart extends AbstractTaskEditorPart {
EditorUtil.setHeaderFontSizeAndStyle(summaryEditor.getControl());
} else {
final Composite border = toolkit.createComposite(composite);
- GridDataFactory.fillDefaults().align(SWT.FILL, SWT.BEGINNING).hint(EditorUtil.MAXIMUM_WIDTH,
- SWT.DEFAULT).grab(true, false).applyTo(border);
+ GridDataFactory.fillDefaults()
+ .align(SWT.FILL, SWT.BEGINNING)
+ .hint(EditorUtil.MAXIMUM_WIDTH, SWT.DEFAULT)
+ .grab(true, false)
+ .applyTo(border);
// leave some padding for the border of the attribute editor
border.setLayout(GridLayoutFactory.fillDefaults().margins(1, 4).create());
summaryEditor.createControl(border, toolkit);
- GridDataFactory.fillDefaults().align(SWT.FILL, SWT.CENTER).grab(true, false).applyTo(
- summaryEditor.getControl());
+ GridDataFactory.fillDefaults()
+ .align(SWT.FILL, SWT.CENTER)
+ .grab(true, false)
+ .applyTo(summaryEditor.getControl());
toolkit.paintBordersFor(border);
}
getTaskEditorPage().getAttributeEditorToolkit().adapt(summaryEditor);
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/notifications/TaskListNotificationPopup.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/notifications/TaskListNotificationPopup.java
index d349f4e17..f1324ed46 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/notifications/TaskListNotificationPopup.java
+++ b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/notifications/TaskListNotificationPopup.java
@@ -101,7 +101,8 @@ public class TaskListNotificationPopup extends AbstractNotificationPopup {
}
}
- final TaskScalingHyperlink itemLink = new TaskScalingHyperlink(notificationComposite, SWT.BEGINNING | SWT.NO_FOCUS);
+ final TaskScalingHyperlink itemLink = new TaskScalingHyperlink(notificationComposite, SWT.BEGINNING
+ | SWT.NO_FOCUS);
GridDataFactory.fillDefaults().grab(true, false).align(SWT.FILL, SWT.TOP).applyTo(itemLink);
itemLink.setText(CommonUiUtil.toLabel(notification.getLabel()));
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/util/TaskComparator.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/util/TaskComparator.java
index 1c495fcd8..c01ea6cbb 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/util/TaskComparator.java
+++ b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/util/TaskComparator.java
@@ -191,9 +191,11 @@ public class TaskComparator implements Comparator<ITask> {
String rankString1 = element1.getAttribute(TaskAttribute.RANK);
String rankString2 = element2.getAttribute(TaskAttribute.RANK);
try {
- Double rank1 = rankString1 == null || rankString1.length() == 0 ? Double.valueOf(0)
+ Double rank1 = rankString1 == null || rankString1.length() == 0
+ ? Double.valueOf(0)
: Double.valueOf(rankString1);
- Double rank2 = rankString2 == null || rankString2.length() == 0 ? Double.valueOf(0)
+ Double rank2 = rankString2 == null || rankString2.length() == 0
+ ? Double.valueOf(0)
: Double.valueOf(rankString2);
return compare(rank1, rank2, sortDirection);
} catch (NumberFormatException e) {
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/views/AbstractTaskListPresentation.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/views/AbstractTaskListPresentation.java
index c9a6ab71d..5ad636a37 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/views/AbstractTaskListPresentation.java
+++ b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/views/AbstractTaskListPresentation.java
@@ -49,9 +49,8 @@ public abstract class AbstractTaskListPresentation implements IPluginContributio
}
/**
- * Creates a new instance of a content provider for a particular instance of the Task List
- *
- * TODO: change view parameter to be the viewer
+ * Creates a new instance of a content provider for a particular instance of the Task List TODO: change view
+ * parameter to be the viewer
*/
protected abstract AbstractTaskListContentProvider createContentProvider(TaskListView taskListView);
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/views/PriorityDropDownAction.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/views/PriorityDropDownAction.java
index 3e42603c2..1f9036c22 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/views/PriorityDropDownAction.java
+++ b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/views/PriorityDropDownAction.java
@@ -81,8 +81,9 @@ class PriorityDropDownAction extends Action implements IMenuCreator {
priority1 = new Action("", AS_CHECK_BOX) { //$NON-NLS-1$
@Override
public void run() {
- TasksUiPlugin.getDefault().getPreferenceStore().setValue(ITasksUiPreferenceConstants.FILTER_PRIORITY,
- PriorityLevel.P1.toString());
+ TasksUiPlugin.getDefault()
+ .getPreferenceStore()
+ .setValue(ITasksUiPreferenceConstants.FILTER_PRIORITY, PriorityLevel.P1.toString());
PriorityDropDownAction.this.taskListView.displayPrioritiesAbove(TaskListView.PRIORITY_LEVELS[0]);
}
};
@@ -95,8 +96,9 @@ class PriorityDropDownAction extends Action implements IMenuCreator {
priority2 = new Action("", AS_CHECK_BOX) { //$NON-NLS-1$
@Override
public void run() {
- TasksUiPlugin.getDefault().getPreferenceStore().setValue(ITasksUiPreferenceConstants.FILTER_PRIORITY,
- PriorityLevel.P2.toString());
+ TasksUiPlugin.getDefault()
+ .getPreferenceStore()
+ .setValue(ITasksUiPreferenceConstants.FILTER_PRIORITY, PriorityLevel.P2.toString());
PriorityDropDownAction.this.taskListView.displayPrioritiesAbove(TaskListView.PRIORITY_LEVELS[1]);
}
};
@@ -109,8 +111,9 @@ class PriorityDropDownAction extends Action implements IMenuCreator {
priority3 = new Action("", AS_CHECK_BOX) { //$NON-NLS-1$
@Override
public void run() {
- TasksUiPlugin.getDefault().getPreferenceStore().setValue(ITasksUiPreferenceConstants.FILTER_PRIORITY,
- PriorityLevel.P3.toString());
+ TasksUiPlugin.getDefault()
+ .getPreferenceStore()
+ .setValue(ITasksUiPreferenceConstants.FILTER_PRIORITY, PriorityLevel.P3.toString());
PriorityDropDownAction.this.taskListView.displayPrioritiesAbove(TaskListView.PRIORITY_LEVELS[2]);
}
};
@@ -123,8 +126,9 @@ class PriorityDropDownAction extends Action implements IMenuCreator {
priority4 = new Action("", AS_CHECK_BOX) { //$NON-NLS-1$
@Override
public void run() {
- TasksUiPlugin.getDefault().getPreferenceStore().setValue(ITasksUiPreferenceConstants.FILTER_PRIORITY,
- PriorityLevel.P4.toString());
+ TasksUiPlugin.getDefault()
+ .getPreferenceStore()
+ .setValue(ITasksUiPreferenceConstants.FILTER_PRIORITY, PriorityLevel.P4.toString());
PriorityDropDownAction.this.taskListView.displayPrioritiesAbove(TaskListView.PRIORITY_LEVELS[3]);
}
};
@@ -137,8 +141,9 @@ class PriorityDropDownAction extends Action implements IMenuCreator {
priority5 = new Action("", AS_CHECK_BOX) { //$NON-NLS-1$
@Override
public void run() {
- TasksUiPlugin.getDefault().getPreferenceStore().setValue(ITasksUiPreferenceConstants.FILTER_PRIORITY,
- PriorityLevel.P5.toString());
+ TasksUiPlugin.getDefault()
+ .getPreferenceStore()
+ .setValue(ITasksUiPreferenceConstants.FILTER_PRIORITY, PriorityLevel.P5.toString());
PriorityDropDownAction.this.taskListView.displayPrioritiesAbove(TaskListView.PRIORITY_LEVELS[4]);
}
};
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/views/TaskListFilteredTree.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/views/TaskListFilteredTree.java
index 4bd91ac84..8ba466b6b 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/views/TaskListFilteredTree.java
+++ b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/views/TaskListFilteredTree.java
@@ -134,8 +134,9 @@ public class TaskListFilteredTree extends AbstractFilteredTree {
TasksUi.getTaskActivityManager().removeActivityListener(taskProgressBarActivityListener);
}
if (taskProgressBarWorkingSetListener != null) {
- PlatformUI.getWorkbench().getWorkingSetManager().removePropertyChangeListener(
- taskProgressBarWorkingSetListener);
+ PlatformUI.getWorkbench()
+ .getWorkingSetManager()
+ .removePropertyChangeListener(taskProgressBarWorkingSetListener);
}
actionGroup.setSelectionProvider(null);
activeTaskMenuManager.dispose();
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/wizards/AttachmentPreviewPage.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/wizards/AttachmentPreviewPage.java
index 708cbbeb2..5f58538e4 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/wizards/AttachmentPreviewPage.java
+++ b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/wizards/AttachmentPreviewPage.java
@@ -204,8 +204,11 @@ public class AttachmentPreviewPage extends WizardPage {
canvasComposite.setLayout(GridLayoutFactory.fillDefaults().create());
Canvas canvas = new Canvas(canvasComposite, SWT.NO_BACKGROUND);
final Rectangle imgSize = bufferedImage.getBounds();
- canvas.setLayoutData(GridDataFactory.fillDefaults().align(SWT.CENTER, SWT.CENTER).grab(true, true).hint(
- imgSize.width, imgSize.height).create());
+ canvas.setLayoutData(GridDataFactory.fillDefaults()
+ .align(SWT.CENTER, SWT.CENTER)
+ .grab(true, true)
+ .hint(imgSize.width, imgSize.height)
+ .create());
canvas.addPaintListener(new PaintListener() {
public void paintControl(PaintEvent event) {
event.gc.drawImage(bufferedImage, 0, 0);
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/wizards/LocalRepositorySettingsPage.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/wizards/LocalRepositorySettingsPage.java
index d498d7502..b5f9dd838 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/wizards/LocalRepositorySettingsPage.java
+++ b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/wizards/LocalRepositorySettingsPage.java
@@ -28,7 +28,8 @@ import org.eclipse.ui.forms.widgets.ExpandableComposite;
public class LocalRepositorySettingsPage extends AbstractTaskRepositoryPage {
public LocalRepositorySettingsPage(TaskRepository taskRepository) {
- super(Messages.LocalRepositorySettingsPage_Local_Repository_Settings, Messages.LocalRepositorySettingsPage_Configure_the_local_repository, taskRepository);
+ super(Messages.LocalRepositorySettingsPage_Local_Repository_Settings,
+ Messages.LocalRepositorySettingsPage_Configure_the_local_repository, taskRepository);
}
@Override
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/TaskElementLabelProvider.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/TaskElementLabelProvider.java
index 8885e7ade..1434bc06c 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/TaskElementLabelProvider.java
+++ b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/TaskElementLabelProvider.java
@@ -124,7 +124,8 @@ public class TaskElementLabelProvider extends LabelProvider implements IColorPro
if (element instanceof UnmatchedTaskContainer) {
compositeDescriptor.icon = TasksUiImages.QUERY_UNMATCHED;
} else if (element instanceof RepositoryQuery) {
- compositeDescriptor.icon = ((RepositoryQuery) element).getAutoUpdate() ? TasksUiImages.QUERY
+ compositeDescriptor.icon = ((RepositoryQuery) element).getAutoUpdate()
+ ? TasksUiImages.QUERY
: TasksUiImages.QUERY_OFFLINE;
} else if (element instanceof ITask) {
compositeDescriptor.icon = TasksUiImages.TASK;
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/editors/AttributeEditorToolkit.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/editors/AttributeEditorToolkit.java
index 4e8d21931..c60a23f14 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/editors/AttributeEditorToolkit.java
+++ b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/editors/AttributeEditorToolkit.java
@@ -83,7 +83,8 @@ public class AttributeEditorToolkit {
public void adapt(AbstractAttributeEditor editor) {
if (editor.getControl() instanceof Text || editor.getControl() instanceof CCombo
|| editor instanceof PersonAttributeEditor) {
- Control control = (editor instanceof PersonAttributeEditor) ? ((PersonAttributeEditor) editor).getText()
+ Control control = (editor instanceof PersonAttributeEditor)
+ ? ((PersonAttributeEditor) editor).getText()
: editor.getControl();
if (control == null) {
// fall back in case getText() returns null
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/editors/TaskEditor.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/editors/TaskEditor.java
index 45eb9f96f..f1416b29c 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/editors/TaskEditor.java
+++ b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/editors/TaskEditor.java
@@ -886,7 +886,8 @@ public class TaskEditor extends SharedHeaderFormEditor {
// toolBarManager.update(true);
TaskRepository outgoingNewRepository = TasksUiUtil.getOutgoingNewTaskRepository(task);
- final TaskRepository taskRepository = (outgoingNewRepository != null) ? outgoingNewRepository
+ final TaskRepository taskRepository = (outgoingNewRepository != null)
+ ? outgoingNewRepository
: taskEditorInput.getTaskRepository();
ControlContribution repositoryLabelControl = new ControlContribution(Messages.AbstractTaskEditorPage_Title) {
@Override
@@ -1051,7 +1052,8 @@ public class TaskEditor extends SharedHeaderFormEditor {
menuService = (IMenuService) getSite().getService(IMenuService.class);
if (menuService != null && leftToolBarManager instanceof ContributionManager) {
TaskRepository outgoingNewRepository = TasksUiUtil.getOutgoingNewTaskRepository(task);
- TaskRepository taskRepository = (outgoingNewRepository != null) ? outgoingNewRepository
+ TaskRepository taskRepository = (outgoingNewRepository != null)
+ ? outgoingNewRepository
: taskEditorInput.getTaskRepository();
menuService.populateContributionManager(leftToolBarManager, "toolbar:" + ID_LEFT_TOOLBAR_HEADER + "." //$NON-NLS-1$ //$NON-NLS-2$
+ taskRepository.getConnectorKind());
@@ -1145,7 +1147,8 @@ public class TaskEditor extends SharedHeaderFormEditor {
private void updateHeaderLabel() {
TaskRepository outgoingNewRepository = TasksUiUtil.getOutgoingNewTaskRepository(task);
- final TaskRepository taskRepository = (outgoingNewRepository != null) ? outgoingNewRepository
+ final TaskRepository taskRepository = (outgoingNewRepository != null)
+ ? outgoingNewRepository
: taskEditorInput.getTaskRepository();
// if (taskRepository.getConnectorKind().equals(LocalRepositoryConnector.CONNECTOR_KIND)) {
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/wizards/AbstractTaskRepositoryPageContribution.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/wizards/AbstractTaskRepositoryPageContribution.java
index 39586e869..35746ebaf 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/wizards/AbstractTaskRepositoryPageContribution.java
+++ b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/wizards/AbstractTaskRepositoryPageContribution.java
@@ -25,9 +25,7 @@ import org.eclipse.swt.widgets.Control;
/**
* A contribution to a {@link ITaskRepositoryPage}, which enables plug-ins to contribute UI to the task repository
- * settings.
- *
- * subclasses must have a default public constructor.
+ * settings. subclasses must have a default public constructor.
*
* @author David Green
* @since 3.1
@@ -47,7 +45,6 @@ public abstract class AbstractTaskRepositoryPageContribution {
*
* @param contribution
* the contribution that changed
- *
* @see ITaskRepositoryPageContribution#validate(IProgressMonitor)
*/
public void validationRequired(AbstractTaskRepositoryPageContribution contribution);
@@ -67,7 +64,6 @@ public abstract class AbstractTaskRepositoryPageContribution {
private String id;
/**
- *
* @param title
* the title of the contribution, as displayed to the user, usually used as a section heading
* @param description
@@ -164,7 +160,6 @@ public abstract class AbstractTaskRepositoryPageContribution {
*
* @param repository
* the repository to which settings should be applied
- *
* @see ITaskRepositoryPage#applyTo(TaskRepository)
* @since 3.1
*/
@@ -214,9 +209,8 @@ public abstract class AbstractTaskRepositoryPageContribution {
/**
* Indicate if this contribution is enabled. Subclasses may override to programatically disable the contribution
- * when needed. This method is called early in the contributor's lifecycle, before any controls are created.
- *
- * the default implementation returns true.
+ * when needed. This method is called early in the contributor's lifecycle, before any controls are created. the
+ * default implementation returns true.
*/
public boolean isEnabled() {
return true;

Back to the top