本文整理汇总了Java中org.eclipse.jface.viewers.ViewerLabel类的典型用法代码示例。如果您正苦于以下问题:Java ViewerLabel类的具体用法?Java ViewerLabel怎么用?Java ViewerLabel使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
ViewerLabel类属于org.eclipse.jface.viewers包,在下文中一共展示了ViewerLabel类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: updateLabel
import org.eclipse.jface.viewers.ViewerLabel; //导入依赖的package包/类
public void updateLabel(ViewerLabel label, TreePath elementPath) {
Object firstSegment = elementPath.getFirstSegment();
if (firstSegment instanceof IProject && elementPath.getSegmentCount() == 2) {
IProject project = (IProject) firstSegment;
Object lastSegment = elementPath.getLastSegment();
if (lastSegment instanceof IFolder) {
IFolder folder = (IFolder) lastSegment;
if (!folder.getParent().equals(project)) {
// This means that a folder that is not a direct child of the project
// is a child in the tree. Therefore, the resource content provider
// must be active and in compress folder mode so we will leave
// it to the resource provider to provide the proper label.
// We need to do this because of bug 153912
return;
}
}
}
label.setImage(getImage(elementPath.getLastSegment()));
label.setText(getText(elementPath.getLastSegment()));
Font f = getFont(elementPath.getLastSegment());
if (f != null)
label.setFont(f);
}
开发者ID:trylimits,项目名称:Eclipse-Postfix-Code-Completion,代码行数:24,代码来源:JavaSynchronizationLabelProvider.java
示例2: updateLabel
import org.eclipse.jface.viewers.ViewerLabel; //导入依赖的package包/类
/**
* @generated
*/
public void updateLabel(ViewerLabel label, TreePath elementPath) {
Object element = elementPath.getLastSegment();
if (element instanceof StatemachineNavigatorItem
&& !isOwnView(((StatemachineNavigatorItem) element).getView())) {
return;
}
label.setText(getText(element));
label.setImage(getImage(element));
}
开发者ID:spoenemann,项目名称:xtext-gef,代码行数:13,代码来源:StatemachineNavigatorLabelProvider.java
示例3: updateLabel
import org.eclipse.jface.viewers.ViewerLabel; //导入依赖的package包/类
public void updateLabel(ViewerLabel label, TreePath elementPath) {
Diagram lastSegment = (Diagram) elementPath.getLastSegment();
NamedElement element = (NamedElement) lastSegment.getElement();
AdapterFactoryLabelProvider provider = new AdapterFactoryLabelProvider(
new SGraphItemProviderAdapterFactory());
label.setText(provider.getText(element));
if (element instanceof Statechart)
label.setImage(StatechartImages.LOGO.image());
else
label.setImage(provider.getImage(element));
}
开发者ID:Yakindu,项目名称:statecharts,代码行数:13,代码来源:DiagramPartitioningEditor.java
示例4: updateLabel
import org.eclipse.jface.viewers.ViewerLabel; //导入依赖的package包/类
/**
* @generated
*/
public void updateLabel(ViewerLabel label, TreePath elementPath) {
Object element = elementPath.getLastSegment();
if (element instanceof SmcNavigatorItem
&& !isOwnView(((SmcNavigatorItem) element).getView())) {
return;
}
label.setText(getText(element));
label.setImage(getImage(element));
}
开发者ID:road-framework,项目名称:ROADDesigner,代码行数:13,代码来源:SmcNavigatorLabelProvider.java
示例5: updateLabel
import org.eclipse.jface.viewers.ViewerLabel; //导入依赖的package包/类
/**
* @generated
*/
public void updateLabel(ViewerLabel label, TreePath elementPath) {
Object element = elementPath.getLastSegment();
if (element instanceof Wc2014NavigatorItem
&& !isOwnView(((Wc2014NavigatorItem) element).getView())) {
return;
}
label.setText(getText(element));
label.setImage(getImage(element));
}
开发者ID:ggxx,项目名称:HelloBrazil,代码行数:13,代码来源:Wc2014NavigatorLabelProvider.java
示例6: updateLabel
import org.eclipse.jface.viewers.ViewerLabel; //导入依赖的package包/类
/**
* @generated
*/
public void updateLabel(ViewerLabel label, TreePath elementPath) {
Object element = elementPath.getLastSegment();
if (element instanceof SimpleBPMN.diagram.navigator.SimpleBPMNNavigatorItem
&& !isOwnView(((SimpleBPMN.diagram.navigator.SimpleBPMNNavigatorItem) element)
.getView())) {
return;
}
label.setText(getText(element));
label.setImage(getImage(element));
}
开发者ID:bluezio,项目名称:simplified-bpmn-example,代码行数:14,代码来源:SimpleBPMNNavigatorLabelProvider.java
示例7: updateLabel
import org.eclipse.jface.viewers.ViewerLabel; //导入依赖的package包/类
/**
* @generated
*/
public void updateLabel(ViewerLabel label, TreePath elementPath) {
Object element = elementPath.getLastSegment();
if (element instanceof edu.toronto.cs.se.modelepedia.icse15_sequencediagram_mavo.diagram.navigator.ICSE15_SequenceDiagram_MAVONavigatorItem
&& !isOwnView(
((edu.toronto.cs.se.modelepedia.icse15_sequencediagram_mavo.diagram.navigator.ICSE15_SequenceDiagram_MAVONavigatorItem) element)
.getView())) {
return;
}
label.setText(getText(element));
label.setImage(getImage(element));
}
开发者ID:adisandro,项目名称:MMINT,代码行数:15,代码来源:ICSE15_SequenceDiagram_MAVONavigatorLabelProvider.java
示例8: updateLabel
import org.eclipse.jface.viewers.ViewerLabel; //导入依赖的package包/类
/**
* @generated
*/
public void updateLabel(ViewerLabel label, TreePath elementPath) {
Object element = elementPath.getLastSegment();
if (element instanceof edu.toronto.cs.se.modelepedia.necsis14_classdiagram.diagram.navigator.NECSIS14_ClassDiagramNavigatorItem
&& !isOwnView(((edu.toronto.cs.se.modelepedia.necsis14_classdiagram.diagram.navigator.NECSIS14_ClassDiagramNavigatorItem) element)
.getView())) {
return;
}
label.setText(getText(element));
label.setImage(getImage(element));
}
开发者ID:adisandro,项目名称:MMINT,代码行数:14,代码来源:NECSIS14_ClassDiagramNavigatorLabelProvider.java
示例9: updateLabel
import org.eclipse.jface.viewers.ViewerLabel; //导入依赖的package包/类
/**
* @generated
*/
public void updateLabel(ViewerLabel label, TreePath elementPath) {
Object element = elementPath.getLastSegment();
if (element instanceof edu.toronto.cs.se.modelepedia.necsis14_databaseschema.diagram.navigator.NECSIS14_DatabaseSchemaNavigatorItem
&& !isOwnView(((edu.toronto.cs.se.modelepedia.necsis14_databaseschema.diagram.navigator.NECSIS14_DatabaseSchemaNavigatorItem) element)
.getView())) {
return;
}
label.setText(getText(element));
label.setImage(getImage(element));
}
开发者ID:adisandro,项目名称:MMINT,代码行数:14,代码来源:NECSIS14_DatabaseSchemaNavigatorLabelProvider.java
示例10: updateLabel
import org.eclipse.jface.viewers.ViewerLabel; //导入依赖的package包/类
/**
* @generated
*/
public void updateLabel(ViewerLabel label, TreePath elementPath) {
Object element = elementPath.getLastSegment();
if (element instanceof MIDNavigatorItem && !isOwnView(((MIDNavigatorItem) element).getView())) {
return;
}
label.setText(getText(element));
label.setImage(getImage(element));
}
开发者ID:adisandro,项目名称:MMINT,代码行数:12,代码来源:MIDNavigatorLabelProvider.java
示例11: updateLabel
import org.eclipse.jface.viewers.ViewerLabel; //导入依赖的package包/类
/**
* @generated
*/
public void updateLabel(ViewerLabel label, TreePath elementPath) {
Object element = elementPath.getLastSegment();
if (element instanceof MIDNavigatorItem && !isOwnView(((MIDNavigatorItem) element).getView())) {
return;
}
label.setText(getText(element));
label.setImage(getImage(element));
}
开发者ID:adisandro,项目名称:MMINT,代码行数:12,代码来源:MIDNavigatorLabelProvider.java
示例12: updateLabel
import org.eclipse.jface.viewers.ViewerLabel; //导入依赖的package包/类
/**
* @generated
*/
public void updateLabel(ViewerLabel label, TreePath elementPath) {
Object element = elementPath.getLastSegment();
if (element instanceof edu.toronto.cs.se.modelepedia.relationaldatabase_mavo.diagram.navigator.RelationalDatabase_MAVONavigatorItem
&& !isOwnView(
((edu.toronto.cs.se.modelepedia.relationaldatabase_mavo.diagram.navigator.RelationalDatabase_MAVONavigatorItem) element)
.getView())) {
return;
}
label.setText(getText(element));
label.setImage(getImage(element));
}
开发者ID:adisandro,项目名称:MMINT,代码行数:15,代码来源:RelationalDatabase_MAVONavigatorLabelProvider.java
示例13: updateLabel
import org.eclipse.jface.viewers.ViewerLabel; //导入依赖的package包/类
/**
* @generated
*/
public void updateLabel(ViewerLabel label, TreePath elementPath) {
Object element = elementPath.getLastSegment();
if (element instanceof RelationalDatabaseNavigatorItem
&& !isOwnView(((RelationalDatabaseNavigatorItem) element)
.getView())) {
return;
}
label.setText(getText(element));
label.setImage(getImage(element));
}
开发者ID:adisandro,项目名称:MMINT,代码行数:14,代码来源:RelationalDatabaseNavigatorLabelProvider.java
示例14: updateLabel
import org.eclipse.jface.viewers.ViewerLabel; //导入依赖的package包/类
/**
* @generated
*/
public void updateLabel(ViewerLabel label, TreePath elementPath) {
Object element = elementPath.getLastSegment();
if (element instanceof edu.toronto.cs.se.modelepedia.istar_mavo.diagram.navigator.IStar_MAVONavigatorItem
&& !isOwnView(
((edu.toronto.cs.se.modelepedia.istar_mavo.diagram.navigator.IStar_MAVONavigatorItem) element)
.getView())) {
return;
}
label.setText(getText(element));
label.setImage(getImage(element));
}
开发者ID:adisandro,项目名称:MMINT,代码行数:15,代码来源:IStar_MAVONavigatorLabelProvider.java
示例15: updateLabel
import org.eclipse.jface.viewers.ViewerLabel; //导入依赖的package包/类
/**
* @generated
*/
public void updateLabel(ViewerLabel label, TreePath elementPath) {
Object element = elementPath.getLastSegment();
if (element instanceof IStarNavigatorItem
&& !isOwnView(((IStarNavigatorItem) element).getView())) {
return;
}
label.setText(getText(element));
label.setImage(getImage(element));
}
开发者ID:adisandro,项目名称:MMINT,代码行数:13,代码来源:IStarNavigatorLabelProvider.java
示例16: updateLabel
import org.eclipse.jface.viewers.ViewerLabel; //导入依赖的package包/类
/**
* @generated
*/
public void updateLabel(ViewerLabel label, TreePath elementPath) {
Object element = elementPath.getLastSegment();
if (element instanceof StateMachineNavigatorItem
&& !isOwnView(((StateMachineNavigatorItem) element).getView())) {
return;
}
label.setText(getText(element));
label.setImage(getImage(element));
}
开发者ID:adisandro,项目名称:MMINT,代码行数:13,代码来源:StateMachineNavigatorLabelProvider.java
示例17: updateLabel
import org.eclipse.jface.viewers.ViewerLabel; //导入依赖的package包/类
/**
* @generated
*/
public void updateLabel(ViewerLabel label, TreePath elementPath) {
Object element = elementPath.getLastSegment();
if (element instanceof edu.toronto.cs.se.modelepedia.statemachine_mavo.diagram.navigator.StateMachine_MAVONavigatorItem
&& !isOwnView(
((edu.toronto.cs.se.modelepedia.statemachine_mavo.diagram.navigator.StateMachine_MAVONavigatorItem) element)
.getView())) {
return;
}
label.setText(getText(element));
label.setImage(getImage(element));
}
开发者ID:adisandro,项目名称:MMINT,代码行数:15,代码来源:StateMachine_MAVONavigatorLabelProvider.java
示例18: updateLabel
import org.eclipse.jface.viewers.ViewerLabel; //导入依赖的package包/类
/**
* @generated
*/
public void updateLabel(ViewerLabel label, TreePath elementPath) {
Object element = elementPath.getLastSegment();
if (element instanceof StateNavigatorItem
&& !isOwnView(((StateNavigatorItem) element).getView())) {
return;
}
label.setText(getText(element));
label.setImage(getImage(element));
}
开发者ID:adisandro,项目名称:MMINT,代码行数:13,代码来源:StateNavigatorLabelProvider.java
示例19: updateLabel
import org.eclipse.jface.viewers.ViewerLabel; //导入依赖的package包/类
/**
* @generated
*/
public void updateLabel(ViewerLabel label, TreePath elementPath) {
Object element = elementPath.getLastSegment();
if (element instanceof ArmyNavigatorItem
&& !isOwnView(((ArmyNavigatorItem) element).getView())) {
return;
}
label.setText(getText(element));
label.setImage(getImage(element));
}
开发者ID:adisandro,项目名称:MMINT,代码行数:13,代码来源:ArmyNavigatorLabelProvider.java
示例20: updateLabel
import org.eclipse.jface.viewers.ViewerLabel; //导入依赖的package包/类
/**
* @generated
*/
public void updateLabel(ViewerLabel label, TreePath elementPath) {
Object element = elementPath.getLastSegment();
if (element instanceof EconomyNavigatorItem
&& !isOwnView(((EconomyNavigatorItem) element).getView())) {
return;
}
label.setText(getText(element));
label.setImage(getImage(element));
}
开发者ID:adisandro,项目名称:MMINT,代码行数:13,代码来源:EconomyNavigatorLabelProvider.java
注:本文中的org.eclipse.jface.viewers.ViewerLabel类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论