@Override public boolean canPaste(Clipboard clipboard) { Display d = getSection().getDisplay(); return (d.getFocusControl() instanceof Text); }
@Override public boolean canPaste(Clipboard clipboard) { Display d = getSection().getDisplay(); Control c = d.getFocusControl(); if (c instanceof Text) return true; return false; }
@Override public boolean canPaste(Clipboard clipboard) { Display d = getSection().getDisplay(); Control c = d.getFocusControl(); if (c instanceof Text) return true; return false; }
@Override public boolean canPaste(Clipboard clipboard) { Display d = getSection().getDisplay(); Control c = d.getFocusControl(); if (c instanceof Text) return true; return false; }
@Override public boolean canPaste(Clipboard clipboard) { Display d = getSection().getDisplay(); Control c = d.getFocusControl(); if (c instanceof Text) return true; return false; }
@Override public boolean canPaste(Clipboard clipboard) { Display d = getSection().getDisplay(); Control c = d.getFocusControl(); if (c instanceof Text) return true; return false; }
@Override public boolean canPaste(Clipboard clipboard) { Display d = getSection().getDisplay(); return d.getFocusControl() instanceof Text; }
@Override public boolean canPaste(Clipboard clipboard) { Display d = getSection().getDisplay(); Control c = d.getFocusControl(); if (c instanceof Text) return true; return false; }
@Override public boolean canPaste(Clipboard clipboard) { Display d = getSection().getDisplay(); Control c = d.getFocusControl(); if (c instanceof Text) return true; return false; }
@Override public boolean canPaste(Clipboard clipboard) { Display d = getSection().getDisplay(); return d.getFocusControl() instanceof Text; }
@Override public boolean canPaste(Clipboard clipboard) { Display d = getSection().getDisplay(); Control c = d.getFocusControl(); if (c instanceof Text) return true; return false; }
@Override public boolean canPaste(Clipboard clipboard) { Display d = getSection().getDisplay(); Control c = d.getFocusControl(); if (c instanceof Text) return true; return false; }
@Override public boolean canPaste(Clipboard clipboard) { Display d = getSection().getDisplay(); Control c = d.getFocusControl(); if (c instanceof Text) return true; return false; }
@Override public void handleEvent(Event e) { Image image = Section.super.getBackgroundImage(); if (image != null) { FormImages.getInstance().markFinished(image, getDisplay()); } Section.super.setBackgroundImage(null); } };
private void updateResults(final String phrase, final IContext excludeContext, final StringBuffer buffer, final SearchHit[] hits) { if (getSection().isDisposed()) return; getSection().getDisplay().asyncExec(new Runnable() { public void run() { doUpdateResults(phrase, excludeContext, buffer, hits); } }); }
private void updateHeaderImage(Color bg, Rectangle bounds, int theight, int realtheight) { Color gradient = getTitleBarGradientBackground() != null ? getTitleBarGradientBackground() : getBackground(); Image image = FormImages.getInstance().getSectionGradientImage(gradient, bg, realtheight, theight, marginHeight, getDisplay()); super.setBackgroundImage(image); }
private void updateHeaderImage(Color bg, Rectangle bounds, int theight, int realtheight) { Color gradient = getTitleBarGradientBackground() != null ? getTitleBarGradientBackground() : getBackground(); Image image = FormImages.getInstance().getSectionGradientImage(gradient, bg, realtheight, theight, marginHeight, getDisplay()); super.setBackgroundImage(image); }
@Override public void modelsChanged(final IFeatureModelDelta delta) { getSection().getDisplay().asyncExec(() -> { if (getSection().isDisposed()) { return; } IFeatureModel[] added = delta.getAdded(); IFeatureModel[] removed = delta.getRemoved(); IFeatureModel[] changed = delta.getChanged(); if (hasModels(added) || hasModels(removed) || hasModels(changed)) markStale(); }); }
@Override public void modelsChanged(final PluginModelDelta delta) { getSection().getDisplay().asyncExec(() -> { if (getSection().isDisposed()) { return; } ModelEntry[] added = delta.getAddedEntries(); ModelEntry[] removed = delta.getRemovedEntries(); ModelEntry[] changed = delta.getChangedEntries(); if (hasModels(added) || hasModels(removed) || hasModels(changed)) markStale(); }); }
@Override public void modelsChanged(final PluginModelDelta delta) { getSection().getDisplay().asyncExec(() -> { if (getSection().isDisposed()) { return; } ModelEntry[] added = delta.getAddedEntries(); ModelEntry[] removed = delta.getRemovedEntries(); ModelEntry[] changed = delta.getChangedEntries(); if (hasPluginModels(added) || hasPluginModels(removed) || hasPluginModels(changed)) markStale(); }); }