protected void performOperation() {
performOperation( true );
}
protected void performOperation( boolean feedback ) {
final ManageContentDialog dialog = new ManageContentDialog();
dialog.setCallback( new IDialogCallback() {
public void okPressed() {
if ( dialog.getState() == ManageContentDialog.STATE.EDIT ) {
OpenFileCommand cmd = new OpenFileCommand( FileCommand.COMMAND.EDIT );
cmd.execute();
} else if ( dialog.getState() == ManageContentDialog.STATE.SHARE ) {
OpenFileCommand cmd = new OpenFileCommand( FileCommand.COMMAND.SHARE );
cmd.execute();
} else if ( dialog.getState() == ManageContentDialog.STATE.SCHEDULE ) {
OpenFileCommand cmd = new OpenFileCommand( FileCommand.COMMAND.SCHEDULE_NEW );
cmd.execute();
}
}
public void cancelPressed() {
}
} );
dialog.center();
}