fix: compilation errors due to incomplete changes in previous commits

This commit is contained in:
Akash Yadav
2024-06-21 08:10:49 +05:30
parent 788ae2dfaf
commit f3e460c93e
2 changed files with 25 additions and 4 deletions
@@ -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.
*/