Examples of ColorManager


Examples of at.bestsolution.efxclipse.tooling.ui.preview.text.ColorManager

          final AnnotationModel model = new AnnotationModel();
          VerticalRuler verticalRuler = new VerticalRuler(VERTICAL_RULER_WIDTH, new AnnotationAccess());
          int styles = SWT.V_SCROLL | SWT.H_SCROLL | SWT.MULTI | SWT.BORDER | SWT.FULL_SELECTION;
          SourceViewer sourceViewer = new SourceViewer(folder, verticalRuler, styles);
          sourceViewer.configure(new XMLConfiguration(new ColorManager()));
          sourceViewer.setEditable(false);
          sourceViewer.getTextWidget().setFont(JFaceResources.getTextFont());

          IDocumentPartitioner partitioner = new FastPartitioner(new XMLPartitionScanner(), new String[] { XMLPartitionScanner.XML_TAG, XMLPartitionScanner.XML_COMMENT });
          partitioner.connect(document);
View Full Code Here

Examples of bibliothek.gui.dock.util.color.ColorManager

     * @param factory the factory for new bridges, can be <code>null</code>
     */
    public void putColorBridgeFactory( Path kind, ColorBridgeFactory factory ){
        colorBridgeFactories.put( kind, factory );
        for( Controller setting : controllers ){
            ColorManager colors = setting.controller.getColors();
           
            ColorBridge oldBridge = setting.colors.remove( kind );
            ColorBridge newBridge = factory == null ? null : factory.create( colors );
           
            if( newBridge == null ){
                setting.colors.remove( kind );
               
                if( oldBridge != null )
                    colors.unpublish( Priority.DEFAULT, kind );
            }
            else{
                setting.colors.put( kind, newBridge );
                colors.publish( Priority.DEFAULT, kind, newBridge );
            }
        }
    }
View Full Code Here

