Package org.jitterbit.application.ui.text.editor

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


            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

            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

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.