List of usage examples for org.eclipse.jface.resource JFaceResources getResources
public static ResourceManager getResources()
From source file:org.rssowl.ui.internal.dialogs.preferences.FeedsPreferencePage.java
License:Open Source License
/** Leave for reflection */ public FeedsPreferencePage() { fGlobalScope = Owl.getPreferenceService().getGlobalScope(); fReloadService = Controller.getDefault().getReloadService(); fResources = new LocalResourceManager(JFaceResources.getResources()); setImageDescriptor(OwlUI.BOOKMARK);//w w w .j a v a 2s . co m }
From source file:org.rssowl.ui.internal.dialogs.preferences.ManageLabelsPreferencePage.java
License:Open Source License
/** Leave for reflection */ public ManageLabelsPreferencePage() { fResources = new LocalResourceManager(JFaceResources.getResources()); setImageDescriptor(OwlUI.getImageDescriptor("icons/elcl16/labels.gif")); //$NON-NLS-1$ }
From source file:org.rssowl.ui.internal.dialogs.preferences.OverviewPreferencesPage.java
License:Open Source License
/** Leave for reflection */ public OverviewPreferencesPage() { fResources = new LocalResourceManager(JFaceResources.getResources()); }
From source file:org.rssowl.ui.internal.dialogs.preferences.SharingPreferencesPage.java
License:Open Source License
/** Leave for reflection */ public SharingPreferencesPage() { setImageDescriptor(OwlUI.getImageDescriptor("icons/elcl16/share.gif")); //$NON-NLS-1$ fResources = new LocalResourceManager(JFaceResources.getResources()); fPreferences = Owl.getPreferenceService().getGlobalScope(); }
From source file:org.rssowl.ui.internal.dialogs.properties.EntityPropertyDialog.java
License:Open Source License
/** * @param parentShell/* ww w . jav a 2s . c om*/ * @param entities */ public EntityPropertyDialog(Shell parentShell, List<IEntity> entities) { super(parentShell); fEntities = entities; fResources = new LocalResourceManager(JFaceResources.getResources()); }
From source file:org.rssowl.ui.internal.dialogs.SearchMarkDialog.java
License:Open Source License
/** * @param shell/*from w ww .jav a2s. c o m*/ * @param parent * @param position * @param initialConditions * @param matchAllConditions * @param properties */ public SearchMarkDialog(Shell shell, IFolder parent, IFolderChild position, List<ISearchCondition> initialConditions, boolean matchAllConditions, Map<String, Serializable> properties) { super(shell); fParent = parent; fPosition = position; fInitialMatchAllConditions = matchAllConditions; fProperties = properties; fResources = new LocalResourceManager(JFaceResources.getResources()); fDialogSettings = Activator.getDefault().getDialogSettings(); fFirstTimeOpen = (fDialogSettings.getSection(SETTINGS_SECTION) == null); /* Use default Parent if required */ if (fParent == null) fParent = getDefaultParent(); /* Look for initial conditions and scope */ if (initialConditions != null) { Pair<ISearchCondition, List<ISearchCondition>> conditions = CoreUtils.splitScope(initialConditions); fInitialLocation = conditions.getFirst(); fInitialSearchConditions = conditions.getSecond(); fShowLocationConflict = CoreUtils.isLocationConflict(initialConditions); } }
From source file:org.rssowl.ui.internal.dialogs.SearchNewsDialog.java
License:Open Source License
/** * @param parentShell//from w ww . j av a 2 s.c o m * @param initialConditions A List of Conditions that should show initially. * @param matchAllConditions If <code>TRUE</code>, require all conditions to * match, <code>FALSE</code> otherwise. * @param runSearch If <code>TRUE</code>, run the search after the dialog * opened. */ public SearchNewsDialog(Shell parentShell, List<ISearchCondition> initialConditions, boolean matchAllConditions, boolean runSearch) { super(parentShell); fPreferences = Owl.getPreferenceService().getGlobalScope(); fResources = new LocalResourceManager(JFaceResources.getResources()); fDialogSettings = Activator.getDefault().getDialogSettings(); fFirstTimeOpen = (fDialogSettings.getSection(SETTINGS_SECTION) == null); fIsPreviewVisible = fPreferences.getBoolean(DefaultPreferences.SEARCH_DIALOG_PREVIEW_VISIBLE); fCachedWeights = fPreferences.getIntegers(PREF_SASH_WEIGHTS); fModelSearch = Owl.getPersistenceService().getModelSearch(); fHandCursor = parentShell.getDisplay().getSystemCursor(SWT.CURSOR_HAND); fMatchAllConditions = matchAllConditions; fRunSearch = runSearch; fNewsDao = DynamicDAO.getDAO(INewsDAO.class); /* Look for initial conditions and scope */ if (initialConditions != null) { Pair<ISearchCondition, List<ISearchCondition>> conditions = CoreUtils.splitScope(initialConditions); fInitialScope = conditions.getFirst(); fInitialConditions = conditions.getSecond(); } }
From source file:org.rssowl.ui.internal.dialogs.StartupErrorDialog.java
License:Open Source License
/** * @param errorStatus// www . ja v a 2s . c om */ public StartupErrorDialog(IStatus errorStatus) { super(null); fErrorStatus = errorStatus; fResources = new LocalResourceManager(JFaceResources.getResources()); }
From source file:org.rssowl.ui.internal.dialogs.StartupProgressDialog.java
License:Open Source License
public StartupProgressDialog() { super(null); fResources = new LocalResourceManager(JFaceResources.getResources()); }
From source file:org.rssowl.ui.internal.dialogs.SynchronizationStatusDialog.java
License:Open Source License
/** * @param parentShell the parent shell//from www . ja va 2 s . com * @param status the synchronization status to show */ public SynchronizationStatusDialog(Shell parentShell, SyncStatus status) { super(parentShell); fStatus = status; fResources = new LocalResourceManager(JFaceResources.getResources()); }