Java Code Examples for jetbrains.mps.openapi.editor.cells.EditorCell

The following are top voted examples for showing how to use jetbrains.mps.openapi.editor.cells.EditorCell. These examples are extracted from open source projects. You can vote up the examples you like and your votes will be used in our system to generate more good examples.
Example 1
Project: DeBrug   File: Gevolg_EditorBuilder_a.java   View source code 6 votes vote down vote up
private EditorCell createCollection_6xvrct_d0() {
  EditorCell_Collection editorCell = new EditorCell_Collection(getEditorContext(), myNode, new CellLayout_Indent());
  editorCell.setCellId("Collection_6xvrct_d0");
  Style style = new StyleImpl();
  style.set(StyleAttributes.INDENT_LAYOUT_INDENT, true);
  editorCell.getStyle().putAll(style);
  editorCell.addEditorCell(createConstant_6xvrct_a3a());
  editorCell.addEditorCell(createConstant_6xvrct_b3a());
  editorCell.addEditorCell(createRefNodeList_6xvrct_c3a());
  editorCell.addEditorCell(createConstant_6xvrct_d3a());
  editorCell.addEditorCell(createConstant_6xvrct_e3a());
  editorCell.addEditorCell(createRefNodeList_6xvrct_f3a());
  editorCell.addEditorCell(createCollection_6xvrct_g3a());
  editorCell.addEditorCell(createConstant_6xvrct_h3a());
  editorCell.addEditorCell(createConstant_6xvrct_i3a());
  editorCell.addEditorCell(createRefNodeList_6xvrct_j3a());
  return editorCell;
}
 
Example 2
Project: DeBrug   File: IsGeen_EditorBuilder_a.java   View source code 6 votes vote down vote up
private EditorCell createProperty_drg1ot_a0a0a0a0a0() {
  CellProviderWithRole provider = new PropertyCellProvider(myNode, getEditorContext());
  provider.setRole("name");
  provider.setNoTargetText("<no name>");
  provider.setReadOnly(true);
  EditorCell editorCell;
  editorCell = provider.createEditorCell(getEditorContext());
  editorCell.setCellId("property_name");
  Style style = new StyleImpl();
  new OnderwerpStyleClass(getEditorContext(), getNode()).apply(style, editorCell);
  style.set(StyleAttributes.AUTO_DELETABLE, true);
  editorCell.getStyle().putAll(style);
  editorCell.setSubstituteInfo(provider.createDefaultSubstituteInfo());
  SNode attributeConcept = provider.getRoleAttribute();
  if (attributeConcept != null) {
    EditorManager manager = EditorManager.getInstanceFromContext(getEditorContext());
    return manager.createNodeRoleAttributeCell(attributeConcept, provider.getRoleAttributeKind(), editorCell);
  } else
  return editorCell;
}
 
Example 3
Project: DeBrug   File: IsGeen_EditorBuilder_a.java   View source code 6 votes vote down vote up
private EditorCell createRefCell_drg1ot_a0a0a() {
  CellProviderWithRole provider = new RefCellCellProvider(myNode, getEditorContext()) {

    @Override
    protected EditorCell createRefCell(EditorContext context, SNode effectiveNode, SNode node) {
      EditorCell cell = new IsGeen_EditorBuilder_a.Inline_Builder_drg1ot_a0a.Inline_Builder_drg1ot_a0a0a0(getEditorContext(), myNode, effectiveNode).createCell();
      installDeleteActions_nullable_aggregation(cell);
      return cell;
    }
  };
  provider.setRole("object");
  provider.setNoTargetText("<no object>");
  EditorCell editorCell;
  editorCell = provider.createEditorCell(getEditorContext());
  if (editorCell.getRole() == null) {
    editorCell.setReferenceCell(true);
    editorCell.setRole("object");
  }
  editorCell.setSubstituteInfo(provider.createDefaultSubstituteInfo());
  SNode attributeConcept = provider.getRoleAttribute();
  if (attributeConcept != null) {
    EditorManager manager = EditorManager.getInstanceFromContext(getEditorContext());
    return manager.createNodeRoleAttributeCell(attributeConcept, provider.getRoleAttributeKind(), editorCell);
  } else
  return editorCell;
}
 
