help ID for SessionDialog (IDEA-64910)

This commit is contained in:
Dmitry Jemerov
2011-02-02 15:27:43 +01:00
parent 5d09911e4d
commit c60866c2b3
4 changed files with 31 additions and 0 deletions
@@ -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();
}
@@ -198,5 +198,10 @@ public class CreatePatchCommitExecutor implements CommitExecutorWithHelp, Projec
public void executionCanceled() {
}
@Override
public String getHelpId() {
return null;
}
}
}
@@ -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;
}
}
}