Castor Plug-in for Eclipse

来源:互联网 发布:大数据挖掘技术 编辑:程序博客网 时间:2024/05/16 12:24

Usage
The following steps illustrate basic use of the Castor Plug-in for Eclipse:

Create a new Java project for your Castor-generated files. You can use an existing project, if you already have one. Make sure the project has at least one Java Source folder (i.e., it does not use the project root as both source and output folder for your Java files).

Create a new Java Source folder in your project; e.g., gen. This is the folder into which Castor Source Generator will place the generated Java files. This separation is not necessary, but makes it easier to distinguish generated files from those created manually.

Right-click the project and from the context menu select Castor -> Add Castor to build path... This will allow you to select Castor libraries to add to your project's Java build path. Alternatively, you can choose to import the libraries into your project, if you need to package and redistribute them with your code.

In your Project Navigator view, select the XML Schema (*.xsd) file from which you want Castor to generate Java sources. Note that the XML Schema file need not be in the generator's output project; it may come from an entirely different project. From the main menu, select Run -> External Tools -> Run As -> Castor Source Generator. This will bring up a launch dialog populated with default values.

Edit the values in the Generator tab to suit your needs. When ready, click Run to launch the Castor Source Generator. Any output messages will be printed into your Console view. When finished, the output folder will contain the generated files.

To edit your newly created launch configuration, select Run -> External Tools -> External Tools... in the main menu. To display a shortcut to this launch configuration in favorites menu, check the box in the Common tab. You may share this launch configuration with others (e.g., through a version control system) by marking it as Shared in the same tab; this will create a *.launch file (whose file name matches the launch configuration name) in the folder you specify. 

原创粉丝点击
热门问题 老师的惩罚 人脸识别 我在镇武司摸鱼那些年 重生之率土为王 我在大康的咸鱼生活 盘龙之生命进化 天生仙种 凡人之先天五行 春回大明朝 姑娘不必设防,我是瞎子 头发很油 又少怎么办 头发两天就油了怎么办 头发被剪的很丑怎么办 美发师年龄大了怎么办 青春期头发掉的厉害怎么办 剪了短发头发翘怎么办 4个月婴儿咳嗽怎么办 2个月婴儿咳嗽怎么办 5个月婴儿咳嗽怎么办 烫的内扣睡觉怎么办 站了一天腿疼怎么办 头发被剪得很丑怎么办 淹脖子破皮了怎么办 孩子胖脖子淹了怎么办 宝宝屁股破皮了怎么办 新生儿屁屁发红及烂怎么办 头发烫完太蓬松怎么办 头发烫的太卷了怎么办 烫了卷发很毛躁怎么办 烫发后头发干枯毛躁怎么办 烫完头发掉发怎么办 烫发掉发严重该怎么办 烫头发后掉头发怎么办 烫过头发后毛躁怎么办 烫了头发像大妈怎么办 头发烫了之后很毛躁怎么办 鳄龟爪子烂了怎么办 乌龟壳边缘烂了怎么办 乌龟拉绿色的水怎么办 小乌龟龟壳变软怎么办 鳄龟不待在水里怎么办 脖子整天黏黏的怎么办 有脊椎侧弯跳舞怎么办 落枕10天还不好怎么办 落枕十几天没好怎么办 肩一边高一边低怎么办 35岁无稳定工作怎么办 机械手表走的快怎么办 机械表发条紧了怎么办 两只乌龟互相咬怎么办? 乌龟鼻子摔烂了怎么办