File tree 1 file changed +5
-0
lines changed
io.sloeber.core/src/io/sloeber/core/builder
1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change 15
15
public class inoToCpp extends IncrementalProjectBuilder {
16
16
17
17
class SampleDeltaVisitor implements IResourceDeltaVisitor {
18
+ private boolean inoFileProcessed = false ;
18
19
/*
19
20
* (non-Javadoc)
20
21
*
@@ -23,6 +24,9 @@ class SampleDeltaVisitor implements IResourceDeltaVisitor {
23
24
*/
24
25
@ Override
25
26
public boolean visit (IResourceDelta delta ) throws CoreException {
27
+ if (inoFileProcessed ) {
28
+ return false ;
29
+ }
26
30
IResource resource = delta .getResource ();
27
31
if (resource .getFileExtension () != null ) {
28
32
if (resource .getFileExtension ().equalsIgnoreCase ("ino" ) //$NON-NLS-1$
@@ -32,6 +36,7 @@ public boolean visit(IResourceDelta delta) throws CoreException {
32
36
} catch (CoreException e ) {
33
37
e .printStackTrace ();
34
38
}
39
+ inoFileProcessed = true ;
35
40
return false ;
36
41
}
37
42
}
You can’t perform that action at this time.
0 commit comments