summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMaarten Meijer2011-07-27 18:21:41 (EDT)
committer Steffen Pingel2011-07-27 18:21:41 (EDT)
commit465cc7c89095dad7891d432b3c2a1280c627a064 (patch)
tree11a6da2f8e099ea77d394def4f81849a3640abde
parent9e71937c527fc44eb9c2eb7d00d7357dcbd11898 (diff)
downloadorg.eclipse.mylyn.tasks-465cc7c89095dad7891d432b3c2a1280c627a064.zip
org.eclipse.mylyn.tasks-465cc7c89095dad7891d432b3c2a1280c627a064.tar.gz
org.eclipse.mylyn.tasks-465cc7c89095dad7891d432b3c2a1280c627a064.tar.bz2
NEW - bug 337980: [patch] AbstractRepositoryQueryPage() constructor
prevents wizard page design with SWTDesigner https://bugs.eclipse.org/bugs/show_bug.cgi?id=337980
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/wizards/AbstractRepositoryQueryPage.java11
1 files changed, 9 insertions, 2 deletions
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/wizards/AbstractRepositoryQueryPage.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/wizards/AbstractRepositoryQueryPage.java
index 3256820..0140e79 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/wizards/AbstractRepositoryQueryPage.java
+++ b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/wizards/AbstractRepositoryQueryPage.java
@@ -11,6 +11,7 @@
package org.eclipse.mylyn.tasks.ui.wizards;
+import java.beans.Beans;
import java.util.Set;
import org.eclipse.core.runtime.Assert;
@@ -46,12 +47,18 @@ public abstract class AbstractRepositoryQueryPage extends WizardPage implements
public AbstractRepositoryQueryPage(String pageName, TaskRepository taskRepository, IRepositoryQuery query) {
super(pageName);
- Assert.isNotNull(taskRepository);
+ // see http://ekkescorner.wordpress.com/2009/07/07/galileo-enter-the-twilight-zone-between-target-platform-runtime-and-ide-development/
+ if (!Beans.isDesignTime()) {
+ Assert.isNotNull(taskRepository);
+ }
this.taskRepository = taskRepository;
this.query = query;
setTitle(Messages.AbstractRepositoryQueryPage_Enter_query_parameters);
setDescription(Messages.AbstractRepositoryQueryPage_If_attributes_are_blank_or_stale_press_the_Update_button);
- setImageDescriptor(TasksUiImages.BANNER_REPOSITORY);
+ // see http://ekkescorner.wordpress.com/2009/07/07/galileo-enter-the-twilight-zone-between-target-platform-runtime-and-ide-development/
+ if (!Beans.isDesignTime()) {
+ setImageDescriptor(TasksUiImages.BANNER_REPOSITORY);
+ }
setPageComplete(false);
}