2012-12-28 24 views
0

我在我的應用程序中有自定義類InternalTimerServiceController。我想在android註釋中的另一個類中使用它。而且在這種情況下,似乎autocompletion無法正常工作。如何在Intellij IDEA的註釋中列出autocompletion中的所有類?

我有這個接口

public interface InternalTimerServiceControllerContract 
{ 
    void doWork(); 
} 

這個類

@EBean 
public class InternalTimerServiceController implements InternalTimerServiceControllerContract 
{ 
    @Override 
    public void doWork() 
    { 
     // do work 
    } 
} 

這是我的活動

public class MyActivity extends Activity 
{ 
    // try uncomment line below and see if autocomplete works properly 
    //@Bean(Internal) 

    @Override 
    public void onCreate(Bundle savedInstanceState) 
    { 
     super.onCreate(savedInstanceState); 
     setContentView(R.layout.main); 
    } 
} 

回答

相關問題