📄 createmoduleaction.java
字号:
/*
* $Header: /home/cvs/WEBPUMP2.0/WebPumpIDE_Src/WebPumpIDE/src/com/webpump/ui/addmodule/CreateModuleAction.java,v 1.1.1.1 2004/07/01 09:07:39 wang_j Exp $
* $Revision: 1.1.1.1 $
* $Date: 2004/07/01 09:07:39 $
*
* ====================================================================
*
* The NanJing HopeRun(IT-FOREST) Software License, Version 2.0.0
*
* Copyright 2003-2004 by NanJing HopeRun(IT-FOREST) Information System Co., Ltd, CHINA and
* IT Forest Corporation
* All rights reserved.
*
* This software is the confidential and proprietary information of
* HopeRun(IT-FOREST) Information System Co., Ltd, CHINA and IT Forest Corporation.
* You shall not disclose such Confidential Information and shall use it only in
* accordance with the terms of the license agreement you entered into with
* HopeRun(IT-FOREST) Information System Co., Ltd, CHINA and IT Forest Corporation.
*/
package com.webpump.ui.addmodule;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.InputStream;
import java.net.URL;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.ResourceBundle;
import org.eclipse.core.resources.IResource;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.IPath;
import org.eclipse.core.runtime.Path;
import org.eclipse.core.runtime.Platform;
import org.eclipse.jdt.core.IClasspathEntry;
import org.eclipse.jdt.core.IJavaProject;
import org.eclipse.jdt.core.JavaCore;
import org.eclipse.jface.wizard.WizardDialog;
import com.webpump.ui.perspective.WebpumpIDEPlugin;
import com.webpump.ui.project.*;
import com.webpump.ui.util.CreateFileByXSL;
import com.webpump.ui.wizard.FileUtil;
import com.webpump.ui.wizard.ModuleDialog;
import com.webpump.ui.wizard.WebpumpProject;
public class CreateModuleAction extends WebpumpProjectAbstractActionDelegate {
public void doActionOn(WebpumpProject prj) throws Exception {
String[] strModuleArray = {"","","",""};
ModuleDialog objWizard = new ModuleDialog();
//取己存在的模块信息
IPath projectPath = prj.getProject().getLocation();
IPath modulePath = projectPath.append("/module/");
File moduleFile = new File(modulePath.toString());
File[] files = moduleFile.listFiles();
String[] strExistModuleArray = null;
if (files!=null)
{
strExistModuleArray = new String[(files.length)];
for (int i=0;i<files.length;i++)
strExistModuleArray[i] = files[i].getName();
}
//设置视图的模块信息
objWizard.setParam(strModuleArray);
//设置模块列柄楷
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -