Changes to Java interface.
git-svn-id: https://svn.code.sf.net/p/flaim/code/trunk@827 0109f412-320b-0410-ab79-c3e0c5ffbbe6
This commit is contained in:
@@ -24,6 +24,7 @@
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
package xedit;
|
||||
import xflaim.*;
|
||||
|
||||
/**
|
||||
* To change the template for this generated type comment go to
|
||||
|
||||
@@ -94,7 +94,7 @@ public class CollectionSelector extends JDialog implements ActionListener
|
||||
KeyRetrieveFlags.FO_FIRST,
|
||||
SearchKey);
|
||||
|
||||
SearchKey.setUINT(0, ReserveID.ELM_COLLECTION_TAG);
|
||||
SearchKey.setLong(0, ReserveID.ELM_COLLECTION_TAG);
|
||||
SearchKey.setString(1, "a");
|
||||
|
||||
for (;;)
|
||||
@@ -118,12 +118,12 @@ public class CollectionSelector extends JDialog implements ActionListener
|
||||
break;
|
||||
}
|
||||
|
||||
if (FoundKey.getUINT(0) != ReserveID.ELM_COLLECTION_TAG)
|
||||
if (FoundKey.getLong(0) != ReserveID.ELM_COLLECTION_TAG)
|
||||
{
|
||||
break;
|
||||
}
|
||||
String sName = FoundKey.getString(1);
|
||||
int iNumber = FoundKey.getINT(3);
|
||||
int iNumber = (int)FoundKey.getLong(3);
|
||||
vCollections.add(new Collection(sName, iNumber));
|
||||
|
||||
}
|
||||
|
||||
@@ -95,7 +95,7 @@ public class FileImporter extends Thread
|
||||
String [] sList)
|
||||
{
|
||||
boolean bTransBegun = false;
|
||||
PosIStream jIStream = null;
|
||||
IStream jIStream = null;
|
||||
|
||||
if (m_box.Cancelled())
|
||||
{
|
||||
|
||||
@@ -615,7 +615,7 @@ public class NodeDialog extends JDialog implements Runnable, ActionListener, Lis
|
||||
KeyRetrieveFlags.FO_FIRST,
|
||||
SearchKey);
|
||||
|
||||
SearchKey.setUINT(0, ReserveID.ELM_ELEMENT_TAG);
|
||||
SearchKey.setLong(0, ReserveID.ELM_ELEMENT_TAG);
|
||||
SearchKey.setString(1, "a");
|
||||
|
||||
for (;;)
|
||||
@@ -639,12 +639,12 @@ public class NodeDialog extends JDialog implements Runnable, ActionListener, Lis
|
||||
break;
|
||||
}
|
||||
|
||||
if (FoundKey.getUINT(0) != ReserveID.ELM_ELEMENT_TAG)
|
||||
if (FoundKey.getLong(0) != ReserveID.ELM_ELEMENT_TAG)
|
||||
{
|
||||
break;
|
||||
}
|
||||
String sName = FoundKey.getString(1);
|
||||
int iNumber = FoundKey.getINT(3);
|
||||
int iNumber = (int)FoundKey.getLong(3);
|
||||
vElements.add(new NodeTag("<" + sName + ">", iNumber));
|
||||
}
|
||||
|
||||
@@ -695,7 +695,7 @@ public class NodeDialog extends JDialog implements Runnable, ActionListener, Lis
|
||||
KeyRetrieveFlags.FO_FIRST,
|
||||
SearchKey);
|
||||
|
||||
SearchKey.setUINT(0, ReserveID.ELM_ATTRIBUTE_TAG);
|
||||
SearchKey.setLong(0, ReserveID.ELM_ATTRIBUTE_TAG);
|
||||
SearchKey.setString(1, "a");
|
||||
|
||||
for (;;)
|
||||
@@ -719,12 +719,12 @@ public class NodeDialog extends JDialog implements Runnable, ActionListener, Lis
|
||||
break;
|
||||
}
|
||||
|
||||
if (FoundKey.getUINT(0) != ReserveID.ELM_ATTRIBUTE_TAG)
|
||||
if (FoundKey.getLong(0) != ReserveID.ELM_ATTRIBUTE_TAG)
|
||||
{
|
||||
break;
|
||||
}
|
||||
String sName = FoundKey.getString(1);
|
||||
int iNumber = FoundKey.getINT(3);
|
||||
int iNumber = (int)FoundKey.getLong(3);
|
||||
vAttributes.add(new NodeTag("<" + sName + ">", iNumber));
|
||||
}
|
||||
|
||||
|
||||
@@ -1400,7 +1400,18 @@ public class XEdit extends JFrame implements Runnable, ActionListener, MouseList
|
||||
if (sDatabaseName != null)
|
||||
{
|
||||
// If this fails, we will throw an exception.
|
||||
m_dbSystem.dbRemove( sDatabaseName, "", "", true);
|
||||
try
|
||||
{
|
||||
m_dbSystem.dbRemove( sDatabaseName, "", "", true);
|
||||
}
|
||||
catch (XFlaimException e)
|
||||
{
|
||||
JOptionPane.showConfirmDialog(
|
||||
this,
|
||||
"Database Exception occurred: " + e.getMessage(),
|
||||
"Database Exception",
|
||||
JOptionPane.ERROR_MESSAGE);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user