autorecovery: populate the 'Command' property

This commit is contained in:
Frank Schoenheit [fs] 2010-02-03 12:50:22 +01:00
parent 619a6a4ab1
commit a44bc63de9
2 changed files with 10 additions and 6 deletions

View file

@ -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)

View file

@ -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()