Commit 40d04f48 authored by Mattijs Janssens's avatar Mattijs Janssens
Browse files

update to javac 1.5

parent 26ac5e11
......@@ -176,7 +176,7 @@ public class App
mainFrame_.initialise(args);
mainFrame_.show();
mainFrame_.setVisible(true);
}
//--------------------------------------------------------------------------
......
......@@ -172,10 +172,10 @@ public class CaseBrowserModel
keyMap_.clear();
// Loop over all host nodes.
Enumeration enum = hostMap_.keys();
while (enum.hasMoreElements())
Enumeration iter = hostMap_.keys();
while (iter.hasMoreElements())
{
String hostName = (String)enum.nextElement();
String hostName = (String)iter.nextElement();
// Get host node.
DefaultMutableTreeNode hostNode =
......@@ -306,10 +306,10 @@ public class CaseBrowserModel
// {
//
// // Loop over all host nodes.
// Enumeration enum = hostMap_.keys();
// while (enum.hasMoreElements())
// itereration iter = hostMap_.keys();
// while (iter.hasMoreElements())
// {
// String hostName = (String)enum.nextElement();
// String hostName = (String)iter.nextElement();
//
// // Get host node.
// DefaultMutableTreeNode hostNode =
......@@ -862,10 +862,10 @@ public class CaseBrowserModel
keyMap_.clear();
// Loop over all host nodes.
Enumeration enum = hostMap_.keys();
while (enum.hasMoreElements())
Enumeration iter = hostMap_.keys();
while (iter.hasMoreElements())
{
String hostName = (String)enum.nextElement();
String hostName = (String)iter.nextElement();
// Get host node.
DefaultMutableTreeNode hostNode =
......
......@@ -1720,7 +1720,7 @@ public class CaseBrowserPanel
null,
context.getCaseBrowser()
);
processEditor.show();
processEditor.setVisible(true);
}
}
}
......@@ -1795,7 +1795,7 @@ public class CaseBrowserPanel
dictHolder.value
);
compoundEditor.setTitle("OpenFOAM Dictionary");
compoundEditor.show();
compoundEditor.setVisible(true);
if (dictHolder.value.modified())
{
......@@ -2511,7 +2511,7 @@ public class CaseBrowserPanel
}
// Show the dialog.
dlg.show();
dlg.setVisible(true);
if (!dlg.wasCancelled())
{
......@@ -2881,7 +2881,7 @@ public class CaseBrowserPanel
controlDict.getDictEntry()
);
compoundEditor.setTitle("Clone Case");
compoundEditor.show();
compoundEditor.setVisible(true);
// Show busy cursor.
BusyCursor busyCursor = new BusyCursor
......
......@@ -137,11 +137,11 @@ public class CaseManager
int caseNo = 0;
// Close all cases.
Enumeration enum = caseMap_.elements();
while (enum.hasMoreElements())
Enumeration iter = caseMap_.elements();
while (iter.hasMoreElements())
{
// Get next case.
CasePanel casePanel = (CasePanel)enum.nextElement();
CasePanel casePanel = (CasePanel)iter.nextElement();
// Give option of saving if modified
casePanel.checkAndSave
......@@ -176,11 +176,11 @@ public class CaseManager
// );
//caseNo = 0;
//// Close all cases.
//enum = casePostMap_.elements();
//while (enum.hasMoreElements())
//iter = casePostMap_.elements();
//while (iter.hasMoreElements())
//{
// // Get next case.
// CasePostPanel casePostPanel = (CasePostPanel)enum.nextElement();
// CasePostPanel casePostPanel = (CasePostPanel)iter.nextElement();
//
// // Do exactly if 'close case' on casePostPanel was pressed
// casePostClosed
......
......@@ -1295,7 +1295,7 @@ public class CasePanel
"controlDict",
null
);
runPanel.show();
runPanel.setVisible(true);
}
}
}
......
......@@ -314,12 +314,12 @@ public class BoundaryDefinitionModelItem
patchPhysicalTypeDesc_.patchType(patchType_);
// Set the patch field types.
Enumeration enum = patchFieldTypeMap_.keys();
Enumeration iter = patchFieldTypeMap_.keys();
StringPair[] patchFieldTypes = new StringPair[patchFieldTypeMap_.size()];
int nField = 0;
while (enum.hasMoreElements())
while (iter.hasMoreElements())
{
String fieldName = (String)enum.nextElement();
String fieldName = (String)iter.nextElement();
String patchFieldType = (String)patchFieldTypeMap_.get(fieldName);
patchFieldTypes[nField++] = new StringPair(fieldName, patchFieldType);
}
......
......@@ -101,7 +101,7 @@ public class CaseNameCache
App.getRootFrame(),
CaseBrowserPanel.SELECT_CASE_MODE
);
caseChooser.show();
caseChooser.setVisible(true);
if
(
......
......@@ -174,7 +174,7 @@ public class CompoundCache
);
editor.setTitle(displayName_);
editor.show();
editor.setVisible(true);
// Update the cached display string.
displayValue_ = getCompoundDisplayString(3);
// Signal that editing has stopped.
......
......@@ -122,8 +122,7 @@ public class DictionaryCache
dictEntry_
);
editor.setTitle(displayName_);
editor.show();
editor.setVisible(true);
// Update the cached display string.
displayValue_ = getCompoundDisplayString(3);
// Signal that editing has stopped.
......
......@@ -139,7 +139,7 @@ public class DimensionSetCache
editor.setTitle(displayName_);
editor.show();
editor.setVisible(true);
// Update value in case it has been updated.
getEntryValue();
// Signal that editing has stopped.
......
......@@ -135,7 +135,7 @@ public class FixedListCache
typeDescriptor_
);
editor.setTitle(displayName_);
editor.show();
editor.setVisible(true);
// Update the cached display string.
displayValue_ = getCompoundDisplayString(3);
// Signal that editing has stopped.
......
......@@ -124,7 +124,7 @@ public class HostNameCache
// Pop up host chooser panel
HostChooserDlg hostChooser =
new HostChooserDlg(App.getRootFrame());
hostChooser.show();
hostChooser.setVisible(true);
if (hostChooser.getHostName() != null)
{
......
......@@ -189,7 +189,7 @@ public class ListCache
);
editor.setTitle(displayName_);
editor.show();
editor.setVisible(true);
// Signal that editing has stopped.
editor_.stopCellEditing();
}
......
......@@ -187,7 +187,7 @@ public class RootAndCaseCache
App.getRootFrame(),
CaseBrowserPanel.SELECT_CASE_MODE
);
caseChooser.show();
caseChooser.setVisible(true);
if
(
......
......@@ -129,7 +129,7 @@ public class RootDirCache
App.getRootFrame(),
CaseBrowserPanel.SELECT_ROOT_MODE
);
caseChooser.show();
caseChooser.setVisible(true);
if
(
......
......@@ -127,7 +127,7 @@ public class SelectionCache
);
editor.setTitle(displayName_);
editor.show();
editor.setVisible(true);
// Update the cached display string.
displayValue_ = getSelectionDisplayString();
// Signal that editing has stopped.
......
......@@ -1783,7 +1783,7 @@ public class CaseEditorModule
CaseBrowserPanel.SELECT_CASE_MODE
);
caseChooser.show();
caseChooser.setVisible(true);
if
(
......
......@@ -193,11 +193,11 @@ public class PatchEditorModel
}
// Now that the map is initialised, build the tree.
Enumeration enum = boundaryDefMap_.elements();
while (enum.hasMoreElements())
Enumeration iter = boundaryDefMap_.elements();
while (iter.hasMoreElements())
{
DefaultMutableTreeNode node =
(DefaultMutableTreeNode)enum.nextElement();
(DefaultMutableTreeNode)iter.nextElement();
BoundaryDefinitionModelItem nodeInfo =
(BoundaryDefinitionModelItem)node.getUserObject();
......
......@@ -211,7 +211,7 @@ public class PatchEditorWindow
// Initialise and show the boundary type selector dialog.
PatchPhysicalTypeSelectorDlg dlg = new PatchPhysicalTypeSelectorDlg(null, patchModel_);
dlg.show();
dlg.setVisible(true);
// If the dialog wasn't cancelled, update the boundary type name.
if (!dlg.wasCancelled())
......
......@@ -327,7 +327,7 @@ public class ProcessEditor extends javax.swing.JDialog
labels, values
);
dlg.show();
dlg.setVisible(true);
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment