Esempio n. 1
0
 @Override
 public EditorCell updateRoleAttributeCell(
     final Class attributeKind, final EditorCell cellWithRole, final SNode roleAttribute) {
   if (attributeKind != AttributeKind.Reference.class && myContextStack.peek().hasRoles()) {
     // Suppressing role attribute cell creation upon reference cells.
     return cellWithRole;
   }
   final EditorContext editorContext = getUpdater().getEditorContext();
   editorContext.getCellFactory().pushCellContext();
   editorContext
       .getCellFactory()
       .removeCellContextHints(EditorCellFactoryImpl.BASE_REFLECTIVE_EDITOR_HINT);
   try {
     return runWithExplicitEditorHints(
         editorContext,
         roleAttribute,
         new Computable<EditorCell>() {
           @Override
           public EditorCell compute() {
             return EditorManager.getInstanceFromContext(editorContext)
                 .doCreateRoleAttributeCell(
                     attributeKind, cellWithRole, roleAttribute, myModelModifications);
           }
         });
   } finally {
     editorContext.getCellFactory().popCellContext();
   }
 }
Esempio n. 2
0
 private <T> T runWithExplicitEditorHints(
     EditorContext editorContext, SNode node, Computable<T> cellCreator) {
   String[] explicitHintsForNode = getExplicitHintsForNode(node);
   if (explicitHintsForNode != null) {
     editorContext.getCellFactory().pushCellContext();
     editorContext.getCellFactory().addCellContextHints(explicitHintsForNode);
   }
   try {
     return cellCreator.compute();
   } finally {
     if (explicitHintsForNode != null) {
       editorContext.getCellFactory().popCellContext();
     }
   }
 }
 private EditorCell createComponent_gmtuod_a0(EditorContext editorContext, SNode node) {
   EditorCell editorCell =
       editorContext
           .getCellFactory()
           .createEditorComponentCell(node, "jetbrains.mps.baseLanguage.editor._DeprecatedPart");
   return editorCell;
 }
Esempio n. 4
0
 private EditorCell createComponent_zdgerc_a0a0(EditorContext editorContext, SNode node) {
   EditorCell editorCell =
       editorContext
           .getCellFactory()
           .createEditorComponentCell(node, "jetbrains.mps.lang.core.editor.AliasEditorComponent");
   return editorCell;
 }
Esempio n. 5
0
 private EditorCell createComponent_zca0xt_a0_0(EditorContext editorContext, SNode node) {
   EditorCell editorCell =
       editorContext
           .getCellFactory()
           .createEditorComponentCell(node, "jetbrains.mps.lang.editor.editor.Style_Component");
   return editorCell;
 }
Esempio n. 6
0
 private EditorCell createComponent_zdgerc_d0a0(EditorContext editorContext, SNode node) {
   EditorCell editorCell =
       editorContext
           .getCellFactory()
           .createEditorComponentCell(node, "jetbrains.mps.ui.editor.common_UIObjectStatement");
   return editorCell;
 }
 private EditorCell createComponent_5xszyv_a0(EditorContext editorContext, SNode node) {
   EditorCell editorCell =
       editorContext
           .getCellFactory()
           .createEditorComponentCell(node, "jetbrains.mps.lang.editor.editor._OpenTag");
   return editorCell;
 }
 private EditorCell createComponent_yczb8_a0(EditorContext editorContext, SNode node) {
   EditorCell editorCell =
       editorContext
           .getCellFactory()
           .createEditorComponentCell(node, "jetbrains.mps.lang.editor.editor._CellModel_Common");
   return editorCell;
 }
 private EditorCell createComponent_jf7bj_c0(EditorContext editorContext, SNode node) {
   EditorCell editorCell =
       editorContext
           .getCellFactory()
           .createEditorComponentCell(node, "jetbrains.mps.lang.editor.editor._CloseTag");
   return editorCell;
 }
 private EditorCell createComponent_jf7bj_a(EditorContext editorContext, SNode node) {
   EditorCell editorCell =
       editorContext
           .getCellFactory()
           .createEditorComponentCell(node, "jetbrains.mps.lang.editor.editor._CellModel_Common");
   editorCell.setBig(true);
   return editorCell;
 }
