1 /*******************************************************************************
2 * Copyright (c) 2016 Association for Decentralized Information Management
4 * All rights reserved. This program and the accompanying materials
5 * are made available under the terms of the Eclipse Public License v1.0
6 * which accompanies this distribution, and is available at
7 * http://www.eclipse.org/legal/epl-v10.html
10 * THTH ry - initial API and implementation
11 *******************************************************************************/
12 package org.simantics.debug.browser.internal.rewriters;
14 import org.simantics.db.ReadGraph;
15 import org.simantics.db.exception.DatabaseException;
16 import org.simantics.debug.browser.content.ResourceBrowserContent;
17 import org.simantics.debug.browser.content.ResourceBrowserRewriter;
18 import org.simantics.debug.browser.sections.ResourceLookupSection;
21 * @author Jani Simomaa / Semantum Oy
24 public enum ResourceLookupCreator implements ResourceBrowserRewriter {
27 private ResourceLookupSection lookupSection;
29 ResourceLookupCreator() {
30 lookupSection = new ResourceLookupSection();
34 public double getPriority() {
35 return lookupSection.getPriority();
39 public void rewrite(ReadGraph graph, ResourceBrowserContent content) throws DatabaseException {
40 content.putSection(ResourceLookupSection.class, lookupSection);