Modify FV attribute editor and generate FvImage Attributes in FPD file.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1505 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
jlin16 2006-09-10 07:45:21 +00:00
parent ed9610eb9c
commit 54aa8673cb
2 changed files with 228 additions and 94 deletions

View File

@ -2608,7 +2608,7 @@ public class FpdFileContents {
} }
} }
public void AddFvImageFvImageNames (String[] fvNames) { public void addFvImageFvImageNames (String[] fvNames) {
FvImagesDocument.FvImages fis = getfpdFlash().getFvImages(); FvImagesDocument.FvImages fis = getfpdFlash().getFvImages();
if (fis == null || fis.getFvImageList() == null) { if (fis == null || fis.getFvImageList() == null) {
genFvImagesFvImage (fvNames, "ImageName", null); genFvImagesFvImage (fvNames, "ImageName", null);
@ -2619,14 +2619,35 @@ public class FpdFileContents {
while (li.hasNext()) { while (li.hasNext()) {
FvImagesDocument.FvImages.FvImage fi = li.next(); FvImagesDocument.FvImages.FvImage fi = li.next();
if (fi.getType().toString().equals("ImageName")) { if (fi.getType().toString().equals("ImageName")) {
for (int i = 0; i < fvNames.length; ++i) { addFvImageNamesInFvImage (fi, fvNames);
fi.addFvImageNames(fvNames[i]);
}
return; return;
} }
} }
genFvImagesFvImage (fvNames, "ImageName", null); genFvImagesFvImage (fvNames, "ImageName", null);
}
public void addFvImageNamesInFvImage (FvImagesDocument.FvImages.FvImage fi, String[] fvNames) {
for (int i = 0; i < fvNames.length; ++i) {
fi.addFvImageNames(fvNames[i]);
}
}
public void addFvImageNamesInFvImage (int i, String[] fvNames) {
XmlObject o = getfpdFlash().getFvImages();
if (o == null) {
return;
}
XmlCursor cursor = o.newCursor();
QName qFvImage = new QName(xmlNs, "FvImage");
if (cursor.toChild(qFvImage)) {
for (int j = 0; j < i; ++j) {
cursor.toNextSibling(qFvImage);
}
FvImagesDocument.FvImages.FvImage fi = (FvImagesDocument.FvImages.FvImage)cursor.getObject();
addFvImageNamesInFvImage(fi, fvNames);
}
cursor.dispose();
} }
public void genFvImagesFvImage(String[] names, String types, Map<String, String> options) { public void genFvImagesFvImage(String[] names, String types, Map<String, String> options) {
@ -2706,6 +2727,22 @@ public class FpdFileContents {
} }
} }
public void updateFvImageNamesInFvImage (int i, String oldFvName, String newFvName) {
XmlObject o = getfpdFlash().getFvImages();
if (o == null) {
return;
}
XmlCursor cursor = o.newCursor();
QName qFvImage = new QName(xmlNs, "FvImage");
if (cursor.toChild(qFvImage)) {
for (int j = 0; j < i; ++j) {
cursor.toNextSibling(qFvImage);
}
FvImagesDocument.FvImages.FvImage fi = (FvImagesDocument.FvImages.FvImage)cursor.getObject();
updateFvImageNamesInFvImage (fi, oldFvName, newFvName);
}
cursor.dispose();
}
/** /**
* @param fi * @param fi
* @param oldFvName The FV Name to be replaced. * @param oldFvName The FV Name to be replaced.
@ -2870,6 +2907,22 @@ public class FpdFileContents {
} }
} }
public void removeFvImageNameValue (int i, String attributeName) {
XmlObject o = getfpdFlash().getFvImages();
if (o == null) {
return;
}
XmlCursor cursor = o.newCursor();
QName qFvImage = new QName(xmlNs, "FvImage");
if (cursor.toChild(qFvImage)) {
for (int j = 0; j < i; ++j) {
cursor.toNextSibling(qFvImage);
}
FvImagesDocument.FvImages.FvImage fi = (FvImagesDocument.FvImages.FvImage)cursor.getObject();
removeFvImageNameValue (fi, attributeName);
}
cursor.dispose();
}
/**Remove from fi the attribute pair with attributeName in FvImageOptions. /**Remove from fi the attribute pair with attributeName in FvImageOptions.
* @param fi * @param fi
* @param attributeName * @param attributeName
@ -2953,6 +3006,23 @@ public class FpdFileContents {
} }
public void setFvImagesFvImageNameValue (int i, String name, String value) {
XmlObject o = getfpdFlash().getFvImages();
if (o == null) {
return;
}
XmlCursor cursor = o.newCursor();
QName qFvImage = new QName(xmlNs, "FvImage");
if (cursor.toChild(qFvImage)) {
for (int j = 0; j < i; ++j) {
cursor.toNextSibling(qFvImage);
}
FvImagesDocument.FvImages.FvImage fi = (FvImagesDocument.FvImages.FvImage)cursor.getObject();
setFvImagesFvImageNameValue (fi, name, value, null);
}
cursor.dispose();
}
/**Add to FvImage the name-value pair, or replace old name with newName, or generate new name-value pair if not exists before. /**Add to FvImage the name-value pair, or replace old name with newName, or generate new name-value pair if not exists before.
* @param fi * @param fi
* @param name * @param name
@ -2961,6 +3031,12 @@ public class FpdFileContents {
*/ */
public void setFvImagesFvImageNameValue (FvImagesDocument.FvImages.FvImage fi, String name, String value, String newName) { public void setFvImagesFvImageNameValue (FvImagesDocument.FvImages.FvImage fi, String name, String value, String newName) {
if (fi.getFvImageOptions() == null || fi.getFvImageOptions().getNameValueList() == null) { if (fi.getFvImageOptions() == null || fi.getFvImageOptions().getNameValueList() == null) {
FvImagesDocument.FvImages.FvImage.FvImageOptions.NameValue nv = fi.addNewFvImageOptions().addNewNameValue();
nv.setName(name);
nv.setValue(value);
if (newName != null) {
nv.setName(newName);
}
return; return;
} }
@ -3013,7 +3089,7 @@ public class FpdFileContents {
} }
int pos = -1; int pos = -1;
String[] fvNameArray = fvNameList.split(" "); String[] fvNameArray = fvNameList.trim().split(" ");
Vector<String> vFvNames = new Vector<String>(); Vector<String> vFvNames = new Vector<String>();

View File

@ -105,10 +105,10 @@ public class FpdFlash extends IInternalFrame {
private JLabel jLabelFvImageNames = null; private JLabel jLabelFvImageNames = null;
private JLabel jLabelFvParaName = null; private JLabel jLabelFvParaName = null;
private JTextField jTextFieldFvParaName = null; private JTextField jTextFieldFvParaName = null;
private JButton jButtonFvParaAdd = null; private JButton jButtonFvNameAdd = null;
private JScrollPane jScrollPaneFvImageNames = null; private JScrollPane jScrollPaneFvImageNames = null;
private JTable jTableFvImageNames = null; private JTable jTableFvImageNames = null;
private JButton jButtonFvParaDel = null; private JButton jButtonFvNameDel = null;
private JPanel jPanelFvImageOpts = null; private JPanel jPanelFvImageOpts = null;
private JButton jButtonAddFvImage = null; private JButton jButtonAddFvImage = null;
private JScrollPane jScrollPaneFvInfo = null; private JScrollPane jScrollPaneFvInfo = null;
@ -169,6 +169,7 @@ public class FpdFlash extends IInternalFrame {
private JPanel jPanelBgFvName = null; private JPanel jPanelBgFvName = null;
private JPanel jPanelBgFvImage = null; private JPanel jPanelBgFvImage = null;
private JPanel jPanelW = null; private JPanel jPanelW = null;
private String oldFvNameInFvImage = "";
public FpdFlash() { public FpdFlash() {
super(); super();
@ -587,6 +588,7 @@ public class FpdFlash extends IInternalFrame {
jComboBoxFvParaType = new JComboBox(); jComboBoxFvParaType = new JComboBox();
jComboBoxFvParaType.addItem("Attributes"); jComboBoxFvParaType.addItem("Attributes");
jComboBoxFvParaType.addItem("Components"); jComboBoxFvParaType.addItem("Components");
jComboBoxFvParaType.setSelectedIndex(0);
jComboBoxFvParaType.setPreferredSize(new java.awt.Dimension(180,20)); jComboBoxFvParaType.setPreferredSize(new java.awt.Dimension(180,20));
jComboBoxFvParaType.addItemListener(new ItemListener() { jComboBoxFvParaType.addItemListener(new ItemListener() {
@ -634,13 +636,13 @@ public class FpdFlash extends IInternalFrame {
* *
* @return javax.swing.JButton * @return javax.swing.JButton
*/ */
private JButton getJButtonFvParaAdd() { private JButton getJButtonFvNameAdd() {
if (jButtonFvParaAdd == null) { if (jButtonFvNameAdd == null) {
jButtonFvParaAdd = new JButton(); jButtonFvNameAdd = new JButton();
jButtonFvParaAdd.setPreferredSize(new Dimension(80, 20)); jButtonFvNameAdd.setPreferredSize(new Dimension(80, 20));
jButtonFvParaAdd.setEnabled(true); jButtonFvNameAdd.setEnabled(true);
jButtonFvParaAdd.setText("Add"); jButtonFvNameAdd.setText("Add");
jButtonFvParaAdd.addActionListener(new AbstractAction() { jButtonFvNameAdd.addActionListener(new AbstractAction() {
/** /**
* *
*/ */
@ -649,26 +651,34 @@ public class FpdFlash extends IInternalFrame {
public void actionPerformed(java.awt.event.ActionEvent e) { public void actionPerformed(java.awt.event.ActionEvent e) {
if (jTextFieldFvParaName.getText().length() > 0){ if (jTextFieldFvParaName.getText().length() > 0){
String[] row = {jTextFieldFvParaName.getText()}; String[] row = {jTextFieldFvParaName.getText()};
fvImageNameTableModel.addRow(row); int selectedRow = jTableFvInfo.getSelectedRow();
if (jTableFvInfo.getSelectedRow() < 0) { if (selectedRow < 0) {
return; return;
} }
String fvNameList = jTableFvInfo.getValueAt(jTableFvInfo.getSelectedRow(), 0)+""; String fvNameList = jTableFvInfo.getValueAt(selectedRow, 0)+"";
String type = jTableFvInfo.getValueAt(jTableFvInfo.getSelectedRow(), 1)+""; String type = jTableFvInfo.getValueAt(selectedRow, 1)+"";
int fvImagePos = ffc.getFvImagePosInFvImages(fvNameList, type); int fvImagePos = ffc.getFvImagePosInFvImages(fvNameList, type);
if (fvImagePos < 0) { if (fvImagePos < 0) {
// new FvImage. // new FvImage.
ffc.genFvImagesFvImage(row, jComboBoxFvParaType.getSelectedItem()+"", null);
} }
else { else {
//append Fv name. //append Fv name.
ffc.addFvImageNamesInFvImage(fvImagePos, row);
} }
docConsole.setSaved(false);
fvImageNameTableModel.addRow(row);
fvNameList += " ";
fvNameList += row[0];
jTableFvInfo.setValueAt(fvNameList.trim(), selectedRow, 0);
jTableFvImageNames.changeSelection(jTableFvImageNames.getRowCount() - 1, 0, false, false);
} }
} }
}); });
} }
return jButtonFvParaAdd; return jButtonFvNameAdd;
} }
@ -694,37 +704,11 @@ public class FpdFlash extends IInternalFrame {
*/ */
private JTable getJTableFvImageNames() { private JTable getJTableFvImageNames() {
if (jTableFvImageNames == null) { if (jTableFvImageNames == null) {
fvImageNameTableModel = new DefaultTableModel(); fvImageNameTableModel = new NonEditableTableModel();
jTableFvImageNames = new JTable(fvImageNameTableModel); jTableFvImageNames = new JTable(fvImageNameTableModel);
jTableFvImageNames.setRowHeight(20); jTableFvImageNames.setRowHeight(20);
fvImageNameTableModel.addColumn("FV Image Name"); fvImageNameTableModel.addColumn("FV Image Name");
jTableFvImageNames.getSelectionModel().addListSelectionListener(new ListSelectionListener() {
public void valueChanged(ListSelectionEvent e) {
if (e.getValueIsAdjusting()) {
return;
}
ListSelectionModel lsm = (ListSelectionModel) e.getSource();
if (lsm.isSelectionEmpty()) {
return;
} else {
int selectedRow = lsm.getMinSelectionIndex();
String oldFvName = jTableFvImageNames.getValueAt(selectedRow, 0)+"";
}
}
});
jTableFvImageNames.getModel().addTableModelListener(new TableModelListener() {
public void tableChanged(TableModelEvent arg0) {
// TODO Auto-generated method stub
int row = arg0.getFirstRow();
int col = arg0.getColumn();
TableModel m = (TableModel) arg0.getSource();
if (arg0.getType() == TableModelEvent.UPDATE) {
}
}
});
} }
return jTableFvImageNames; return jTableFvImageNames;
} }
@ -735,13 +719,13 @@ public class FpdFlash extends IInternalFrame {
* *
* @return javax.swing.JButton * @return javax.swing.JButton
*/ */
private JButton getJButtonFvParaDel() { private JButton getJButtonFvNameDel() {
if (jButtonFvParaDel == null) { if (jButtonFvNameDel == null) {
jButtonFvParaDel = new JButton(); jButtonFvNameDel = new JButton();
jButtonFvParaDel.setPreferredSize(new Dimension(80, 20)); jButtonFvNameDel.setPreferredSize(new Dimension(80, 20));
jButtonFvParaDel.setEnabled(true); jButtonFvNameDel.setEnabled(true);
jButtonFvParaDel.setText("Delete"); jButtonFvNameDel.setText("Delete");
jButtonFvParaDel.addActionListener(new AbstractAction() { jButtonFvNameDel.addActionListener(new AbstractAction() {
/** /**
* *
*/ */
@ -749,16 +733,58 @@ public class FpdFlash extends IInternalFrame {
public void actionPerformed(java.awt.event.ActionEvent e) { public void actionPerformed(java.awt.event.ActionEvent e) {
if (jTableFvImageNames.getSelectedRow() >= 0){ if (jTableFvImageNames.getSelectedRow() >= 0){
int selectedRow = jTableFvInfo.getSelectedRow();
if (selectedRow < 0) {
return;
}
String selectedFvName = jTableFvImageNames.getValueAt(jTableFvImageNames.getSelectedRow(), 0)+"";
String fvNameList = jTableFvInfo.getValueAt(selectedRow, 0)+"";
String type = jTableFvInfo.getValueAt(selectedRow, 1)+"";
int fvImagePos = ffc.getFvImagePosInFvImages(fvNameList, type);
if (fvImagePos < 0) {
return;
}
else {
//delete Fv name.
ffc.updateFvImageNamesInFvImage(fvImagePos, selectedFvName, null);
}
docConsole.setSaved(false);
String newList = removeFvNameFromList(fvNameList, selectedFvName);
jTableFvInfo.setValueAt(newList, selectedRow, 0);
fvImageNameTableModel.removeRow(jTableFvImageNames.getSelectedRow()); fvImageNameTableModel.removeRow(jTableFvImageNames.getSelectedRow());
} }
} }
}); });
} }
return jButtonFvParaDel; return jButtonFvNameDel;
} }
private String removeFvNameFromList (String list, String name) {
String[] nameArray = list.split(" ");
int occursAt = -1;
for (int i = 0; i < nameArray.length; ++i) {
if (nameArray[i].equals(name)) {
occursAt = i;
break;
}
}
if (occursAt == -1) {
return list;
}
String newList = " ";
for (int j = 0; j < nameArray.length; ++j) {
if (j != occursAt) {
newList += nameArray[j];
newList += " ";
}
}
return newList.trim();
}
private JPanel getJPanelFvImageOpts() { private JPanel getJPanelFvImageOpts() {
@ -818,33 +844,24 @@ public class FpdFlash extends IInternalFrame {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
public void actionPerformed(java.awt.event.ActionEvent e) { public void actionPerformed(java.awt.event.ActionEvent e) {
if (jTableFvInfo.isEditing()) {
jTableFvInfo.getCellEditor().stopCellEditing();
}
if (jTableFvImageOpts.isEditing()) {
jTableFvImageOpts.getCellEditor().stopCellEditing();
}
if (jTableFvImageNames.getRowCount()== 0){
return;
}
String imageName = " ";
for (int i = 0; i < jTableFvImageNames.getRowCount(); ++i){
imageName += (String)jTableFvImageNames.getValueAt(i, 0);
imageName += " ";
}
imageName = imageName.trim();
// String imageName = " ";
// for (int i = 0; i < jTableFvImageNames.getRowCount(); ++i){
LinkedHashMap<String, String> m = null; // imageName += (String)jTableFvImageNames.getValueAt(i, 0);
// if (jCheckBoxFvImageOpts.isSelected()) { // imageName += " ";
m = new LinkedHashMap<String, String>();
getOptionNameValue(m);
// } // }
ffc.genFvImagesFvImage(imageName.split(" "), jComboBoxFvParaType.getSelectedItem()+"", m); // imageName = imageName.trim();
docConsole.setSaved(false);
Object[] row = {imageName, jComboBoxFvParaType.getSelectedItem()}; // LinkedHashMap<String, String> m = null;
// m = new LinkedHashMap<String, String>();
// getOptionNameValue(m);
// ffc.genFvImagesFvImage(imageName.split(" "), jComboBoxFvParaType.getSelectedItem()+"", m);
// docConsole.setSaved(false);
fvImageNameTableModel.setRowCount(0);
fvOptionTableModel.setRowCount(0);
Object[] row = {"", jComboBoxFvParaType.getSelectedItem()};
fvImageParaTableModel.addRow(row); fvImageParaTableModel.addRow(row);
jTableFvInfo.changeSelection(jTableFvInfo.getRowCount() - 1, 0, false, false);
} }
}); });
} }
@ -897,10 +914,13 @@ public class FpdFlash extends IInternalFrame {
jComboBoxFvParaType.setSelectedItem(type); jComboBoxFvParaType.setSelectedItem(type);
String[] fvNames = fvNameList.split(" "); String[] fvNames = fvNameList.split(" ");
fvImageNameTableModel.setRowCount(0); fvImageNameTableModel.setRowCount(0);
fvOptionTableModel.setRowCount(0);
for (int i = 0; i < fvNames.length; ++i) { for (int i = 0; i < fvNames.length; ++i) {
String[] row = { fvNames[i] }; String[] row = { fvNames[i] };
if (row[0].length() > 0) {
fvImageNameTableModel.addRow(row); fvImageNameTableModel.addRow(row);
} }
}
int fvImagePos = ffc.getFvImagePosInFvImages(fvNameList, type); int fvImagePos = ffc.getFvImagePosInFvImages(fvNameList, type);
if (fvImagePos < 0) { if (fvImagePos < 0) {
@ -909,7 +929,6 @@ public class FpdFlash extends IInternalFrame {
LinkedHashMap<String, String> optionMap = new LinkedHashMap<String, String>(); LinkedHashMap<String, String> optionMap = new LinkedHashMap<String, String>();
ffc.getFvImagesFvImageOptions(fvImagePos, optionMap); ffc.getFvImagesFvImageOptions(fvImagePos, optionMap);
if (optionMap.size() > 0){ if (optionMap.size() > 0){
fvOptionTableModel.setRowCount(0);
Set<String> key = optionMap.keySet(); Set<String> key = optionMap.keySet();
Iterator<String> i = key.iterator(); Iterator<String> i = key.iterator();
while (i.hasNext()) { while (i.hasNext()) {
@ -947,9 +966,15 @@ public class FpdFlash extends IInternalFrame {
public void actionPerformed(ActionEvent arg0) { public void actionPerformed(ActionEvent arg0) {
// TODO Auto-generated method stub // TODO Auto-generated method stub
if (jTableFvInfo.getSelectedRow() >= 0 ) { if (jTableFvInfo.getSelectedRow() >= 0 ) {
ffc.removeFvImagesFvImage(jTableFvInfo.getSelectedRow()); String fvNameList = fvImageParaTableModel.getValueAt(jTableFvInfo.getSelectedRow(), 0)+"";
int fvImagePos = ffc.getFvImagePosInFvImages(fvNameList, jComboBoxFvParaType.getSelectedItem()+"");
ffc.removeFvImagesFvImage(fvImagePos);
fvImageParaTableModel.removeRow(jTableFvInfo.getSelectedRow()); fvImageParaTableModel.removeRow(jTableFvInfo.getSelectedRow());
docConsole.setSaved(false); docConsole.setSaved(false);
fvImageNameTableModel.setRowCount(0);
fvOptionTableModel.setRowCount(0);
} }
} }
@ -1158,7 +1183,7 @@ public class FpdFlash extends IInternalFrame {
JOptionPane.showMessageDialog(frame, "FDF file does NOT contain valid Erase Polarity."); JOptionPane.showMessageDialog(frame, "FDF file does NOT contain valid Erase Polarity.");
} }
else { else {
ffc.setTypedFvImageNameValue("Attributes", "ErasePolarity", erasePolarity); ffc.setTypedFvImageNameValue("Attributes", "EFI_ERASE_POLARITY", erasePolarity);
} }
// BugBug: assume all blocks have same size; // BugBug: assume all blocks have same size;
@ -1298,8 +1323,26 @@ public class FpdFlash extends IInternalFrame {
public void actionPerformed(ActionEvent e) { public void actionPerformed(ActionEvent e) {
if (jTextFieldFvImageOptName.getText().length() > 0 && jTextFieldFvImageOptValue.getText().length() > 0){ if (jTextFieldFvImageOptName.getText().length() > 0 && jTextFieldFvImageOptValue.getText().length() > 0){
int selectedRow = jTableFvInfo.getSelectedRow();
if (selectedRow < 0) {
return;
}
String fvNameList = jTableFvInfo.getValueAt(selectedRow, 0)+"";
String type = jTableFvInfo.getValueAt(selectedRow, 1)+"";
int fvImagePos = ffc.getFvImagePosInFvImages(fvNameList, type);
String[] row = {jTextFieldFvImageOptName.getText(), jTextFieldFvImageOptValue.getText()}; String[] row = {jTextFieldFvImageOptName.getText(), jTextFieldFvImageOptValue.getText()};
if (fvImagePos < 0) {
return;
}
else {
//append options to FvImage.
ffc.setFvImagesFvImageNameValue(fvImagePos, row[0], row[1]);
}
docConsole.setSaved(false);
fvOptionTableModel.addRow(row); fvOptionTableModel.addRow(row);
jTableFvImageOpts.changeSelection(jTableFvImageOpts.getRowCount() - 1, 0, false, false);
} }
} }
}); });
@ -1326,7 +1369,22 @@ public class FpdFlash extends IInternalFrame {
public void actionPerformed(ActionEvent e) { public void actionPerformed(ActionEvent e) {
if (jTableFvImageOpts.getSelectedRow() >= 0){ if (jTableFvImageOpts.getSelectedRow() >= 0){
fvOptionTableModel.removeRow(jTableFvProp.getSelectedRow()); int selectedRow = jTableFvInfo.getSelectedRow();
if (selectedRow < 0) {
return;
}
String fvNameList = jTableFvInfo.getValueAt(selectedRow, 0)+"";
String type = jTableFvInfo.getValueAt(selectedRow, 1)+"";
int fvImagePos = ffc.getFvImagePosInFvImages(fvNameList, type);
if (fvImagePos < 0) {
return;
}
String optName = fvOptionTableModel.getValueAt(jTableFvImageOpts.getSelectedRow(), 0)+"";
ffc.removeFvImageNameValue(fvImagePos, optName);
docConsole.setSaved(false);
fvOptionTableModel.removeRow(jTableFvImageOpts.getSelectedRow());
} }
} }
}); });
@ -1355,7 +1413,7 @@ public class FpdFlash extends IInternalFrame {
*/ */
private JTable getJTableFvImageOpts() { private JTable getJTableFvImageOpts() {
if (jTableFvImageOpts == null) { if (jTableFvImageOpts == null) {
fvOptionTableModel = new DefaultTableModel(); fvOptionTableModel = new NonEditableTableModel();
fvOptionTableModel.addColumn("Name"); fvOptionTableModel.addColumn("Name");
fvOptionTableModel.addColumn("Value"); fvOptionTableModel.addColumn("Value");
jTableFvImageOpts = new JTable(fvOptionTableModel); jTableFvImageOpts = new JTable(fvOptionTableModel);
@ -1735,7 +1793,7 @@ public class FpdFlash extends IInternalFrame {
jTabbedPane.addTab(newFvName, new ModuleOrderPane(newFvName, "")); jTabbedPane.addTab(newFvName, new ModuleOrderPane(newFvName, ""));
// Add FvImageNames in Flash // Add FvImageNames in Flash
String[] fvNames = {newFvName}; String[] fvNames = {newFvName};
ffc.AddFvImageFvImageNames(fvNames); ffc.addFvImageFvImageNames(fvNames);
} }
docConsole.setSaved(false); docConsole.setSaved(false);
oldFvName = newFvName; oldFvName = newFvName;
@ -1980,8 +2038,8 @@ public class FpdFlash extends IInternalFrame {
if (jPanelBgFvName == null) { if (jPanelBgFvName == null) {
jPanelBgFvName = new JPanel(); jPanelBgFvName = new JPanel();
jPanelBgFvName.setPreferredSize(new java.awt.Dimension(80,55)); jPanelBgFvName.setPreferredSize(new java.awt.Dimension(80,55));
jPanelBgFvName.add(getJButtonFvParaAdd(), null); jPanelBgFvName.add(getJButtonFvNameAdd(), null);
jPanelBgFvName.add(getJButtonFvParaDel(), null); jPanelBgFvName.add(getJButtonFvNameDel(), null);
} }
return jPanelBgFvName; return jPanelBgFvName;
} }