本文整理汇总了Java中jetbrains.mps.openapi.editor.cells.EditorCell类的典型用法代码示例。如果您正苦于以下问题:Java EditorCell类的具体用法?Java EditorCell怎么用?Java EditorCell使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
EditorCell类属于jetbrains.mps.openapi.editor.cells包,在下文中一共展示了EditorCell类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: createCollection_6xvrct_d0
import jetbrains.mps.openapi.editor.cells.EditorCell; //导入依赖的package包/类
private EditorCell createCollection_6xvrct_d0() {
EditorCell_Collection editorCell = new EditorCell_Collection(getEditorContext(), myNode, new CellLayout_Indent());
editorCell.setCellId("Collection_6xvrct_d0");
Style style = new StyleImpl();
style.set(StyleAttributes.INDENT_LAYOUT_INDENT, true);
editorCell.getStyle().putAll(style);
editorCell.addEditorCell(createConstant_6xvrct_a3a());
editorCell.addEditorCell(createConstant_6xvrct_b3a());
editorCell.addEditorCell(createRefNodeList_6xvrct_c3a());
editorCell.addEditorCell(createConstant_6xvrct_d3a());
editorCell.addEditorCell(createConstant_6xvrct_e3a());
editorCell.addEditorCell(createRefNodeList_6xvrct_f3a());
editorCell.addEditorCell(createCollection_6xvrct_g3a());
editorCell.addEditorCell(createConstant_6xvrct_h3a());
editorCell.addEditorCell(createConstant_6xvrct_i3a());
editorCell.addEditorCell(createRefNodeList_6xvrct_j3a());
return editorCell;
}
示例2: createProperty_drg1ot_a0a0a0a0a0
import jetbrains.mps.openapi.editor.cells.EditorCell; //导入依赖的package包/类
private EditorCell createProperty_drg1ot_a0a0a0a0a0() {
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;
}
示例3: createRefCell_drg1ot_a0a0a
import jetbrains.mps.openapi.editor.cells.EditorCell; //导入依赖的package包/类
private EditorCell createRefCell_drg1ot_a0a0a() {
CellProviderWithRole provider = new RefCellCellProvider(myNode, getEditorContext()) {
@Override
protected EditorCell createRefCell(EditorContext context, SNode effectiveNode, SNode node) {
EditorCell cell = new IsGeen_EditorBuilder_a.Inline_Builder_drg1ot_a0a.Inline_Builder_drg1ot_a0a0a0(getEditorContext(), myNode, effectiveNode).createCell();
installDeleteActions_nullable_aggregation(cell);
return cell;
}
};
provider.setRole("object");
provider.setNoTargetText("<no object>");
EditorCell editorCell;
editorCell = provider.createEditorCell(getEditorContext());
if (editorCell.getRole() == null) {
editorCell.setReferenceCell(true);
editorCell.setRole("object");
}
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_d0e2am_n0
import jetbrains.mps.openapi.editor.cells.EditorCell; //导入依赖的package包/类
private EditorCell createProperty_d0e2am_n0() {
CellProviderWithRole provider = new PropertyCellProvider(myNode, getEditorContext());
provider.setRole("toonalles");
provider.setNoTargetText("<no toonalles>");
EditorCell editorCell;
editorCell = provider.createEditorCell(getEditorContext());
editorCell.setCellId("property_toonalles");
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;
}
示例5: createCollection_o8qqqk_a_0
import jetbrains.mps.openapi.editor.cells.EditorCell; //导入依赖的package包/类
private EditorCell createCollection_o8qqqk_a_0() {
EditorCell_Collection editorCell = new EditorCell_Collection(getEditorContext(), myNode, new CellLayout_Indent());
editorCell.setCellId("Collection_o8qqqk_a_0");
editorCell.setBig(true);
editorCell.setCellContext(getCellFactory().getCellContext());
Style style = new StyleImpl();
style.set(StyleAttributes.INDENT_LAYOUT_INDENT, true);
editorCell.getStyle().putAll(style);
editorCell.addEditorCell(createConstant_o8qqqk_a0_0());
editorCell.addEditorCell(createConstant_o8qqqk_b0());
editorCell.addEditorCell(createRefNode_o8qqqk_c0());
editorCell.addEditorCell(createConstant_o8qqqk_d0());
editorCell.addEditorCell(createConstant_o8qqqk_e0_0());
editorCell.addEditorCell(createRefNode_o8qqqk_f0());
return editorCell;
}
示例6: createProperty_ce48up_a0a0
import jetbrains.mps.openapi.editor.cells.EditorCell; //导入依赖的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;
}
示例7: createProperty_ffjt3u_a0a0
import jetbrains.mps.openapi.editor.cells.EditorCell; //导入依赖的package包/类
private EditorCell createProperty_ffjt3u_a0a0() {
CellProviderWithRole provider = new PropertyCellProvider(myNode, getEditorContext());
provider.setRole("name");
provider.setNoTargetText("<te wijzigen onderwerp>");
provider.setReadOnly(true);
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;
}
示例8: createCollection_9qq2ms_a
import jetbrains.mps.openapi.editor.cells.EditorCell; //导入依赖的package包/类
private EditorCell createCollection_9qq2ms_a() {
EditorCell_Collection editorCell = new EditorCell_Collection(getEditorContext(), myNode, new CellLayout_Indent());
editorCell.setCellId("Collection_9qq2ms_a");
editorCell.setBig(true);
editorCell.setCellContext(getCellFactory().getCellContext());
editorCell.addEditorCell(createConstant_9qq2ms_a0());
editorCell.addEditorCell(createConstant_9qq2ms_b0());
editorCell.addEditorCell(createProperty_9qq2ms_c0());
return editorCell;
}
示例9: createCollection_dwyzfs_a
import jetbrains.mps.openapi.editor.cells.EditorCell; //导入依赖的package包/类
private EditorCell createCollection_dwyzfs_a() {
EditorCell_Collection editorCell = new EditorCell_Collection(getEditorContext(), myNode, new CellLayout_Indent());
editorCell.setCellId("Collection_dwyzfs_a");
editorCell.setBig(true);
editorCell.setCellContext(getCellFactory().getCellContext());
editorCell.addEditorCell(createRefCell_dwyzfs_a0());
return editorCell;
}
示例10: installCellInfo
import jetbrains.mps.openapi.editor.cells.EditorCell; //导入依赖的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, 0x4ce3b5e2c39586d9L, 0x4ce3b5e2c39586daL, "expressie"), child));
}
if (editorCell.getRole() == null) {
editorCell.setRole("expressie");
}
}
示例11: createCollection_ffjt3u_c0
import jetbrains.mps.openapi.editor.cells.EditorCell; //导入依赖的package包/类
private EditorCell createCollection_ffjt3u_c0() {
EditorCell_Collection editorCell = new EditorCell_Collection(getEditorContext(), myNode, new CellLayout_Indent());
editorCell.setCellId("Collection_ffjt3u_c0");
Style style = new StyleImpl();
style.set(StyleAttributes.INDENT_LAYOUT_INDENT, true);
editorCell.getStyle().putAll(style);
editorCell.addEditorCell(createConstant_ffjt3u_a2a());
editorCell.addEditorCell(createConstant_ffjt3u_b2a());
editorCell.addEditorCell(createCollection_ffjt3u_c2a());
editorCell.addEditorCell(createConstant_ffjt3u_d2a());
editorCell.addEditorCell(createConstant_ffjt3u_e2a());
editorCell.addEditorCell(createCollection_ffjt3u_f2a());
return editorCell;
}
示例12: createConstant_hnwz83_e0
import jetbrains.mps.openapi.editor.cells.EditorCell; //导入依赖的package包/类
private EditorCell createConstant_hnwz83_e0() {
EditorCell_Constant editorCell = new EditorCell_Constant(getEditorContext(), myNode, "");
editorCell.setCellId("Constant_hnwz83_e0");
Style style = new StyleImpl();
style.set(StyleAttributes.INDENT_LAYOUT_NEW_LINE, true);
editorCell.getStyle().putAll(style);
editorCell.setDefaultText("");
return editorCell;
}
示例13: createConstant_ri0if9_j0
import jetbrains.mps.openapi.editor.cells.EditorCell; //导入依赖的package包/类
private EditorCell createConstant_ri0if9_j0() {
EditorCell_Constant editorCell = new EditorCell_Constant(getEditorContext(), myNode, "heeft als gevolg");
editorCell.setCellId("Constant_ri0if9_j0");
Style style = new StyleImpl();
style.set(StyleAttributes.INDENT_LAYOUT_NEW_LINE, true);
style.set(StyleAttributes.INDENT_LAYOUT_INDENT, true);
editorCell.getStyle().putAll(style);
editorCell.setDefaultText("");
return editorCell;
}
示例14: createConstant_gnj8f1_a
import jetbrains.mps.openapi.editor.cells.EditorCell; //导入依赖的package包/类
private EditorCell createConstant_gnj8f1_a() {
EditorCell_Constant editorCell = new EditorCell_Constant(getEditorContext(), myNode, "nee");
editorCell.setCellId("Constant_gnj8f1_a");
editorCell.setBig(true);
editorCell.setCellContext(getCellFactory().getCellContext());
Style style = new StyleImpl();
style.set(StyleAttributes.PUNCTUATION_RIGHT, true);
editorCell.getStyle().putAll(style);
editorCell.setDefaultText("");
return editorCell;
}
示例15: installElementCellActions
import jetbrains.mps.openapi.editor.cells.EditorCell; //导入依赖的package包/类
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));
elementCell.addKeyMap(new RefNodeListHandlerElementKeyMap(this, ","));
}
if (elementCell.getSubstituteInfo() == null || elementCell.getSubstituteInfo() instanceof DefaultSubstituteInfo) {
elementCell.setSubstituteInfo(new SChildSubstituteInfo(elementCell, getNode(), MetaAdapterFactory.getContainmentLink(0x30ef095ad48945ffL, 0xa80f456a798ac125L, 0x76ccb41bf3857614L, 0x76ccb41bf3857617L, "attributen"), elementNode));
}
}
}