use of edu.cmu.cs.hcii.cogtool.ui.ProjectSelectionState in project cogtool by cogtool.
the class ProjectController method createExportDesignToHTMLAction.
protected IListenerAction createExportDesignToHTMLAction() {
return new IListenerAction() {
public Class<?> getParameterClass() {
return ProjectSelectionState.class;
}
public boolean performAction(Object actionParms) {
ProjectSelectionState selection = (ProjectSelectionState) actionParms;
Design d = selection.getSelectedDesign();
if (d == null) {
interaction.protestNoSelection();
return false;
}
return ExportToHTMLWorkThread.exportDesignToHTML(d, interaction);
}
};
}
Aggregations