Olá pessoal, depois de muito pesquisar na net, continuo com duvidas. Pois preciso, colocar para rodar o plugin que desenvolvi. Ou seja, adiciona-lo ao eclipse. Jaz tentei algumas coisas sem sucesso. Se alguem puder dar uma ajudinha de como fazer isto fico grato.
Empacotar pluign eclipse!
14 Respostas
O quê vc precisa saber exatamente?
Fica mais fácil se vc for objetivo (sorry)
Entaum, basicamente eu preciso empacotar meu plugin e depois instala -lo .
Então… acho que estou com problema no arquivo buid.proprietes, que pelo o que entendi é o arquivo de configuração do plugin. Eu até consigo exportar e criar um .JAR. Mas quando coloco esse arquivo.jar(plugin) dentro da pasta de plugins do eclipse, reinicio o eclipse e tento abrir minha wizard da esse erro: “The chosen operatiom not currenty availabre”.
cara, já tentou numa cópia limpa do eclipse? (outro workspace SEM plugins adicionais/alieníginas)
Após de ter adicionado esse plugin , tentei rodar ele em um outra workspace, e continua da mesma forma. A unica coisa que aparece é o ‘icone’ do plugin . E quando pressiono no icone para abrir a wizard aparece essa mensagem “The chosen operatiom not currenty”.
Queira deixar uma observação que achei interessante, após ter criado o arquivo buid.proprietes não consigo mais testar minha aplicação. No entanto, se eu deixar minha aplicação sem esse arquivo não consigo exportar o projeto para se tornar um .JAR(plugin).
E agora o que fazer? estou em uma sinuca de bico!!!hehehe!!! :?:
só vendo o código e pondo pra rodar bro, adiciona o zip com o código aqui …
Talvez ajude:
http://www.guj.com.br/java.tutorial.artigo.41.1.guj
Curiosidade, do que se trata o plugin? 
Boa sorte! :thumbup:
Ola amigos, tomara que vc possa me ajudar. Mas naum to consiguindo anexar o arquivo por que é mto grande, tem 4mb. Será que naum posso mandar pelo e-mail? Vlw pela indicação do artigo, e meu plugin se trata de um plugin que cria uma estrutura de pacotes e classes e arquivos , ou seja, conforme o que foi digitado nas wizards ele cria automaticamente esses pacotes e classes, e tambem faz um teste de conexão com vários bancos de dados, assim, desta forma, gerando um arquivo XML para a conexão. :?:
Então parceiros, continuo na mesma, tentei seguir o artigo, esta quase tudo igual, quase… exceto: o plugim xml. No artigo me informa que precisa para cada wizard nova que eu criar preciso declarar no arquivo plugin xml para poder testar minha aplicação. No meu plugin rodou tudo e as wizard’s page1,page2,page2,page4, não estão descritas no arquivo xml. Diante disso, declarei as pages e o teste que eu querira fazer não funcionou. E agora, não consigo gerar o JAR para empacotar o plugin e nem testar o plugin… :oops:
posta um link apontando pro seu código fonte (zip).
Ola… to na luta, eu mandei no teu e-mail , aquele ki tah cadastrado no forum, ou se quiser meso pega no msn : "[email removido]", pode ser? :?:
agodinhost, to tentando i tentando i naum consegui mais sair do lugar, entaum tah o link que vc pediu apontando para o plugin.
http://www.metalab.com.br/arquivos/plugin.rar. 
ola amigos, continuo tentando mas sem sucesso. To ficando meio loko de tanto pesquisar uma forma pra isso rodar perfeitamente. No entanto, não sei como isso aconteceu , (acho ki foi uma luz divina) gerou um arquivo de log do ‘além’ que esta ai embaixo. As classes ja estão sem nenhum warning, e os imports me parecem certo, pq não geram nenhum erro, fiz conforme o artigo aqui do GUJ, só que não consigo executar meu plugin depois que fiz o export.
# 18/12/08 10h50min44s BRST
# Eclipse Java Compiler 0.883_R34x, 3.4.1 release, Copyright IBM Corp 2000, 2008. All rights reserved.
----------
1. WARNING in C:\FDDK\works-adri\FreeDecision\src\freedecision\FreeDecisionWizardPage2.java (at line 28)
private static String extrator;
^^^^^^^^
The field FreeDecisionWizardPage2.extrator is never read locally
----------
2. WARNING in C:\FDDK\works-adri\FreeDecision\src\freedecision\FreeDecisionWizardPage2.java (at line 209)
this.cliente = cliente;
^^^^^^^
The static field FreeDecisionWizardPage2.cliente should be accessed in a static way
----------
3. WARNING in C:\FDDK\works-adri\FreeDecision\src\freedecision\FreeDecisionWizardPage2.java (at line 215)
this.fabricante = fabricante;
^^^^^^^^^^
The static field FreeDecisionWizardPage2.fabricante should be accessed in a static way
----------
4. WARNING in C:\FDDK\works-adri\FreeDecision\src\freedecision\FreeDecisionWizardPage2.java (at line 221)
this.produto = produto;
^^^^^^^
The static field FreeDecisionWizardPage2.produto should be accessed in a static way
----------
5. WARNING in C:\FDDK\works-adri\FreeDecision\src\freedecision\FreeDecisionWizardPage2.java (at line 227)
this.areanegocio = areanegocio;
^^^^^^^^^^^
The static field FreeDecisionWizardPage2.areanegocio should be accessed in a static way
----------
----------
6. WARNING in C:\FDDK\works-adri\FreeDecision\src\freedecision\FreeDecisionWizardPage3.java (at line 89)
Label label1 = new Label(controls, SWT.NULL);
^^^^^^
The local variable label1 is never read
----------
7. WARNING in C:\FDDK\works-adri\FreeDecision\src\freedecision\FreeDecisionWizardPage3.java (at line 227)
Label label12 = new Label(controls, SWT.NULL);
^^^^^^^
The local variable label12 is never read
----------
8. WARNING in C:\FDDK\works-adri\FreeDecision\src\freedecision\FreeDecisionWizardPage3.java (at line 299)
int valor= 0;
^^^^^
The local variable valor is never read
----------
9. WARNING in C:\FDDK\works-adri\FreeDecision\src\freedecision\FreeDecisionWizardPage3.java (at line 405)
ModelLista teste = array.get(itemSelect);
^^^^^
The local variable teste is never read
----------
10. WARNING in C:\FDDK\works-adri\FreeDecision\src\freedecision\FreeDecisionWizardPage3.java (at line 618)
this.banco = banco;
^^^^^
The static field FreeDecisionWizardPage3.banco should be accessed in a static way
----------
----------
11. WARNING in C:\FDDK\works-adri\FreeDecision\src\freedecision\FreeDecisionWizardPage4.java (at line 261)
int valorCache= 0;
^^^^^^^^^^
The local variable valorCache is never read
----------
----------
12. ERROR in C:\FDDK\works-adri\FreeDecision\src\freedecision\FreedecisionWizardPage.java (at line 10)
import org.eclipse.ui.dialogs.ContainerSelectionDialog;
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
The import org.eclipse.ui.dialogs.ContainerSelectionDialog cannot be resolved
----------
13. WARNING in C:\FDDK\works-adri\FreeDecision\src\freedecision\FreedecisionWizardPage.java (at line 91)
if (obj instanceof IResource) {
^^^^^^^^^
Access restriction: The type IResource is not accessible due to restriction on classpath entry C:\Program Files\eclipse 3.4\plugins\org.eclipse.core.resources_3.4.0.v20080604-1400.jar
----------
14. WARNING in C:\FDDK\works-adri\FreeDecision\src\freedecision\FreedecisionWizardPage.java (at line 92)
IContainer container;
^^^^^^^^^^
Access restriction: The type IContainer is not accessible due to restriction on classpath entry C:\Program Files\eclipse 3.4\plugins\org.eclipse.core.resources_3.4.0.v20080604-1400.jar
----------
15. WARNING in C:\FDDK\works-adri\FreeDecision\src\freedecision\FreedecisionWizardPage.java (at line 93)
if (obj instanceof IContainer)
^^^^^^^^^^
Access restriction: The type IContainer is not accessible due to restriction on classpath entry C:\Program Files\eclipse 3.4\plugins\org.eclipse.core.resources_3.4.0.v20080604-1400.jar
----------
16. WARNING in C:\FDDK\works-adri\FreeDecision\src\freedecision\FreedecisionWizardPage.java (at line 94)
container = (IContainer)obj;
^^^^^^^^^^
Access restriction: The type IContainer is not accessible due to restriction on classpath entry C:\Program Files\eclipse 3.4\plugins\org.eclipse.core.resources_3.4.0.v20080604-1400.jar
----------
17. WARNING in C:\FDDK\works-adri\FreeDecision\src\freedecision\FreedecisionWizardPage.java (at line 96)
container = ((IResource)obj).getParent();
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Access restriction: The method getParent() from the type IResource is not accessible due to restriction on classpath entry C:\Program Files\eclipse 3.4\plugins\org.eclipse.core.resources_3.4.0.v20080604-1400.jar
----------
18. WARNING in C:\FDDK\works-adri\FreeDecision\src\freedecision\FreedecisionWizardPage.java (at line 96)
container = ((IResource)obj).getParent();
^^^^^^^^^
Access restriction: The type IResource is not accessible due to restriction on classpath entry C:\Program Files\eclipse 3.4\plugins\org.eclipse.core.resources_3.4.0.v20080604-1400.jar
----------
19. WARNING in C:\FDDK\works-adri\FreeDecision\src\freedecision\FreedecisionWizardPage.java (at line 97)
containerText.setText(container.getFullPath().toString());
^^^^^^^^^^^^^^^^^^^^^^^
Access restriction: The method getFullPath() from the type IResource is not accessible due to restriction on classpath entry C:\Program Files\eclipse 3.4\plugins\org.eclipse.core.resources_3.4.0.v20080604-1400.jar
----------
20. ERROR in C:\FDDK\works-adri\FreeDecision\src\freedecision\FreedecisionWizardPage.java (at line 109)
ContainerSelectionDialog dialog =
^^^^^^^^^^^^^^^^^^^^^^^^
ContainerSelectionDialog cannot be resolved to a type
----------
21. ERROR in C:\FDDK\works-adri\FreeDecision\src\freedecision\FreedecisionWizardPage.java (at line 110)
new ContainerSelectionDialog(
^^^^^^^^^^^^^^^^^^^^^^^^
ContainerSelectionDialog cannot be resolved to a type
----------
22. WARNING in C:\FDDK\works-adri\FreeDecision\src\freedecision\FreedecisionWizardPage.java (at line 112)
ResourcesPlugin.getWorkspace().getRoot(),
^^^^^^^^^^^^^^^
Access restriction: The type ResourcesPlugin is not accessible due to restriction on classpath entry C:\Program Files\eclipse 3.4\plugins\org.eclipse.core.resources_3.4.0.v20080604-1400.jar
----------
23. WARNING in C:\FDDK\works-adri\FreeDecision\src\freedecision\FreedecisionWizardPage.java (at line 112)
ResourcesPlugin.getWorkspace().getRoot(),
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Access restriction: The method getWorkspace() from the type ResourcesPlugin is not accessible due to restriction on classpath entry C:\Program Files\eclipse 3.4\plugins\org.eclipse.core.resources_3.4.0.v20080604-1400.jar
----------
24. WARNING in C:\FDDK\works-adri\FreeDecision\src\freedecision\FreedecisionWizardPage.java (at line 112)
ResourcesPlugin.getWorkspace().getRoot(),
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Access restriction: The method getRoot() from the type IWorkspace is not accessible due to restriction on classpath entry C:\Program Files\eclipse 3.4\plugins\org.eclipse.core.resources_3.4.0.v20080604-1400.jar
----------
25. ERROR in C:\FDDK\works-adri\FreeDecision\src\freedecision\FreedecisionWizardPage.java (at line 115)
if (dialog.open() == ContainerSelectionDialog.OK) {
^^^^^^^^^^^^^^^^^^^^^^^^
ContainerSelectionDialog cannot be resolved
----------
25 problems (4 errors, 21 warnings)
Ola amigos… mais um ano que começa… antes de tudo feliz ano novo
. No entanto, os problemas são os mesmos quando exporto o plugin. Faço conforme esta citado neste artigo http://www.guj.com.br/java.tutorial.artigo.41.1.guj. Eu sigo corretamente os passos descritos, exporto o plugin,então, cria o .JAR , coloco dentro da pasta plugin do Eclipse, reiniciou o eclipse, e quando vou testar o plugin no ambiente normal do eclipse, então, não inicia o plugin . Ja procurei muita coisa, mas não consigo axar nenhuma solução. Espero, que alguém possa, me ajudar, já que pelo o que eu notei, não existem muitas pessoas que trabalham no desenvolvimento de plugins aqui no brasil. Segue abaixo o link do plugin.http://www.metalab.com.br/arquivos/plugin.rar