A apresentação está carregando. Por favor, espere

A apresentação está carregando. Por favor, espere

File Transfer API E.C.F Eclipse. Plug-In Gerenciamento do Ciclo de vida dos Plugins. - Carregar, Executar e Localizar Quando o eclipse e iniciado ele.

Apresentações semelhantes


Apresentação em tema: "File Transfer API E.C.F Eclipse. Plug-In Gerenciamento do Ciclo de vida dos Plugins. - Carregar, Executar e Localizar Quando o eclipse e iniciado ele."— Transcrição da apresentação:

1 File Transfer API E.C.F Eclipse

2 Plug-In Gerenciamento do Ciclo de vida dos Plugins. - Carregar, Executar e Localizar Quando o eclipse e iniciado ele sabe quais plugins estão instalados, pois todos os plugins estão instalados no que ele chama de Plugin registry.

3 Plataforma Eclipse O eclipse e organizado em níveis com plugins de baixo nível fornecendo ponto de extensão para os de alto nível. Plugins básicos são : - Standard Widget Toolkit (SWT) – API Gráfica (botões, Imagens, Labels) - JFace – Extensão alto nível do SWT, que oferece mecanismos para construção de diálogos, wizards, Actions, ele também implementa arquitetura MVC.

4 Estrutura de um Plug-In A partir da v.3.X do eclipse, passaram a ser comandado por OSGi (Open Services Gateway initiative. Assim melhorando a portabilidade da ferramenta.

5 Estrutura Antes da versão 3.0 os plugins eram armazenado em um diretório próprio e todas as informações do Plugins estavam contidas no Plugins.xml, após a migração para o modelo OSGI, os plugins passaram a ser empacotados em arquivos JAR. Alem disso, as informações básicas sobre suas características foram movidas para o manifesta (META- INF / MANIFEST.MF), construídos apartar da versão 3.x contem dois descritores : Plugin.xml e Manifest.mf

6 Link para Exemplo Plugin http://javamagazine.com.br/downloads/jm3 7/jm-eclipseplugins.ziphttp://javamagazine.com.br/downloads/jm3 7/jm-eclipseplugins.zip

7 Exemplo completo File->New->project Escolha:Plug-In development

8 Nesta tela informarmos os dados Básicos do Plugins, como Plugin-ID, Plugin-name e a Classe de gerenciamento(class Name)

9 Nesta tela lista os diversos Template de plugin disponíveis PDE. PDE significa ( Plugin Deve Lopment Environment) O PDE gera automaticamente O esqueleto de todas classes Envolvidas e configura adequada Mente os pontos de extensão. Usaremos o plugin with popup menu

10

11 Analisando o Plugin.xml <extension point="org.eclipse.ui.popupMenus"> <objectContribution objectClass="org.eclipse.core.resources.IResource" nameFilter="*" id="br.com.jm.plugin.contribution1"> <menu label="Leonardo Lima" path="additions" id="br.com.jm.plugin.menu1"> <separator name="group1"> <action label="Substituir caracteres especiais" class="br.com.jm.plugin.popup.actions.SubstituirAction" menubarPath="br.com.jm.plugin.menu1/group1" enablesFor="1" id="br.com.jm.plugin.newAction">

12 OverView Docs org.eclipse.ecf.filetransfer Interfaces IFileTransfer IFileTransferInfo IFileTransferListener IFileTransferPausable IFileTransferRateControl IIncomingFileTransfer IIncomingFileTransferRequestListener IOutgoingFileTransfer IOutgoingFileTransferContainerAdapter IRetrieveFileTransferContainerAdapter IFileTransfer IFileTransferInfo IFileTransferListener IFileTransferPausable IFileTransferRateControl IIncomingFileTransfer IIncomingFileTransferRequestListener IOutgoingFileTransfer IOutgoingFileTransferContainerAdapter IRetrieveFileTransferContainerAdapter Classes FileTransferInfo FileTransferInfo Exceptions IncomingFileTransferException OutgoingFileTransferException UserCancelledException IncomingFileTransferException OutgoingFileTransferException UserCancelledException

13 Interface IFileTransfer Method Summary void cancelcancel() Cancel this file transfer. java.lang.Exception getExceptiongetException() Get any exception associated with this file transfer. double getPercentCompletegetPercentComplete() Get the percent complete for this file transfer. boolean isDoneisDone() Return true if this file transfer is done, false if not yet completed.

14 Interface IFileTransferInfo Method Summary java.lang.String getDescriptiongetDescription() Get any description associated with this file transfer info. java.io.File getFilegetFile() Get the file for the proposed file transfer long getFileSizegetFileSize() Get the file size (in bytes). java.lang.String getMimeTypegetMimeType() Get the mime type string for this file transfer info. java.util.Map getPropertiesgetProperties() Get any properties associated with this file transfer.

15 Interface IFileTransferListener Method Summary void handleTransferEventhandleTransferEvent(IFileTransferEvent event) Handle file transfer eventsIFileTransferEvent Listener for handling file transfer events. Instances implementing this interface or sub-interfaces will have their handleTransferEvent called asynchronously when a given event is received. Implementers must be prepared to have this method called asynchronously by an arbitrary thread.

16 http://www.eclipse.org/ecf/NewAndNoteworthy_0.4.0.html

17 Link para projetos ECF http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.ecf/plugins/?root=Technology_Pro ject

18 Link do Blog do ECF http://eclipseecf.blogspot.com/

19 Skype Provider http://wiki.eclipse.org/index.php/Skype_Pr oviderhttp://wiki.eclipse.org/index.php/Skype_Pr ovider

20 Skype Provider CALL

21 Skype Provider Send Msg


Carregar ppt "File Transfer API E.C.F Eclipse. Plug-In Gerenciamento do Ciclo de vida dos Plugins. - Carregar, Executar e Localizar Quando o eclipse e iniciado ele."

Apresentações semelhantes


Anúncios Google