List of usage examples for org.eclipse.jface.resource JFaceResources getResources
public static ResourceManager getResources()
From source file:org.rssowl.ui.internal.dialogs.UpdateDialog.java
License:Open Source License
/** * @param parentShell/*from ww w .jav a2 s . com*/ * @param updates */ public UpdateDialog(Shell parentShell, IInstallFeatureOperation[] updates) { super(parentShell); fResources = new LocalResourceManager(JFaceResources.getResources()); fPreferences = Owl.getPreferenceService().getGlobalScope(); fUpdates = updates; fCanUpdate = canUpdate(); }
From source file:org.rssowl.ui.internal.editors.feed.FeedView.java
License:Open Source License
@Override public void init(IEditorSite site, IEditorInput input) { Assert.isTrue(input instanceof FeedViewInput); fEditorSite = site;/*from w ww . j a v a 2s .com*/ fFeedViewSite = new FeedViewSite(this, site); setSite(site); fResourceManager = new LocalResourceManager(JFaceResources.getResources()); /* Load Settings */ fPreferences = Owl.getPreferenceService().getGlobalScope(); loadSettings((FeedViewInput) input); /* Apply Input */ setInput(input); /* Hook into Global Actions */ createGlobalActions(); setGlobalActions(); /* Register Listeners */ registerListeners(); }
From source file:org.rssowl.ui.internal.editors.feed.NewsTableControl.java
License:Open Source License
public void init(IFeedViewSite feedViewSite) { fFeedViewSite = feedViewSite;// w ww .ja v a2 s . c o m fGlobalPreferences = Owl.getPreferenceService().getGlobalScope(); fResources = new LocalResourceManager(JFaceResources.getResources()); fInstantMarkUnreadTracker = new MarkReadTracker(0, false); }
From source file:org.rssowl.ui.internal.editors.feed.NewsTableLabelProvider.java
License:Open Source License
/** * Creates a new instance of this LabelProvider * * @param model the column model.//from w ww .ja v a 2s. c o m */ public NewsTableLabelProvider(NewsColumnViewModel model) { fColumnModel = model; fResources = new LocalResourceManager(JFaceResources.getResources()); fTodayInMillies = DateUtils.getToday().getTimeInMillis(); createResources(); }
From source file:org.rssowl.ui.internal.FeedsPreferencePage.java
License:Open Source License
/** Leave for reflection */ public FeedsPreferencePage() { fGlobalScope = Owl.getPreferenceService().getGlobalScope(); fReloadService = Controller.getDefault().getReloadService(); fResources = new LocalResourceManager(JFaceResources.getResources()); }
From source file:org.rssowl.ui.internal.filter.NewsActionList.java
License:Open Source License
/** * @param parent/*from w w w. j av a 2s .c o m*/ * @param style * @param actions the list of initial {@link IFilterAction} to show. */ public NewsActionList(Composite parent, int style, List<IFilterAction> actions) { super(parent, style | SWT.V_SCROLL); fItems = new ArrayList<NewsActionItem>(); fResources = new LocalResourceManager(JFaceResources.getResources(), this); initResources(); initComponents(actions); }
From source file:org.rssowl.ui.internal.FolderChooser.java
License:Open Source License
/** * @param parent/*from ww w . jav a 2 s . co m*/ * @param initial * @param excludes * @param style * @param expandable */ public FolderChooser(Composite parent, IFolder initial, List<IFolder> excludes, int style, boolean expandable) { super(parent, style); fParent = parent; fSelectedFolder = initial; fExcludes = excludes; fExpandable = expandable; fResources = new LocalResourceManager(JFaceResources.getResources(), parent); initComponents(); addDisposeListener(this); }
From source file:org.rssowl.ui.internal.ManageLabelsPreferencePage.java
License:Open Source License
/** Leave for reflection */ public ManageLabelsPreferencePage() { fResources = new LocalResourceManager(JFaceResources.getResources()); }
From source file:org.rssowl.ui.internal.notifier.NotificationPopup.java
License:Open Source License
NotificationPopup(int visibleItemCount, Mode mode) { super(new Shell(PlatformUI.getWorkbench().getDisplay()), SWT.NO_TRIM | SWT.ON_TOP, mode != Mode.INCOMING_AUTOMATIC, false, false, false, false, null, null); fMode = mode;//w w w . java2 s .c o m fResources = new LocalResourceManager(JFaceResources.getResources()); fBoldTextFont = OwlUI.getThemeFont(OwlUI.NOTIFICATION_POPUP_FONT_ID, SWT.BOLD); fNormalTextFont = OwlUI.getThemeFont(OwlUI.NOTIFICATION_POPUP_FONT_ID, SWT.NORMAL); fGlobalScope = Owl.getPreferenceService().getGlobalScope(); fItemLimit = fGlobalScope.getInteger(DefaultPreferences.LIMIT_NOTIFICATION_SIZE); if (fItemLimit <= 0) fItemLimit = MAX_ITEMS; fVisibleItemsCount = (visibleItemCount > fItemLimit) ? fItemLimit : visibleItemCount; createAutoCloser(); createMouseTrackListener(); initResources(); }
From source file:org.rssowl.ui.internal.OwlUI.java
License:Open Source License
/** * @param owner// www . ja v a2 s.c o m * @param path * @return Image */ public static Image getImage(Control owner, String path) { LocalResourceManager manager = new LocalResourceManager(JFaceResources.getResources(), owner); return getImage(manager, path); }