コード例 #1
0
ファイル: UpdateSessionImpl.java プロジェクト: yan96in/MPS
 @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();
   }
 }
コード例 #2
0
ファイル: UpdateSessionImpl.java プロジェクト: yan96in/MPS
 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();
     }
   }
 }
コード例 #3
0
 private EditorCell createComponent_gmtuod_a0(EditorContext editorContext, SNode node) {
   EditorCell editorCell =
       editorContext
           .getCellFactory()
           .createEditorComponentCell(node, "jetbrains.mps.baseLanguage.editor._DeprecatedPart");
   return editorCell;
 }
コード例 #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;
 }
コード例 #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;
 }
コード例 #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;
 }
コード例 #7
0
 private EditorCell createComponent_5xszyv_a0(EditorContext editorContext, SNode node) {
   EditorCell editorCell =
       editorContext
           .getCellFactory()
           .createEditorComponentCell(node, "jetbrains.mps.lang.editor.editor._OpenTag");
   return editorCell;
 }
コード例 #8
0
 private EditorCell createComponent_yczb8_a0(EditorContext editorContext, SNode node) {
   EditorCell editorCell =
       editorContext
           .getCellFactory()
           .createEditorComponentCell(node, "jetbrains.mps.lang.editor.editor._CellModel_Common");
   return editorCell;
 }
コード例 #9
0
 private EditorCell createComponent_jf7bj_c0(EditorContext editorContext, SNode node) {
   EditorCell editorCell =
       editorContext
           .getCellFactory()
           .createEditorComponentCell(node, "jetbrains.mps.lang.editor.editor._CloseTag");
   return editorCell;
 }
コード例 #10
0
 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;
 }
コード例 #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;
 }
コード例 #12
0
 private EditorCell createComponent_j4vm40_o0(EditorContext editorContext, SNode node) {
   EditorCell editorCell =
       editorContext
           .getCellFactory()
           .createEditorComponentCell(
               node, "jetbrains.mps.baseLanguage.editor.BaseMethodDeclaration_BodyComponent");
   return editorCell;
 }
コード例 #13
0
 private EditorCell createComponent_apixeu_a0(EditorContext editorContext, SNode node) {
   EditorCell editorCell =
       editorContext
           .getCellFactory()
           .createEditorComponentCell(
               node, "jetbrains.mps.lang.smodel.editor.ReplaceableAlias_Comp");
   return editorCell;
 }
コード例 #14
0
 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;
 }
コード例 #15
0
 private EditorCell createComponent_85j21_g0(EditorContext editorContext, SNode node) {
   EditorCell editorCell =
       editorContext
           .getCellFactory()
           .createEditorComponentCell(
               node, "jetbrains.mps.execution.settings.editor.PersistentMethodsComponent");
   return editorCell;
 }
コード例 #16
0
 private EditorCell createComponent_6lfqqa_a1a(EditorContext editorContext, SNode node) {
   EditorCell editorCell =
       editorContext
           .getCellFactory()
           .createEditorComponentCell(
               node, "jetbrains.mps.baseLanguage.editor.ConceptFunction_Folded_Component");
   return editorCell;
 }
コード例 #17
0
 private EditorCell createComponent_955wzk_b0(EditorContext editorContext, SNode node) {
   EditorCell editorCell =
       editorContext
           .getCellFactory()
           .createEditorComponentCell(
               node, "jetbrains.mps.baseLanguage.editor._Component_Visibility");
   return editorCell;
 }
コード例 #18
0
 private EditorCell createComponent_955wzk_a0(EditorContext editorContext, SNode node) {
   EditorCell editorCell =
       editorContext
           .getCellFactory()
           .createEditorComponentCell(
               node, "jetbrains.mps.baseLanguage.editor.HasAnnotation_AnnotationComponent");
   return editorCell;
 }
コード例 #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;
 }
コード例 #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();
   }
 }
コード例 #21
0
ファイル: Attribute_Editor.java プロジェクト: sprig/MPS
 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;
 }
コード例 #22
0
 private EditorCell createComponent_j4vm40_h0(EditorContext editorContext, SNode node) {
   EditorCell editorCell =
       editorContext
           .getCellFactory()
           .createEditorComponentCell(
               node,
               "jetbrains.mps.baseLanguage.editor._GenericDeclaration_TypeVariables_Component");
   return editorCell;
 }
コード例 #23
0
 private EditorCell createComponent_fao2ea_a0(EditorContext editorContext, SNode node) {
   EditorCell editorCell =
       editorContext
           .getCellFactory()
           .createEditorComponentCell(
               node,
               "jetbrains.mps.baseLanguage.editor.GenericDeclaration_FoldedCodeBlock_Component");
   return editorCell;
 }
コード例 #24
0
 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;
 }
コード例 #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;
 }
コード例 #26
0
 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;
 }
コード例 #27
0
 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;
 }
コード例 #28
0
 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;
 }
コード例 #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;
 }
コード例 #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;
 }