X-Git-Url: https://gerrit.simantics.org/r/gitweb?p=simantics%2Fplatform.git;a=blobdiff_plain;f=bundles%2Forg.simantics.debug.browser%2Fsrc%2Forg%2Fsimantics%2Fdebug%2Fbrowser%2Finternal%2Frewriters%2FResourceLookupCreator.java;h=4850cf913e03b9a51ca581f383ec3fdc6f264e8b;hp=a496b80f3cb681a246216aaf80cebc7d3e0c6438;hb=refs%2Fchanges%2F38%2F238%2F2;hpb=24e2b34260f219f0d1644ca7a138894980e25b14 diff --git a/bundles/org.simantics.debug.browser/src/org/simantics/debug/browser/internal/rewriters/ResourceLookupCreator.java b/bundles/org.simantics.debug.browser/src/org/simantics/debug/browser/internal/rewriters/ResourceLookupCreator.java index a496b80f3..4850cf913 100644 --- a/bundles/org.simantics.debug.browser/src/org/simantics/debug/browser/internal/rewriters/ResourceLookupCreator.java +++ b/bundles/org.simantics.debug.browser/src/org/simantics/debug/browser/internal/rewriters/ResourceLookupCreator.java @@ -1,42 +1,42 @@ -/******************************************************************************* - * Copyright (c) 2016 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: - * THTH ry - initial API and implementation - *******************************************************************************/ -package org.simantics.debug.browser.internal.rewriters; - -import org.simantics.db.ReadGraph; -import org.simantics.db.exception.DatabaseException; -import org.simantics.debug.browser.content.ResourceBrowserContent; -import org.simantics.debug.browser.content.ResourceBrowserRewriter; -import org.simantics.debug.browser.sections.ResourceLookupSection; - -/** - * @author Jani Simomaa / Semantum Oy - * @since 1.22 - */ -public enum ResourceLookupCreator implements ResourceBrowserRewriter { - INSTANCE; - - private ResourceLookupSection lookupSection; - - ResourceLookupCreator() { - lookupSection = new ResourceLookupSection(); - } - - @Override - public double getPriority() { - return lookupSection.getPriority(); - } - - @Override - public void rewrite(ReadGraph graph, ResourceBrowserContent content) throws DatabaseException { - content.putSection(ResourceLookupSection.class, lookupSection); - } -} +/******************************************************************************* + * Copyright (c) 2016 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: + * THTH ry - initial API and implementation + *******************************************************************************/ +package org.simantics.debug.browser.internal.rewriters; + +import org.simantics.db.ReadGraph; +import org.simantics.db.exception.DatabaseException; +import org.simantics.debug.browser.content.ResourceBrowserContent; +import org.simantics.debug.browser.content.ResourceBrowserRewriter; +import org.simantics.debug.browser.sections.ResourceLookupSection; + +/** + * @author Jani Simomaa / Semantum Oy + * @since 1.22 + */ +public enum ResourceLookupCreator implements ResourceBrowserRewriter { + INSTANCE; + + private ResourceLookupSection lookupSection; + + ResourceLookupCreator() { + lookupSection = new ResourceLookupSection(); + } + + @Override + public double getPriority() { + return lookupSection.getPriority(); + } + + @Override + public void rewrite(ReadGraph graph, ResourceBrowserContent content) throws DatabaseException { + content.putSection(ResourceLookupSection.class, lookupSection); + } +}