2016-12-02 7 views
1

私はコードネームで私の最初のアプリをビルドしています。
しかし、Eclipseと新しいGUIビルダーを使用するときにビルド中にバグがあると思います。 私はeclipse neonで、今週はcn1プラグインをインストールしました。コードネームone ActionListenerビルドプロセスが動作しない

1)動作しないActionListenerにの原因となる主なものは、oncreateAccountActionEvent -methodがそこに呼び出される必要がありますが、それはしていない

public void actionPerformed(com.codename1.ui.events.ActionEvent ev) { 
      com.codename1.ui.Component sourceComponent = ev.getComponent(); 
      if(sourceComponent.getParent().getLeadParent() != null) { 
       sourceComponent = sourceComponent.getParent().getLeadParent(); 
      } 

      if(sourceComponent == gui_createAccount) { 
      --------------missing------------------ 
      } 
} 

EventCallbackClassの内側に不足している行があるということです生成されたコード。 >「イベント」ビュー - 私は、ビルド

2)「プロパティ・シート」の中に「アクション・イベント」をクリックしたときに、私はこのエラーを取得中にエラーが発生しますので、それが原因で発生しprobaly

:回避策 -

'Building workspace' has encountered a problem. Errors occured during the build. 

Errors occurred during the build. 
Errors running builder 'Integrated External Tool Builder' on project 'MA'. 
Ant build C:\Users\sieben\workspace\MA\build.xml already in progress. Concurrent Ant builds are possible if you specify to build in a separate JRE. 
Ant build C:\Users\sieben\workspace\MA\build.xml already in progress. Concurrent Ant builds are possible if you specify to build in a separate JRE. 

コンソールウィンドウは、しかし、私に何かアドバイスのため

[echo] Compile is forcing compliance to the supported API's/features for maximum device compatibility. This allows smaller 
    [echo]   code size and wider device support 
    [javac] C:\Users\sieben\workspace\MA\build.xml:147: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds 
    [javac] C:\Users\sieben\workspace\MA\build.xml:171: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds 
Buildfile: C:\Users\sieben\workspace\MA\build.xml 

jar: 
    [copy] Copying 1 file to C:\Users\sieben\workspace\MA\build\tmp 
    [javac] Compiling 4 source files to C:\Users\sieben\workspace\MA\build\tmp 
    [jar] Building jar: C:\Users\sieben\workspace\MA\dist\MA.jar 
BUILD SUCCESSFUL 
Total time: 1 second 

おかげで、多分私は最初からやり直す必要があり...

編集を正常に見えます次のようにコンストラクタ内にアクションイベントリスナメソッドを指定します。

gui_createAccount.addActionListener((ev) -> { 
      oncreateAccountActionEvent(ev); 
     }); 
+0

修正が利用できるようになるまで、コードが機能するように回避策を追加しました。 – socona

答えて

1

これは既に他のIDEでは修正されていますが、Eclipseにはまだ影響しているようです。私たちは責任エンジニアがそれを召集できるようになるとすぐにEclipseアップデートをリリースしようとします。

+0

よろしくお願いいたします。それまではコンストラクタで上書きします。 – socona

関連する問題