mirror of
https://gitee.com/zhangsken/AndroidIDE.git
synced 2026-10-16 07:49:44 +08:00
fix: compilation errors due to incomplete changes in previous commits
This commit is contained in:
@@ -42,7 +42,6 @@ import com.itsaky.androidide.events.AppEventsIndex
|
||||
import com.itsaky.androidide.events.EditorEventsIndex
|
||||
import com.itsaky.androidide.events.LspApiEventsIndex
|
||||
import com.itsaky.androidide.events.LspJavaEventsIndex
|
||||
import com.itsaky.androidide.events.ProjectsApiEventsIndex
|
||||
import com.itsaky.androidide.preferences.internal.DevOpsPreferences
|
||||
import com.itsaky.androidide.preferences.internal.GeneralPreferences
|
||||
import com.itsaky.androidide.preferences.internal.StatPreferences
|
||||
@@ -102,9 +101,12 @@ class IDEApplication : TermuxApplication() {
|
||||
}
|
||||
}
|
||||
|
||||
EventBus.builder().addIndex(AppEventsIndex()).addIndex(EditorEventsIndex())
|
||||
.addIndex(ProjectsApiEventsIndex()).addIndex(LspApiEventsIndex())
|
||||
.addIndex(LspJavaEventsIndex()).installDefaultEventBus(true)
|
||||
EventBus.builder()
|
||||
.addIndex(AppEventsIndex())
|
||||
.addIndex(EditorEventsIndex())
|
||||
.addIndex(LspApiEventsIndex())
|
||||
.addIndex(LspJavaEventsIndex())
|
||||
.installDefaultEventBus(true)
|
||||
|
||||
EventBus.getDefault().register(this)
|
||||
|
||||
|
||||
@@ -168,6 +168,25 @@ interface IProjectManager {
|
||||
*/
|
||||
fun isAndroidResource(file: File): Boolean
|
||||
|
||||
/**
|
||||
* Notify the project manager that the given <code>file</code> was created.
|
||||
* @param file The file that was created.
|
||||
*/
|
||||
fun notifyFileCreated(file: File)
|
||||
|
||||
/**
|
||||
* Notify the project manager that the given <code>file</code> was deleted.
|
||||
* @param file The file that was deleted.
|
||||
*/
|
||||
fun notifyFileDeleted(file: File)
|
||||
|
||||
/**
|
||||
* Notify the project manager that the file was renamed or moved.
|
||||
* @param from The file that was renamed or moved.
|
||||
* @param to The file after renaming/move.
|
||||
*/
|
||||
fun notifyFileRenamed(from: File, to: File)
|
||||
|
||||
/**
|
||||
* Destroy the project manager.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user