-
-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Application: Replace "no projects" hint with onboarding messages
- Loading branch information
1 parent
2db06d4
commit b140fc4
Showing
15 changed files
with
240 additions
and
322 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
...ima-ui/src/main/java/com/shade/decima/ui/editor/impl/DefaultEditorOnboardingProvider.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package com.shade.decima.ui.editor.impl; | ||
|
||
import com.shade.decima.ui.menu.menus.EditMenu; | ||
import com.shade.decima.ui.menu.menus.FileMenu; | ||
import com.shade.decima.ui.menu.menus.ViewMenu; | ||
import com.shade.platform.ui.editors.spi.EditorOnboarding; | ||
import com.shade.platform.ui.editors.spi.EditorOnboardingProvider; | ||
import com.shade.util.NotNull; | ||
|
||
import java.util.List; | ||
|
||
public class DefaultEditorOnboardingProvider implements EditorOnboardingProvider { | ||
@NotNull | ||
@Override | ||
public Iterable<EditorOnboarding> getOnboardings() { | ||
return List.of( | ||
new EditorOnboarding.Action(FileMenu.NewProjectItem.ID, "Create new project"), | ||
new EditorOnboarding.Action(EditMenu.FindFilesItem.ID, "Find files"), | ||
new EditorOnboarding.Action(ViewMenu.RecentFilesItem.ID, "Show recent files"), | ||
new EditorOnboarding.Text("Drop files here to open them") | ||
); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
...in/resources/META-INF/services/com.shade.platform.ui.editors.spi.EditorOnboardingProvider
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
com.shade.decima.ui.editor.impl.DefaultEditorOnboardingProvider |
290 changes: 0 additions & 290 deletions
290
modules/platform-ui/src/main/java/com/shade/platform/ui/controls/HintManager.java
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.