Dia bom. Vamos começar. Durante meu treinamento nesta tecnologia, encontrei o problema de haver apenas uma fonte normal de informação sobre este assunto em toda a Internet ( Lars Vogel ). E nele tudo Ă© escrito por profissionais para profissionais. Superficialmente, sem detalhes. TambĂ©m hĂĄ detalhes, mas mediante pagamento. Desejo adicionar mais detalhes ao processo bastante simples de criar meu primeiro aplicativo RCP, portanto, entrarei em explicaçÔes detalhadas para cada etapa. Este artigo Ă© adequado para iniciantes que nĂŁo tĂȘm ideia sobre RCP e Eclipse e que desejam dar os primeiros passos no domĂnio dessa tecnologia, mas que sabem o que sĂŁo Java, JDK, JRE.
Plano:
Baixando e instalando o Eclipse
Criação de um projeto de plugin rcp
Estrutura de arquivo do projeto RCP
ConclusĂŁo
1. Baixe e instale o Eclipse
Eclipse JDK, , . Java SE Oracle JDK 8, . 15 JDK . Eclipse 2021-03 . «Eclipse IDE for RCP and RAP Developers».
, Eclipse , .
Eclipse:
: Open Perspective -> Java. Eclipse Plug-in Perspective, ( Eclipse part) , «Java».
Window -> Show View -> Project Explorer â () .
2. rcp-plugin
plugin wizard , RCP .
File -> New -> Other -> Plug-in Development -> Plug-in Project.
.
:
Project name â .
Use default location - , , .
checkbox â workspace. Workspace â , Eclipse , . Eclipse . , « ».
checkbox â ( Location).
Create a Java project - Java project.
checkbox â Java , .. 3 : jre (JRE System Library), (Plug-in Dependencies) . , .
checkbox - Java . , , , .
Source folder â . - src, ,
Output folder â . â bin, .
Target Platform â â Eclipse OSGi â ,
OSGi (Open Services Gateway Initiative) Java-, OSGi Alliance. , . , . RCP , .
Eclipse - OSGi. , Eclipse. RCP .
Working sets â . , working sets .
«Next»
.
:
Properties â plugin.
ID - . , , .
Version â plugin, 1.0.0.qualifier. qualifier â SNAPSHOT maven. . XYZ.qualifier -> XYZ.YYYYmmddhhmm
Name â , . wizard ID ( ) Name ( ) . .
Vendor â , , .
Execution Environment â java .
Generate an Activator...: checkbox , Java-, . , - .
This plug-in will make contributions to the UI â « ». UI. Rich Client Application:
yes â , RCP . : Application.e4xmi, *.product css 3 . build.properties ( bin.includes). , - â build.properties, - .
no â , RCP .
Enable API analysis â API . :
, API 1.
, API .
2 1 API-Baseline, . API 1 2 , . 2 - API.
, .
Rich Client Application:
yes - wizard 3 4 .
no â wizard (contributions) 3 4 . Contribution â , . , , .
â RCP , RCP â Eclipse 4 RCP application.
«Yes» «Next»
templates . Eclipse 4 RCP application.
«Next»
.
:
Application window title â .
Create sample content â , , .
Java package name â , . Naming Conventions package name, , , . .
Add life cycle class â , ( , , ..). lifeCycleURI.
«Finish»
Eclipse perspective Plug-in development. «No», .
RCP . , , *.product, , launch an Eclipse application. , :
3. rcp
, .
Test â plugin.
JRE System Library â JRE, eclipse Java . .jar jdk, Execution Environment .
Plug-in Dependencies â .jar . MANIFEST.MF Dependencies. , , .
src â . , (com.firstarticle.test) src , .
css â (css).
icons â (icons).
META-INF -> MANIFEST.MF. -> Open with -> Plug-in manifest editor. . (MANIFEST.MF, build.properties, plugin.xml).
Overview - :
, : «General Information» «Execution Environments».
, , «Plug-in Content», «Extensions», «Testing» «Exporting». , .
Plug-in Dependencies â . , .
Runtime â , , , .
Extensions â , . , , lifeCycleURI â , . .
Plug-in Extensions points â , .
Build â , , . , , , build.properties. build.properties .
MANIFEST.MF, build.properties, plugin.xml â . , , ., .
test.product â -> Open with -> Product Configuration editor - â . , , , (.. MANIFEST.MF â , test.product - ), , RCP.
Overview â «General Information», «Product Definition», , «Testing», «Exporting», .
Contents - .
Configuration â , , .
Launching â .
Splash - - .
Branding â , , « » .
Customization â css- .
Licensing â URL- .
Updates â
Source â test.product.
Application.e4xmi - , (part, perspective, window), (handler, command, addon). , .
4.
, , . - , , . , . .