Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Villiger2019-09-04 09:39:46 -0400
committerMatthias Villiger2019-09-04 09:39:46 -0400
commita7a5d4a92b7b7547da22adb71a030290fe58e5a4 (patch)
tree8a34138fc08feb7942e974677d197064a88e3b33
parent900d019b59af0292846c3a522cebbbac8b01e8d8 (diff)
downloadorg.eclipse.scout.sdk-releases/10.0.tar.gz
org.eclipse.scout.sdk-releases/10.0.tar.xz
org.eclipse.scout.sdk-releases/10.0.zip
Trigger derived resource update for java files onlyreleases/10.0
Currently there is no derived resource handler that accepts files other than java files.
-rw-r--r--org.eclipse.scout.sdk.s2i/src/main/kotlin/org/eclipse/scout/sdk/s2i/derived/impl/DerivedResourceManagerImplementor.kt15
1 files changed, 14 insertions, 1 deletions
diff --git a/org.eclipse.scout.sdk.s2i/src/main/kotlin/org/eclipse/scout/sdk/s2i/derived/impl/DerivedResourceManagerImplementor.kt b/org.eclipse.scout.sdk.s2i/src/main/kotlin/org/eclipse/scout/sdk/s2i/derived/impl/DerivedResourceManagerImplementor.kt
index bec5ef3e5..99e83b958 100644
--- a/org.eclipse.scout.sdk.s2i/src/main/kotlin/org/eclipse/scout/sdk/s2i/derived/impl/DerivedResourceManagerImplementor.kt
+++ b/org.eclipse.scout.sdk.s2i/src/main/kotlin/org/eclipse/scout/sdk/s2i/derived/impl/DerivedResourceManagerImplementor.kt
@@ -1,3 +1,13 @@
+/*
+ * Copyright (c) 2010-2019 BSI Business Systems Integration AG.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * BSI Business Systems Integration AG - initial API and implementation
+ */
package org.eclipse.scout.sdk.s2i.derived.impl
import com.intellij.AppTopics
@@ -18,6 +28,7 @@ import org.eclipse.scout.sdk.core.s.environment.Future
import org.eclipse.scout.sdk.core.s.environment.IEnvironment
import org.eclipse.scout.sdk.core.s.environment.IFuture
import org.eclipse.scout.sdk.core.s.environment.IProgress
+import org.eclipse.scout.sdk.core.util.JavaTypes
import org.eclipse.scout.sdk.s2i.derived.DerivedResourceHandlerFactory
import org.eclipse.scout.sdk.s2i.derived.DerivedResourceManager
import org.eclipse.scout.sdk.s2i.environment.IdeaEnvironment
@@ -163,7 +174,9 @@ open class DerivedResourceManagerImplementor(private val project: Project) : Pro
protected inner class DocumentSyncListener : FileDocumentManagerListener {
override fun fileContentReloaded(file: VirtualFile, document: Document) {
- trigger(fileScope(project, file))
+ if (JavaTypes.JAVA_FILE_EXTENSION == file.extension) {
+ trigger(fileScope(project, file))
+ }
}
override fun beforeDocumentSaving(document: Document) {

Back to the top