-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Made refresh more smart, closes #114
- cached basedir in provider is also refreshed now - created base class for providers every registered provider is now doing a reset when proviate context reset is triggered
- Loading branch information
Showing
7 changed files
with
83 additions
and
71 deletions.
There are no files selected for viewing
19 changes: 19 additions & 0 deletions
19
...-plugin/src/main/java/de/jcup/asciidoctoreditor/provider/AbstractAsciiDoctorProvider.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package de.jcup.asciidoctoreditor.provider; | ||
|
||
public abstract class AbstractAsciiDoctorProvider { | ||
|
||
private AsciiDoctorProviderContext context; | ||
|
||
AbstractAsciiDoctorProvider(AsciiDoctorProviderContext context){ | ||
if (context==null ){ | ||
throw new IllegalArgumentException("context may never be null!"); | ||
} | ||
this.context=context; | ||
} | ||
|
||
AsciiDoctorProviderContext getContext() { | ||
return context; | ||
} | ||
|
||
protected abstract void reset() ; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters