X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=org.simantics.proconf.g3d.shapeeditor%2Fsrc%2Forg%2Fsimantics%2Fproconf%2Fg3d%2Fshapeeditor%2Fhandlers%2FResourceEditorAdapter3.java;fp=org.simantics.proconf.g3d.shapeeditor%2Fsrc%2Forg%2Fsimantics%2Fproconf%2Fg3d%2Fshapeeditor%2Fhandlers%2FResourceEditorAdapter3.java;h=0000000000000000000000000000000000000000;hb=8b42fcb0b43efb8caaca85dd722ae608b9a3a730;hp=62713e2ab9e530fd9d0f95324717913410509fde;hpb=55702d303318f9d3dc0b5e20010cfc2c4ae0b88e;p=simantics%2F3d.git diff --git a/org.simantics.proconf.g3d.shapeeditor/src/org/simantics/proconf/g3d/shapeeditor/handlers/ResourceEditorAdapter3.java b/org.simantics.proconf.g3d.shapeeditor/src/org/simantics/proconf/g3d/shapeeditor/handlers/ResourceEditorAdapter3.java deleted file mode 100644 index 62713e2a..00000000 --- a/org.simantics.proconf.g3d.shapeeditor/src/org/simantics/proconf/g3d/shapeeditor/handlers/ResourceEditorAdapter3.java +++ /dev/null @@ -1,45 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2007- VTT Technical Research Centre of Finland. - * 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.proconf.g3d.shapeeditor.handlers; - -import org.simantics.db.Graph; -import org.simantics.db.Resource; -import org.simantics.proconf.g3d.shapeeditor.Activator; -import org.simantics.proconf.g3d.shapeeditor.ShapeEditorResources; -import org.simantics.proconf.ui.workbench.ResourceEditorInput; -import org.simantics.proconf.ui.workbench.editor.SimpleEditorAdapter; -import org.simantics.utils.ui.BundleUtils; -import org.simantics.utils.ui.workbench.WorkbenchUtils; - - -public class ResourceEditorAdapter3 extends SimpleEditorAdapter { - - public ResourceEditorAdapter3() { - super("Parameterization Editor", - BundleUtils.getImageDescriptorFromPlugin(Activator.PLUGIN_ID, "icons/unlink.png"), - null,null,null); - } - - @Override - public boolean canHandle(Graph g, Resource r) { - if(ShapeEditorResources.csgResource == null) return false; - if(ShapeEditorResources.csgResource.CSGModel == null) return false; - return g.isInstanceOf(r, ShapeEditorResources.csgResource.CSGModel); - } - - - @Override - public void openEditor(Resource r) throws Exception { - WorkbenchUtils.openEditor("org.simantics.proconf.shapeeditor.editor3", new ResourceEditorInput("org.simantics.proconf.shapeeditor.editor3",r)); - - } - -}