X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=bundles%2Forg.simantics.image.ui%2Fsrc%2Forg%2Fsimantics%2Fimage%2Fui%2FmodelBrowser%2FImageNode.java;h=f31ab002b40f09a41da28247b3d614c055987542;hb=3d043320cdee8dda92758f4ea1c324a82c7d9094;hp=9d6ea46f9b9aeee8f0d6ac7f1e5c9a9e3f46f16e;hpb=969bd23cab98a79ca9101af33334000879fb60c5;p=simantics%2Fplatform.git diff --git a/bundles/org.simantics.image.ui/src/org/simantics/image/ui/modelBrowser/ImageNode.java b/bundles/org.simantics.image.ui/src/org/simantics/image/ui/modelBrowser/ImageNode.java index 9d6ea46f9..f31ab002b 100644 --- a/bundles/org.simantics.image.ui/src/org/simantics/image/ui/modelBrowser/ImageNode.java +++ b/bundles/org.simantics.image.ui/src/org/simantics/image/ui/modelBrowser/ImageNode.java @@ -1,46 +1,46 @@ -/******************************************************************************* - * 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.image.ui.modelBrowser; - -import org.simantics.browsing.ui.common.node.AbstractNode; -import org.simantics.browsing.ui.common.node.IDeletable; -import org.simantics.browsing.ui.common.node.IModifiable; -import org.simantics.db.Resource; - -/** - * @author Tuukka Lehtonen - */ -public class ImageNode extends AbstractNode implements IDeletable, IModifiable { - - public static class ImageResource { - Resource r = null; - public ImageResource(Resource r) { - this.r = r; - } - public Resource getResource() { - return r; - } - } - - public ImageNode(Resource resource) { - super(resource); - } - - @SuppressWarnings("rawtypes") - @Override - public Object getAdapter(Class adapter) { - if(adapter.equals(ImageResource.class)) - return new ImageResource(data); - return super.getAdapter(adapter); - } - -} +/******************************************************************************* + * 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.image.ui.modelBrowser; + +import org.simantics.browsing.ui.common.node.AbstractNode; +import org.simantics.browsing.ui.common.node.IDeletable; +import org.simantics.browsing.ui.common.node.IModifiable; +import org.simantics.db.Resource; + +/** + * @author Tuukka Lehtonen + */ +public class ImageNode extends AbstractNode implements IDeletable, IModifiable { + + public static class ImageResource { + Resource r = null; + public ImageResource(Resource r) { + this.r = r; + } + public Resource getResource() { + return r; + } + } + + public ImageNode(Resource resource) { + super(resource); + } + + @SuppressWarnings("rawtypes") + @Override + public Object getAdapter(Class adapter) { + if(adapter.equals(ImageResource.class)) + return new ImageResource(data); + return super.getAdapter(adapter); + } + +}