1 /*******************************************************************************
2 * Copyright (c) 2007, 2010 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 * VTT Technical Research Centre of Finland - initial API and implementation
11 *******************************************************************************/
12 package org.simantics.modeling.ui.modelBrowser.model;
14 import java.util.Collection;
15 import java.util.Collections;
17 import org.eclipse.jface.resource.ImageDescriptor;
18 import org.simantics.db.ReadGraph;
19 import org.simantics.db.Resource;
22 public class Information extends Node {
26 public Information(Resource resource) {
28 this.label = "Pending...";
31 public Information(String label, Resource resource) {
37 public String getLabel(ReadGraph g) {
42 public Collection<?> getChildren(ReadGraph g) {
43 return Collections.emptyList();
47 public ImageDescriptor getImage(ReadGraph g) {
51 @SuppressWarnings("unchecked")
53 public Object getAdapter(Class adapter) {
54 // deny adaptability, prevent showing of properties this way.