]> gerrit.simantics Code Review - simantics/3d.git/blob - org.simantics.plant3d/src/org/simantics/plant3d/geometry/BuiltinMeshProvider.java
Remove dependencies on log4j
[simantics/3d.git] / org.simantics.plant3d / src / org / simantics / plant3d / geometry / BuiltinMeshProvider.java
1 package org.simantics.plant3d.geometry;
2
3 import java.util.Map;
4
5 import org.eclipse.core.runtime.IAdaptable;
6 import org.simantics.db.Resource;
7 import org.simantics.g3d.scenegraph.ParametricMeshProvider;
8
9 public abstract class BuiltinMeshProvider implements ParametricMeshProvider, IAdaptable{
10         
11         private Resource resource;
12         
13         public BuiltinMeshProvider(Resource resource) {
14                 this.resource = resource;
15         }
16         
17         @SuppressWarnings("unchecked")
18         @Override
19         public <T> T getAdapter(Class<T> adapter) {
20                 if (Resource.class == adapter)
21                         return (T)resource;
22                 return null;
23         }
24         
25         @Override
26         public void updateCalculatedProperties(Map<String, Object> returnProps) {
27                 
28         }
29
30 }