X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=bundles%2Forg.simantics.diagram.profile%2Fsrc%2Forg%2Fsimantics%2Fdiagram%2Fprofile%2Fview%2FEntryLabeler.java;h=b05f0e449a3fdac36f2279d5c34da37d61e9d384;hb=08dc7080753f3ea35985e76e9effb9d3ff92c3b5;hp=eaf5dd8643ab3889615a09fcc7eab611c1ceac97;hpb=969bd23cab98a79ca9101af33334000879fb60c5;p=simantics%2Fplatform.git diff --git a/bundles/org.simantics.diagram.profile/src/org/simantics/diagram/profile/view/EntryLabeler.java b/bundles/org.simantics.diagram.profile/src/org/simantics/diagram/profile/view/EntryLabeler.java index eaf5dd864..b05f0e449 100644 --- a/bundles/org.simantics.diagram.profile/src/org/simantics/diagram/profile/view/EntryLabeler.java +++ b/bundles/org.simantics.diagram.profile/src/org/simantics/diagram/profile/view/EntryLabeler.java @@ -1,25 +1,25 @@ -/******************************************************************************* - * Copyright (c) 2007, 2010 Association for Decentralized Information Management - * in Industry THTH ry. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * VTT Technical Research Centre of Finland - initial API and implementation - *******************************************************************************/ -package org.simantics.diagram.profile.view; - -import org.simantics.browsing.ui.graph.contributor.labeler.LabelerContributor; -import org.simantics.db.ReadGraph; -import org.simantics.db.exception.DatabaseException; - -public class EntryLabeler extends LabelerContributor { - - @Override - public String getLabel(ReadGraph graph, ResourcePair entry) throws DatabaseException { - return graph.adapt(entry.getSecond(), String.class); - } - -} +/******************************************************************************* + * Copyright (c) 2007, 2010 Association for Decentralized Information Management + * in Industry THTH ry. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * VTT Technical Research Centre of Finland - initial API and implementation + *******************************************************************************/ +package org.simantics.diagram.profile.view; + +import org.simantics.browsing.ui.graph.contributor.labeler.LabelerContributor; +import org.simantics.db.ReadGraph; +import org.simantics.db.exception.DatabaseException; + +public class EntryLabeler extends LabelerContributor { + + @Override + public String getLabel(ReadGraph graph, ProfileTuple entry) throws DatabaseException { + return graph.adapt(entry.getEntry(), String.class); + } + +}