Examples of decorateText()


Examples of org.eclipse.jface.viewers.ILabelDecorator.decorateText()

    protected String decorateText(final String text0, final Object element) {
        String text = text0;
        if (fLabelDecorators != null && text.length() > 0) {
            for (int i = 0; i < fLabelDecorators.size(); i++) {
                final ILabelDecorator decorator = fLabelDecorators.get(i);
                text = decorator.decorateText(text, element);
            }
        }
        return text;
    }
View Full Code Here

Examples of org.eclipse.jface.viewers.ILabelDecorator.decorateText()

    String decorateText(String text, Object element) {
        try {
            //Internal decorator might be null so be prepared
            ILabelDecorator currentDecorator = internalGetDecorator();
            if (currentDecorator != null) {
        return currentDecorator.decorateText(text, element);
      }
        } catch (CoreException exception) {
            handleCoreException(exception);
        }
        return null;
View Full Code Here

Examples of org.eclipse.jface.viewers.LabelDecorator.decorateText()

        if ( decorator != null )
        {
            if ( decorator instanceof LabelDecorator )
            {
                LabelDecorator ld2 = ( LabelDecorator ) decorator;
                String decorated = ld2.decorateText( text, element, getDecorationContext() );
                if ( decorated != null )
                {
                    return decorated;
                }
            }
View Full Code Here

Examples of org.jitterbit.application.ui.text.editor.ChunkedTextFileEditor.decorateText()

        private ChunkedTextFileEditor createEditor(File file) {
            String title = LogFileUtils.getDisplayName(file);
            ChunkedTextFileEditor editor = TextEditorFactory.openFileInChunks(title, file, "UTF-8", FILE_CHUNK_SIZE);
            if (repository.isSystemOut(file)) {
                editor.decorateText(TextStyles.SystemOutText.asTextDecorator());
            } else if (repository.isSystemErr(file)) {
                editor.decorateText(TextStyles.SystemErrText.asTextDecorator());
            } else {
                editor.decorateText(TextStyles.DefaultMonoSpaced.asTextDecorator());
            }
View Full Code Here

Examples of org.jitterbit.application.ui.text.editor.ChunkedTextFileEditor.decorateText()

            String title = LogFileUtils.getDisplayName(file);
            ChunkedTextFileEditor editor = TextEditorFactory.openFileInChunks(title, file, "UTF-8", FILE_CHUNK_SIZE);
            if (repository.isSystemOut(file)) {
                editor.decorateText(TextStyles.SystemOutText.asTextDecorator());
            } else if (repository.isSystemErr(file)) {
                editor.decorateText(TextStyles.SystemErrText.asTextDecorator());
            } else {
                editor.decorateText(TextStyles.DefaultMonoSpaced.asTextDecorator());
            }
            EditorCategory category = new EditorCategory("Client Log Files", PackageResources.View.ICON);
            editor.setCategory(category);
View Full Code Here

Examples of org.jitterbit.application.ui.text.editor.ChunkedTextFileEditor.decorateText()

            if (repository.isSystemOut(file)) {
                editor.decorateText(TextStyles.SystemOutText.asTextDecorator());
            } else if (repository.isSystemErr(file)) {
                editor.decorateText(TextStyles.SystemErrText.asTextDecorator());
            } else {
                editor.decorateText(TextStyles.DefaultMonoSpaced.asTextDecorator());
            }
            EditorCategory category = new EditorCategory("Client Log Files", PackageResources.View.ICON);
            editor.setCategory(category);
            editor.setSuggestedTargetNameForCopy(file.getName());
            editor.setMementoPath(new String[] { "Application", "LogFile" });
View Full Code Here

Examples of org.jitterbit.application.ui.text.editor.TextEditor.decorateText()

            TextEditor editor = TextEditorFactory.openFileInChunks(mainTitle, file, charset, chunkSize);
            if (editor instanceof GenericEditor) {
                ((GenericEditor) editor).setSubTitle(tx.getName());
            }
            editor.setEditable(true);
            editor.decorateText(TextStyles.DefaultText.asTextDecorator());
            editor.addResource(new AbstractWindowElementResource() {

                @Override
                public void dispose(WindowElement e) {
                    file.delete();
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.