Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormkersten2005-11-14 20:59:49 -0500
committermkersten2005-11-14 20:59:49 -0500
commit02217d088e70dd121e7cb10e7c1a0584ea373c0d (patch)
tree89e76a7114a80cef681e2f1d1a4e37849faa2f1e /org.eclipse.mylyn.tasks.ui
parent4f468ca305f46f738db354493ddcf101fa334a78 (diff)
downloadorg.eclipse.mylyn.tasks-02217d088e70dd121e7cb10e7c1a0584ea373c0d.tar.gz
org.eclipse.mylyn.tasks-02217d088e70dd121e7cb10e7c1a0584ea373c0d.tar.xz
org.eclipse.mylyn.tasks-02217d088e70dd121e7cb10e7c1a0584ea373c0d.zip
Completed Bug 115705: dynamic change set in a sync view is not refreshed on task change
Diffstat (limited to 'org.eclipse.mylyn.tasks.ui')
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasklist/ITaskListElement.java2
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasklist/MylarTasklistPlugin.java8
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasklist/Task.java2
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasklist/internal/TaskCategory.java2
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasklist/ui/MylarTaskEditor.java2
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasklist/ui/TaskSummaryEditor.java4
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasklist/ui/preferences/MylarTasklistPreferencePage.java135
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasklist/ui/views/TaskListView.java8
8 files changed, 105 insertions, 58 deletions
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasklist/ITaskListElement.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasklist/ITaskListElement.java
index e4014ea82..a5bd021fb 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasklist/ITaskListElement.java
+++ b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasklist/ITaskListElement.java
@@ -43,7 +43,7 @@ public interface ITaskListElement {
public abstract void setHandle(String id);
- public abstract boolean isDirectlyModifiable();
+ public abstract boolean isLocal();
public abstract boolean isActivatable();
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasklist/MylarTasklistPlugin.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasklist/MylarTasklistPlugin.java
index a8f289d6e..26fbff500 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasklist/MylarTasklistPlugin.java
+++ b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasklist/MylarTasklistPlugin.java
@@ -83,6 +83,10 @@ public class MylarTasklistPlugin extends AbstractUIPlugin implements IStartup {
public static final String PREVIOUS_SAVE_DATE = "org.eclipse.mylar.tasklist.save.last";
public static final String DEFAULT_URL_PREFIX = "org.eclipse.mylar.tasklist.defaultUrlPrefix";
+ public static final String COMMIT_PREFIX_COMPLETED = "org.eclipse.mylar.team.commit.prefix.completed";
+ public static final String COMMIT_PREFIX_PROGRESS = "org.eclipse.mylar.team.commit.prefix.progress";
+
+
private ResourceBundle resourceBundle;
private long AUTOMATIC_BACKUP_SAVE_INTERVAL = 1*3600*1000; // every hour
private static Date lastBackup = new Date();
@@ -273,6 +277,10 @@ public class MylarTasklistPlugin extends AbstractUIPlugin implements IStartup {
store.setDefault(REPORT_OPEN_INTERNAL, false);
store.setDefault(REPORT_OPEN_EXTERNAL, false);
store.setDefault(MULTIPLE_ACTIVE_TASKS, false);
+
+ store.setDefault(COMMIT_PREFIX_COMPLETED, "Completed");
+ store.setDefault(COMMIT_PREFIX_PROGRESS, "Progress on");
+
store.setDefault(SAVE_TASKLIST_MODE, TaskListSaveMode.THREE_HOURS.toString());
}
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasklist/Task.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasklist/Task.java
index 488ab16a8..d702fbab5 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasklist/Task.java
+++ b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasklist/Task.java
@@ -402,7 +402,7 @@ public class Task implements ITask {
return "Delete the selected task and discard task context?";
}
- public boolean isDirectlyModifiable() {
+ public boolean isLocal() {
return true;
}
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasklist/internal/TaskCategory.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasklist/internal/TaskCategory.java
index 54759ff54..91fc95b19 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasklist/internal/TaskCategory.java
+++ b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasklist/internal/TaskCategory.java
@@ -151,7 +151,7 @@ public class TaskCategory implements ITaskListCategory, Serializable {
return false;
}
- public boolean isDirectlyModifiable() {
+ public boolean isLocal() {
return true;
}
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasklist/ui/MylarTaskEditor.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasklist/ui/MylarTaskEditor.java
index 4ed0a0677..029b02bfe 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasklist/ui/MylarTaskEditor.java
+++ b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasklist/ui/MylarTaskEditor.java
@@ -138,7 +138,7 @@ public class MylarTaskEditor extends MultiPageEditorPart {
boolean openWithBrowser = MylarTasklistPlugin.getPrefs().getBoolean(
MylarTasklistPlugin.REPORT_OPEN_INTERNAL);
- if (task.isDirectlyModifiable() || openWithBrowser) setActivePage(index);
+ if (task.isLocal() || openWithBrowser) setActivePage(index);
} catch (RuntimeException e) {
MylarPlugin.fail(e, "could not open issue report web page", false);
}
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasklist/ui/TaskSummaryEditor.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasklist/ui/TaskSummaryEditor.java
index 7c363ffee..d9c70956e 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasklist/ui/TaskSummaryEditor.java
+++ b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasklist/ui/TaskSummaryEditor.java
@@ -314,7 +314,7 @@ public class TaskSummaryEditor extends EditorPart {
TableWrapData td = new TableWrapData(TableWrapData.FILL_GRAB);
// td.colspan = 2;
description.setLayoutData(td);
- if (!task.isDirectlyModifiable()) {
+ if (!task.isLocal()) {
description.setEnabled(false);
} else {
description.addModifyListener(new ModifyListener() {
@@ -330,7 +330,7 @@ public class TaskSummaryEditor extends EditorPart {
issueReportURL.setLayoutData(new TableWrapData(TableWrapData.FILL_GRAB));
// issueReportURL.setForeground(HYPERLINK);
- if (!task.isDirectlyModifiable()) {
+ if (!task.isLocal()) {
issueReportURL.setEnabled(false);
} else {
issueReportURL.addModifyListener(new ModifyListener() {
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasklist/ui/preferences/MylarTasklistPreferencePage.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasklist/ui/preferences/MylarTasklistPreferencePage.java
index 69b18c97a..83945423d 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasklist/ui/preferences/MylarTasklistPreferencePage.java
+++ b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasklist/ui/preferences/MylarTasklistPreferencePage.java
@@ -20,7 +20,6 @@ import org.eclipse.swt.events.SelectionAdapter;
import org.eclipse.swt.events.SelectionEvent;
import org.eclipse.swt.layout.GridData;
import org.eclipse.swt.layout.GridLayout;
-import org.eclipse.swt.layout.RowLayout;
import org.eclipse.swt.widgets.Button;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Control;
@@ -35,31 +34,40 @@ import org.eclipse.ui.IWorkbenchPreferencePage;
* @author Mik Kersten
* @author Ken Sueda
*/
-public class MylarTasklistPreferencePage extends PreferencePage implements
- IWorkbenchPreferencePage {
-
+public class MylarTasklistPreferencePage extends PreferencePage implements IWorkbenchPreferencePage {
+
private Text taskDirectoryText = null;
+
private Text taskURLPrefixText = null;
+
+ private Text commitPrefixCompleted = null;
+
+ private Text commitPrefixProgress = null;
+
private Button browse = null;
+
private Button copyExistingDataCheckbox = null;
+
private Button reportEditor = null;
+
private Button reportInternal = null;
-// private Button reportExternal = null;
+
private Button multipleActive = null;
public MylarTasklistPreferencePage() {
super();
- setPreferenceStore(MylarTasklistPlugin.getPrefs());
+ setPreferenceStore(MylarTasklistPlugin.getPrefs());
}
-
+
@Override
protected Control createContents(Composite parent) {
Composite container = new Composite(parent, SWT.NULL);
GridLayout layout = new GridLayout(1, false);
- container.setLayout (layout);
-
+ container.setLayout(layout);
+
createCreationGroup(container);
- createTaskDirectoryControl(container);
+ createCommitGroup(container);
+ createTaskDirectoryControl(container);
createBugzillaReportOption(container);
createUserbooleanControl(container);
return container;
@@ -74,19 +82,21 @@ public class MylarTasklistPreferencePage extends PreferencePage implements
GridData gridData = new GridData(GridData.HORIZONTAL_ALIGN_FILL);
container.setLayoutData(gridData);
GridLayout gl = new GridLayout(1, false);
- container.setLayout(gl);
-// closeEditors = new Button(container, SWT.CHECK);
-// closeEditors.setText("Close all editors on task deactivation (defaults to close only editors of interesting resources)");
-// closeEditors.setSelection(getPreferenceStore().getBoolean(MylarPlugin.TASKLIST_EDITORS_CLOSE));
-
+ container.setLayout(gl);
+ // closeEditors = new Button(container, SWT.CHECK);
+ // closeEditors.setText("Close all editors on task deactivation (defaults to close only editors of interesting resources)");
+ // closeEditors.setSelection(getPreferenceStore().getBoolean(MylarPlugin.TASKLIST_EDITORS_CLOSE));
+
multipleActive = new Button(container, SWT.CHECK);
multipleActive.setText("Enable multiple task contexts to be active");
multipleActive.setSelection(getPreferenceStore().getBoolean(MylarTasklistPlugin.MULTIPLE_ACTIVE_TASKS));
}
-
+
private void createBugzillaReportOption(Composite parent) {
- Group container= new Group(parent, SWT.SHADOW_ETCHED_IN);
- container.setLayout(new RowLayout());
+ Group container = new Group(parent, SWT.SHADOW_ETCHED_IN);
+ container.setLayout(new GridLayout(2, false));
+ container.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
+
container.setText("Open Bug Reports With");
reportEditor = new Button(container, SWT.RADIO);
reportEditor.setText("Bug editor");
@@ -94,58 +104,65 @@ public class MylarTasklistPreferencePage extends PreferencePage implements
reportInternal = new Button(container, SWT.RADIO);
reportInternal.setText("Internal browser");
reportInternal.setSelection(getPreferenceStore().getBoolean(MylarTasklistPlugin.REPORT_OPEN_INTERNAL));
-// reportExternal = new Button(container, SWT.RADIO);
-// reportExternal.setText("External browser");
-// reportExternal.setSelection(getPreferenceStore().getBoolean(MylarTasklistPlugin.REPORT_OPEN_EXTERNAL));
-// reportExternal.setEnabled(false);
+ // reportExternal = new Button(container, SWT.RADIO);
+ // reportExternal.setText("External browser");
+ // reportExternal.setSelection(getPreferenceStore().getBoolean(MylarTasklistPlugin.REPORT_OPEN_EXTERNAL));
+ // reportExternal.setEnabled(false);
}
@Override
public boolean performOk() {
String taskDirectory = taskDirectoryText.getText();
taskDirectory = taskDirectory.replaceAll("\\\\", "/");
- if (!taskDirectory.equals(MylarPlugin.getDefault().getMylarDataDirectory())){
+ if (!taskDirectory.equals(MylarPlugin.getDefault().getMylarDataDirectory())) {
//Order matters:
MylarTasklistPlugin.getDefault().saveTaskListAndContexts();
- if (copyExistingDataCheckbox.getSelection()){
+ if (copyExistingDataCheckbox.getSelection()) {
MylarTasklistPlugin.getDefault().copyDataDirContentsTo(taskDirectory);
}
getPreferenceStore().setValue(MylarPlugin.MYLAR_DIR, taskDirectory);
MylarTasklistPlugin.getDefault().setDataDirectory(MylarPlugin.getDefault().getMylarDataDirectory());
}
-
+
getPreferenceStore().setValue(MylarTasklistPlugin.COPY_TASK_DATA, copyExistingDataCheckbox.getSelection());
getPreferenceStore().setValue(MylarTasklistPlugin.REPORT_OPEN_EDITOR, reportEditor.getSelection());
getPreferenceStore().setValue(MylarTasklistPlugin.REPORT_OPEN_INTERNAL, reportInternal.getSelection());
-// getPreferenceStore().setValue(MylarTasklistPlugin.REPORT_OPEN_EXTERNAL, reportExternal.getSelection());
+ // getPreferenceStore().setValue(MylarTasklistPlugin.REPORT_OPEN_EXTERNAL, reportExternal.getSelection());
getPreferenceStore().setValue(MylarTasklistPlugin.DEFAULT_URL_PREFIX, taskURLPrefixText.getText());
getPreferenceStore().setValue(MylarTasklistPlugin.MULTIPLE_ACTIVE_TASKS, multipleActive.getSelection());
+
+ getPreferenceStore().setValue(MylarTasklistPlugin.COMMIT_PREFIX_COMPLETED, commitPrefixCompleted.getText());
+ getPreferenceStore().setValue(MylarTasklistPlugin.COMMIT_PREFIX_PROGRESS, commitPrefixProgress.getText());
return true;
}
-
+
@Override
public boolean performCancel() {
-// closeEditors.setSelection(getPreferenceStore().getBoolean(MylarPlugin.TASKLIST_EDITORS_CLOSE));
+ // closeEditors.setSelection(getPreferenceStore().getBoolean(MylarPlugin.TASKLIST_EDITORS_CLOSE));
reportEditor.setSelection(getPreferenceStore().getBoolean(MylarTasklistPlugin.REPORT_OPEN_EDITOR));
reportInternal.setSelection(getPreferenceStore().getBoolean(MylarTasklistPlugin.REPORT_OPEN_INTERNAL));
-// reportExternal.setSelection(getPreferenceStore().getBoolean(MylarTasklistPlugin.REPORT_OPEN_EXTERNAL));
+ // reportExternal.setSelection(getPreferenceStore().getBoolean(MylarTasklistPlugin.REPORT_OPEN_EXTERNAL));
multipleActive.setSelection(getPreferenceStore().getBoolean(MylarTasklistPlugin.MULTIPLE_ACTIVE_TASKS));
-// saveCombo.setText(getPreferenceStore().getString(MylarTasklistPlugin.SAVE_TASKLIST_MODE));
+ // saveCombo.setText(getPreferenceStore().getString(MylarTasklistPlugin.SAVE_TASKLIST_MODE));
return true;
}
-
+
public void performDefaults() {
super.performDefaults();
IPath rootPath = ResourcesPlugin.getWorkspace().getRoot().getLocation();
String taskDirectory = rootPath.toString() + "/" + MylarPlugin.MYLAR_DIR_NAME;
taskDirectoryText.setText(taskDirectory);
-
+
copyExistingDataCheckbox.setSelection(getPreferenceStore().getDefaultBoolean(MylarTasklistPlugin.COPY_TASK_DATA));
reportEditor.setSelection(getPreferenceStore().getDefaultBoolean(MylarTasklistPlugin.REPORT_OPEN_EDITOR));
reportInternal.setSelection(getPreferenceStore().getDefaultBoolean(MylarTasklistPlugin.REPORT_OPEN_INTERNAL));
-// reportExternal.setSelection(getPreferenceStore().getDefaultBoolean(MylarTasklistPlugin.REPORT_OPEN_EXTERNAL));
+ // reportExternal.setSelection(getPreferenceStore().getDefaultBoolean(MylarTasklistPlugin.REPORT_OPEN_EXTERNAL));
taskURLPrefixText.setText(getPreferenceStore().getDefaultString(MylarTasklistPlugin.DEFAULT_URL_PREFIX));
+
+ commitPrefixCompleted.setText(getPreferenceStore().getDefaultString(MylarTasklistPlugin.COMMIT_PREFIX_COMPLETED));
+ commitPrefixProgress.setText(getPreferenceStore().getDefaultString(MylarTasklistPlugin.COMMIT_PREFIX_PROGRESS));
+
multipleActive.setSelection(getPreferenceStore().getDefaultBoolean(MylarTasklistPlugin.MULTIPLE_ACTIVE_TASKS));
}
@@ -158,22 +175,22 @@ public class MylarTasklistPreferencePage extends PreferencePage implements
label.setLayoutData(data);
return label;
}
-
+
private void createTaskDirectoryControl(Composite parent) {
- Group taskDirComposite= new Group(parent, SWT.SHADOW_ETCHED_IN);
+ Group taskDirComposite = new Group(parent, SWT.SHADOW_ETCHED_IN);
taskDirComposite.setText("Task Directory");
taskDirComposite.setLayout(new GridLayout(2, false));
taskDirComposite.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
String taskDirectory = getPreferenceStore().getString(MylarPlugin.MYLAR_DIR);
taskDirectory = taskDirectory.replaceAll("\\\\", "/");
- taskDirectoryText = new Text(taskDirComposite, SWT.BORDER);
+ taskDirectoryText = new Text(taskDirComposite, SWT.BORDER);
taskDirectoryText.setText(taskDirectory);
taskDirectoryText.setEditable(false);
taskDirectoryText.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
-
+
browse = createButton(taskDirComposite, "Browse...");
browse.addSelectionListener(new SelectionAdapter() {
-
+
@Override
public void widgetSelected(SelectionEvent e) {
DirectoryDialog dialog = new DirectoryDialog(getShell());
@@ -184,33 +201,56 @@ public class MylarTasklistPreferencePage extends PreferencePage implements
dialog.setFilterPath(dir);
dir = dialog.open();
- if(dir == null || dir.equals(""))
+ if (dir == null || dir.equals(""))
return;
taskDirectoryText.setText(dir);
}
});
-
+
copyExistingDataCheckbox = new Button(taskDirComposite, SWT.CHECK);
copyExistingDataCheckbox.setText("Copy existing data to new location");
copyExistingDataCheckbox.setSelection(getPreferenceStore().getBoolean(MylarTasklistPlugin.COPY_TASK_DATA));
-
- }
-
+
+ }
+
private void createCreationGroup(Composite parent) {
Group group = new Group(parent, SWT.SHADOW_ETCHED_IN);
group.setText("Task Creation");
group.setLayout(new GridLayout(1, false));
group.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
-
+
Label urlLabel = createLabel(group, "Web link prefix (e.g. https://bugs.eclipse.org/bugs/show_bug.cgi?id=)");
urlLabel.setLayoutData(new GridData(GridData.HORIZONTAL_ALIGN_BEGINNING));
-
+
String taskURLPrefix = getPreferenceStore().getString(MylarTasklistPlugin.DEFAULT_URL_PREFIX);
taskURLPrefixText = new Text(group, SWT.BORDER);
taskURLPrefixText.setText(taskURLPrefix);
taskURLPrefixText.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
- }
-
+ }
+
+ private void createCommitGroup(Composite parent) {
+ Group group = new Group(parent, SWT.SHADOW_ETCHED_IN);
+ group.setText("Task Commit");
+ group.setLayout(new GridLayout(2, false));
+ group.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
+
+ Label completedLabel = createLabel(group, "Completed prefix: ");
+ completedLabel.setLayoutData(new GridData(GridData.HORIZONTAL_ALIGN_BEGINNING));
+
+ String completedPrefix = getPreferenceStore().getString(MylarTasklistPlugin.COMMIT_PREFIX_COMPLETED);
+ commitPrefixCompleted = new Text(group, SWT.BORDER);
+ commitPrefixCompleted.setText(completedPrefix);
+ commitPrefixCompleted.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
+
+ Label progressLabel = createLabel(group, "Uncompleted prefix: ");
+ progressLabel.setLayoutData(new GridData(GridData.HORIZONTAL_ALIGN_BEGINNING));
+
+ String progressPrefix = getPreferenceStore().getString(MylarTasklistPlugin.COMMIT_PREFIX_PROGRESS);
+ commitPrefixProgress = new Text(group, SWT.BORDER);
+ commitPrefixProgress.setText(progressPrefix);
+ commitPrefixProgress.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
+ }
+
private Button createButton(Composite parent, String text) {
Button button = new Button(parent, SWT.TRAIL);
button.setText(text);
@@ -218,4 +258,3 @@ public class MylarTasklistPreferencePage extends PreferencePage implements
return button;
}
}
-
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasklist/ui/views/TaskListView.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasklist/ui/views/TaskListView.java
index 4ce411593..f83600e41 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasklist/ui/views/TaskListView.java
+++ b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasklist/ui/views/TaskListView.java
@@ -366,7 +366,7 @@ public class TaskListView extends ViewPart {
if (columnIndex == 0 && element instanceof ITaskListElement) {
return ((ITaskListElement) element).isActivatable();
} else if (columnIndex == 2 && element instanceof ITask) {
- return ((ITask) element).isDirectlyModifiable();
+ return ((ITask) element).isLocal();
}
// int columnIndex = Arrays.asList(columnNames).indexOf(property);
// if (element instanceof ITask) {
@@ -392,7 +392,7 @@ public class TaskListView extends ViewPart {
// case 1: return false;
// case 2: return taskListElement.isDirectlyModifiable();
case 3:
- return taskListElement.isDirectlyModifiable();
+ return taskListElement.isLocal();
}
}
return false;
@@ -522,14 +522,14 @@ public class TaskListView extends ViewPart {
case 1:
break;
case 2:
- if (task.isDirectlyModifiable()) {
+ if (task.isLocal()) {
Integer intVal = (Integer) value;
task.setPriority("P" + (intVal + 1));
// getViewer().setSelection(null);
}
break;
case 3:
- if (task.isDirectlyModifiable()) {
+ if (task.isLocal()) {
task.setDescription(((String) value).trim());
MylarTasklistPlugin.getTaskListManager().taskPropertyChanged(task, columnNames[3]);
// getViewer().setSelection(null);

Back to the top