Examples of bibliothek.gui.dock.util.color.ColorManager

     */
    protected void install( DockController controller ){   
        Controller settings = new Controller();
        settings.controller = controller;
       
        ColorManager colors = controller.getColors();
        CControl control = controller.getProperties().get( CControl.CCONTROL );
       
        try{
            colors.lockUpdate();
           
            ExtensionName<CColorBridgeExtension> name = new ExtensionName<CColorBridgeExtension>(
                CColorBridgeExtension.EXTENSION_NAME, CColorBridgeExtension.class, CColorBridgeExtension.PARAMETER_NAME, this );
            List<CColorBridgeExtension> extensions = controller.getExtensions().load( name );
           
            for( Map.Entry<Path, ColorBridgeFactory> entry : colorBridgeFactories.entrySet() ){
                ColorBridge bridge = entry.getValue().create( colors );
                Path key = entry.getKey();
               
                List<CColorBridgeExtension> filtered = new ArrayList<CColorBridgeExtension>();
                for( CColorBridgeExtension extension : extensions ){
                  if( key.equals( extension.getKey() )){
                    filtered.add( extension );
                  }
                }

                if( !filtered.isEmpty() ){
                  CColorBridge[] extending = new CColorBridge[ filtered.size() ];
                  for( int i = 0; i < extending.length; i++ ){
                    extending[i] = filtered.get( i ).create( control, colors );
                  }
                  bridge = new ExtendedColorBridge( bridge, extending );
                }
               
                colors.publish(
                        Priority.DEFAULT,
                        entry.getKey(),
                        bridge );
                settings.colors.put( entry.getKey(), bridge );
            }
        }
        finally{
            colors.unlockUpdate();
        }
       
        FontManager fonts = controller.getFonts();
        try{
            fonts.lockUpdate();
View Full Code Here

Examples of bibliothek.gui.dock.util.color.ColorManager

            Controller settings = controllers.get( i );
            if( settings.controller == controller ){
                controllers.remove( i-- );
                n--;
               
                ColorManager colors = controller.getColors();
                for( ColorBridge bridge : settings.colors.values() ){
                    colors.unpublish( Priority.DEFAULT, bridge );
                }
               
                FontManager fonts = controller.getFonts();
                for( FontBridge bridge : settings.fonts.values() ){
                    fonts.unpublish( Priority.DEFAULT, bridge );
View Full Code Here

Examples of cbg.editor.rules.ColorManager

        setPreferenceStore(store);
        // setDocumentProvider(new TextFileDocumentProvider(new
        // ColoringDocumentProvider()));
        setDocumentProvider(new ColoringDocumentProvider());
        // setDocumentProvider(new DelegateDocumentProvider());
        ColorManager colorManager = EditorPlugin.getDefault().getColorManager();
        setSourceViewerConfiguration(new ColoringSourceViewerConfiguration(colorManager));
    }
View Full Code Here

Examples of cbg.editor.rules.ColorManager

public class EditorPlugin extends AbstractUIPlugin {
    public static final String STATUS_CATEGORY_MODE = "cbg.editor.modeStatus";

    public ColorManager getColorManager() {
        if (colorManager == null) {
            colorManager = new ColorManager(getPreferenceStore());
        }
        return colorManager;
    }
View Full Code Here

Examples of com.aptana.js.interactive_console.console.prefs.ColorManager

        ret.o2 = retBuf.toString();
        return ret;
    }

    public Tuple<List<ScriptStyleRange>, String> createInterpreterErrorStyle(String content, int offset) {
        ColorManager colorManager = ColorManager.getDefault();
        TextAttribute attr = colorManager.getConsoleErrorTextAttribute();
        return createInterpreterStdStyle(content, offset, err, colorManager, attr, ScriptStyleRange.STDERR);
    }
View Full Code Here

Examples of com.aptana.js.interactive_console.console.prefs.ColorManager

        TextAttribute attr = colorManager.getConsoleErrorTextAttribute();
        return createInterpreterStdStyle(content, offset, err, colorManager, attr, ScriptStyleRange.STDERR);
    }

    public Tuple<List<ScriptStyleRange>, String> createInterpreterOutputStyle(String content, int offset) {
        ColorManager colorManager = ColorManager.getDefault();
        TextAttribute attr = colorManager.getConsoleOutputTextAttribute();
        return createInterpreterStdStyle(content, offset, out, colorManager, attr, ScriptStyleRange.STDOUT);
    }
View Full Code Here

Examples of com.springsource.insight.intercept.color.ColorManager

        if (ListUtil.size(queueFrames) <= 0) {
            return Collections.emptyList();
        }

        List<ExternalResourceDescriptor> queueDescriptors = new ArrayList<ExternalResourceDescriptor>(queueFrames.size());
        ColorManager colorManager = ColorManager.getInstance();
        for (Frame queueFrame : queueFrames) {
            Operation op = queueFrame.getOperation();
            String host = op.get("host", String.class);
            int port = op.getInt("port", (-1));
            String color = colorManager.getColor(op);

            String finalExchange = getFinalExchangeName(getExchange(op));
            String finalRoutingKey = getFinalRoutingKey(getRoutingKey(op));
            String exchangeResourceName = buildExternalResourceName(finalExchange, finalRoutingKey, false, host, port);
View Full Code Here

Examples of com.springsource.insight.intercept.color.ColorManager

                .put("host", INTTEST_HOST)
                .put("port", INTTEST_PORT);

        final Frame TEST_FRAME = new SimpleFrame(FrameId.valueOf("7365"), null, BASE_OP, new TimeRange(1L, 10L), Collections.<Frame>emptyList());
        //final Trace TEST_TRACE = new Trace(ServerName.valueOf("7.3.6.5"), INTTEST_APP, new Date(System.currentTimeMillis()), TraceId.valueOf("3777347"), TEST_FRAME);
        final ColorManager colorManager = ColorManager.getInstance();

        for (DestinationType destType : DestinationType.values()) {
            String destName = DESTS_NAMES.get(destType);
            if (StringUtil.isEmpty(destName)) {
                continue;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.