public void creatComponentProj(String directory) {
   ComponentProjectManager manager = ComponentProjectManager.getInstance();
   Shell shell = PlatformUI.getWorkbench().getDisplay().getActiveShell();
   IProject project = manager.createNewProject(directory, PluginConstant.COMPONENT_PROJECT, shell);
   manager.configProject(project, shell);
   ComponentDesigenerPlugin.getDefault().setUsed(true);
 }
 public void creatComponentProj() {
   ComponentProjectManager manager = ComponentProjectManager.getInstance();
   Shell shell = PlatformUI.getWorkbench().getDisplay().getActiveShell();
   manager.createNewProject(
       this.getPreferenceStore().getString(PluginConstant.PROJECT_URL),
       PluginConstant.COMPONENT_PROJECT,
       shell);
   ComponentDesigenerPlugin.getDefault().setUsed(true);
 }