Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 21277 Details for
Bug 94987
[api][preferences] Support new default line separator API.
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read
this important communication.
[patch]
API additions to org.eclipse.text
org.eclipse.text.patch (text/plain), 5.20 KB, created by
Dani Megert
on 2005-05-17 13:31:32 EDT
(
hide
)
Description:
API additions to org.eclipse.text
Filename:
MIME Type:
Creator:
Dani Megert
Created:
2005-05-17 13:31:32 EDT
Size:
5.20 KB
patch
obsolete
>Index: src/org/eclipse/jface/text/AbstractDocument.java >=================================================================== >RCS file: /home/eclipse/org.eclipse.text/src/org/eclipse/jface/text/AbstractDocument.java,v >retrieving revision 1.23 >diff -u -r1.23 AbstractDocument.java >--- src/org/eclipse/jface/text/AbstractDocument.java 25 Apr 2005 13:57:05 -0000 1.23 >+++ src/org/eclipse/jface/text/AbstractDocument.java 17 May 2005 17:27:55 -0000 >@@ -48,7 +48,7 @@ > * @see org.eclipse.jface.text.ITextStore > * @see org.eclipse.jface.text.ILineTracker > */ >-public abstract class AbstractDocument implements IDocument, IDocumentExtension, IDocumentExtension2, IDocumentExtension3, IDocumentExtension4, IRepairableDocument { >+public abstract class AbstractDocument implements IDocument, IDocumentExtension, IDocumentExtension2, IDocumentExtension3, IDocumentExtension4, IRepairableDocument, ILineDelimiterProvider { > > /** > * Tells whether this class is in debug mode. >@@ -155,6 +155,11 @@ > * @since 3.1 > */ > private long fModificationStamp= IDocumentExtension4.UNKNOWN_MODIFICATION_STAMP; >+ /** >+ * This document's default line delimiter. >+ * @since 3.1 >+ */ >+ private String fDefaultLineDelimiter; > > > /** >@@ -803,6 +808,23 @@ > public String[] getLegalLineDelimiters() { > return getTracker().getLegalLineDelimiters(); > } >+ >+ /* >+ * @see org.eclipse.jface.text.ILineDelimiterProvider#getDefaultLineDelimiter() >+ * @since 3.1 >+ */ >+ public String getDefaultLineDelimiter() { >+ return fDefaultLineDelimiter; >+ } >+ >+ /* >+ * @see org.eclipse.jface.text.ILineDelimiterProvider#setDefaultLineDelimiter(java.lang.String) >+ * @since 3.1 >+ */ >+ public void setDefaultLineDelimiter(String lineDelimiter) { >+ Assert.isNotNull(lineDelimiter); >+ fDefaultLineDelimiter= lineDelimiter; >+ } > > /* > * @see org.eclipse.jface.text.IDocument#getLineLength(int) >Index: src/org/eclipse/jface/text/IDocument.java >=================================================================== >RCS file: /home/eclipse/org.eclipse.text/src/org/eclipse/jface/text/IDocument.java,v >retrieving revision 1.14 >diff -u -r1.14 IDocument.java >--- src/org/eclipse/jface/text/IDocument.java 19 Apr 2005 12:39:14 -0000 1.14 >+++ src/org/eclipse/jface/text/IDocument.java 17 May 2005 17:27:55 -0000 >@@ -97,6 +97,7 @@ > * @see org.eclipse.jface.text.ILineTracker > * @see org.eclipse.jface.text.IDocumentListener > * @see org.eclipse.jface.text.IDocumentPartitioningListener >+ * @see org.eclipse.jface.text.ILineDelimiterProvider > */ > public interface IDocument { > >Index: component.xml >=================================================================== >RCS file: component.xml >diff -N component.xml >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ component.xml 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,28 @@ >+<?xml version="1.0" encoding="UTF-8"?> >+ >+<component xmlns="http://eclipse.org/component" >+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" >+ xsi:schemaLocation="http://eclipse.org/component ../component.xsd " >+ name="Eclipse Text"> >+ <plugin id="org.eclipse.text"/> >+ >+ <package name="org.eclipse.jface.text"> >+ </package> >+ >+ <package name="org.eclipse.jface.text.link"> >+ </package> >+ >+ <package name="org.eclipse.jface.text.projection"> >+ </package> >+ >+ <package name="org.eclipse.jface.text.source"> >+ </package> >+ >+ <package name="org.eclipse.jface.text.templates"> >+ </package> >+ >+ <package name="org.eclipse.text.edits"> >+ </package> >+ >+ <component-depends unrestricted="true"/> >+</component> >Index: src/org/eclipse/jface/text/ILineDelimiterProvider.java >=================================================================== >RCS file: src/org/eclipse/jface/text/ILineDelimiterProvider.java >diff -N src/org/eclipse/jface/text/ILineDelimiterProvider.java >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ src/org/eclipse/jface/text/ILineDelimiterProvider.java 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,39 @@ >+/******************************************************************************* >+ * Copyright (c) 2005 IBM Corporation and others. >+ * All rights reserved. This program and the accompanying materials >+ * are made available under the terms of the Eclipse Public License v1.0 >+ * which accompanies this distribution, and is available at >+ * http://www.eclipse.org/legal/epl-v10.html >+ * >+ * Contributors: >+ * IBM Corporation - initial API and implementation >+ *******************************************************************************/ >+package org.eclipse.jface.text; >+ >+ >+/** >+ * A line delimiter provider is able to provide information about >+ * line delimiters. >+ * <p> >+ * At this time there's only support for the default line delimiter >+ * but more might come in the future through extension interfaces. >+ * </p> >+ * @since 3.1 >+ */ >+public interface ILineDelimiterProvider { >+ >+ /** >+ * Returns this line delimiter provider's default line delimiter. >+ * >+ * @return the default line delimiter or <code>null</code> if none >+ */ >+ String getDefaultLineDelimiter(); >+ >+ /** >+ * Sets this line delimiter provider's default line delimiter. >+ * >+ * @param lineDelimiter the default line delimiter >+ */ >+ void setDefaultLineDelimiter(String lineDelimiter); >+ >+}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 94987
: 21277