MyBatipse 项目教程
mybatipse项目地址:https://gitcode.com/gh_mirrors/myb/mybatipse
1. 项目的目录结构及介绍
MyBatipse 是一个为 MyBatis SQL Mapper 框架提供支持的 Eclipse 插件。以下是项目的目录结构及其介绍:
mybatipse/
├── mybatipse-feature/
│ ├── feature.xml
│ └── ...
├── mybatipse/
│ ├── plugin.xml
│ ├── src/
│ │ ├── main/
│ │ │ ├── java/
│ │ │ └── resources/
│ │ └── test/
│ │ ├── java/
│ │ └── resources/
│ └── ...
├── screen/
│ ├── screenshot1.png
│ └── ...
├── .gitattributes
├── .gitignore
├── LICENSE.md
├── README.md
└── ...
mybatipse-feature/
: 包含插件的特性描述文件feature.xml
。mybatipse/
: 插件的主要代码目录,包含plugin.xml
和源代码目录src/
。screen/
: 包含插件的截图文件。.gitattributes
和.gitignore
: Git 配置文件。LICENSE.md
: 项目的许可证文件。README.md
: 项目的介绍和使用说明。
2. 项目的启动文件介绍
MyBatipse 插件的启动文件主要是 plugin.xml
,它位于 mybatipse/
目录下。这个文件定义了插件的元数据、扩展点和依赖关系。以下是 plugin.xml
的部分内容:
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.4"?>
<plugin>
<extension
point="org.eclipse.ui.editors">
<editor
class="net.harawata.mybatis.editor.MyBatisEditor"
contributorClass="net.harawata.mybatis.editor.MyBatisEditorContributor"
id="net.harawata.mybatis.editor"
name="MyBatis Editor">
</editor>
</extension>
<!-- 其他扩展点 -->
</plugin>
3. 项目的配置文件介绍
MyBatipse 的配置文件主要包括 plugin.xml
和 feature.xml
。
plugin.xml
: 定义了插件的各个组件和扩展点,如编辑器、视图等。feature.xml
: 定义了插件特性的元数据,包括版本、依赖关系等。
以下是 feature.xml
的部分内容:
<?xml version="1.0" encoding="UTF-8"?>
<feature
id="net.harawata.mybatis.feature"
label="MyBatipse Feature"
version="1.2.4"
provider-name="harawata">
<plugin
id="net.harawata.mybatis"
download-size="0"
install-size="0"
version="1.2.4"
unpack="false"/>
<!-- 其他插件和配置 -->
</feature>
以上是 MyBatipse 项目的基本教程,涵盖了项目的目录结构、启动文件和配置文件的介绍。希望这些信息能帮助你更好地理解和使用 MyBatipse 插件。