Example 4
Project: DeBrug   File: Context_EditorBuilder_a.java   View source code 6 votes vote down vote up
private EditorCell createProperty_d0e2am_n0() {
  CellProviderWithRole provider = new PropertyCellProvider(myNode, getEditorContext());
  provider.setRole("toonalles");
  provider.setNoTargetText("<no toonalles>");
  EditorCell editorCell;
  editorCell = provider.createEditorCell(getEditorContext());
  editorCell.setCellId("property_toonalles");
  Style style = new StyleImpl();
  style.set(StyleAttributes.INDENT_LAYOUT_NEW_LINE, true);
  editorCell.getStyle().putAll(style);
  editorCell.setSubstituteInfo(provider.createDefaultSubstituteInfo());
  SNode attributeConcept = provider.getRoleAttribute();
  if (attributeConcept != null) {
    EditorManager manager = EditorManager.getInstanceFromContext(getEditorContext());
    return manager.createNodeRoleAttributeCell(attributeConcept, provider.getRoleAttributeKind(), editorCell);
  } else
  return editorCell;
}
 
Example 5
Project: DeBrug   File: Rechtsbetrekking_Simulatie_InspectorBuilder_a.java   View source code 6 votes vote down vote up
private EditorCell createCollection_o8qqqk_a_0() {
  EditorCell_Collection editorCell = new EditorCell_Collection(getEditorContext(), myNode, new CellLayout_Indent());
  editorCell.setCellId("Collection_o8qqqk_a_0");
  editorCell.setBig(true);
  editorCell.setCellContext(getCellFactory().getCellContext());
  Style style = new StyleImpl();
  style.set(StyleAttributes.INDENT_LAYOUT_INDENT, true);
  editorCell.getStyle().putAll(style);
  editorCell.addEditorCell(createConstant_o8qqqk_a0_0());
  editorCell.addEditorCell(createConstant_o8qqqk_b0());
  editorCell.addEditorCell(createRefNode_o8qqqk_c0());
  editorCell.addEditorCell(createConstant_o8qqqk_d0());
  editorCell.addEditorCell(createConstant_o8qqqk_e0_0());
  editorCell.addEditorCell(createRefNode_o8qqqk_f0());
  return editorCell;
}
 
Example 6
Project: DeBrug   File: ReferentieNaarObject_EditorBuilder_a.java   View source code 6 votes vote down vote up
private EditorCell createProperty_ce48up_a0a0() {
  CellProviderWithRole provider = new PropertyCellProvider(myNode, getEditorContext());
  provider.setRole("name");
  provider.setNoTargetText("<no name>");
  provider.setReadOnly(true);
  EditorCell editorCell;
  editorCell = provider.createEditorCell(getEditorContext());
  editorCell.setCellId("property_name");
  Style style = new StyleImpl();
  new OnderwerpStyleClass(getEditorContext(), getNode()).apply(style, editorCell);
  style.set(StyleAttributes.AUTO_DELETABLE, true);
  editorCell.getStyle().putAll(style);
  editorCell.setSubstituteInfo(provider.createDefaultSubstituteInfo());
  SNode attributeConcept = provider.getRoleAttribute();
  if (attributeConcept != null) {
    EditorManager manager = EditorManager.getInstanceFromContext(getEditorContext());
    return manager.createNodeRoleAttributeCell(attributeConcept, provider.getRoleAttributeKind(), editorCell);
  } else
  return editorCell;
}
 
Example 7
Project: DeBrug   File: MethodeAanpassenFeiten_EditorBuilder_a.java   View source code 6 votes vote down vote up
private EditorCell createProperty_ffjt3u_a0a0() {
  CellProviderWithRole provider = new PropertyCellProvider(myNode, getEditorContext());
  provider.setRole("name");
  provider.setNoTargetText("<te wijzigen onderwerp>");
  provider.setReadOnly(true);
  EditorCell editorCell;
  editorCell = provider.createEditorCell(getEditorContext());
  editorCell.setCellId("property_name");
  Style style = new StyleImpl();
  new OnderwerpStyleClass(getEditorContext(), getNode()).apply(style, editorCell);
  editorCell.getStyle().putAll(style);
  editorCell.setSubstituteInfo(provider.createDefaultSubstituteInfo());
  SNode attributeConcept = provider.getRoleAttribute();
  if (attributeConcept != null) {
    EditorManager manager = EditorManager.getInstanceFromContext(getEditorContext());
    return manager.createNodeRoleAttributeCell(attributeConcept, provider.getRoleAttributeKind(), editorCell);
  } else
  return editorCell;
}
 
Example 8
Project: DeBrug   File: XpathVeld_EditorBuilder_a.java   View source code 5 votes vote down vote up
private EditorCell createCollection_9qq2ms_a() {
  EditorCell_Collection editorCell = new EditorCell_Collection(getEditorContext(), myNode, new CellLayout_Indent());
  editorCell.setCellId("Collection_9qq2ms_a");
  editorCell.setBig(true);
  editorCell.setCellContext(getCellFactory().getCellContext());
  editorCell.addEditorCell(createConstant_9qq2ms_a0());
  editorCell.addEditorCell(createConstant_9qq2ms_b0());
  editorCell.addEditorCell(createProperty_9qq2ms_c0());
  return editorCell;
}
 
