\r
private void showSettingsDlg (int row) {\r
try {\r
- if (ffc.adjustPcd(row)) {\r
+ Vector<String> vExceptions = new Vector<String>();\r
+ if (ffc.adjustPcd(row, vExceptions)) {\r
JOptionPane.showMessageDialog(frame, "Pcd entries sync. with those in MSA files.");\r
docConsole.setSaved(false);\r
}\r
public FpdFrameworkModules(OpeningPlatformType opt) {\r
this(opt.getXmlFpd());\r
docConsole = opt;\r
- if (pcdSync()) {\r
+ Vector<String> vExceptions = new Vector<String>();\r
+ if (pcdSync(vExceptions)) {\r
JOptionPane.showMessageDialog(frame, "PCD in this platform are synchronized with those in MSA files."); \r
}\r
+ if (vExceptions.size() > 0) {\r
+ String errorMsg = "";\r
+ for (int i = 0; i < vExceptions.size(); ++i) {\r
+ errorMsg += " " + vExceptions.get(i);\r
+ }\r
+ JOptionPane.showMessageDialog(frame, "Error occurred during synchronization:" + errorMsg);\r
+ }\r
}\r
\r
private void init(PlatformSurfaceAreaDocument.PlatformSurfaceArea fpd) {\r
\r
}\r
\r
- private boolean pcdSync() {\r
+ private boolean pcdSync(Vector<String> v) {\r
boolean synced = false;\r
for (int i = 0; i < jTableFpdModules.getRowCount(); ++i) {\r
try {\r
- if (ffc.adjustPcd(i)) {\r
+ if (ffc.adjustPcd(i, v)) {\r
synced = true;\r
}\r
}\r
catch (Exception exp) {\r
- JOptionPane.showMessageDialog(frame, exp.getMessage());\r
+// JOptionPane.showMessageDialog(frame, exp.getMessage());\r
continue;\r
}\r
}\r