Example usage for org.eclipse.jface.resource JFaceResources getResources

List of usage examples for org.eclipse.jface.resource JFaceResources getResources

Introduction

In this page you can find the example usage for org.eclipse.jface.resource JFaceResources getResources.

Prototype

public static ResourceManager getResources() 

Source Link

Document

Returns the ResourceManager for the current display.

Usage

From source file:org.rssowl.ui.internal.dialogs.CustomizeToolbarDialog.java

License:Open Source License

/**
 * @param parentShell/*from   w  w w .j  a  va2 s. co  m*/
 */
public CustomizeToolbarDialog(Shell parentShell) {
    super(parentShell);
    fResources = new LocalResourceManager(JFaceResources.getResources());
    fFirstTimeOpen = (Activator.getDefault().getDialogSettings().getSection(DIALOG_SETTINGS_KEY) == null);
    fPreferences = Owl.getPreferenceService().getGlobalScope();

    /* Colors */
    fSeparatorBorderFg = OwlUI.getColor(fResources, new RGB(210, 210, 210));
    fSeparatorBg = OwlUI.getColor(fResources, new RGB(240, 240, 240));
}

From source file:org.rssowl.ui.internal.dialogs.FacebookCredentialDialog.java

License:Open Source License

public FacebookCredentialDialog(Shell parentShell) {
    super(parentShell);
    fAuthAction = new FacebookAuthenticationAction();
    fResources = new LocalResourceManager(JFaceResources.getResources());
}

From source file:org.rssowl.ui.internal.dialogs.FatalOutOfMemoryErrorDialog.java

License:Open Source License

/**
 * @param errorStatus/*from  www  . j a  va 2 s. c o m*/
 */
public FatalOutOfMemoryErrorDialog(IStatus errorStatus) {
    super(null);
    fErrorStatus = errorStatus;
    fResources = new LocalResourceManager(JFaceResources.getResources());
}

From source file:org.rssowl.ui.internal.dialogs.GoogleCredentialDialog.java

License:Open Source License

public GoogleCredentialDialog(Shell parentShell) {
    super(parentShell);
    fResources = new LocalResourceManager(JFaceResources.getResources());
}

From source file:org.rssowl.ui.internal.dialogs.LoginDialog.java

License:Open Source License

/**
 * @param parentShell/*from   w  ww  . j  a v a2s . co m*/
 * @param link
 * @param realm
 * @param isSyncLogin
 */
public LoginDialog(Shell parentShell, URI link, String realm, boolean isSyncLogin) {
    super(parentShell);
    fLink = link;
    fRealm = realm;
    fIsSyncLogin = isSyncLogin;
    fResources = new LocalResourceManager(JFaceResources.getResources());
    fCredProvider = Owl.getConnectionService().getCredentialsProvider(link);
    fPreferences = Owl.getPreferenceService().getGlobalScope();
}

From source file:org.rssowl.ui.internal.dialogs.ManageSetsDialog.java

License:Open Source License

/**
 * @param parentShell//  www  .j ava  2  s  .  co  m
 * @param selectedSet
 */
public ManageSetsDialog(Shell parentShell, IFolder selectedSet) {
    super(parentShell);
    fSelectedSet = selectedSet;
    fResources = new LocalResourceManager(JFaceResources.getResources());
}

From source file:org.rssowl.ui.internal.dialogs.MasterPasswordDialog.java

License:Open Source License

/**
 * @param parentShell//from  ww w.  j av a  2 s  .co m
 * @param style
 */
public MasterPasswordDialog(Shell parentShell, int style) {
    super(parentShell);
    fStyle = style;
    fResources = new LocalResourceManager(JFaceResources.getResources());
}

From source file:org.rssowl.ui.internal.dialogs.NewsFilterDialog.java

License:Open Source License

/**
 * @param parentShell the Shell to create this Dialog on.
 * @param filter the {@link ISearchFilter} to edit or <code>null</code> if
 * none./*from   w  ww .  j a v a 2s.  c  o m*/
 */
public NewsFilterDialog(Shell parentShell, ISearchFilter filter) {
    super(parentShell);

    fEditedFilter = filter;
    fResources = new LocalResourceManager(JFaceResources.getResources());
}

From source file:org.rssowl.ui.internal.dialogs.NewsFilterDialog.java

License:Open Source License

/**
 * @param parentShell the Shell to create this Dialog on.
 * @param presetSearch a search that is preset in the condition area.
 * @param presetActions a list of {@link IFilterAction} that is preset
 * @param matchAll <code>true</code> to all news or <code>false</code>
 * otherwise.//w w w  .  j av  a  2s  . c  o m
 */
public NewsFilterDialog(Shell parentShell, ISearch presetSearch, List<IFilterAction> presetActions,
        boolean matchAll) {
    super(parentShell);

    fPresetSearch = presetSearch;
    fPresetActions = presetActions;
    fPresetMatchAll = matchAll;
    fEditedFilter = null;
    fResources = new LocalResourceManager(JFaceResources.getResources());
}

From source file:org.rssowl.ui.internal.dialogs.NewsFiltersListDialog.java

License:Open Source License

/**
 * @param parentShell// w ww.  j a  v  a 2 s . c o  m
 */
public NewsFiltersListDialog(Shell parentShell) {
    super(parentShell);
    fResources = new LocalResourceManager(JFaceResources.getResources());
    fFilterIcon = OwlUI.getImage(fResources, OwlUI.FILTER);
    fSearchFilterDao = DynamicDAO.getDAO(ISearchFilterDAO.class);
}