* entry and displayed in the table editor.
*/
public void processVirtualEntry()
{
NewEntryWin userData = null;
if (dataSource.getSchemaOps() == null)
{
JOptionPane.showMessageDialog(owner, CBIntText.get("Because there is no schema currently published by the\ndirectory, changing an entry's object class is unavailable."), CBIntText.get("No Schema"), JOptionPane.INFORMATION_MESSAGE);
return;
}
else
{
shutVirtualEntryDialog(); //TE: kill the prompt window.
userData = new NewEntryWin(dataSource, currentEntry.getDN(), this, owner, true);
userData.setSize(400, 250);
CBUtility.center(userData, owner); //TE: centres window.
userData.setVisible(true);
while (userData.isVisible()) //TE: don't do anything until the New Entry window is closed.
{
try
{
wait();
}
catch (Exception e)
{
userData.dispose();
}
}
}
if (userData.newObjectClasses != null) //TE: if the user has selected one or more object classes - add them to the entry in the directory.