Example 9
Project: DeBrug   File: ObjectWaarde_EditorBuilder_a.java   View source code 5 votes vote down vote up
private EditorCell createCollection_dwyzfs_a() {
  EditorCell_Collection editorCell = new EditorCell_Collection(getEditorContext(), myNode, new CellLayout_Indent());
  editorCell.setCellId("Collection_dwyzfs_a");
  editorCell.setBig(true);
  editorCell.setCellContext(getCellFactory().getCellContext());
  editorCell.addEditorCell(createRefCell_dwyzfs_a0());
  return editorCell;
}
 
Example 10
Project: DeBrug   File: IsPositief_EditorBuilder_a.java   View source code 5 votes vote down vote up
private void installCellInfo(SNode child, EditorCell editorCell) {
  if (editorCell.getSubstituteInfo() == null || editorCell.getSubstituteInfo() instanceof DefaultSubstituteInfo) {
    editorCell.setSubstituteInfo(new SChildSubstituteInfo(editorCell, myNode, MetaAdapterFactory.getContainmentLink(0x8dc4b25f4c49400eL, 0xac370fd230db702cL, 0x4ce3b5e2c39586d9L, 0x4ce3b5e2c39586daL, "expressie"), child));
  }
  if (editorCell.getRole() == null) {
    editorCell.setRole("expressie");
  }
}
 
Example 11
Project: DeBrug   File: MethodeAanpassenFeiten_EditorBuilder_a.java   View source code 5 votes vote down vote up
private EditorCell createCollection_ffjt3u_c0() {
  EditorCell_Collection editorCell = new EditorCell_Collection(getEditorContext(), myNode, new CellLayout_Indent());
  editorCell.setCellId("Collection_ffjt3u_c0");
  Style style = new StyleImpl();
  style.set(StyleAttributes.INDENT_LAYOUT_INDENT, true);
  editorCell.getStyle().putAll(style);
  editorCell.addEditorCell(createConstant_ffjt3u_a2a());
  editorCell.addEditorCell(createConstant_ffjt3u_b2a());
  editorCell.addEditorCell(createCollection_ffjt3u_c2a());
  editorCell.addEditorCell(createConstant_ffjt3u_d2a());
  editorCell.addEditorCell(createConstant_ffjt3u_e2a());
  editorCell.addEditorCell(createCollection_ffjt3u_f2a());
  return editorCell;
}
 
Example 12
Project: DeBrug   File: Gegevenshuishouding_EditorBuilder_a.java   View source code 5 votes vote down vote up
private EditorCell createConstant_hnwz83_e0() {
  EditorCell_Constant editorCell = new EditorCell_Constant(getEditorContext(), myNode, "");
  editorCell.setCellId("Constant_hnwz83_e0");
  Style style = new StyleImpl();
  style.set(StyleAttributes.INDENT_LAYOUT_NEW_LINE, true);
  editorCell.getStyle().putAll(style);
  editorCell.setDefaultText("");
  return editorCell;
}
 
Example 13
Project: DeBrug   File: TijdsverloopMetRechtsgevolg_EditorBuilder_a.java   View source code 5 votes vote down vote up
private EditorCell createConstant_ri0if9_j0() {
  EditorCell_Constant editorCell = new EditorCell_Constant(getEditorContext(), myNode, "heeft als gevolg");
  editorCell.setCellId("Constant_ri0if9_j0");
  Style style = new StyleImpl();
  style.set(StyleAttributes.INDENT_LAYOUT_NEW_LINE, true);
  style.set(StyleAttributes.INDENT_LAYOUT_INDENT, true);
  editorCell.getStyle().putAll(style);
  editorCell.setDefaultText("");
  return editorCell;
}
 
Example 14
Project: DeBrug   File: waardeNee_EditorBuilder_a.java   View source code 5 votes vote down vote up
private EditorCell createConstant_gnj8f1_a() {
  EditorCell_Constant editorCell = new EditorCell_Constant(getEditorContext(), myNode, "nee");
  editorCell.setCellId("Constant_gnj8f1_a");
  editorCell.setBig(true);
  editorCell.setCellContext(getCellFactory().getCellContext());
  Style style = new StyleImpl();
  style.set(StyleAttributes.PUNCTUATION_RIGHT, true);
  editorCell.getStyle().putAll(style);
  editorCell.setDefaultText("");
  return editorCell;
}
 
