Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorspingel2008-03-01 21:39:32 +0000
committerspingel2008-03-01 21:39:32 +0000
commit98c2cb986a8f23c187b19ace847aacb7e5071c16 (patch)
tree316ea6233aee61c9935f5ec7b592d92079fcdc2c /org.eclipse.mylyn.help.ui/src
parent37e447ac80a2b6d0856f40866cadb40618af4776 (diff)
downloadorg.eclipse.mylyn.tasks-98c2cb986a8f23c187b19ace847aacb7e5071c16.tar.gz
org.eclipse.mylyn.tasks-98c2cb986a8f23c187b19ace847aacb7e5071c16.tar.xz
org.eclipse.mylyn.tasks-98c2cb986a8f23c187b19ace847aacb7e5071c16.zip
NEW - bug 210040: activate automatic formating on Java editor savebug_210040_code_cleanup_after
https://bugs.eclipse.org/bugs/show_bug.cgi?id=210040
Diffstat (limited to 'org.eclipse.mylyn.help.ui/src')
-rw-r--r--org.eclipse.mylyn.help.ui/src/org/eclipse/mylyn/internal/help/ui/actions/ShowMylynLegendAction.java4
-rw-r--r--org.eclipse.mylyn.help.ui/src/org/eclipse/mylyn/internal/help/ui/dialogs/UiLegendDialog.java18
2 files changed, 11 insertions, 11 deletions
diff --git a/org.eclipse.mylyn.help.ui/src/org/eclipse/mylyn/internal/help/ui/actions/ShowMylynLegendAction.java b/org.eclipse.mylyn.help.ui/src/org/eclipse/mylyn/internal/help/ui/actions/ShowMylynLegendAction.java
index f35cd3029..cad5a27c4 100644
--- a/org.eclipse.mylyn.help.ui/src/org/eclipse/mylyn/internal/help/ui/actions/ShowMylynLegendAction.java
+++ b/org.eclipse.mylyn.help.ui/src/org/eclipse/mylyn/internal/help/ui/actions/ShowMylynLegendAction.java
@@ -26,7 +26,7 @@ import org.eclipse.ui.intro.IIntroPart;
* @author Leo Dos Santos
*/
public class ShowMylynLegendAction implements IWorkbenchWindowActionDelegate, IViewActionDelegate {
-
+
private IWorkbenchWindow wbWindow;
public void dispose() {
@@ -43,7 +43,7 @@ public class ShowMylynLegendAction implements IWorkbenchWindowActionDelegate, IV
if (intro != null) {
introMgr.setIntroStandby(intro, true);
}
-
+
TaskListView.openInActivePerspective();
Shell parentShell = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell();
UiLegendDialog uiLegendDialog = new UiLegendDialog(parentShell);
diff --git a/org.eclipse.mylyn.help.ui/src/org/eclipse/mylyn/internal/help/ui/dialogs/UiLegendDialog.java b/org.eclipse.mylyn.help.ui/src/org/eclipse/mylyn/internal/help/ui/dialogs/UiLegendDialog.java
index 7300c85ee..541a2075e 100644
--- a/org.eclipse.mylyn.help.ui/src/org/eclipse/mylyn/internal/help/ui/dialogs/UiLegendDialog.java
+++ b/org.eclipse.mylyn.help.ui/src/org/eclipse/mylyn/internal/help/ui/dialogs/UiLegendDialog.java
@@ -54,9 +54,9 @@ public class UiLegendDialog extends PopupDialog {
private ScrolledForm form;
- private TaskElementLabelProvider labelProvider = new TaskElementLabelProvider(false);
+ private final TaskElementLabelProvider labelProvider = new TaskElementLabelProvider(false);
- private IThemeManager themeManager = PlatformUI.getWorkbench().getThemeManager();
+ private final IThemeManager themeManager = PlatformUI.getWorkbench().getThemeManager();
public UiLegendDialog(Shell parent) {
super(parent, PopupDialog.INFOPOPUP_SHELLSTYLE | SWT.ON_TOP, false, false, false, false, null, null);
@@ -247,7 +247,7 @@ public class UiLegendDialog extends PopupDialog {
Label labelOverdue = toolkit.createLabel(activityClient, "Past scheduled date");
labelOverdue.setForeground(themeManager.getCurrentTheme().getColorRegistry().get(
TaskListColorsAndFonts.THEME_COLOR_TASK_PAST_SCHEDULED));
-
+
// imageLabel = toolkit.createLabel(activityClient, "");
// imageLabel.setImage(TasksUiImages.getImage(TasksUiImages.TASK));
// Label labelThisWeek = toolkit.createLabel(activityClient, "Scheduled for this
@@ -278,8 +278,8 @@ public class UiLegendDialog extends PopupDialog {
imageLabel.setImage(TasksUiImages.getImage(TasksUiImages.OVERLAY_OVER_DUE));
Label textLabel = toolkit.createLabel(activityClient, "Past Due date");
textLabel.setForeground(themeManager.getCurrentTheme().getColorRegistry().get(
- TaskListColorsAndFonts.THEME_COLOR_TASK_PAST_DUE));
-
+ TaskListColorsAndFonts.THEME_COLOR_TASK_PAST_DUE));
+
imageLabel = toolkit.createLabel(activityClient, "");
imageLabel.setImage(TasksUiImages.getImage(TasksUiImages.BLANK));
Hyperlink adjust = toolkit.createHyperlink(activityClient, "Adjust Colors and Fonts...", SWT.WRAP);
@@ -428,7 +428,7 @@ public class UiLegendDialog extends PopupDialog {
imageLabel.setImage(labelProvider.getImage(taskListElement));
toolkit.createLabel(connectorClient, taskListElement.getSummary());
}
-
+
if (elements.size() < 4) {
imageLabel = toolkit.createLabel(connectorClient, "");
toolkit.createLabel(connectorClient, "");
@@ -467,18 +467,18 @@ public class UiLegendDialog extends PopupDialog {
}
});
}
-
+
private class CloseDialogAction extends Action {
private CloseDialogAction() {
setImageDescriptor(TasksUiImages.NOTIFICATION_CLOSE);
setText("Close Dialog");
}
-
+
@Override
public void run() {
close();
}
-
+
}
}

Back to the top