本文整理汇总了Java中jetbrains.mps.openapi.editor.style.Style类的典型用法代码示例。如果您正苦于以下问题:Java Style类的具体用法?Java Style怎么用?Java Style使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
Style类属于jetbrains.mps.openapi.editor.style包,在下文中一共展示了Style类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: createMultiline_5bbrbg_a0k0
import jetbrains.mps.openapi.editor.style.Style; //导入依赖的package包/类
private EditorCell createMultiline_5bbrbg_a0k0(EditorContext editorContext, SNode node) {
CellProviderWithRole provider = new MultilineCellProvider(node, editorContext);
provider.setRole("name");
provider.setNoTargetText("<no name>");
provider.setReadOnly(true);
EditorCell editorCell;
editorCell = provider.createEditorCell(editorContext);
editorCell.setCellId("property_name_1");
Style style = new StyleImpl();
new NameStyleClass(getEditorContext(), getNode()).apply(style, editorCell);
style.set(StyleAttributes.EDITABLE, false);
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;
}
示例2: createProperty_de2l07_a0a0a5h6a0
import jetbrains.mps.openapi.editor.style.Style; //导入依赖的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;
}
示例3: createCollection_igmdf6_d0
import jetbrains.mps.openapi.editor.style.Style; //导入依赖的package包/类
private EditorCell createCollection_igmdf6_d0() {
EditorCell_Collection editorCell = new EditorCell_Collection(getEditorContext(), myNode, new CellLayout_Indent());
editorCell.setCellId("Collection_igmdf6_d0");
Style style = new StyleImpl();
style.set(StyleAttributes.INDENT_LAYOUT_INDENT, true);
editorCell.getStyle().putAll(style);
editorCell.addEditorCell(createConstant_igmdf6_a3a());
editorCell.addEditorCell(createConstant_igmdf6_b3a());
editorCell.addEditorCell(createRefCell_igmdf6_c3a());
editorCell.addEditorCell(createConstant_igmdf6_d3a());
editorCell.addEditorCell(createConstant_igmdf6_e3a());
editorCell.addEditorCell(createRefCell_igmdf6_f3a());
editorCell.addEditorCell(createConstant_igmdf6_g3a());
editorCell.addEditorCell(createConstant_igmdf6_h3a());
editorCell.addEditorCell(createRefCell_igmdf6_i3a());
editorCell.addEditorCell(createConstant_igmdf6_j3a());
editorCell.addEditorCell(createConstant_igmdf6_k3a());
editorCell.addEditorCell(createRefCell_igmdf6_l3a());
editorCell.addEditorCell(createConstant_igmdf6_m3a());
editorCell.addEditorCell(createConstant_igmdf6_n3a());
editorCell.addEditorCell(createRefCell_igmdf6_o3a());
editorCell.addEditorCell(createConstant_igmdf6_p3a());
editorCell.addEditorCell(createRefNodeList_igmdf6_q3a());
editorCell.addEditorCell(createConstant_igmdf6_r3a());
return editorCell;
}
示例4: createMultiline_hvz52m_c0
import jetbrains.mps.openapi.editor.style.Style; //导入依赖的package包/类
private EditorCell createMultiline_hvz52m_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_2");
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,代码来源:VerplichteBevoegdheidVerplichteGehoudenheid_Verwoording_InspectorBuilder_a.java
示例5: createCollection_pwfrmn_a0
import jetbrains.mps.openapi.editor.style.Style; //导入依赖的package包/类
private EditorCell createCollection_pwfrmn_a0() {
EditorCell_Collection editorCell = new EditorCell_Collection(getEditorContext(), myNode, new CellLayout_Indent());
editorCell.setCellId("Collection_pwfrmn_a0");
Style style = new StyleImpl();
style.set(StyleAttributes.SELECTABLE, false);
style.set(StyleAttributes.INDENT_LAYOUT_INDENT, true);
editorCell.getStyle().putAll(style);
editorCell.addEditorCell(createConstant_pwfrmn_a0a());
editorCell.addEditorCell(createConstant_pwfrmn_b0a());
editorCell.addEditorCell(createConstant_pwfrmn_c0a());
editorCell.addEditorCell(createCollection_pwfrmn_d0a());
editorCell.addEditorCell(createConstant_pwfrmn_e0a());
editorCell.addEditorCell(createConstant_pwfrmn_f0a());
editorCell.addEditorCell(createConstant_pwfrmn_g0a());
editorCell.addEditorCell(createCollection_pwfrmn_h0a());
editorCell.addEditorCell(createConstant_pwfrmn_i0a());
editorCell.addEditorCell(createCollection_pwfrmn_j0a());
editorCell.addEditorCell(createConstant_pwfrmn_k0a());
editorCell.addEditorCell(createConstant_pwfrmn_l0a());
editorCell.addEditorCell(createConstant_pwfrmn_m0a());
editorCell.addEditorCell(createCollection_pwfrmn_n0a());
return editorCell;
}
示例6: createProperty_5la4qo_a0
import jetbrains.mps.openapi.editor.style.Style; //导入依赖的package包/类
private EditorCell createProperty_5la4qo_a0() {
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();
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;
}
示例7: createProperty_e0ej5n_a0a0a8a0
import jetbrains.mps.openapi.editor.style.Style; //导入依赖的package包/类
private EditorCell createProperty_e0ej5n_a0a0a8a0() {
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_1");
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;
}
开发者ID:diederikd,项目名称:DeBrug,代码行数:20,代码来源:UitvoerbareRechtshandeling_HandelingenRol1_EditorBuilder_a.java
示例8: createProperty_4n4id8_a0n0
import jetbrains.mps.openapi.editor.style.Style; //导入依赖的package包/类
private EditorCell createProperty_4n4id8_a0n0() {
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_1");
Style style = new StyleImpl();
new NameStyleClass(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;
}
开发者ID:diederikd,项目名称:DeBrug,代码行数:20,代码来源:VerplichteBevoegdheidVerplichteGehoudenheid_EditorBuilder_a.java
示例9: createProperty_5oh7zg_a0a0
import jetbrains.mps.openapi.editor.style.Style; //导入依赖的package包/类
private EditorCell createProperty_5oh7zg_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;
}
示例10: createMultiline_cq90ak_c04a
import jetbrains.mps.openapi.editor.style.Style; //导入依赖的package包/类
private EditorCell createMultiline_cq90ak_c04a(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;
}
示例11: createProperty_ce48up_a0a0
import jetbrains.mps.openapi.editor.style.Style; //导入依赖的package包/类
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;
}
示例12: createProperty_7stuy4_c0
import jetbrains.mps.openapi.editor.style.Style; //导入依赖的package包/类
private EditorCell createProperty_7stuy4_c0() {
CellProviderWithRole provider = new PropertyCellProvider(myNode, getEditorContext());
provider.setRole("conceptnummer");
provider.setNoTargetText("<no conceptnummer>");
EditorCell editorCell;
editorCell = provider.createEditorCell(getEditorContext());
editorCell.setCellId("BGB_property_conceptnummer");
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;
}
示例13: createCollection_tm5zcc_y0
import jetbrains.mps.openapi.editor.style.Style; //导入依赖的package包/类
private EditorCell createCollection_tm5zcc_y0() {
EditorCell_Collection editorCell = new EditorCell_Collection(getEditorContext(), myNode, new CellLayout_Indent());
editorCell.setCellId("Collection_tm5zcc_y0");
Style style = new StyleImpl();
style.set(StyleAttributes.INDENT_LAYOUT_INDENT, true);
editorCell.getStyle().putAll(style);
try {
getCellFactory().pushCellContext();
getCellFactory().addCellContextHints(new String[]{});
editorCell.addEditorCell(createRefNode_tm5zcc_a42a());
setInnerCellsContext(editorCell);
} finally {
getCellFactory().popCellContext();
}
return editorCell;
}
示例14: createProperty_kiah9i_a0a0
import jetbrains.mps.openapi.editor.style.Style; //导入依赖的package包/类
private EditorCell createProperty_kiah9i_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;
}
示例15: createProperty_puiv9n_a0u0
import jetbrains.mps.openapi.editor.style.Style; //导入依赖的package包/类
private EditorCell createProperty_puiv9n_a0u0() {
CellProviderWithRole provider = new PropertyCellProvider(myNode, getEditorContext());
provider.setRole("name");
provider.setNoTargetText("<no name>");
EditorCell editorCell;
editorCell = provider.createEditorCell(getEditorContext());
editorCell.setCellId("property_name_3");
Style style = new StyleImpl();
new SubjectStyleClass(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;
}