Example 15
Project: DeBrug   File: Identificatie_EditorBuilder_a.java   View source code 5 votes vote down vote up
public void installElementCellActions(SNode elementNode, EditorCell elementCell) {
  if (elementCell.getUserObject(AbstractCellListHandler.ELEMENT_CELL_ACTIONS_SET) == null) {
    elementCell.putUserObject(AbstractCellListHandler.ELEMENT_CELL_ACTIONS_SET, AbstractCellListHandler.ELEMENT_CELL_ACTIONS_SET);
    if (elementNode != null) {
      elementCell.setAction(CellActionType.DELETE, new CellAction_DeleteNode(elementNode, CellAction_DeleteNode.DeleteDirection.FORWARD));
      elementCell.setAction(CellActionType.BACKSPACE, new CellAction_DeleteNode(elementNode, CellAction_DeleteNode.DeleteDirection.BACKWARD));
      elementCell.addKeyMap(new RefNodeListHandlerElementKeyMap(this, ","));
    }
    if (elementCell.getSubstituteInfo() == null || elementCell.getSubstituteInfo() instanceof DefaultSubstituteInfo) {
      elementCell.setSubstituteInfo(new SChildSubstituteInfo(elementCell, getNode(), MetaAdapterFactory.getContainmentLink(0x30ef095ad48945ffL, 0xa80f456a798ac125L, 0x76ccb41bf3857614L, 0x76ccb41bf3857617L, "attributen"), elementNode));
    }
  }
}
 
Example 16
Project: DeBrug   File: Venster_EditorBuilder_a.java   View source code 5 votes vote down vote up
private EditorCell createImage_pwfrmn_a0a0a31a0() {
  SModule imageModule;
  String imagePath;
  imageModule = SNodeOperations.getConcept(myNode).getLanguage().getSourceModule();
  imagePath = "${imagespath}/Green.png";
  EditorCell_Image editorCell = EditorCell_Image.createImageCell(getEditorContext(), myNode, imageModule, imagePath);
  editorCell.setCellId("Image_pwfrmn_a0a0a31a0");
  EvalueerUitvoerbareHandelingen.setCellActions(editorCell, myNode, getEditorContext());
  editorCell.setDescent(4);
  return editorCell;
}
 
Example 17
Project: DeBrug   File: AanspraakNaIngebrekeStellingPlicht_EditorBuilder_a.java   View source code 5 votes vote down vote up
@Override
protected EditorCell createEmptyCell() {
  getCellFactory().pushCellContext();
  getCellFactory().setNodeLocation(new SNodeLocation.FromParentAndLink(getNode(), MetaAdapterFactory.getContainmentLink(0x8dc4b25f4c49400eL, 0xac370fd230db702cL, 0x611073d615228d0dL, 0x25be3715c7b32639L, "voorwaarden")));
  try {
    EditorCell editorCell = super.createEmptyCell();
    editorCell.setCellId("empty_voorwaarden");
    installCellInfo(null, editorCell);
    setCellContext(editorCell);
    return editorCell;
  } finally {
    getCellFactory().popCellContext();
  }
}
 
Example 18
Project: DeBrug   File: Seconden_EditorBuilder_a.java   View source code 5 votes vote down vote up
private EditorCell createProperty_ghyq5j_a0() {
  CellProviderWithRole provider = new PropertyCellProvider(myNode, getEditorContext());
  provider.setRole("seconden");
  provider.setNoTargetText("<no seconden>");
  EditorCell editorCell;
  editorCell = provider.createEditorCell(getEditorContext());
  editorCell.setCellId("property_seconden");
  editorCell.setSubstituteInfo(provider.createDefaultSubstituteInfo());
  SNode attributeConcept = provider.getRoleAttribute();
  if (attributeConcept != null) {
    EditorManager manager = EditorManager.getInstanceFromContext(getEditorContext());
    return manager.createNodeRoleAttributeCell(attributeConcept, provider.getRoleAttributeKind(), editorCell);
  } else
  return editorCell;
}
 
Example 19
Project: DeBrug   File: BronGeldigheidOvergangZonderRechtsgevolg_ComponentBuilder_a.java   View source code 5 votes vote down vote up
@Override
protected EditorCell createEmptyCell() {
  getCellFactory().pushCellContext();
  getCellFactory().setNodeLocation(new SNodeLocation.FromParentAndLink(getNode(), MetaAdapterFactory.getContainmentLink(0x8dc4b25f4c49400eL, 0xac370fd230db702cL, 0x4916e0625ce15ba0L, 0x4916e0625ce244bcL, "brongeldigTot")));
  try {
    EditorCell editorCell = super.createEmptyCell();
    editorCell.setCellId("empty_brongeldigTot");
    installCellInfo(null, editorCell);
    setCellContext(editorCell);
    return editorCell;
  } finally {
    getCellFactory().popCellContext();
  }
}
 
