@Override public boolean shouldRun() { return PlatformUI.isWorkbenchRunning(); } };
public boolean shouldRun() { // Only initialize the capability helper if the UI is running (bug 76348) return PlatformUI.isWorkbenchRunning(); } };
@Override public boolean shouldRun() { return PlatformUI.isWorkbenchRunning(); } };
static public boolean runningUI() { return PlatformUI.isWorkbenchRunning(); }
static public boolean runningUI() { return PlatformUI.isWorkbenchRunning(); }
private boolean isHeadless() { // If there is no UI available and we are still the IServiceUI, // assume that the operation should proceed. See // https://bugs.eclipse.org/bugs/show_bug.cgi?id=291049 return !PlatformUI.isWorkbenchRunning(); } }
public void configureIWorkbench(Binder binder) { if (PlatformUI.isWorkbenchRunning()) { binder.bind(IWorkbench.class).toProvider(new Provider<IWorkbench>() { public IWorkbench get() { return (PlatformUI.isWorkbenchRunning()) ? PlatformUI.getWorkbench() : null; } }); } }
public void configureLanguageSpecificURIEditorOpener(com.google.inject.Binder binder) { if (PlatformUI.isWorkbenchRunning()) binder.bind(IURIEditorOpener.class).annotatedWith(LanguageSpecific.class) .to(LanguageSpecificURIEditorOpener.class); }
@Override public boolean shouldRun() { return super.shouldRun() && PlatformUI.isWorkbenchRunning(); }
public IWorkbench get() { if (PlatformUI.isWorkbenchRunning()) return PlatformUI.getWorkbench(); return null; } });
public void done(IJobChangeEvent event) { if (PlatformUI.isWorkbenchRunning()) { PlatformUI.getWorkbench().getDisplay().asyncExec(new Runnable() { public void run() { if (validateOperation(operation)) performAction(operation, ius); } }); } }
public void done(IJobChangeEvent event) { if (PlatformUI.isWorkbenchRunning()) { PlatformUI.getWorkbench().getDisplay().asyncExec(new Runnable() { public void run() { ui.openUpdateWizard(skipSelectionPage, (UpdateOperation) operation, remediationOperation, null); } }); } }
public void done(IJobChangeEvent event) { if (PlatformUI.isWorkbenchRunning()) { PlatformUI.getWorkbench().getDisplay().asyncExec(new Runnable() { public void run() { getProvisioningUI().openUpdateWizard(true, operation, remediationOperation, null); } }); } }
public void run() { if (PlatformUI.isWorkbenchRunning() && getShell() != null && !getShell().isDisposed()) repoPreloadJob.reportAccumulatedStatus(); } });
public void start(BundleContext context) throws Exception { super.start(context); if (PlatformUI.isWorkbenchRunning()) { fThemeListener= new IPropertyChangeListener() { public void propertyChange(PropertyChangeEvent event) { if (IThemeManager.CHANGE_CURRENT_THEME.equals(event.getProperty())) AbstractDecoratedTextEditorPreferenceConstants.initializeDefaultValues(getPreferenceStore()); } }; PlatformUI.getWorkbench().getThemeManager().addPropertyChangeListener(fThemeListener); } }
protected void runClearPlaceholderJob(final PendingUpdateAdapter placeholder) { if (placeholder instanceof ElementPendingUpdateAdapter) { if (((ElementPendingUpdateAdapter) placeholder).isRemoved() || !PlatformUI.isWorkbenchRunning()) return; notifyListener(false, (ElementPendingUpdateAdapter) placeholder); } super.runClearPlaceholderJob(placeholder); }
public void done(IJobChangeEvent event) { if (PlatformUI.isWorkbenchRunning()) if (event.getResult().isOK()) { PlatformUI.getWorkbench().getDisplay().asyncExec(new Runnable() { public void run() { doExecute(loadJob); } }); } } });
public void dispose() { super.dispose(); if (PlatformUI.isWorkbenchRunning()) PlatformUI.getWorkbench().getWorkingSetManager().removePropertyChangeListener(this); }
@Override public void dispose() { super.dispose(); if (PlatformUI.isWorkbenchRunning()) PlatformUI.getWorkbench().getWorkingSetManager().removePropertyChangeListener(this); }
private void bringConsoleToFront() { if(PlatformUI.isWorkbenchRunning()) { IConsoleManager manager = ConsolePlugin.getDefault().getConsoleManager(); if(!isVisible()) { manager.addConsoles(new IConsole[] {this}); } manager.showConsoleView(this); } }