import org.eclipse.ui.IEditorInput;
import org.simantics.NameLabelMode;
import org.simantics.NameLabelUtil;
import org.eclipse.ui.IEditorInput;
import org.simantics.NameLabelMode;
import org.simantics.NameLabelUtil;
if (input instanceof IResourceEditorInput) {
Resource code = ((IResourceEditorInput) input).getResource();
if (code != null) {
if (input instanceof IResourceEditorInput) {
Resource code = ((IResourceEditorInput) input).getResource();
if (code != null) {
}
private StringBuilder getTooltip(ReadGraph graph, String editorId, IResourceEditorInput input, StringBuilder sb) throws DatabaseException {
}
private StringBuilder getTooltip(ReadGraph graph, String editorId, IResourceEditorInput input, StringBuilder sb) throws DatabaseException {
ResourceArray path = getPathInIndexRoot(graph, owner);
for (int i = path.size() - 2; i > 0; --i) {
String segment = NameLabelUtil.modalName(graph, path.get(i), mode);
ResourceArray path = getPathInIndexRoot(graph, owner);
for (int i = path.size() - 2; i > 0; --i) {
String segment = NameLabelUtil.modalName(graph, path.get(i), mode);
Layer0 L0 = Layer0.getInstance(graph);
Resource owner = graph.getPossibleObject(property, L0.PropertyOf);
if (owner == null)
Layer0 L0 = Layer0.getInstance(graph);
Resource owner = graph.getPossibleObject(property, L0.PropertyOf);
if (owner == null)