Ciao a tutti!

Ho trasformato un mio progetto Java(che è perfettamente funzionante) in un plugin per Eclipse.

Ho esteso il plugin org.eclipse.ui e in particolare ho utilizzato i campi "menu","separator" e "action" di org.eclipse.ui.actionSets per inserire nel menu di Eclipse il pulsante per avviare la mia applicazione.
Il pulsante viene inserito regolarmente nel menu ma quando avvio l'applicazione non funziona e mi esce il seguente messaggio di errore :

"The chosen operation is not current available"

In teoria ci dovrebbero essere problemi con la classe Action che implementa IWorkbenchWindowActionDelegate ma a me sembra tutto a posto :

public class EvaluationOfDesignAlternativesAction implements
IWorkbenchWindowActionDelegate {

private IWorkbenchWindow activeWindow=null;

@Override
public void dispose() {
// TODO Auto-generated method stub

}

@Override
public void init(IWorkbenchWindow window) {
// TODO Auto-generated method stub
this.activeWindow=window;

}

@Override
public void run(IAction action) {
// TODO Auto-generated method stub

FirstScreen firstscreen = new FirstScreen(); //Creazione istanza di FirstScreen
firstscreen.setDefaultCloseOperation(JFrame.EXIT_O N_CLOSE);
firstscreen.setSize(600, 600);
firstscreen.setVisible(true);

.................
Proseguimento codice della mia applicazione
.....................


fourscreen.setImplications(thirdscreen.getSelected implications());
fourscreen.loadchoices();
thirdscreen.setVisible(false);
thirdscreen.setOption(0);
fourscreen.setVisible(true);


}

@Override
public void selectionChanged(IAction action, ISelection selection) {
// TODO Auto-generated method stub

}

}



Qualcuno sa aiutarmi a risolvere il problema?