Esempio n. 11
0
 private EditorCell createComponent_1i1fuk_b0(EditorContext editorContext, SNode node) {
   EditorCell editorCell =
       editorContext
           .getCellFactory()
           .createEditorComponentCell(
               node, "jetbrains.mps.lang.refactoring.editor.RefactoringTarget");
   return editorCell;
 }
 private EditorCell createComponent_j4vm40_o0(EditorContext editorContext, SNode node) {
   EditorCell editorCell =
       editorContext
           .getCellFactory()
           .createEditorComponentCell(
               node, "jetbrains.mps.baseLanguage.editor.BaseMethodDeclaration_BodyComponent");
   return editorCell;
 }
 private EditorCell createComponent_apixeu_a0(EditorContext editorContext, SNode node) {
   EditorCell editorCell =
       editorContext
           .getCellFactory()
           .createEditorComponentCell(
               node, "jetbrains.mps.lang.smodel.editor.ReplaceableAlias_Comp");
   return editorCell;
 }
 private EditorCell createComponent_le77e3_a0(EditorContext editorContext, SNode node) {
   EditorCell editorCell =
       editorContext
           .getCellFactory()
           .createEditorComponentCell(
               node, "jetbrains.mps.lang.smodel.query.editor.QueryExpression_EditorComponent");
   return editorCell;
 }
 private EditorCell createComponent_85j21_g0(EditorContext editorContext, SNode node) {
   EditorCell editorCell =
       editorContext
           .getCellFactory()
           .createEditorComponentCell(
               node, "jetbrains.mps.execution.settings.editor.PersistentMethodsComponent");
   return editorCell;
 }
 private EditorCell createComponent_6lfqqa_a1a(EditorContext editorContext, SNode node) {
   EditorCell editorCell =
       editorContext
           .getCellFactory()
           .createEditorComponentCell(
               node, "jetbrains.mps.baseLanguage.editor.ConceptFunction_Folded_Component");
   return editorCell;
 }
 private EditorCell createComponent_955wzk_b0(EditorContext editorContext, SNode node) {
   EditorCell editorCell =
       editorContext
           .getCellFactory()
           .createEditorComponentCell(
               node, "jetbrains.mps.baseLanguage.editor._Component_Visibility");
   return editorCell;
 }
 private EditorCell createComponent_955wzk_a0(EditorContext editorContext, SNode node) {
   EditorCell editorCell =
       editorContext
           .getCellFactory()
           .createEditorComponentCell(
               node, "jetbrains.mps.baseLanguage.editor.HasAnnotation_AnnotationComponent");
   return editorCell;
 }
Esempio n. 19
0
 private EditorCell createComponent_y68cfu_c7a(EditorContext editorContext, SNode node) {
   EditorCell editorCell =
       editorContext
           .getCellFactory()
           .createEditorComponentCell(
               node, "jetbrains.mps.baseLanguage.editor.ClassifierMembers_Component");
   return editorCell;
 }
Esempio n. 20
0
 private EditorCell createNextEditor_ffwlke_b0(EditorContext editorContext, SNode node) {
   try {
     editorContext.getCellFactory().pushCellContext();
     editorContext
         .getCellFactory()
         .removeCellContextHints(
             new String[] {"jetbrains.mps.lang.core.editor.BaseEditorContextHints.comment"});
     {
       EditorCell editorCell =
           editorContext
               .getCellFactory()
               .createEditorCell(node, false, Statement_comment_Editor.class);
       return editorCell;
     }
   } finally {
     editorContext.getCellFactory().popCellContext();
   }
 }
