本文整理汇总了Java中jetbrains.mps.editor.runtime.style.StyleAttributes类的典型用法代码示例。如果您正苦于以下问题:Java StyleAttributes类的具体用法?Java StyleAttributes怎么用?Java StyleAttributes使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
StyleAttributes类属于jetbrains.mps.editor.runtime.style包,在下文中一共展示了StyleAttributes类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: createMultiline_s67zsr_c13a
import jetbrains.mps.editor.runtime.style.StyleAttributes; //导入依赖的package包/类
private EditorCell createMultiline_s67zsr_c13a(EditorContext editorContext, SNode node) {
CellProviderWithRole provider = new MultilineCellProvider(node, editorContext);
provider.setRole("opmerkingen");
provider.setNoTargetText("<no opmerkingen>");
EditorCell editorCell;
editorCell = provider.createEditorCell(editorContext);
editorCell.setCellId("property_opmerkingen");
Style style = new StyleImpl();
style.set(StyleAttributes.INDENT_LAYOUT_NEW_LINE, true);
style.set(StyleAttributes.INDENT_LAYOUT_INDENT, true);
editorCell.getStyle().putAll(style);
editorCell.setSubstituteInfo(provider.createDefaultSubstituteInfo());
SNode attributeConcept = provider.getRoleAttribute();
if (attributeConcept != null) {
return getUpdateSession().updateAttributeCell(provider.getRoleAttributeKind(), editorCell, attributeConcept);
} else
return editorCell;
}
开发者ID:diederikd,项目名称:DeBrug,代码行数:19,代码来源:VerplichteBevoegdheidVerplichteGehoudenheid_EN_EditorBuilder_a.java
示例2: createProperty_lkvao1_a0a0
import jetbrains.mps.editor.runtime.style.StyleAttributes; //导入依赖的package包/类
private EditorCell createProperty_lkvao1_a0a0() {
CellProviderWithRole provider = new PropertyCellProvider(myNode, getEditorContext());
provider.setRole("name");
provider.setNoTargetText("<no name>");
EditorCell editorCell;
editorCell = provider.createEditorCell(getEditorContext());
editorCell.setCellId("property_name");
Style style = new StyleImpl();
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;
}
示例3: createProperty_p67uos_b0
import jetbrains.mps.editor.runtime.style.StyleAttributes; //导入依赖的package包/类
private EditorCell createProperty_p67uos_b0() {
CellProviderWithRole provider = new PropertyCellProvider(myNode, getEditorContext());
provider.setRole("name");
provider.setNoTargetText("<no name>");
EditorCell editorCell;
editorCell = provider.createEditorCell(getEditorContext());
editorCell.setCellId("property_name");
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;
}
示例4: createProperty_qc0910_a0a0
import jetbrains.mps.editor.runtime.style.StyleAttributes; //导入依赖的package包/类
private EditorCell createProperty_qc0910_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();
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;
}
示例5: createMultiline_vedntk_c02a
import jetbrains.mps.editor.runtime.style.StyleAttributes; //导入依赖的package包/类
private EditorCell createMultiline_vedntk_c02a(EditorContext editorContext, SNode node) {
CellProviderWithRole provider = new MultilineCellProvider(node, editorContext);
provider.setRole("opmerkingen");
provider.setNoTargetText("<no opmerkingen>");
EditorCell editorCell;
editorCell = provider.createEditorCell(editorContext);
editorCell.setCellId("property_opmerkingen");
Style style = new StyleImpl();
style.set(StyleAttributes.INDENT_LAYOUT_NEW_LINE, true);
style.set(StyleAttributes.INDENT_LAYOUT_INDENT, true);
editorCell.getStyle().putAll(style);
editorCell.setSubstituteInfo(provider.createDefaultSubstituteInfo());
SNode attributeConcept = provider.getRoleAttribute();
if (attributeConcept != null) {
return getUpdateSession().updateAttributeCell(provider.getRoleAttributeKind(), editorCell, attributeConcept);
} else
return editorCell;
}
示例6: createCollection_fapojb_h0
import jetbrains.mps.editor.runtime.style.StyleAttributes; //导入依赖的package包/类
private EditorCell createCollection_fapojb_h0() {
EditorCell_Collection editorCell = new EditorCell_Collection(getEditorContext(), myNode, new CellLayout_Indent());
editorCell.setCellId("Collection_fapojb_h0");
Style style = new StyleImpl();
style.set(StyleAttributes.SELECTABLE, false);
style.set(StyleAttributes.INDENT_LAYOUT_INDENT, true);
editorCell.getStyle().putAll(style);
editorCell.setFoldable(true);
editorCell.addEditorCell(createConstant_fapojb_a7a());
editorCell.addEditorCell(createConstant_fapojb_b7a());
editorCell.addEditorCell(createRefCell_fapojb_c7a());
editorCell.addEditorCell(createConstant_fapojb_d7a());
editorCell.addEditorCell(createRefCell_fapojb_e7a());
editorCell.addEditorCell(createConstant_fapojb_f7a());
editorCell.addEditorCell(createConstant_fapojb_g7a());
editorCell.addEditorCell(createConstant_fapojb_h7a());
editorCell.addEditorCell(createRefCell_fapojb_i7a());
editorCell.addEditorCell(createConstant_fapojb_j7a());
editorCell.addEditorCell(createRefCell_fapojb_k7a());
editorCell.addEditorCell(createConstant_fapojb_l7a());
editorCell.setInitiallyCollapsed(true);
return editorCell;
}
示例7: createProperty_de2l07_a0a0a5h6a0
import jetbrains.mps.editor.runtime.style.StyleAttributes; //导入依赖的package包/类
private EditorCell createProperty_de2l07_a0a0a5h6a0() {
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_4");
Style style = new StyleImpl();
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;
}
示例8: createQueryList_pjer6y_c31a0
import jetbrains.mps.editor.runtime.style.StyleAttributes; //导入依赖的package包/类
private EditorCell createQueryList_pjer6y_c31a0(final EditorContext editorContext, final SNode node) {
return QueryListContext.computeWithContext(new QueryListContext(node), new _FunctionTypes._return_P0_E0<EditorCell_QueryList>() {
public EditorCell_QueryList invoke() {
QueryListHandler handler = new UitTeVoerenDialoog_EditorBuilder_a.QueryListHandler_pjer6y_c31a0(editorContext, node);
EditorCell_QueryList editorCell = handler.createCells(editorContext, new CellLayout_Vertical());
editorCell.setCellId("QueryList_pjer6y_c31a0");
Style style = new StyleImpl();
style.set(StyleAttributes.READ_ONLY, true);
editorCell.getStyle().putAll(style);
return editorCell;
}
});
}
示例9: createProperty_do4if9_a0a0
import jetbrains.mps.editor.runtime.style.StyleAttributes; //导入依赖的package包/类
private EditorCell createProperty_do4if9_a0a0() {
CellProviderWithRole provider = new PropertyCellProvider(myNode, getEditorContext());
provider.setRole("name");
provider.setNoTargetText("<no name>");
EditorCell editorCell;
editorCell = provider.createEditorCell(getEditorContext());
editorCell.setCellId("property_name");
Style style = new StyleImpl();
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;
}
示例10: createMultiline_xevd8x_c0
import jetbrains.mps.editor.runtime.style.StyleAttributes; //导入依赖的package包/类
private EditorCell createMultiline_xevd8x_c0(EditorContext editorContext, SNode node) {
CellProviderWithRole provider = new MultilineCellProvider(node, editorContext);
provider.setRole("name");
provider.setNoTargetText("<no name>");
EditorCell editorCell;
editorCell = provider.createEditorCell(editorContext);
editorCell.setCellId("property_name");
Style style = new StyleImpl();
new NameStyleClass(getEditorContext(), getNode()).apply(style, editorCell);
style.set(StyleAttributes.INDENT_LAYOUT_NEW_LINE, true);
editorCell.getStyle().putAll(style);
editorCell.setSubstituteInfo(provider.createDefaultSubstituteInfo());
SNode attributeConcept = provider.getRoleAttribute();
if (attributeConcept != null) {
return getUpdateSession().updateAttributeCell(provider.getRoleAttributeKind(), editorCell, attributeConcept);
} else
return editorCell;
}
开发者ID:diederikd,项目名称:DeBrug,代码行数:19,代码来源:OptioneleBevoegdheidOptioneleGehoudenheid_EditorBuilder_a.java
示例11: createCollection_srnish_f0
import jetbrains.mps.editor.runtime.style.StyleAttributes; //导入依赖的package包/类
private EditorCell createCollection_srnish_f0() {
EditorCell_Collection editorCell = new EditorCell_Collection(getEditorContext(), myNode, new CellLayout_Indent());
editorCell.setCellId("Collection_srnish_f0");
Style style = new StyleImpl();
style.set(StyleAttributes.INDENT_LAYOUT_INDENT, true);
editorCell.getStyle().putAll(style);
editorCell.addEditorCell(createConstant_srnish_a5a());
editorCell.addEditorCell(createConstant_srnish_b5a());
editorCell.addEditorCell(createConstant_srnish_c5a());
editorCell.addEditorCell(createRefNodeList_srnish_d5a());
return editorCell;
}
示例12: createConstant_s67zsr_gb0
import jetbrains.mps.editor.runtime.style.StyleAttributes; //导入依赖的package包/类
private EditorCell createConstant_s67zsr_gb0() {
EditorCell_Constant editorCell = new EditorCell_Constant(getEditorContext(), myNode, "");
editorCell.setCellId("Constant_s67zsr_gb0");
Style style = new StyleImpl();
style.set(StyleAttributes.INDENT_LAYOUT_NEW_LINE, true);
editorCell.getStyle().putAll(style);
editorCell.setDefaultText("");
return editorCell;
}
开发者ID:diederikd,项目名称:DeBrug,代码行数:10,代码来源:VerplichteBevoegdheidVerplichteGehoudenheid_EN_EditorBuilder_a.java
示例13: createConstant_1zehi0_a0
import jetbrains.mps.editor.runtime.style.StyleAttributes; //导入依赖的package包/类
private EditorCell createConstant_1zehi0_a0() {
EditorCell_Constant editorCell = new EditorCell_Constant(getEditorContext(), myNode, "gebeurtenis met rechtsgevolg");
editorCell.setCellId("Constant_1zehi0_a0");
Style style = new StyleImpl();
style.set(StyleAttributes.INDENT_LAYOUT_NEW_LINE, true);
editorCell.getStyle().putAll(style);
editorCell.setDefaultText("");
return editorCell;
}
示例14: installCellInfo
import jetbrains.mps.editor.runtime.style.StyleAttributes; //导入依赖的package包/类
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, 0x611073d615228d02L, 0x65312e0ffedaa69L, "versietijdstip"), child));
}
if (editorCell.getRole() == null) {
editorCell.setRole("versietijdstip");
}
Style style = new StyleImpl();
style.set(StyleAttributes.INDENT_LAYOUT_NEW_LINE, true);
editorCell.getStyle().putAll(style);
}
示例15: createConstant_ri0if9_d0
import jetbrains.mps.editor.runtime.style.StyleAttributes; //导入依赖的package包/类
private EditorCell createConstant_ri0if9_d0() {
EditorCell_Constant editorCell = new EditorCell_Constant(getEditorContext(), myNode, "bron");
editorCell.setCellId("Constant_ri0if9_d0");
Style style = new StyleImpl();
style.set(StyleAttributes.INDENT_LAYOUT_INDENT, true);
editorCell.getStyle().putAll(style);
editorCell.setDefaultText("");
return editorCell;
}