mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
help ID for SessionDialog (IDEA-64910)
This commit is contained in:
@@ -43,6 +43,11 @@ public interface CommitSession {
|
||||
|
||||
public void executionCanceled() {
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getHelpId() {
|
||||
return null;
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
@@ -57,4 +62,10 @@ public interface CommitSession {
|
||||
boolean canExecute(Collection<Change> changes, String commitMessage);
|
||||
void execute(Collection<Change> changes, String commitMessage);
|
||||
void executionCanceled();
|
||||
|
||||
/**
|
||||
* @return the ID of the help topic to show for the dialog
|
||||
* @since 10.5
|
||||
*/
|
||||
String getHelpId();
|
||||
}
|
||||
|
||||
+5
@@ -198,5 +198,10 @@ public class CreatePatchCommitExecutor implements CommitExecutorWithHelp, Projec
|
||||
|
||||
public void executionCanceled() {
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getHelpId() {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
}
|
||||
+5
@@ -112,5 +112,10 @@ public class ShelveChangesCommitExecutor implements CommitExecutorWithHelp {
|
||||
|
||||
public void executionCanceled() {
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getHelpId() {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -85,4 +85,14 @@ public class SessionDialog extends DialogWrapper {
|
||||
super.dispose();
|
||||
myOKButtonUpdateAlarm.cancelAllRequests();
|
||||
}
|
||||
|
||||
@Override
|
||||
protected String getHelpId() {
|
||||
try {
|
||||
return mySession.getHelpId();
|
||||
}
|
||||
catch (AbstractMethodError e) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user