home *** CD-ROM | disk | FTP | other *** search
- package com.extensibility.xa;
-
- import com.extensibility.app.DialogFactory;
- import com.extensibility.xml.ElementDeclaration;
- import com.extensibility.xml.ParserException;
- import javax.swing.JFrame;
-
- public class ElementTable$ElemModelCellDialog extends MetaModelCellDialog {
- // $FF: synthetic field
- final ElementTable this$0;
- int row;
- int column;
-
- public ElementTable$ElemModelCellDialog(ElementTable var1, JFrame var2, SchemaDoc var3, ContentModelQlicker var4, ElementDeclaration var5, String var6) {
- super(var2, var3, var4, var5, false, var6);
- this.this$0 = var1;
- }
-
- void setTableInfo(int var1, int var2) {
- this.row = var1;
- this.column = var2;
- }
-
- protected void doApply() {
- try {
- ((ModelCellDialog)this).getSchemaDoc().checkContentModel(super.owner.getName(), ((CellDialog)this).getText());
- this.this$0.getModel().setValueAt(((CellDialog)this).getText(), this.row, this.column);
- super.doApply();
- } catch (ParserException var2) {
- DialogFactory.showValidation(this, var2.getMessage(), false);
- }
-
- }
-
- protected boolean doSave() {
- try {
- if (super.applied && super.canceled) {
- ((MetaModelCellDialog)this).getElemDecl().setCPMetaProps(super.originalProps);
- }
-
- ((ModelCellDialog)this).getSchemaDoc().touch(((MetaModelCellDialog)this).getElemDecl());
- ((ModelCellDialog)this).getSchemaDoc().checkContentModel(super.owner.getName(), ((CellDialog)this).getText());
- this.this$0.getModel().setValueAt(((CellDialog)this).getText(), this.row, this.column);
- if (this.this$0.getCellEditor() instanceof ContentModelQlicker) {
- ((ContentModelQlicker)this.this$0.getCellEditor()).setText(((CellDialog)this).getText());
- }
-
- if (((ModelCellDialog)this).getSchemaDoc().getSchema().isSupported("GESTALT_OPEN_CONTENT") && super.owner != null) {
- super.owner.getContentModel().setOpen(((CellDialog)this).getOpenModel());
- }
-
- boolean var1 = true;
- return var1;
- } catch (ParserException var3) {
- DialogFactory.showValidation(this, var3.getMessage(), false);
- boolean var2 = false;
- return var2;
- }
- }
- }
-