Example 20
Project: voicemenu   File: Timeout_EditorBuilder_a.java   View source code 5 votes vote down vote up
private EditorCell createConstant_tbvjtx_f0() {
  EditorCell_Constant editorCell = new EditorCell_Constant(getEditorContext(), myNode, "File: ");
  editorCell.setCellId("Constant_tbvjtx_f0");
  Style style = new StyleImpl();
  new HardCodedTextStyleClass(getEditorContext(), getNode()).apply(style, editorCell);
  style.set(StyleAttributes.SELECTABLE, false);
  style.set(StyleAttributes.TEXT_COLOR, StyleRegistry.getInstance().getSimpleColor(MPSColors.black));
  style.set(StyleAttributes.FONT_STYLE, MPSFonts.BOLD_ITALIC);
  editorCell.getStyle().putAll(style);
  editorCell.setDefaultText("");
  return editorCell;
}
 
Example 21
Project: DeBrug   File: OvergangZonderRechtsgevolg_EditorBuilder_a.java   View source code 5 votes vote down vote up
public EditorCell createEmptyCell() {
  getCellFactory().pushCellContext();
  getCellFactory().setNodeLocation(new SNodeLocation.FromParentAndLink(teBeindigenOnderwerpenListHandler_4wggk2_a2r0.this.getNode(), MetaAdapterFactory.getContainmentLink(0x8dc4b25f4c49400eL, 0xac370fd230db702cL, 0x3b19ba47355a8fe6L, 0x75a9691d14b327a2L, "teBeindigenOnderwerpen")));
  try {
    EditorCell emptyCell = null;
    emptyCell = super.createEmptyCell();
    installElementCellActions(null, emptyCell);
    setCellContext(emptyCell);
    return emptyCell;
  } finally {
    getCellFactory().popCellContext();
  }
}
 
Example 22
Project: DeBrug   File: XpathVeld_EditorBuilder_a.java   View source code 5 votes vote down vote up
private EditorCell createProperty_9qq2ms_c0() {
  CellProviderWithRole provider = new PropertyCellProvider(myNode, getEditorContext());
  provider.setRole("text");
  provider.setNoTargetText("<no text>");
  EditorCell editorCell;
  editorCell = provider.createEditorCell(getEditorContext());
  editorCell.setCellId("property_text");
  editorCell.setSubstituteInfo(provider.createDefaultSubstituteInfo());
  SNode attributeConcept = provider.getRoleAttribute();
  if (attributeConcept != null) {
    EditorManager manager = EditorManager.getInstanceFromContext(getEditorContext());
    return manager.createNodeRoleAttributeCell(attributeConcept, provider.getRoleAttributeKind(), editorCell);
  } else
  return editorCell;
}
 
Example 23
Project: DeBrug   File: Voor_EditorBuilder_a.java   View source code 5 votes vote down vote up
@Override
protected EditorCell createEmptyCell() {
  getCellFactory().pushCellContext();
  getCellFactory().setNodeLocation(new SNodeLocation.FromParentAndLink(getNode(), MetaAdapterFactory.getContainmentLink(0x8dc4b25f4c49400eL, 0xac370fd230db702cL, 0x46db58718361b134L, 0x46db58718361b137L, "expressie2")));
  try {
    EditorCell editorCell = super.createEmptyCell();
    editorCell.setCellId("empty_expressie2");
    installCellInfo(null, editorCell);
    setCellContext(editorCell);
    return editorCell;
  } finally {
    getCellFactory().popCellContext();
  }
}
 
Example 24
Project: DeBrug   File: Rechtsbetrekking_RechtspositieRol2_EditorBuilder_a.java   View source code 5 votes vote down vote up
private EditorCell createCollection_de2l07_a0() {
  EditorCell_Collection editorCell = new EditorCell_Collection(getEditorContext(), myNode, new CellLayout_Indent());
  editorCell.setCellId("Collection_de2l07_a0");
  editorCell.addEditorCell(createComponent_de2l07_a0a());
  editorCell.addEditorCell(createComponent_de2l07_b0a());
  editorCell.addEditorCell(createAlternation_de2l07_c0a());
  editorCell.addEditorCell(createReadOnlyModelAccessor_de2l07_d0a());
  editorCell.addEditorCell(createConstant_de2l07_e0a());
  editorCell.addEditorCell(createRefCell_de2l07_f0a());
  editorCell.addEditorCell(createCollection_de2l07_g0a());
  return editorCell;
}
 
