use of org.python.pydev.shared_ui.ImageCache in project Pydev by fabioz.
the class PydevDebugPlugin method start.
@Override
public void start(BundleContext context) throws Exception {
super.start(context);
PyUnitViewTestsHolder.restoreTestsRunState();
imageCache = new ImageCache(PydevDebugPlugin.getDefault().getBundle().getEntry("/"));
}
use of org.python.pydev.shared_ui.ImageCache in project Pydev by fabioz.
the class PinHistoryAction method updateState.
private void updateState() {
PyUnitTestRun currentPinned = PyUnitViewTestsHolder.getCurrentPinned();
ImageCache imageCache = PydevDebugPlugin.getImageCache();
if (currentPinned == null) {
if (imageCache != null) {
this.setImageDescriptor(ImageCache.asImageDescriptor(imageCache.getDescriptor("icons/pin.png")));
}
this.setInitialTooltipText();
this.setChecked(false);
} else {
if (imageCache != null) {
this.setImageDescriptor(ImageCache.asImageDescriptor(imageCache.getDescriptor("icons/pin_arrow.png")));
}
this.setToolTipText("Currently pin: " + currentPinned.name + ". Click again to unpin.");
this.setChecked(true);
}
}
Aggregations