Search in sources :

Example 1 with ImageCache

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("/"));
}
Also used : ImageCache(org.python.pydev.shared_ui.ImageCache)

Example 2 with ImageCache

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);
    }
}
Also used : ImageCache(org.python.pydev.shared_ui.ImageCache)

Aggregations

ImageCache (org.python.pydev.shared_ui.ImageCache)2