use of org.eclipse.che.ide.ui.smartTree.presentation.NodePresentation in project che by eclipse.
the class AbstractPresentationNode method getPresentation.
@Override
public NodePresentation getPresentation(boolean update) {
if (nodePresentation == null) {
nodePresentation = new NodePresentation();
updatePresentation(nodePresentation);
}
if (update) {
updatePresentation(nodePresentation);
}
return nodePresentation;
}
use of org.eclipse.che.ide.ui.smartTree.presentation.NodePresentation in project che by eclipse.
the class TestResultGroupNode method getPresentation.
@Override
public NodePresentation getPresentation(boolean update) {
if (nodePresentation == null) {
nodePresentation = new NodePresentation();
updatePresentation(nodePresentation);
}
if (update) {
updatePresentation(nodePresentation);
}
return nodePresentation;
}
use of org.eclipse.che.ide.ui.smartTree.presentation.NodePresentation in project che by eclipse.
the class TestResultMethodNode method getPresentation.
@Override
public NodePresentation getPresentation(boolean update) {
if (nodePresentation == null) {
nodePresentation = new NodePresentation();
updatePresentation(nodePresentation);
}
if (update) {
updatePresentation(nodePresentation);
}
return nodePresentation;
}
use of org.eclipse.che.ide.ui.smartTree.presentation.NodePresentation in project che by eclipse.
the class FindResultGroupNode method getChildrenImpl.
/** {@inheritDoc} */
@Override
protected Promise<List<Node>> getChildrenImpl() {
List<Node> fileNodes = new ArrayList<>();
for (Resource resource : findResults) {
if (resource.getResourceType() != FILE) {
continue;
}
FileNode node = nodeFactory.newFileNode((File) resource, null);
NodePresentation presentation = node.getPresentation(true);
presentation.setInfoText(resource.getLocation().toString());
presentation.setInfoTextWrapper(Pair.of("(", ")"));
presentation.setInfoTextCss("color:" + getEditorInfoTextColor() + ";font-size: 11px");
fileNodes.add(node);
}
//sort nodes by file name
Collections.sort(fileNodes, new NameComparator());
return Promises.resolve(fileNodes);
}
use of org.eclipse.che.ide.ui.smartTree.presentation.NodePresentation in project che by eclipse.
the class FindResultGroupNode method getPresentation.
/** {@inheritDoc} */
@Override
public NodePresentation getPresentation(boolean update) {
if (nodePresentation == null) {
nodePresentation = new NodePresentation();
updatePresentation(nodePresentation);
}
if (update) {
updatePresentation(nodePresentation);
}
return nodePresentation;
}
Aggregations