private EditorCell createProperty_hntvsg_a0a0(EditorContext editorContext, SNode node) { CellProviderWithRole provider = new PropertyCellProvider(node, editorContext); provider.setRole("name"); provider.setNoTargetText("<no name>"); provider.setReadOnly(true); EditorCell editorCell; editorCell = provider.createEditorCell(editorContext); editorCell.setCellId("property_name"); Style style = new StyleImpl(); style.set(StyleAttributes.FONT_STYLE, 0, MPSFonts.ITALIC); style.set( StyleAttributes.TEXT_COLOR, 0, StyleRegistry.getInstance().getSimpleColor(MPSColors.darkGray)); style.set(StyleAttributes.PADDING_RIGHT, 0, new Padding(0.0, Measure.SPACES)); style.set(StyleAttributes.AUTO_DELETABLE, 0, true); editorCell.getStyle().putAll(style); editorCell.setSubstituteInfo(provider.createDefaultSubstituteInfo()); SNode attributeConcept = provider.getRoleAttribute(); Class attributeKind = provider.getRoleAttributeClass(); if (attributeConcept != null) { EditorManager manager = EditorManager.getInstanceFromContext(editorContext); return manager.createNodeRoleAttributeCell(attributeConcept, attributeKind, editorCell); } else return editorCell; }
private EditorCell createRefCell_ez8int_a0() { CellProviderWithRole provider = new RefCellCellProvider(myNode, getEditorContext()) { @Override protected InlineCellProvider createInlineCellProvider(SNode innerCellNode) { return new MathSymbolIndexReference_EditorBuilder_a._Inline_ez8int_a0a( innerCellNode, myNode); } }; provider.setRole("indexRef"); provider.setNoTargetText("<no indexRef>"); EditorCell editorCell; editorCell = provider.createEditorCell(getEditorContext()); if (editorCell.getRole() == null) { editorCell.setReferenceCell(true); editorCell.setRole("indexRef"); } 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; }
private EditorCell createProperty_7qnrl2_a0a0(EditorContext editorContext, SNode node) { CellProviderWithRole provider = new PropertyCellProvider(node, editorContext); provider.setRole("name"); provider.setNoTargetText("<no name>"); provider.setReadOnly(true); EditorCell editorCell; editorCell = provider.createEditorCell(editorContext); editorCell.setCellId("property_name"); if (editorCell.getRole() == null) { editorCell.setReferenceCell(true); editorCell.setRole("member"); } Style style = new StyleImpl(); BaseLanguageStyle_StyleSheet.applyField(style, editorCell); style.set(StyleAttributes.PADDING_RIGHT, new Padding(0.0, Measure.SPACES)); editorCell.getStyle().putAll(style); editorCell.setSubstituteInfo(provider.createDefaultSubstituteInfo()); SNode attributeConcept = provider.getRoleAttribute(); Class attributeKind = provider.getRoleAttributeClass(); if (attributeConcept != null) { IOperationContext opContext = editorContext.getOperationContext(); EditorManager manager = EditorManager.getInstanceFromContext(opContext); return manager.createRoleAttributeCell( editorContext, attributeConcept, attributeKind, editorCell); } else return editorCell; }
private void installCellInfo(SNode child, EditorCell editorCell) { if (editorCell.getSubstituteInfo() == null || editorCell.getSubstituteInfo() instanceof DefaultSubstituteInfo) { editorCell.setSubstituteInfo( new OldNewCompositeSubstituteInfo( getEditorContext(), new SChildSubstituteInfo( editorCell, myNode, MetaAdapterFactory.getContainmentLink( 0x86ef829012bb4ca7L, 0x947f093788f263a9L, 0x5869770da61dfe28L, 0x19bfb4173fb5241eL, "moduleRef"), child), new DefaultChildSubstituteInfo( myNode, myContainmentLink.getDeclarationNode(), getEditorContext()))); } if (editorCell.getRole() == null) { editorCell.setRole("moduleRef"); } Style style = new StyleImpl(); style.set(StyleAttributes.PUNCTUATION_RIGHT, true); editorCell.getStyle().putAll(style); }
private void installCellInfo(SNode child, EditorCell editorCell) { if (editorCell.getSubstituteInfo() == null || editorCell.getSubstituteInfo() instanceof DefaultSubstituteInfo) { editorCell.setSubstituteInfo( new OldNewCompositeSubstituteInfo( getEditorContext(), new SChildSubstituteInfo( editorCell, myNode, MetaAdapterFactory.getContainmentLink( 0xb401a68083254110L, 0x8fd384331ff25befL, 0x1231e32ff7a958ceL, 0x1231e32ff7a9efcdL, "createNodeQuery"), child), new DefaultChildSubstituteInfo( myNode, myContainmentLink.getDeclarationNode(), getEditorContext()))); } if (editorCell.getRole() == null) { editorCell.setRole("createNodeQuery"); } if (true) { editorCell.getStyle().set(StyleAttributes.FOCUS_POLICY, FocusPolicy.FIRST_EDITABLE_CELL); } }
private EditorCell createProperty_cv1jro_b1a0(EditorContext editorContext, SNode node) { CellProviderWithRole provider = new PropertyCellProvider(node, editorContext); provider.setRole("comment"); provider.setNoTargetText("<no comment>"); provider.setAllowsEmptyTarget(true); EditorCell editorCell; editorCell = provider.createEditorCell(editorContext); editorCell.setCellId("property_comment"); Style style = new StyleImpl(); style.set( StyleAttributes.TEXT_COLOR, StyleRegistry.getInstance().getSimpleColor(MPSColors.DARK_GREEN)); style.set(StyleAttributes.PADDING_LEFT, new Padding(0.0, Measure.SPACES)); style.set(StyleAttributes.PADDING_RIGHT, new Padding(0.0, Measure.SPACES)); editorCell.getStyle().putAll(style); editorCell.setSubstituteInfo(provider.createDefaultSubstituteInfo()); SNode attributeConcept = provider.getRoleAttribute(); Class attributeKind = provider.getRoleAttributeClass(); if (attributeConcept != null) { IOperationContext opContext = editorContext.getOperationContext(); EditorManager manager = EditorManager.getInstanceFromContext(opContext); return manager.createRoleAttributeCell( editorContext, attributeConcept, attributeKind, editorCell); } else return editorCell; }
private EditorCell createRefCell_a7pinn_d3a() { CellProviderWithRole provider = new RefCellCellProvider(myNode, getEditorContext()) { @Override protected InlineCellProvider createInlineCellProvider(SNode innerCellNode) { return new SConceptTypeCastExpression_EditorBuilder_a._Inline_a7pinn_a3d0( innerCellNode, myNode); } }; provider.setRole("concept"); provider.setNoTargetText("<no concept>"); EditorCell editorCell; editorCell = provider.createEditorCell(getEditorContext()); if (editorCell.getRole() == null) { editorCell.setReferenceCell(true); editorCell.setRole("concept"); } 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; }
private EditorCell createRefCell_4clv4k_b0() { CellProviderWithRole provider = new RefCellCellProvider(myNode, getEditorContext()) { @Override protected InlineCellProvider createInlineCellProvider(SNode innerCellNode) { return new GeneratorInternal_IWorkfowParticipants_EditorBuilder_a._Inline_4clv4k_a1a( innerCellNode, myNode); } }; provider.setRole("for"); provider.setNoTargetText("<no for>"); EditorCell editorCell; editorCell = provider.createEditorCell(getEditorContext()); if (editorCell.getRole() == null) { editorCell.setReferenceCell(true); editorCell.setRole("for"); } 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; }
private EditorCell createProperty_lbdr4h_b0(EditorContext editorContext, SNode node) { CellProviderWithRole provider = new PropertyCellProvider(node, editorContext); provider.setRole("label"); provider.setNoTargetText(""); provider.setAllowsEmptyTarget(true); EditorCell editorCell; editorCell = provider.createEditorCell(editorContext); editorCell.setCellId("property_label"); Style style = new StyleImpl(); style.set( StyleAttributes.TEXT_COLOR, StyleRegistry.getInstance() .getSimpleColor( Antiquotation_Editor._StyleParameter_QueryFunction_lbdr4h_a0b0( (editorCell == null ? null : editorCell.getContext()), (editorCell == null ? null : editorCell.getSNode())))); editorCell.getStyle().putAll(style); editorCell.setSubstituteInfo(provider.createDefaultSubstituteInfo()); SNode attributeConcept = provider.getRoleAttribute(); Class attributeKind = provider.getRoleAttributeClass(); if (attributeConcept != null) { IOperationContext opContext = editorContext.getOperationContext(); EditorManager manager = EditorManager.getInstanceFromContext(opContext); return manager.createNodeRoleAttributeCell( editorContext, attributeConcept, attributeKind, editorCell); } else return editorCell; }
private EditorCell createProperty_1clvom_a0b0(EditorContext editorContext, SNode node) { CellProviderWithRole provider = new PropertyCellProvider(node, editorContext); provider.setRole("name"); provider.setNoTargetText("<no name>"); provider.setReadOnly(true); EditorCell editorCell; editorCell = provider.createEditorCell(editorContext); editorCell.setCellId("property_name_1"); if (editorCell.getRole() == null) { editorCell.setReferenceCell(true); editorCell.setRole("persistentConfiguration"); } Style style = new StyleImpl(); ExecutionSettings_StyleSheet.apply_persistentConfigurationRefDeprecated(style, editorCell); editorCell.getStyle().putAll(style); editorCell.setSubstituteInfo(provider.createDefaultSubstituteInfo()); SNode attributeConcept = provider.getRoleAttribute(); Class attributeKind = provider.getRoleAttributeClass(); if (attributeConcept != null) { IOperationContext opContext = editorContext.getOperationContext(); EditorManager manager = EditorManager.getInstanceFromContext(opContext); return manager.createRoleAttributeCell( editorContext, attributeConcept, attributeKind, editorCell); } else return editorCell; }
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 OldNewCompositeSubstituteInfo( getEditorContext(), new SChildSubstituteInfo( elementCell, getNode(), MetaAdapterFactory.getContainmentLink( 0x798100da4f0a421aL, 0xb99171f8c50ce5d2L, 0x5f1f0652f6049405L, 0x5f1f0652f6049407L, "participant"), elementNode), new DefaultChildSubstituteInfo( getNode(), elementNode, super.getLinkDeclaration(), getEditorContext()))); } } }
private EditorCell createRefCell_dfgzix_a0() { CellProviderWithRole provider = new RefCellCellProvider(myNode, getEditorContext()) { @Override protected InlineCellProvider createInlineCellProvider(SNode innerCellNode) { return new DirectMethodSpecification_EditorBuilder_a._Inline_dfgzix_a0a( innerCellNode, myNode); } }; provider.setRole("methodDeclaration"); provider.setNoTargetText("<no methodDeclaration>"); EditorCell editorCell; editorCell = provider.createEditorCell(getEditorContext()); if (editorCell.getRole() == null) { editorCell.setReferenceCell(true); editorCell.setRole("methodDeclaration"); } 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; }
private EditorCell createProperty_1qbsjw_a0a0(EditorContext editorContext, SNode node) { CellProviderWithRole provider = new PropertyCellProvider(node, editorContext); provider.setRole("name"); provider.setNoTargetText("<no name>"); provider.setReadOnly(true); EditorCell editorCell; editorCell = provider.createEditorCell(editorContext); editorCell.setCellId("property_name"); Style style = new StyleImpl(); style.set(StyleAttributes.FONT_STYLE, MPSFonts.BOLD_ITALIC); style.set( StyleAttributes.TEXT_COLOR, StyleRegistry.getInstance().getSimpleColor(MPSColors.DARK_BLUE)); style.set(StyleAttributes.AUTO_DELETABLE, true); editorCell.getStyle().putAll(style); editorCell.setSubstituteInfo(provider.createDefaultSubstituteInfo()); SNode attributeConcept = provider.getRoleAttribute(); Class attributeKind = provider.getRoleAttributeClass(); if (attributeConcept != null) { IOperationContext opContext = editorContext.getOperationContext(); EditorManager manager = EditorManager.getInstanceFromContext(opContext); return manager.createNodeRoleAttributeCell( editorContext, attributeConcept, attributeKind, editorCell); } else return editorCell; }
private EditorCell createProperty_ed1xw0_a0d0(EditorContext editorContext, SNode node) { CellProviderWithRole provider = new PropertyCellProvider(node, editorContext); provider.setRole("pluralForm"); provider.setNoTargetText("<no pluralForm>"); provider.setReadOnly(true); EditorCell editorCell; editorCell = provider.createEditorCell(editorContext); editorCell.setCellId("property_pluralForm"); if (editorCell.getRole() == null) { editorCell.setReferenceCell(true); editorCell.setRole("property"); } Style style = new StyleImpl(); Dates_StyleSheet.applyDateFormat(style, editorCell); editorCell.getStyle().putAll(style); editorCell.setSubstituteInfo(provider.createDefaultSubstituteInfo()); SNode attributeConcept = provider.getRoleAttribute(); Class attributeKind = provider.getRoleAttributeClass(); if (attributeConcept != null) { IOperationContext opContext = editorContext.getOperationContext(); EditorManager manager = EditorManager.getInstanceFromContext(opContext); return manager.createRoleAttributeCell( editorContext, attributeConcept, attributeKind, editorCell); } else return editorCell; }
private EditorCell createRefCell_m29bq_b0(EditorContext editorContext, SNode node) { CellProviderWithRole provider = new RefCellCellProvider(node, editorContext); provider.setRole("label"); provider.setNoTargetText("<choose mapping label>"); EditorCell editorCell; provider.setAuxiliaryCellProvider( new GenerationContextOp_GetOutputByLabelAndInputAndReferenceScope_Editor ._Inline_m29bq_a1a()); editorCell = provider.createEditorCell(editorContext); if (editorCell.getRole() == null) { editorCell.setReferenceCell(true); editorCell.setRole("label"); } Style style = new StyleImpl(); jetbrains.mps.lang.generator.editor.Styles_StyleSheet.apply_mappingLabelReference( style, editorCell); editorCell.getStyle().putAll(style); editorCell.setSubstituteInfo(provider.createDefaultSubstituteInfo()); SNode attributeConcept = provider.getRoleAttribute(); Class attributeKind = provider.getRoleAttributeClass(); if (attributeConcept != null) { EditorManager manager = EditorManager.getInstanceFromContext(editorContext); return manager.createNodeRoleAttributeCell(attributeConcept, attributeKind, editorCell); } else return editorCell; }
private EditorCell createRefCell_kasd0f_b1a0() { CellProviderWithRole provider = new RefCellCellProvider(myNode, getEditorContext()) { @Override protected InlineCellProvider createInlineCellProvider(SNode innerCellNode) { return new MigrateManuallyAnnotation_EditorBuilder_a._Inline_kasd0f_a1b0a( innerCellNode, myNode); } }; provider.setRole("migrateTo"); provider.setNoTargetText("<no migrateTo>"); EditorCell editorCell; editorCell = provider.createEditorCell(getEditorContext()); if (editorCell.getRole() == null) { editorCell.setReferenceCell(true); editorCell.setRole("migrateTo"); } Style style = new StyleImpl(); style.set(StyleAttributes.NAVIGATABLE_REFERENCE, "migrateTo"); style.set( StyleAttributes.TEXT_COLOR, StyleRegistry.getInstance().getSimpleColor(MPSColors.DARK_BLUE)); style.set(StyleAttributes.FONT_STYLE, MPSFonts.ITALIC); 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; }
private EditorCell createProperty_3mrn5h_a0a0(EditorContext editorContext, SNode node) { CellProviderWithRole provider = new PropertyCellProvider(node, editorContext); provider.setRole("name"); provider.setNoTargetText("<no name>"); provider.setReadOnly(true); EditorCell editorCell; editorCell = provider.createEditorCell(editorContext); editorCell.setCellId("property_name"); if (editorCell.getRole() == null) { editorCell.setReferenceCell(true); editorCell.setRole("target"); } Style style = new StyleImpl(); style.set(StyleAttributes.AUTO_DELETABLE, false); editorCell.getStyle().putAll(style); editorCell.setSubstituteInfo(provider.createDefaultSubstituteInfo()); SNode attributeConcept = provider.getRoleAttribute(); Class attributeKind = provider.getRoleAttributeClass(); if (attributeConcept != null) { IOperationContext opContext = editorContext.getOperationContext(); EditorManager manager = EditorManager.getInstanceFromContext(opContext); return manager.createRoleAttributeCell( editorContext, attributeConcept, attributeKind, editorCell); } else return editorCell; }
private EditorCell createProperty_689p1d_c0(EditorContext editorContext, SNode node) { CellProviderWithRole provider = new PropertyCellProvider(node, editorContext); provider.setRole("flag"); provider.setNoTargetText("<no flag>"); EditorCell editorCell; editorCell = provider.createEditorCell(editorContext); editorCell.setCellId("property_flag"); Style style = new StyleImpl(); style.set(StyleAttributes.INDENT_LAYOUT_INDENT, true); editorCell.getStyle().putAll(style); editorCell.setSubstituteInfo( new CompositeSubstituteInfo( editorContext, provider.getCellContext(), new SubstituteInfoPartExt[] { new BooleanStyleSheetItem_Editor.BooleanStyleSheetItem_flag_cellMenu_689p1d_a0c0(), new BooleanStyleSheetItem_Editor.BooleanStyleSheetItem_generic_cellMenu_689p1d_b0c0() })); SNode attributeConcept = provider.getRoleAttribute(); Class attributeKind = provider.getRoleAttributeClass(); if (attributeConcept != null) { IOperationContext opContext = editorContext.getOperationContext(); EditorManager manager = EditorManager.getInstanceFromContext(opContext); return manager.createRoleAttributeCell( editorContext, attributeConcept, attributeKind, editorCell); } else return editorCell; }
private void installCellInfo(SNode child, EditorCell editorCell) { if (editorCell.getSubstituteInfo() == null || editorCell.getSubstituteInfo() instanceof DefaultSubstituteInfo) { editorCell.setSubstituteInfo( new OldNewCompositeSubstituteInfo( getEditorContext(), new SChildSubstituteInfo( editorCell, myNode, MetaAdapterFactory.getContainmentLink( 0x7866978ea0f04cc7L, 0x81bc4d213d9375e1L, 0x2143399c0554e687L, 0x3636a984eed504f9L, "conceptArgument"), child), new DefaultChildSubstituteInfo( myNode, myContainmentLink.getDeclarationNode(), getEditorContext()))); } if (editorCell.getRole() == null) { editorCell.setRole("conceptArgument"); } AbstractTypeCastExpression_Concept_Actions.setCellActions( editorCell, getNode(), getEditorContext()); }
private EditorCell createProperty_3uf681_a0(EditorContext editorContext, SNode node) { CellProviderWithRole provider = new PropertyCellProvider(node, editorContext); provider.setRole("name"); provider.setNoTargetText("<no name>"); EditorCell editorCell; editorCell = provider.createEditorCell(editorContext); editorCell.setCellId("property_name"); Style style = new StyleImpl(); style.set( StyleAttributes.NAVIGATABLE_NODE, 0, FigureParameterMapping_Editor._StyleParameter_QueryFunction_3uf681_a0a0( (editorCell == null ? null : editorCell.getContext()), (editorCell == null ? null : editorCell.getSNode()))); style.set(StyleAttributes.AUTO_DELETABLE, 0, true); editorCell.getStyle().putAll(style); FigureParameterMappingName_Actions.setCellActions(editorCell, node, editorContext); editorCell.setSubstituteInfo( new CompositeSubstituteInfo( editorContext, provider.getCellContext(), new SubstituteInfoPartExt[] { new FigureParameterMapping_Editor .FigureParameterMapping_generic_cellMenu_3uf681_a0a0() })); SNode attributeConcept = provider.getRoleAttribute(); Class attributeKind = provider.getRoleAttributeClass(); if (attributeConcept != null) { EditorManager manager = EditorManager.getInstanceFromContext(editorContext); return manager.createNodeRoleAttributeCell(attributeConcept, attributeKind, editorCell); } else return editorCell; }
private EditorCell createRefCell_d5p1uc_b0() { CellProviderWithRole provider = new RefCellCellProvider(myNode, getEditorContext()) { @Override protected InlineCellProvider createInlineCellProvider(SNode innerCellNode) { return new AnnotationInstance_EditorBuilder_a._Inline_d5p1uc_a1a(innerCellNode, myNode); } }; provider.setRole("annotation"); provider.setNoTargetText("<no annotation>"); EditorCell editorCell; editorCell = provider.createEditorCell(getEditorContext()); if (editorCell.getRole() == null) { editorCell.setReferenceCell(true); editorCell.setRole("annotation"); } Style style = new StyleImpl(); style.set(StyleAttributes.LAYOUT_CONSTRAINT, "punctuation"); 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; }
private EditorCell createProperty_26flog_a0a0(EditorContext editorContext, SNode node) { CellProviderWithRole provider = new PropertyCellProvider(node, editorContext); provider.setRole("name"); provider.setNoTargetText("<no name>"); provider.setReadOnly(true); EditorCell editorCell; editorCell = provider.createEditorCell(editorContext); editorCell.setCellId("property_name"); if (editorCell.getRole() == null) { editorCell.setReferenceCell(true); editorCell.setRole("function"); } Style style = new StyleImpl(); BaseLanguageStyle_StyleSheet.applyMethodName(style, editorCell); editorCell.getStyle().putAll(style); editorCell.setSubstituteInfo(provider.createDefaultSubstituteInfo()); SNode attributeConcept = provider.getRoleAttribute(); Class attributeKind = provider.getRoleAttributeClass(); if (attributeConcept != null) { IOperationContext opContext = editorContext.getOperationContext(); EditorManager manager = EditorManager.getInstanceFromContext(opContext); return manager.createRoleAttributeCell( editorContext, attributeConcept, attributeKind, editorCell); } else return editorCell; }
public void installElementCellActions( SNode listOwner, SNode elementNode, EditorCell elementCell, EditorContext editorContext) { 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 DefaultChildSubstituteInfo( listOwner, elementNode, super.getLinkDeclaration(), editorContext)); } } }
private EditorCell createRefCell_uze3jf_c0(EditorContext editorContext, SNode node) { CellProviderWithRole provider = new RefCellCellProvider(node, editorContext); provider.setRole("concept"); provider.setNoTargetText("<no concept>"); EditorCell editorCell; provider.setAuxiliaryCellProvider( new Model_CreateNewRootNodeOperation_Editor._Inline_uze3jf_a2a()); editorCell = provider.createEditorCell(editorContext); if (editorCell.getRole() == null) { editorCell.setReferenceCell(true); editorCell.setRole("concept"); } Style style = new StyleImpl(); style.set(StyleAttributes.PADDING_RIGHT, new Padding(0.0, Measure.SPACES)); editorCell.getStyle().putAll(style); editorCell.setSubstituteInfo(provider.createDefaultSubstituteInfo()); SNode attributeConcept = provider.getRoleAttribute(); Class attributeKind = provider.getRoleAttributeClass(); if (attributeConcept != null) { IOperationContext opContext = editorContext.getOperationContext(); EditorManager manager = EditorManager.getInstanceFromContext(opContext); return manager.createNodeRoleAttributeCell( editorContext, attributeConcept, attributeKind, editorCell); } else return editorCell; }
private EditorCell createRefCell_tjtxbf_a0() { CellProviderWithRole provider = new RefCellCellProvider(myNode, getEditorContext()) { @Override protected InlineCellProvider createInlineCellProvider(SNode innerCellNode) { return new DataDependencyReference_EditorBuilder_a._Inline_tjtxbf_a0a( innerCellNode, myNode); } }; provider.setRole("dataDependency"); provider.setNoTargetText("<no dataDependency>"); EditorCell editorCell; editorCell = provider.createEditorCell(getEditorContext()); if (editorCell.getRole() == null) { editorCell.setReferenceCell(true); editorCell.setRole("dataDependency"); } Style style = new StyleImpl(); new VariableNameStyleClass(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; }
private EditorCell createProperty_y27sly_n0(EditorContext editorContext, SNode node) { CellProviderWithRole provider = new PropertyCellProvider(node, editorContext); provider.setRole("javaLevelTarget"); provider.setNoTargetText("<default>"); provider.setAllowsEmptyTarget(true); EditorCell editorCell; editorCell = provider.createEditorCell(editorContext); editorCell.setCellId("property_javaLevelTarget"); Style style = new StyleImpl(); style.set(StyleAttributes.INDENT_LAYOUT_NEW_LINE, 0, true); editorCell.getStyle().putAll(style); editorCell.setSubstituteInfo( new CompositeSubstituteInfo( editorContext, provider.getCellContext(), new SubstituteInfoPartExt[] { new BwfJavaModule_Editor.BwfJavaModule_javaLevelTarget_cellMenu_y27sly_a0n0() })); SNode attributeConcept = provider.getRoleAttribute(); Class attributeKind = provider.getRoleAttributeClass(); if (attributeConcept != null) { EditorManager manager = EditorManager.getInstanceFromContext(editorContext); return manager.createNodeRoleAttributeCell(attributeConcept, attributeKind, editorCell); } else return editorCell; }
private EditorCell createProperty_poez2y_b0(EditorContext editorContext, SNode node) { CellProviderWithRole provider = new PropertyCellProvider(node, editorContext); provider.setRole("entityName"); provider.setNoTargetText("<no entityName>"); EditorCell editorCell; editorCell = provider.createEditorCell(editorContext); editorCell.setCellId("property_entityName"); Style style = new StyleImpl(); XmlSS_StyleSheet.applyXmlAttrEntityRefValue(style, editorCell); editorCell.getStyle().putAll(style); delete_XmlEntityRefValueDelete.setCellActions(editorCell, node, editorContext); editorCell.setSubstituteInfo( new CompositeSubstituteInfo( editorContext, provider.getCellContext(), new SubstituteInfoPartExt[] { new XmlEntityRefValue_Editor.XmlEntityRefValue_entityName_cellMenu_poez2y_a0b0() })); SNode attributeConcept = provider.getRoleAttribute(); Class attributeKind = provider.getRoleAttributeClass(); if (attributeConcept != null) { IOperationContext opContext = editorContext.getOperationContext(); EditorManager manager = EditorManager.getInstanceFromContext(opContext); return manager.createRoleAttributeCell( editorContext, attributeConcept, attributeKind, editorCell); } else return editorCell; }
private EditorCell createProperty_j36akn_a(EditorContext editorContext, SNode node) { CellProviderWithRole provider = new PropertyCellProvider(node, editorContext); provider.setRole("name"); provider.setNoTargetText("<no name>"); EditorCell editorCell; editorCell = provider.createEditorCell(editorContext); editorCell.setCellId("VDNCC_property_name"); Style style = new StyleImpl(); BaseLanguageStyle_StyleSheet.applyVariableName(style, editorCell); style.set(StyleAttributes.RT_ANCHOR_TAG, "default_RTransform"); editorCell.getStyle().putAll(style); if (renderingCondition_j36akn_a0(node, editorContext, editorContext.getScope())) { editorCell.getStyle().set(StyleAttributes.FOCUS_POLICY, FocusPolicy.FIRST_EDITABLE_CELL); } editorCell.setSubstituteInfo( new CompositeSubstituteInfo( editorContext, provider.getCellContext(), new SubstituteInfoPartExt[] { new VariableDeclaration_NameCellComponent .VariableDeclaration_name_postfixCellMenu_j36akn_a0a() })); SNode attributeConcept = provider.getRoleAttribute(); Class attributeKind = provider.getRoleAttributeClass(); if (attributeConcept != null) { IOperationContext opContext = editorContext.getOperationContext(); EditorManager manager = EditorManager.getInstanceFromContext(opContext); return manager.createRoleAttributeCell( editorContext, attributeConcept, attributeKind, editorCell); } else return editorCell; }
private EditorCell createProperty_vgxjtu_a1a(EditorContext editorContext, SNode node) { CellProviderWithRole provider = new PropertyCellProvider(node, editorContext); provider.setRole("label"); provider.setNoTargetText("<no label>"); EditorCell editorCell; editorCell = provider.createEditorCell(editorContext); editorCell.setCellId("property_label"); Style style = new StyleImpl(); BaseLanguageStyle_StyleSheet.apply_Label(style, editorCell); style.set(StyleAttributes.SELECTABLE, true); style.set(StyleAttributes.EDITABLE, true); editorCell.getStyle().putAll(style); ContinueStatement_Actions.setCellActions(editorCell, node, editorContext); editorCell.setSubstituteInfo( new CompositeSubstituteInfo( editorContext, provider.getCellContext(), new SubstituteInfoPartExt[] { new ContinueStatement_Editor.ContinueStatement_generic_cellMenu_vgxjtu_a0a1a() })); SNode attributeConcept = provider.getRoleAttribute(); Class attributeKind = provider.getRoleAttributeClass(); if (attributeConcept != null) { IOperationContext opContext = editorContext.getOperationContext(); EditorManager manager = EditorManager.getInstanceFromContext(opContext); return manager.createRoleAttributeCell( editorContext, attributeConcept, attributeKind, editorCell); } else return editorCell; }
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 OldNewCompositeSubstituteInfo( getEditorContext(), new SChildSubstituteInfo( elementCell, getNode(), MetaAdapterFactory.getContainmentLink( 0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0x114a6be947aL, 0x114a6beb0bdL, "annotation"), elementNode), new DefaultChildSubstituteInfo( getNode(), elementNode, super.getLinkDeclaration(), getEditorContext()))); } } }