diff options
| author | Jonah Graham | 2019-03-01 11:23:55 +0000 |
|---|---|---|
| committer | Jonah Graham | 2019-03-01 11:27:16 +0000 |
| commit | ac93f51cfc5352c24baa84b54713f911ff1d250f (patch) | |
| tree | af692b19e791241267e8bd4afcf4dd99d40550e5 | |
| parent | 6ee864993a7335fdb7563373f075c3e50b8983d5 (diff) | |
| download | eclipse.platform.ui-ac93f51cfc5352c24baa84b54713f911ff1d250f.tar.gz eclipse.platform.ui-ac93f51cfc5352c24baa84b54713f911ff1d250f.tar.xz eclipse.platform.ui-ac93f51cfc5352c24baa84b54713f911ff1d250f.zip | |
Bug 544945: Fallback on Action's text for onboarding-textY20190319-2305Y20190316-1220Y20190313-2200Y20190313-0215Y20190308-0715Y20190307-1015Y20190306-2200S4_11_0_RC2R4_11I20190307-0500I20190306-2135I20190306-1800I20190306-0600I20190305-1800I20190305-0600I20190304-1800I20190304-0600I20190303-1800I20190303-0600I20190302-1800I20190302-0600I20190301-1800
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.java | 6 |
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); |
