Example usage for org.eclipse.jface.commands PersistentState load

List of usage examples for org.eclipse.jface.commands PersistentState load

Introduction

In this page you can find the example usage for org.eclipse.jface.commands PersistentState load.

Prototype

public abstract void load(final IPreferenceStore store, final String preferenceKey);

Source Link

Document

Loads this state from the preference store, given the location at which to look.

Usage

From source file:org.eclipse.ui.internal.commands.CommandStateProxy.java

License:Open Source License

public final void load(final IPreferenceStore store, final String preferenceKey) {
    if (loadState() && state instanceof PersistentState) {
        final PersistentState persistableState = (PersistentState) state;
        if (persistableState.shouldPersist() && preferenceStore != null && preferenceKey != null) {
            persistableState.load(preferenceStore, preferenceKey);
        }//from   ww  w  .  j av  a2  s .  co  m
    }
}