diff options
author | Frank Schoenheit [fs] <frank.schoenheit@sun.com> | 2010-02-03 12:50:22 +0100 |
---|---|---|
committer | Frank Schoenheit [fs] <frank.schoenheit@sun.com> | 2010-02-03 12:50:22 +0100 |
commit | a44bc63de98cdf39179f742b1e661b23749eaffa (patch) | |
tree | 8305a26f55e4131358e5ffea98ff5cd1e81fc57b /wizards | |
parent | 619a6a4ab19ba81c46caad249eaf926281f897d9 (diff) |
autorecovery: populate the 'Command' property
Diffstat (limited to 'wizards')
-rw-r--r-- | wizards/com/sun/star/wizards/table/CallTableWizard.java | 2 | ||||
-rw-r--r-- | wizards/com/sun/star/wizards/table/TableWizard.java | 14 |
2 files changed, 10 insertions, 6 deletions
diff --git a/wizards/com/sun/star/wizards/table/CallTableWizard.java b/wizards/com/sun/star/wizards/table/CallTableWizard.java index 8f7cab8732d6..f52a3d79c430 100644 --- a/wizards/com/sun/star/wizards/table/CallTableWizard.java +++ b/wizards/com/sun/star/wizards/table/CallTableWizard.java @@ -109,7 +109,7 @@ public class CallTableWizard if ( sEvent.compareTo("start") == 0 ) { TableWizard CurTableWizard = new TableWizard( m_serviceFactory, m_wizardContext ); - CurTableWizard.startTableWizard(); + Command = CurTableWizard.startTableWizard(); } } catch (Exception exception) diff --git a/wizards/com/sun/star/wizards/table/TableWizard.java b/wizards/com/sun/star/wizards/table/TableWizard.java index 1995a442d58c..84accf582174 100644 --- a/wizards/com/sun/star/wizards/table/TableWizard.java +++ b/wizards/com/sun/star/wizards/table/TableWizard.java @@ -72,6 +72,8 @@ public class TableWizard extends DatabaseObjectWizard implements XTextListener, private String sMsgColumnAlreadyExists = ""; String WizardHeaderText[] = new String[8]; + private String m_tableName; + public TableWizard( XMultiServiceFactory xMSF, PropertyValue[] i_wizardContext ) { super( xMSF, 41200, i_wizardContext ); @@ -304,6 +306,7 @@ public class TableWizard extends DatabaseObjectWizard implements XTextListener, { final boolean editTableDesign = (wizardmode == Finalizer.MODIFYTABLEMODE ); loadSubComponent( DatabaseObject.TABLE, curTableDescriptor.getComposedTableName(), editTableDesign ); + m_tableName = curTableDescriptor.getComposedTableName(); super.xDialog.endExecute(); } } @@ -360,7 +363,7 @@ public class TableWizard extends DatabaseObjectWizard implements XTextListener, setCurrentRoadmapItemID((short) 1); } - public void startTableWizard( ) + public String startTableWizard( ) { try { @@ -373,11 +376,11 @@ public class TableWizard extends DatabaseObjectWizard implements XTextListener, insertFormRelatedSteps(); short RetValue = executeDialog(); xComponent.dispose(); - if ( ( RetValue == 0 ) - && ( wizardmode == Finalizer.STARTFORMWIZARDMODE ) - ) + if ( RetValue == 0 ) { - callFormWizard(); + if ( wizardmode == Finalizer.STARTFORMWIZARDMODE ) + callFormWizard(); + return m_tableName; } } } @@ -385,6 +388,7 @@ public class TableWizard extends DatabaseObjectWizard implements XTextListener, { jexception.printStackTrace(System.out); } + return ""; } public boolean getTableResources() |