public AbstractLabelProvider ( final IObservableSet itemsThatNeedLabels ) { super ( itemsThatNeedLabels ); this.activeStyler = StyledString.createColorRegistryStyler ( "org.eclipse.scada.da.client.dataitem.details.activeAttribute", null ); //$NON-NLS-1$ this.inactiveStyler = StyledString.createColorRegistryStyler ( "org.eclipse.scada.da.client.dataitem.details.inactiveAttribute", null ); //$NON-NLS-1$ }
public AbstractLabelProvider ( final IObservableSet itemsThatNeedLabels ) { super ( itemsThatNeedLabels ); this.activeStyler = StyledString.createColorRegistryStyler ( "org.eclipse.scada.da.client.dataitem.details.activeAttribute", null ); //$NON-NLS-1$ this.inactiveStyler = StyledString.createColorRegistryStyler ( "org.eclipse.scada.da.client.dataitem.details.inactiveAttribute", null ); //$NON-NLS-1$ }
public ResultLabelProvider(ResultContentProvider contentProvider) { Color searchColor = JFaceResources.getColorRegistry().get(ECLIPSE_SEARCH_UI_MATCH_HIGHLIGHT); JFaceResources.getColorRegistry().put(HIGHLIGHT_COLOR_NAME, (searchColor!=null?searchColor.getRGB():new RGB(206, 204, 247))); this.labelProvider = new WorkbenchLabelProvider(); this.highlightStyle = StyledString.createColorRegistryStyler(null, HIGHLIGHT_COLOR_NAME); this.contentProvider = contentProvider; this.matchImage = InstaSearchUI.getSharedImage(IMG_OBJ_TEXT_SEARCH_LINE); imageRegistry.put(DOWN_ARROW_IMG_KEY, InstaSearchPlugin.getImageDescriptor(DOWN_ARROW_IMG_KEY)); this.showMatchCount = InstaSearchPlugin.getBoolPref(PreferenceConstants.P_SHOW_MATCH_COUNT); this.showFullPath = InstaSearchPlugin.getBoolPref(PreferenceConstants.P_SHOW_FULL_PATH); InstaSearchPlugin.addPreferenceChangeListener(this); }