fix: fix title
This commit is contained in:
parent
2f7a0feab9
commit
dc724ff5ca
@ -25,7 +25,7 @@
|
|||||||
|
|
||||||
| Name | Implementation |
|
| Name | Implementation |
|
||||||
|----------------------------------------|---------------------------------------------------------|
|
|----------------------------------------|---------------------------------------------------------|
|
||||||
| `com.dida.didanugetextension.action.UpdateSolutionReferencesAction` | [UpdateSolutionReferencesAction][file:UpdateSolutionReferencesAction] |
|
| `com.dida.didanugetextension.action.UpdateSolutionReferencesAction` | [UpdateSolutionReferencesAction][file:UpdateSolutionReferences] |
|
||||||
| `com.dida.didanugetextension.action.UpdateReferencesByProjectChainAction` | [UpdateReferencesByProjectChain][file:UpdateReferencesByProjectChain]|
|
| `com.dida.didanugetextension.action.UpdateReferencesByProjectChainAction` | [UpdateReferencesByProjectChain][file:UpdateReferencesByProjectChain]|
|
||||||
| `com.dida.didanugetextension.action.ReUpdateReferencesByProjectChainAction` | [ReUpdateReferencesByProjectChain][file:ReUpdateReferencesByProjectChain]|
|
| `com.dida.didanugetextension.action.ReUpdateReferencesByProjectChainAction` | [ReUpdateReferencesByProjectChain][file:ReUpdateReferencesByProjectChain]|
|
||||||
|
|
||||||
@ -35,5 +35,5 @@
|
|||||||
[docs]: https://plugins.jetbrains.com/docs/intellij/
|
[docs]: https://plugins.jetbrains.com/docs/intellij/
|
||||||
[docs:ep]: https://plugins.jetbrains.com/docs/intellij/plugin-extensions.html
|
[docs:ep]: https://plugins.jetbrains.com/docs/intellij/plugin-extensions.html
|
||||||
[file:UpdateSolutionReferencesAction]: ./src/main/java/com/dida/didanugetextension/action/UpdateSolutionReferencesAction.java
|
[file:UpdateSolutionReferencesAction]: ./src/main/java/com/dida/didanugetextension/action/UpdateSolutionReferencesAction.java
|
||||||
[file:UpdateReferencesByProjectChain]: ./src/main/java/com/dida/didanugetextension/action/UpdateReferencesByProjectChain.java
|
[file:UpdateReferencesByProjectChain]: ./src/main/java/com/dida/didanugetextension/action/UpdateReferencesByProjectChainAction.java
|
||||||
[file:ReUpdateReferencesByProjectChain]: ./src/main/java/com/dida/didanugetextension/action/ReUpdateReferencesByProjectChain.java
|
[file:ReUpdateReferencesByProjectChain]: ./src/main/java/com/dida/didanugetextension/action/ReUpdateReferencesByProjectChainAction.java
|
||||||
Binary file not shown.
Binary file not shown.
@ -31,7 +31,7 @@ public class ReUpdateReferencesByProjectChainAction extends BaseAction {
|
|||||||
String command = "jenkins reUpdateReferences " + csprojPath;
|
String command = "jenkins reUpdateReferences " + csprojPath;
|
||||||
|
|
||||||
if (project != null) {
|
if (project != null) {
|
||||||
new Task.Backgroundable(project, "Updating Solution References", false) {
|
new Task.Backgroundable(project, "ReUpdate References By Project Chain", false) {
|
||||||
@Override
|
@Override
|
||||||
public void run(@NotNull ProgressIndicator indicator) {
|
public void run(@NotNull ProgressIndicator indicator) {
|
||||||
// 在这里执行你的CMD命令
|
// 在这里执行你的CMD命令
|
||||||
|
|||||||
@ -29,7 +29,7 @@ public class UpdateReferencesByProjectChainAction extends BaseAction {
|
|||||||
String csprojPath = file.getPath();
|
String csprojPath = file.getPath();
|
||||||
String command = "jenkins updateReferences " + csprojPath;
|
String command = "jenkins updateReferences " + csprojPath;
|
||||||
if (project != null) {
|
if (project != null) {
|
||||||
new Task.Backgroundable(project, "Updating Solution References", false) {
|
new Task.Backgroundable(project, "Update References By Project Chain", false) {
|
||||||
@Override
|
@Override
|
||||||
public void run(@NotNull ProgressIndicator indicator) {
|
public void run(@NotNull ProgressIndicator indicator) {
|
||||||
// 在这里执行你的CMD命令
|
// 在这里执行你的CMD命令
|
||||||
|
|||||||
@ -45,8 +45,8 @@ public class UpdateSolutionReferencesAction extends BaseAction {
|
|||||||
public void update(AnActionEvent e) {
|
public void update(AnActionEvent e) {
|
||||||
// 设置动作是否可见和启用
|
// 设置动作是否可见和启用
|
||||||
VirtualFile selectedFile = e.getData(CommonDataKeys.VIRTUAL_FILE);
|
VirtualFile selectedFile = e.getData(CommonDataKeys.VIRTUAL_FILE);
|
||||||
boolean isCsprojFile = selectedFile != null && selectedFile.getName().endsWith(".sln");
|
boolean isSlnFile = selectedFile != null && selectedFile.getName().endsWith(".sln");
|
||||||
e.getPresentation().setEnabledAndVisible(isCsprojFile);
|
e.getPresentation().setEnabledAndVisible(isSlnFile);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user