Example 25
Project: DeBrug   File: BronGeldigheidOnderwerp_ComponentBuilder_a.java   View source code 5 votes vote down vote up
@Override
protected EditorCell createEmptyCell() {
  getCellFactory().pushCellContext();
  getCellFactory().setNodeLocation(new SNodeLocation.FromParentAndLink(getNode(), MetaAdapterFactory.getContainmentLink(0x8dc4b25f4c49400eL, 0xac370fd230db702cL, 0x4916e0625ce15ba0L, 0x4916e0625ce244bcL, "brongeldigTot")));
  try {
    EditorCell editorCell = super.createEmptyCell();
    editorCell.setCellId("empty_brongeldigTot");
    installCellInfo(null, editorCell);
    setCellContext(editorCell);
    return editorCell;
  } finally {
    getCellFactory().popCellContext();
  }
}
 
Example 26
Project: DeBrug   File: Venster_EditorBuilder_a.java   View source code 5 votes vote down vote up
private EditorCell createProperty_pwfrmn_a0a7a0() {
  CellProviderWithRole provider = new PropertyCellProvider(myNode, getEditorContext());
  provider.setRole("name");
  provider.setNoTargetText("<no name>");
  EditorCell editorCell;
  editorCell = provider.createEditorCell(getEditorContext());
  editorCell.setCellId("property_name");
  editorCell.setSubstituteInfo(provider.createDefaultSubstituteInfo());
  SNode attributeConcept = provider.getRoleAttribute();
  if (attributeConcept != null) {
    EditorManager manager = EditorManager.getInstanceFromContext(getEditorContext());
    return manager.createNodeRoleAttributeCell(attributeConcept, provider.getRoleAttributeKind(), editorCell);
  } else
  return editorCell;
}
 
Example 27
Project: DeBrug   File: IsNietBekend_EditorBuilder_a.java   View source code 5 votes vote down vote up
protected EditorCell createChildCell(SNode child) {
  EditorCell editorCell = getUpdateSession().updateChildNodeCell(child);
  editorCell.setAction(CellActionType.DELETE, new CellAction_DeleteSmart(getNode(), MetaAdapterFactory.getContainmentLink(0x8dc4b25f4c49400eL, 0xac370fd230db702cL, 0x4ce3b5e2c39586d9L, 0x4ce3b5e2c39586daL, "expressie"), child));
  editorCell.setAction(CellActionType.BACKSPACE, new CellAction_DeleteSmart(getNode(), MetaAdapterFactory.getContainmentLink(0x8dc4b25f4c49400eL, 0xac370fd230db702cL, 0x4ce3b5e2c39586d9L, 0x4ce3b5e2c39586daL, "expressie"), child));
  installCellInfo(child, editorCell);
  return editorCell;
}
 
Example 28
Project: DeBrug   File: IsNietGelijk_EditorBuilder_a.java   View source code 5 votes vote down vote up
protected EditorCell createChildCell(SNode child) {
  EditorCell editorCell = getUpdateSession().updateChildNodeCell(child);
  editorCell.setAction(CellActionType.DELETE, new CellAction_DeleteSmart(getNode(), MetaAdapterFactory.getContainmentLink(0x8dc4b25f4c49400eL, 0xac370fd230db702cL, 0x7cb80d5a334f0adL, 0x7cb80d5a334f0afL, "expressie2"), child));
  editorCell.setAction(CellActionType.BACKSPACE, new CellAction_DeleteSmart(getNode(), MetaAdapterFactory.getContainmentLink(0x8dc4b25f4c49400eL, 0xac370fd230db702cL, 0x7cb80d5a334f0adL, 0x7cb80d5a334f0afL, "expressie2"), child));
  installCellInfo(child, editorCell);
  return editorCell;
}
 
Example 29
Project: DeBrug   File: GN_StyleSheet.java   View source code 5 votes vote down vote up
/**
 * 
 * @deprecated Since MPS 3.5 use generated StyleClass
 */
@Deprecated
public static void apply_Kenmerk(Style style, EditorCell editorCell) {
  SNode node = (editorCell == null ? null : editorCell.getSNode());
  EditorContext editorContext = (editorCell == null ? null : editorCell.getContext());
  new GN_StyleSheet.KenmerkStyleClass(editorContext, node).apply(style, editorCell);
}
 
