00001 package com.generalrobotix.ui.view; 00002 00003 import org.eclipse.swt.widgets.Composite; 00004 00005 import com.generalrobotix.ui.GrxBaseView; 00006 import com.generalrobotix.ui.GrxBaseViewPart; 00007 import com.generalrobotix.ui.GrxPluginManager; 00008 import com.generalrobotix.ui.grxui.Activator; 00009 00010 public class Grx3DViewPart extends GrxBaseViewPart { 00011 00012 public void createPartControl(Composite parent) { 00013 // 3DViewは、一つしか開かない。。// 00014 Activator act = Activator.getDefault(); 00015 if(act != null){ 00016 GrxPluginManager manager = act.manager_; 00017 if(manager != null){ 00018 GrxBaseView view = manager.getView(Grx3DView.class, false); 00019 if(view == null) 00020 createView( Grx3DView.class, "3DView", this, parent ); 00021 } 00022 } 00023 } 00024 }