Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--org.eclipse.jface.text/src/org/eclipse/jface/text/formatter/ContextBasedFormattingStrategy.java43
-rw-r--r--org.eclipse.jface.text/src/org/eclipse/jface/text/formatter/FormattingContextProperties.java29
2 files changed, 0 insertions, 72 deletions
diff --git a/org.eclipse.jface.text/src/org/eclipse/jface/text/formatter/ContextBasedFormattingStrategy.java b/org.eclipse.jface.text/src/org/eclipse/jface/text/formatter/ContextBasedFormattingStrategy.java
index ec60fb326f1..0f2bec61a2b 100644
--- a/org.eclipse.jface.text/src/org/eclipse/jface/text/formatter/ContextBasedFormattingStrategy.java
+++ b/org.eclipse.jface.text/src/org/eclipse/jface/text/formatter/ContextBasedFormattingStrategy.java
@@ -14,8 +14,6 @@ package org.eclipse.jface.text.formatter;
import java.util.LinkedList;
import java.util.Map;
-import org.eclipse.jface.text.source.ISourceViewer;
-
/**
* Formatting strategy for context based content formatting.
* <p>
@@ -32,31 +30,6 @@ public abstract class ContextBasedFormattingStrategy implements IFormattingStrat
/** The list of preferences for initiated the formatting steps */
private final LinkedList fPreferences= new LinkedList();
- /** The source viewer to operate on */
- private ISourceViewer fViewer;
-
- /**
- * Creates a new context based formatting strategy.
- */
- public ContextBasedFormattingStrategy() {
- }
-
- /**
- * Creates a new context based formatting strategy.
- *
- * TODO: remove
- *
- * @param viewer
- * The source viewer to operate on
- *
- * @deprecated Use {@link ContextBasedFormattingStrategy#ContextBasedFormattingStrategy()}
- * instead. Also set and use the property value of {@link FormattingContextProperties#CONTEXT_MEDIUM})
- * in order to access the document. Consider migration to {@link MultiPassContentFormatter}. To be removed.
- */
- public ContextBasedFormattingStrategy(final ISourceViewer viewer) {
- fViewer= viewer;
- }
-
/*
* @see org.eclipse.jface.text.formatter.IFormattingStrategyExtension#format()
*/
@@ -102,20 +75,4 @@ public abstract class ContextBasedFormattingStrategy implements IFormattingStrat
public final Map getPreferences() {
return fCurrentPreferences;
}
-
- /**
- * Returns the source viewer where the formatting happens.
- *
- * TODO: remove
- *
- * @return The source viewer where the formatting happens.
- *
- * @deprecated Set and use property value of
- * {@link FormattingContextProperties#CONTEXT_MEDIUM}) in
- * order to access the document. Consider migration to
- * {@link MultiPassContentFormatter}. To be removed.
- */
- public final ISourceViewer getViewer() {
- return fViewer;
- }
}
diff --git a/org.eclipse.jface.text/src/org/eclipse/jface/text/formatter/FormattingContextProperties.java b/org.eclipse.jface.text/src/org/eclipse/jface/text/formatter/FormattingContextProperties.java
index fb9118615b6..716583df7c4 100644
--- a/org.eclipse.jface.text/src/org/eclipse/jface/text/formatter/FormattingContextProperties.java
+++ b/org.eclipse.jface.text/src/org/eclipse/jface/text/formatter/FormattingContextProperties.java
@@ -32,21 +32,6 @@ public class FormattingContextProperties {
public static final String CONTEXT_DOCUMENT= "formatting.context.document"; //$NON-NLS-1$
/**
- * Property key of the indentation property. The property must implement
- * <code>java.lang#String</code>.
- * <p>
- * Value: <code>"formatting.context.indentation"</code>
- *
- * TODO: remove
- *
- * @deprecated Use the document (set and use property value of
- * {@link FormattingContextProperties#CONTEXT_MEDIUM}) to compute
- * the indentation in the formatting strategy. Consider migration to
- * {@link MultiPassContentFormatter}. To be removed.
- */
- public static final String CONTEXT_INDENTATION= "formatting.context.indentation"; //$NON-NLS-1$
-
- /**
* Property key of the partition property. The property must implement
* <code>org.eclipse.jface.text#TypedPosition</code>.
* <p>
@@ -55,20 +40,6 @@ public class FormattingContextProperties {
public static final String CONTEXT_PARTITION= "formatting.context.partition"; //$NON-NLS-1$
/**
- * Property key of the positions property. The property must implement
- * <code>int[]</code>.
- * <p>
- * Value: <code>"formatting.context.positions"</code>
- *
- * TODO: remove
- *
- * @deprecated Apply changes directly on the document (set and use
- * the property value of {@link FormattingContextProperties#CONTEXT_MEDIUM}).
- * Consider migration to {@link MultiPassContentFormatter}.
- */
- public static final String CONTEXT_POSITIONS= "formatting.context.positions"; //$NON-NLS-1$
-
- /**
* Property key of the preferences property. The property must implement
* <code>java.util#Map</code>.
* <p>

Back to the top