Example 30
Project: DeBrug   File: Object_EditorBuilder_a.java   View source code 5 votes vote down vote up
public void installElementCellActions(SNode elementNode, EditorCell elementCell) {
  if (elementCell.getUserObject(AbstractCellListHandler.ELEMENT_CELL_ACTIONS_SET) == null) {
    elementCell.putUserObject(AbstractCellListHandler.ELEMENT_CELL_ACTIONS_SET, AbstractCellListHandler.ELEMENT_CELL_ACTIONS_SET);
    if (elementNode != null) {
      elementCell.setAction(CellActionType.DELETE, new CellAction_DeleteNode(elementNode, CellAction_DeleteNode.DeleteDirection.FORWARD));
      elementCell.setAction(CellActionType.BACKSPACE, new CellAction_DeleteNode(elementNode, CellAction_DeleteNode.DeleteDirection.BACKWARD));
    }
    if (elementCell.getSubstituteInfo() == null || elementCell.getSubstituteInfo() instanceof DefaultSubstituteInfo) {
      elementCell.setSubstituteInfo(new SChildSubstituteInfo(elementCell, getNode(), MetaAdapterFactory.getContainmentLink(0x30ef095ad48945ffL, 0xa80f456a798ac125L, 0x76ccb41bf37d6db7L, 0x55931ab45f2b651bL, "attributen"), elementNode));
    }
  }
}
 
Example 31
Project: DeBrug   File: IsGroterOfGelijk_EditorBuilder_a.java   View source code 5 votes vote down vote up
protected EditorCell createChildCell(SNode child) {
  EditorCell editorCell = getUpdateSession().updateChildNodeCell(child);
  editorCell.setAction(CellActionType.DELETE, new CellAction_DeleteSmart(getNode(), MetaAdapterFactory.getContainmentLink(0x8dc4b25f4c49400eL, 0xac370fd230db702cL, 0x46db58718361b134L, 0x46db58718361b137L, "expressie2"), child));
  editorCell.setAction(CellActionType.BACKSPACE, new CellAction_DeleteSmart(getNode(), MetaAdapterFactory.getContainmentLink(0x8dc4b25f4c49400eL, 0xac370fd230db702cL, 0x46db58718361b134L, 0x46db58718361b137L, "expressie2"), child));
  installCellInfo(child, editorCell);
  return editorCell;
}
 
Example 32
Project: DeBrug   File: InstantiesVanGegevens_EditorBuilder_a.java   View source code 5 votes vote down vote up
public void installElementCellActions(SNode elementNode, EditorCell elementCell) {
  if (elementCell.getUserObject(AbstractCellListHandler.ELEMENT_CELL_ACTIONS_SET) == null) {
    elementCell.putUserObject(AbstractCellListHandler.ELEMENT_CELL_ACTIONS_SET, AbstractCellListHandler.ELEMENT_CELL_ACTIONS_SET);
    if (elementNode != null) {
      elementCell.setAction(CellActionType.DELETE, new CellAction_DeleteNode(elementNode, CellAction_DeleteNode.DeleteDirection.FORWARD));
      elementCell.setAction(CellActionType.BACKSPACE, new CellAction_DeleteNode(elementNode, CellAction_DeleteNode.DeleteDirection.BACKWARD));
    }
    if (elementCell.getSubstituteInfo() == null || elementCell.getSubstituteInfo() instanceof DefaultSubstituteInfo) {
      elementCell.setSubstituteInfo(new SChildSubstituteInfo(elementCell, getNode(), MetaAdapterFactory.getContainmentLink(0x30ef095ad48945ffL, 0xa80f456a798ac125L, 0x1fabc0b15d96809aL, 0xb116d9d60e44880L, "tabellen"), elementNode));
    }
  }
}
 
Example 33
Project: DeBrug   File: PresentatieObject_EditorBuilder_a.java   View source code 5 votes vote down vote up
private EditorCell createRefNodeList_6vz9fl_c4a() {
  AbstractCellListHandler handler = new PresentatieObject_EditorBuilder_a.rijenListHandler_6vz9fl_c4a(myNode, "rijen", getEditorContext());
  EditorCell_Collection editorCell = handler.createCells(new CellLayout_Indent(), false);
  editorCell.setCellId("refNodeList_rijen");
  Style style = new StyleImpl();
  style.set(StyleAttributes.INDENT_LAYOUT_CHILDREN_NEWLINE, true);
  style.set(StyleAttributes.INDENT_LAYOUT_INDENT, true);
  style.set(StyleAttributes.INDENT_LAYOUT_NEW_LINE, true);
  editorCell.getStyle().putAll(style);
  editorCell.setRole(handler.getElementRole());
  return editorCell;
}
 
Example 34
Project: DeBrug   File: VerplichteBevoegdheidVerplichteGehoudenheid_EditorBuilder_a.java   View source code 5 votes vote down vote up
private EditorCell createConstant_4n4id8_z0() {
  EditorCell_Constant editorCell = new EditorCell_Constant(getEditorContext(), myNode, "");
  editorCell.setCellId("Constant_4n4id8_z0");
  Style style = new StyleImpl();
  style.set(StyleAttributes.INDENT_LAYOUT_NEW_LINE, true);
  style.set(StyleAttributes.INDENT_LAYOUT_INDENT, true);
  editorCell.getStyle().putAll(style);
  editorCell.setDefaultText("");
  return editorCell;
}
 
