Prevent job from any output in progress view [message #1804173] |
Tue, 19 March 2019 21:23 |
Alex Mising name Messages: 149 Registered: March 2010 |
Senior Member |
|
|
Hello,
I have a job that is scheduled from a text editor listener whenever the document changes. The job is configured as a system job that can run at any time, as it simply parses the editor's text in-memory without accessing the workspace:
private final ITextListener textListener = new ITextListener() {
@Override
public void textChanged(TextEvent event) {
if (event.getDocumentEvent() != null) {
parseJob.onTextModified(event.getDocumentEvent());
}
}
};
// ...
private class ParseJob extends WorkspaceJob {
public ParseJob() {
super("My job");
setSystem(true);
setRule(null);
}
// ...
public void onTextModified(DocumentEvent modificationEvent) {
// stamp anyway
latestChangeTextEventEpochMillis = System.currentTimeMillis();
schedule(PARSE_DELAY_MILLIS);
}
I was under the impression from
the "system job" javadoc that system jobs will not show up in the UI. But my progress view shows the message "Building workspace (Sleeping)" whenever the job runs.
Any idea why this is happening and how I can suppress it?
[Updated on: Tue, 19 March 2019 21:29] Report message to a moderator
|
|
|
Powered by
FUDForum. Page generated in 0.03293 seconds