Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » Prevent job from any output in progress view(Building workspace (sleeping) message appears)
Prevent job from any output in progress view [message #1804173] Tue, 19 March 2019 21:23
Alexandros Karypidis is currently offline Alexandros KarypidisFriend
Messages: 135
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

Previous Topic:problem to export from eclipse 64 to 32 with delta pack
Next Topic:Eclipse blocking IE's [Open] [Save] [Cancel] Popup
Goto Forum:
  


Current Time: Sat Dec 14 15:39:47 GMT 2019

Powered by FUDForum. Page generated in 0.01802 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top