Esempio n. 21
0
 private EditorCell createComponent_mc4j88_a_0(EditorContext editorContext, SNode node) {
   EditorCell editorCell =
       editorContext
           .getCellFactory()
           .createEditorComponentCell(
               node, "jetbrains.mps.build.generictasks.editor.Attribute_EditorComponent");
   editorCell.setBig(true);
   return editorCell;
 }
 private EditorCell createComponent_j4vm40_h0(EditorContext editorContext, SNode node) {
   EditorCell editorCell =
       editorContext
           .getCellFactory()
           .createEditorComponentCell(
               node,
               "jetbrains.mps.baseLanguage.editor._GenericDeclaration_TypeVariables_Component");
   return editorCell;
 }
 private EditorCell createComponent_fao2ea_a0(EditorContext editorContext, SNode node) {
   EditorCell editorCell =
       editorContext
           .getCellFactory()
           .createEditorComponentCell(
               node,
               "jetbrains.mps.baseLanguage.editor.GenericDeclaration_FoldedCodeBlock_Component");
   return editorCell;
 }
 private EditorCell createComponent_gnweac_a0(EditorContext editorContext, SNode node) {
   EditorCell editorCell =
       editorContext
           .getCellFactory()
           .createEditorComponentCell(node, "jetbrains.mps.lang.core.editor.alias");
   Style style = new StyleImpl();
   buildStyles_StyleSheet.apply_outputLayout(style, editorCell);
   editorCell.getStyle().putAll(style);
   return editorCell;
 }
Esempio n. 25
0
 private EditorCell createComponent_y0rgyt_a0(EditorContext editorContext, SNode node) {
   EditorCell editorCell =
       editorContext
           .getCellFactory()
           .createEditorComponentCell(node, "jetbrains.mps.lang.core.editor.alias");
   Style style = new StyleImpl();
   KajakStyles_StyleSheet.apply_Command(style, editorCell);
   editorCell.getStyle().putAll(style);
   return editorCell;
 }
 private EditorCell createComponent_jf7bj_b0(EditorContext editorContext, SNode node) {
   EditorCell editorCell =
       editorContext
           .getCellFactory()
           .createEditorComponentCell(node, "jetbrains.mps.lang.core.editor.alias");
   Style style = new StyleImpl();
   style.set(StyleAttributes.FONT_STYLE, MPSFonts.PLAIN);
   editorCell.getStyle().putAll(style);
   return editorCell;
 }
 private EditorCell createComponent_col7k7_a0a(EditorContext editorContext, SNode node) {
   EditorCell editorCell =
       editorContext
           .getCellFactory()
           .createEditorComponentCell(node, "jetbrains.mps.lang.core.editor.alias");
   Style style = new StyleImpl();
   BaseLanguageStyle_StyleSheet.apply_KeyWord(style, editorCell);
   editorCell.getStyle().putAll(style);
   return editorCell;
 }
 private EditorCell createComponent_9wclje_a0(EditorContext editorContext, SNode node) {
   EditorCell editorCell =
       editorContext
           .getCellFactory()
           .createEditorComponentCell(node, "jetbrains.mps.lang.core.editor.AliasEditorComponent");
   Style style = new StyleImpl();
   style.set(StyleAttributes.PADDING_RIGHT, new Padding(0.0, Measure.SPACES));
   editorCell.getStyle().putAll(style);
   return editorCell;
 }
Esempio n. 29
0
 private EditorCell createComponent_pjxymp_a0(EditorContext editorContext, SNode node) {
   EditorCell editorCell =
       editorContext
           .getCellFactory()
           .createEditorComponentCell(node, "jetbrains.mps.lang.core.editor.alias");
   Style style = new StyleImpl();
   style.set(StyleAttributes.INDENT_LAYOUT_NEW_LINE, 0, true);
   editorCell.getStyle().putAll(style);
   return editorCell;
 }
Esempio n. 30
0
 private EditorCell createComponent_j1ndjk_a0(EditorContext editorContext, SNode node) {
   EditorCell editorCell =
       editorContext
           .getCellFactory()
           .createEditorComponentCell(node, "jetbrains.mps.lang.core.editor.alias");
   Style style = new StyleImpl();
   Collections_Style_StyleSheet.apply_Operation(style, editorCell);
   editorCell.getStyle().putAll(style);
   return editorCell;
 }