Example 35
Project: DeBrug   File: ImmuniteitGeenbevoegdheid_EN_EditorBuilder_a.java   View source code 5 votes vote down vote up
protected EditorCell createChildCell(SNode child) {
  EditorCell editorCell = getUpdateSession().updateChildNodeCell(child);
  editorCell.setAction(CellActionType.DELETE, new CellAction_DeleteSmart(getNode(), MetaAdapterFactory.getContainmentLink(0x8dc4b25f4c49400eL, 0xac370fd230db702cL, 0x611073d615228d0dL, 0x3b480c109781917eL, "GeldigVan"), child));
  editorCell.setAction(CellActionType.BACKSPACE, new CellAction_DeleteSmart(getNode(), MetaAdapterFactory.getContainmentLink(0x8dc4b25f4c49400eL, 0xac370fd230db702cL, 0x611073d615228d0dL, 0x3b480c109781917eL, "GeldigVan"), child));
  installCellInfo(child, editorCell);
  return editorCell;
}
 
Example 36
Project: DeBrug   File: AanspraakNaIngebrekeStellingPlicht_EditorBuilder_a.java   View source code 5 votes vote down vote up
@Override
protected EditorCell createEmptyCell() {
  getCellFactory().pushCellContext();
  getCellFactory().setNodeLocation(new SNodeLocation.FromParentAndLink(getNode(), MetaAdapterFactory.getContainmentLink(0x8dc4b25f4c49400eL, 0xac370fd230db702cL, 0x611073d615228d0dL, 0x4916e0625cee85caL, "bron")));
  try {
    EditorCell editorCell = super.createEmptyCell();
    editorCell.setCellId("empty_bron");
    installCellInfo(null, editorCell);
    setCellContext(editorCell);
    return editorCell;
  } finally {
    getCellFactory().popCellContext();
  }
}
 
Example 37
Project: DeBrug   File: GebeurtenisMetRechtsgevolg_EditorBuilder_a.java   View source code 5 votes vote down vote up
private EditorCell createCollection_1zehi0_m0() {
  EditorCell_Collection editorCell = new EditorCell_Collection(getEditorContext(), myNode, new CellLayout_Indent());
  editorCell.setCellId("Collection_1zehi0_m0");
  editorCell.addEditorCell(createConstant_1zehi0_a21a());
  editorCell.addEditorCell(createConstant_1zehi0_b21a());
  editorCell.addEditorCell(createMultiline_1zehi0_c21a_0());
  return editorCell;
}
 
Example 38
Project: DeBrug   File: Gegevenshuishouding_EditorBuilder_a.java   View source code 5 votes vote down vote up
private EditorCell createCollection_hnwz83_d7a() {
  EditorCell_Collection editorCell = new EditorCell_Collection(getEditorContext(), myNode, new CellLayout_Indent());
  editorCell.setCellId("Collection_hnwz83_d7a");
  Style style = new StyleImpl();
  style.set(StyleAttributes.INDENT_LAYOUT_INDENT, true);
  editorCell.getStyle().putAll(style);
  editorCell.addEditorCell(createRefNode_hnwz83_a3h0());
  return editorCell;
}
 
Example 39
Project: DeBrug   File: Rechtsbetrekking_RechtspositieRol1_EditorBuilder_a.java   View source code 5 votes vote down vote up
private EditorCell createCollection_yhtdgo_a() {
  EditorCell_Collection editorCell = new EditorCell_Collection(getEditorContext(), myNode, new CellLayout_Horizontal());
  editorCell.setCellId("Collection_yhtdgo_a");
  editorCell.setBig(true);
  editorCell.setCellContext(getCellFactory().getCellContext());
  Style style = new StyleImpl();
  style.set(StyleAttributes.SELECTABLE, false);
  editorCell.getStyle().putAll(style);
  if (nodeCondition_yhtdgo_a0a()) {
    editorCell.addEditorCell(createCollection_yhtdgo_a0());
  }
  return editorCell;
}
 
Example 40
Project: DeBrug   File: GebeurtenisMetRechtsgevolg_EditorBuilder_a.java   View source code 5 votes vote down vote up
private EditorCell createConstant_1zehi0_n0() {
  EditorCell_Constant editorCell = new EditorCell_Constant(getEditorContext(), myNode, "");
  editorCell.setCellId("Constant_1zehi0_n0");
  Style style = new StyleImpl();
  style.set(StyleAttributes.INDENT_LAYOUT_NEW_LINE, true);
  editorCell.getStyle().putAll(style);
  editorCell.setDefaultText("");
  return editorCell;
}