forked from openpilot-hub/devpilot-intellij
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add feedback and user profile action icon
- Loading branch information
1 parent
d55ef90
commit 4a3baa5
Showing
14 changed files
with
158 additions
and
2 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
25 changes: 25 additions & 0 deletions
25
src/main/java/com/zhongan/devpilot/actions/toolbar/ToolbarFeedbackAction.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,25 @@ | ||
package com.zhongan.devpilot.actions.toolbar; | ||
|
||
import com.intellij.ide.BrowserUtil; | ||
import com.intellij.openapi.actionSystem.AnAction; | ||
import com.intellij.openapi.actionSystem.AnActionEvent; | ||
import com.zhongan.devpilot.DevPilotIcons; | ||
import com.zhongan.devpilot.util.DevPilotMessageBundle; | ||
import com.zhongan.devpilot.util.LoginUtils; | ||
|
||
import org.jetbrains.annotations.NotNull; | ||
|
||
import static com.zhongan.devpilot.constant.DefaultConst.FEEDBACK_URL; | ||
|
||
public class ToolbarFeedbackAction extends AnAction { | ||
public ToolbarFeedbackAction() { | ||
super(DevPilotMessageBundle.get("devpilot.toolbarFeedbackAction.text"), | ||
DevPilotMessageBundle.get("devpilot.toolbarFeedbackAction.text"), | ||
DevPilotIcons.FEEDBACK); | ||
} | ||
|
||
@Override | ||
public void actionPerformed(@NotNull AnActionEvent e) { | ||
BrowserUtil.browse(LoginUtils.buildAuthUrl(FEEDBACK_URL)); | ||
} | ||
} |
25 changes: 25 additions & 0 deletions
25
src/main/java/com/zhongan/devpilot/actions/toolbar/ToolbarUserProfileAction.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,25 @@ | ||
package com.zhongan.devpilot.actions.toolbar; | ||
|
||
import com.intellij.ide.BrowserUtil; | ||
import com.intellij.openapi.actionSystem.AnAction; | ||
import com.intellij.openapi.actionSystem.AnActionEvent; | ||
import com.zhongan.devpilot.DevPilotIcons; | ||
import com.zhongan.devpilot.util.DevPilotMessageBundle; | ||
import com.zhongan.devpilot.util.LoginUtils; | ||
|
||
import org.jetbrains.annotations.NotNull; | ||
|
||
import static com.zhongan.devpilot.constant.DefaultConst.PROFILE_URL; | ||
|
||
public class ToolbarUserProfileAction extends AnAction { | ||
public ToolbarUserProfileAction() { | ||
super(DevPilotMessageBundle.get("devpilot.toolbarUserProfileAction.text"), | ||
DevPilotMessageBundle.get("devpilot.toolbarUserProfileAction.text"), | ||
DevPilotIcons.USER_PROFILE); | ||
} | ||
|
||
@Override | ||
public void actionPerformed(@NotNull AnActionEvent e) { | ||
BrowserUtil.browse(LoginUtils.buildAuthUrl(PROFILE_URL)); | ||
} | ||
} |
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
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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