EPUB meta data editor second draft

git-svn-id: svn://svn.code.sf.net/p/writer2latex/code/trunk@92 f0f2a975-2e09-46c8-9428-3b39399b9f3c
This commit is contained in:
henrikjust 2011-02-23 11:09:09 +00:00
parent bb1cc87bab
commit 3dd2833a4e
16 changed files with 336 additions and 238 deletions

View file

@ -16,11 +16,11 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston,
* MA 02111-1307 USA
*
* Copyright: 2002-2010 by Henrik Just
* Copyright: 2002-2011 by Henrik Just
*
* All Rights Reserved.
*
* Version 1.2 (2010-04-12)
* Version 1.2 (2011-02-23)
*
*/
@ -115,7 +115,7 @@ public abstract class OptionsDialogBase extends DialogBase implements
/** Finalize the dialog after execution (eg. save settings to the registry)
*/
public void finalize() {
public void endDialog() {
try {
// Prepare registry view
Object rwview = getRegistryView(true);

View file

@ -16,11 +16,11 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston,
* MA 02111-1307 USA
*
* Copyright: 2002-2008 by Henrik Just
* Copyright: 2002-2011 by Henrik Just
*
* All Rights Reserved.
*
* Version 1.0 (2008-09-11)
* Version 1.2 (2011-02-23)
*
*/
@ -87,10 +87,10 @@ public abstract class DialogBase implements
*/
protected abstract void initialize();
/** Finalize the dialog after execution (eg. save settings to the registry)
/** End the dialog after execution (eg. save settings to the registry)
* The subclass must implement this
*/
protected abstract void finalize();
protected abstract void endDialog();
//////////////////////////////////////////////////////////////////////////
// Some constants
@ -195,15 +195,12 @@ public abstract class DialogBase implements
if (nResult == ExecutableDialogResults.OK) {
// Finalize after execution of dialog using method from subclass
finalize();
endDialog();
}
xDialog.endExecute();
return nResult;
}
catch (Exception e) {
MessageBox msgBox = new MessageBox(xContext);
msgBox.showMessage("Error",e.toString()+" "+e.getStackTrace()[0].toString());
// continue as if the dialog was executed OK
return ExecutableDialogResults.OK;
}