public void run() { evaluationEnds(); if (result.hasProblems()) { IMarker[] problems = result.getProblems(); for (int i = 0; i < problems.length; i++) { showProblem(problems[i]); } return; } final IJavaValue value = result.getValue(); if (value != null) { switch (fResultMode) { case RESULT_DISPLAY: Runnable r = new Runnable() { public void run() { displayResult(value); } }; getSite().getShell().getDisplay().asyncExec(r); break; case RESULT_INSPECT: DebugUITools.inspect(result.getSnippet(), value); break; case RESULT_RUN:  break; }
public void run() { List v= new ArrayList(fSnippetStateListeners); for (int i= 0; i < v.size(); i++) { ISnippetStateChangedListener l= (ISnippetStateChangedListener) v.get(i); l.snippetStateChanged(JavaSnippetEditor.this);
			public void run() {				evaluationEnds();				if (result.hasProblems()) {					IMarker[] problems = result.getProblems();					for (int i = 0; i < problems.length; i++) {						showProblem(problems[i]);					}					return;				}				final IJavaValue value = result.getValue();				if (value != null) {					switch (fResultMode) {					case RESULT_DISPLAY:						Runnable r = new Runnable() {							public void run() {								displayResult(value);							}						};						getSite().getShell().getDisplay().asyncExec(r);						break;					case RESULT_INSPECT:						DebugUITools.inspect(result.getSnippet(), value);						break;					case RESULT_RUN:						// no action						break;					}				}			}