Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonah Graham2019-03-01 11:23:55 +0000
committerJonah Graham2019-03-01 11:27:16 +0000
commitac93f51cfc5352c24baa84b54713f911ff1d250f (patch)
treeaf692b19e791241267e8bd4afcf4dd99d40550e5
parent6ee864993a7335fdb7563373f075c3e50b8983d5 (diff)
downloadeclipse.platform.ui-ac93f51cfc5352c24baa84b54713f911ff1d250f.tar.gz
eclipse.platform.ui-ac93f51cfc5352c24baa84b54713f911ff1d250f.tar.xz
eclipse.platform.ui-ac93f51cfc5352c24baa84b54713f911ff1d250f.zip
Some actions may not have a description or tooltip, in that case to make sure we don't make a hyperlink with an empty string, use the action's text. Change-Id: I77a55d363159be65844be4f7d583ea1bfa324976 Signed-off-by: Jonah Graham <jonah@kichwacoders.com>
-rw-r--r--bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/helpers/EmptyWorkspaceHelper.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/helpers/EmptyWorkspaceHelper.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/helpers/EmptyWorkspaceHelper.java
index 0bd8cf3d494..cbec77d4ec4 100644
--- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/helpers/EmptyWorkspaceHelper.java
+++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/helpers/EmptyWorkspaceHelper.java
@@ -195,7 +195,11 @@ public final class EmptyWorkspaceHelper {
final Color linkColor = JFaceColors.getHyperlinkText(emptyArea.getDisplay());
for (IAction action : projectWizardActions) {
- createOption(optionsArea, toolkit, linkColor, action, action.getImageDescriptor(), action.getDescription());
+ String description = action.getDescription();
+ if (description == null || description.isEmpty()) {
+ description = action.getText();
+ }
+ createOption(optionsArea, toolkit, linkColor, action, action.getImageDescriptor(), description);
}
createOption(optionsArea, toolkit, linkColor, newProjectAction, newProjectAction.getImageDescriptor(),
ResourceNavigatorMessages.EmptyWorkspaceHelper_createProject);

Back to the top