本文整理汇总了Java中jetbrains.mps.nodeEditor.cellProviders.CellProviderWithRole类的典型用法代码示例。如果您正苦于以下问题:Java CellProviderWithRole类的具体用法?Java CellProviderWithRole怎么用?Java CellProviderWithRole使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
CellProviderWithRole类属于jetbrains.mps.nodeEditor.cellProviders包,在下文中一共展示了CellProviderWithRole类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: createProperty_nnvg5a_a0
import jetbrains.mps.nodeEditor.cellProviders.CellProviderWithRole; //导入依赖的package包/类
private EditorCell createProperty_nnvg5a_a0() {
CellProviderWithRole provider = new PropertyCellProvider(myNode, getEditorContext());
provider.setRole("conceptnummer");
provider.setNoTargetText("<no conceptnummer>");
EditorCell editorCell;
editorCell = provider.createEditorCell(getEditorContext());
editorCell.setCellId("CN_property_conceptnummer");
Style style = new StyleImpl();
new NummerStyleClass(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;
}
示例2: createProperty_95czai_a0b0
import jetbrains.mps.nodeEditor.cellProviders.CellProviderWithRole; //导入依赖的package包/类
private EditorCell createProperty_95czai_a0b0() {
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);
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_eawz8v_a0l0
import jetbrains.mps.nodeEditor.cellProviders.CellProviderWithRole; //导入依赖的package包/类
private EditorCell createProperty_eawz8v_a0l0() {
CellProviderWithRole provider = new PropertyCellProvider(myNode, getEditorContext());
provider.setRole("name");
provider.setNoTargetText("<no name>");
EditorCell editorCell;
editorCell = provider.createEditorCell(getEditorContext());
editorCell.setCellId("property_name_5");
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;
}
开发者ID:diederikd,项目名称:DeBrug,代码行数:19,代码来源:KrachtigeAanspraakFataleVerplichtig_Verwoording_InspectorBuilder_a.java
示例4: createProperty_topti0_a0a0
import jetbrains.mps.nodeEditor.cellProviders.CellProviderWithRole; //导入依赖的package包/类
private EditorCell createProperty_topti0_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 KenmerkStyleClass(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;
}
示例5: createProperty_eawz8v_a0f0
import jetbrains.mps.nodeEditor.cellProviders.CellProviderWithRole; //导入依赖的package包/类
private EditorCell createProperty_eawz8v_a0f0() {
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_3");
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,代码来源:KrachtigeAanspraakFataleVerplichtig_Verwoording_InspectorBuilder_a.java
示例6: createProperty_fdm9fu_a0o0
import jetbrains.mps.nodeEditor.cellProviders.CellProviderWithRole; //导入依赖的package包/类
private EditorCell createProperty_fdm9fu_a0o0() {
CellProviderWithRole provider = new PropertyCellProvider(myNode, getEditorContext());
provider.setRole("name");
provider.setNoTargetText("<no name>");
EditorCell editorCell;
editorCell = provider.createEditorCell(getEditorContext());
editorCell.setCellId("property_name_2");
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;
}
开发者ID:diederikd,项目名称:DeBrug,代码行数:19,代码来源:KrachtigeAanspraakFataleVerplichtig_EN_EditorBuilder_a.java
示例7: createProperty_qsh53x_a0f0a
import jetbrains.mps.nodeEditor.cellProviders.CellProviderWithRole; //导入依赖的package包/类
private EditorCell createProperty_qsh53x_a0f0a() {
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 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: createProperty_ymj9mh_d0a
import jetbrains.mps.nodeEditor.cellProviders.CellProviderWithRole; //导入依赖的package包/类
private EditorCell createProperty_ymj9mh_d0a() {
CellProviderWithRole provider = new PropertyCellProvider(myNode, getEditorContext());
provider.setRole("name");
provider.setNoTargetText("Name of activity");
EditorCell editorCell;
editorCell = provider.createEditorCell(getEditorContext());
editorCell.setCellId("property_name");
Style style = new StyleImpl();
new DeclarationsStyleClass(getEditorContext(), getNode()).apply(style, editorCell);
style.set(StyleAttributes.NAVIGATABLE_NODE, _StyleParameter_QueryFunction_ymj9mh_a0d0a());
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;
}
示例9: createMultiline_4n4id8_c43a
import jetbrains.mps.nodeEditor.cellProviders.CellProviderWithRole; //导入依赖的package包/类
private EditorCell createMultiline_4n4id8_c43a(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_EditorBuilder_a.java
示例10: createProperty_qq5s0v_a0
import jetbrains.mps.nodeEditor.cellProviders.CellProviderWithRole; //导入依赖的package包/类
private EditorCell createProperty_qq5s0v_a0() {
CellProviderWithRole provider = new PropertyCellProvider(myNode, getEditorContext());
provider.setRole("name");
provider.setNoTargetText("<no name>");
EditorCell editorCell;
editorCell = provider.createEditorCell(getEditorContext());
editorCell.setCellId("O_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;
}
示例11: createProperty_tm0j27_g0a
import jetbrains.mps.nodeEditor.cellProviders.CellProviderWithRole; //导入依赖的package包/类
private EditorCell createProperty_tm0j27_g0a() {
CellProviderWithRole provider = new PropertyCellProvider(myNode, getEditorContext());
provider.setRole("playback");
provider.setNoTargetText("<no playback>");
EditorCell editorCell;
editorCell = provider.createEditorCell(getEditorContext());
editorCell.setCellId("property_playback");
Style style = new StyleImpl();
new GreetingStyleClass(getEditorContext(), getNode()).apply(style, editorCell);
style.set(StyleAttributes.SELECTABLE, true);
style.set(StyleAttributes.NAVIGATABLE_NODE, _StyleParameter_QueryFunction_tm0j27_a1g0a());
editorCell.getStyle().putAll(style);
RemoveGreeting.setCellActions(editorCell, myNode, getEditorContext());
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: createMultiline_6um9s6_c13a
import jetbrains.mps.nodeEditor.cellProviders.CellProviderWithRole; //导入依赖的package包/类
private EditorCell createMultiline_6um9s6_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,代码来源:OptioneleBevoegdheidOptioneleGehoudenheid_EN_EditorBuilder_a.java
示例13: createProperty_a40kt5_a0c0
import jetbrains.mps.nodeEditor.cellProviders.CellProviderWithRole; //导入依赖的package包/类
private EditorCell createProperty_a40kt5_a0c0() {
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");
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,代码行数:17,代码来源:ReferentieNaarOvergang_UittevoerenHandeling_EditorBuilder_a.java
示例14: createProperty_my91ok_a0l0
import jetbrains.mps.nodeEditor.cellProviders.CellProviderWithRole; //导入依赖的package包/类
private EditorCell createProperty_my91ok_a0l0() {
CellProviderWithRole provider = new PropertyCellProvider(myNode, getEditorContext());
provider.setRole("name");
provider.setNoTargetText("<no name>");
EditorCell editorCell;
editorCell = provider.createEditorCell(getEditorContext());
editorCell.setCellId("property_name_5");
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;
}
开发者ID:diederikd,项目名称:DeBrug,代码行数:19,代码来源:ZwakkeAanspraakZwakkePlicht_Verwoording_InspectorBuilder_a.java
示例15: createProperty_s67zsr_a0q0
import jetbrains.mps.nodeEditor.cellProviders.CellProviderWithRole; //导入依赖的package包/类
private EditorCell createProperty_s67zsr_a0q0() {
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;
}
开发者ID:diederikd,项目名称:DeBrug,代码行数:19,代码来源:VerplichteBevoegdheidVerplichteGehoudenheid_EN_EditorBuilder_a.java