autorecovery: populate the 'Command' property
This commit is contained in:
parent
619a6a4ab1
commit
a44bc63de9
2 changed files with 10 additions and 6 deletions
|
@ -109,7 +109,7 @@ public class CallTableWizard
|
||||||
if ( sEvent.compareTo("start") == 0 )
|
if ( sEvent.compareTo("start") == 0 )
|
||||||
{
|
{
|
||||||
TableWizard CurTableWizard = new TableWizard( m_serviceFactory, m_wizardContext );
|
TableWizard CurTableWizard = new TableWizard( m_serviceFactory, m_wizardContext );
|
||||||
CurTableWizard.startTableWizard();
|
Command = CurTableWizard.startTableWizard();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch (Exception exception)
|
catch (Exception exception)
|
||||||
|
|
|
@ -72,6 +72,8 @@ public class TableWizard extends DatabaseObjectWizard implements XTextListener,
|
||||||
private String sMsgColumnAlreadyExists = "";
|
private String sMsgColumnAlreadyExists = "";
|
||||||
String WizardHeaderText[] = new String[8];
|
String WizardHeaderText[] = new String[8];
|
||||||
|
|
||||||
|
private String m_tableName;
|
||||||
|
|
||||||
public TableWizard( XMultiServiceFactory xMSF, PropertyValue[] i_wizardContext )
|
public TableWizard( XMultiServiceFactory xMSF, PropertyValue[] i_wizardContext )
|
||||||
{
|
{
|
||||||
super( xMSF, 41200, i_wizardContext );
|
super( xMSF, 41200, i_wizardContext );
|
||||||
|
@ -304,6 +306,7 @@ public class TableWizard extends DatabaseObjectWizard implements XTextListener,
|
||||||
{
|
{
|
||||||
final boolean editTableDesign = (wizardmode == Finalizer.MODIFYTABLEMODE );
|
final boolean editTableDesign = (wizardmode == Finalizer.MODIFYTABLEMODE );
|
||||||
loadSubComponent( DatabaseObject.TABLE, curTableDescriptor.getComposedTableName(), editTableDesign );
|
loadSubComponent( DatabaseObject.TABLE, curTableDescriptor.getComposedTableName(), editTableDesign );
|
||||||
|
m_tableName = curTableDescriptor.getComposedTableName();
|
||||||
super.xDialog.endExecute();
|
super.xDialog.endExecute();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -360,7 +363,7 @@ public class TableWizard extends DatabaseObjectWizard implements XTextListener,
|
||||||
setCurrentRoadmapItemID((short) 1);
|
setCurrentRoadmapItemID((short) 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void startTableWizard( )
|
public String startTableWizard( )
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
@ -373,11 +376,11 @@ public class TableWizard extends DatabaseObjectWizard implements XTextListener,
|
||||||
insertFormRelatedSteps();
|
insertFormRelatedSteps();
|
||||||
short RetValue = executeDialog();
|
short RetValue = executeDialog();
|
||||||
xComponent.dispose();
|
xComponent.dispose();
|
||||||
if ( ( RetValue == 0 )
|
if ( RetValue == 0 )
|
||||||
&& ( wizardmode == Finalizer.STARTFORMWIZARDMODE )
|
|
||||||
)
|
|
||||||
{
|
{
|
||||||
callFormWizard();
|
if ( wizardmode == Finalizer.STARTFORMWIZARDMODE )
|
||||||
|
callFormWizard();
|
||||||
|
return m_tableName;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -385,6 +388,7 @@ public class TableWizard extends DatabaseObjectWizard implements XTextListener,
|
||||||
{
|
{
|
||||||
jexception.printStackTrace(System.out);
|
jexception.printStackTrace(System.out);
|
||||||
}
|
}
|
||||||
|
return "";
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean getTableResources()
|
public boolean getTableResources()
|
||||||
|
|
Loading…
Reference in a new issue