Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDani Megert2009-02-16 04:36:56 -0500
committerDani Megert2009-02-16 04:36:56 -0500
commit57ef5adfaeeb9ff366736980fb6442d3dbb131fd (patch)
tree997e766c43874698055ff18c5f76786a3e12f412
parentcde85321bc31ea7fe1326cdf774e4ec79eb9e616 (diff)
downloadeclipse.platform.text-57ef5adfaeeb9ff366736980fb6442d3dbb131fd.tar.gz
eclipse.platform.text-57ef5adfaeeb9ff366736980fb6442d3dbb131fd.tar.xz
eclipse.platform.text-57ef5adfaeeb9ff366736980fb6442d3dbb131fd.zip
Removed unused code.
-rw-r--r--org.eclipse.core.filebuffers/src/org/eclipse/core/internal/filebuffers/ExtensionsRegistry.java9
-rw-r--r--org.eclipse.jface.text/src/org/eclipse/jface/text/DocumentCommand.java9
-rw-r--r--org.eclipse.search/new search/org/eclipse/search2/internal/ui/InternalSearchUI.java8
-rw-r--r--org.eclipse.search/search/org/eclipse/search/internal/ui/text/TextSearchPage.java15
-rw-r--r--org.eclipse.ui.editors/src/org/eclipse/ui/internal/editors/text/HyperlinkDetectorsConfigurationBlock.java12
-rwxr-xr-xorg.eclipse.ui.editors/src/org/eclipse/ui/internal/editors/text/LinkedModeConfigurationBlock.java11
6 files changed, 7 insertions, 57 deletions
diff --git a/org.eclipse.core.filebuffers/src/org/eclipse/core/internal/filebuffers/ExtensionsRegistry.java b/org.eclipse.core.filebuffers/src/org/eclipse/core/internal/filebuffers/ExtensionsRegistry.java
index 58bd8977c..be8946533 100644
--- a/org.eclipse.core.filebuffers/src/org/eclipse/core/internal/filebuffers/ExtensionsRegistry.java
+++ b/org.eclipse.core.filebuffers/src/org/eclipse/core/internal/filebuffers/ExtensionsRegistry.java
@@ -64,15 +64,6 @@ public class ExtensionsRegistry {
}
/**
- * Return the adapted content type.
- *
- * @return the content type
- */
- public IContentType getContentType() {
- return fContentType;
- }
-
- /**
* Return the id of the adapted content type.
*
* @return the id
diff --git a/org.eclipse.jface.text/src/org/eclipse/jface/text/DocumentCommand.java b/org.eclipse.jface.text/src/org/eclipse/jface/text/DocumentCommand.java
index 177bd4528..c74148d5e 100644
--- a/org.eclipse.jface.text/src/org/eclipse/jface/text/DocumentCommand.java
+++ b/org.eclipse.jface.text/src/org/eclipse/jface/text/DocumentCommand.java
@@ -68,15 +68,6 @@ public class DocumentCommand {
}
/**
- * Returns the length delta for this command.
- *
- * @return the length delta for this command
- */
- public int getDeltaLength() {
- return (fText == null ? 0 : fText.length()) - fLength;
- }
-
- /**
* Executes the document command on the specified document.
*
* @param document the document on which to execute the command.
diff --git a/org.eclipse.search/new search/org/eclipse/search2/internal/ui/InternalSearchUI.java b/org.eclipse.search/new search/org/eclipse/search2/internal/ui/InternalSearchUI.java
index 0df57259e..86c384e17 100644
--- a/org.eclipse.search/new search/org/eclipse/search2/internal/ui/InternalSearchUI.java
+++ b/org.eclipse.search/new search/org/eclipse/search2/internal/ui/InternalSearchUI.java
@@ -58,12 +58,10 @@ public class InternalSearchUI {
private class SearchJobRecord {
public ISearchQuery query;
public Job job;
- public boolean background;
public boolean isRunning;
- public SearchJobRecord(ISearchQuery job, boolean bg) {
+ public SearchJobRecord(ISearchQuery job) {
this.query= job;
- this.background= bg;
this.isRunning= false;
this.job= null;
}
@@ -168,7 +166,7 @@ public class InternalSearchUI {
addQuery(query);
- SearchJobRecord sjr= new SearchJobRecord(query, true);
+ SearchJobRecord sjr= new SearchJobRecord(query);
fSearchJobs.put(query, sjr);
Job job= new InternalSearchJob(sjr);
@@ -204,7 +202,7 @@ public class InternalSearchUI {
addQuery(query);
- SearchJobRecord sjr= new SearchJobRecord(query, false);
+ SearchJobRecord sjr= new SearchJobRecord(query);
fSearchJobs.put(query, sjr);
if (context == null)
diff --git a/org.eclipse.search/search/org/eclipse/search/internal/ui/text/TextSearchPage.java b/org.eclipse.search/search/org/eclipse/search/internal/ui/text/TextSearchPage.java
index 375457be8..3c8998766 100644
--- a/org.eclipse.search/search/org/eclipse/search/internal/ui/text/TextSearchPage.java
+++ b/org.eclipse.search/search/org/eclipse/search/internal/ui/text/TextSearchPage.java
@@ -182,21 +182,6 @@ public class TextSearchPage extends DialogPage implements ISearchPage, IReplaceP
}
}
- public String getPattern() {
- return textPattern;
- }
-
- public boolean isCaseSensitive() {
- return isCaseSensitive;
- }
-
- public boolean isRegExSearch() {
- return isRegExSearch;
- }
-
- public boolean isStringMatcherPattern() {
- return !isRegExSearch;
- }
}
private static class TextSearchPageInput extends TextSearchInput {
diff --git a/org.eclipse.ui.editors/src/org/eclipse/ui/internal/editors/text/HyperlinkDetectorsConfigurationBlock.java b/org.eclipse.ui.editors/src/org/eclipse/ui/internal/editors/text/HyperlinkDetectorsConfigurationBlock.java
index c32cb1b45..351486288 100644
--- a/org.eclipse.ui.editors/src/org/eclipse/ui/internal/editors/text/HyperlinkDetectorsConfigurationBlock.java
+++ b/org.eclipse.ui.editors/src/org/eclipse/ui/internal/editors/text/HyperlinkDetectorsConfigurationBlock.java
@@ -75,20 +75,13 @@ class HyperlinkDetectorsConfigurationBlock implements IPreferenceConfigurationBl
private static final class ListItem {
final String id;
final String name;
- final String description;
- final String targetId;
final String targetName;
- final String targetDescription;
- String stateMask;
String modifierKeys= ""; //$NON-NLS-1$
- ListItem(String id, String name, String description, String targetId, String targetName, String targetDescription, String modifierKeys) {
+ ListItem(String id, String name, String targetName, String modifierKeys) {
this.id= id;
this.name= name;
- this.description= description;
- this.targetId= targetId;
this.targetName= targetName;
- this.targetDescription= targetDescription;
this.modifierKeys= modifierKeys;
}
}
@@ -537,8 +530,7 @@ class HyperlinkDetectorsConfigurationBlock implements IPreferenceConfigurationBl
int stateMask= fStore.getInt(desc.getId() + HyperlinkDetectorDescriptor.STATE_MASK_POSTFIX);
String modifierKeys= getModifierString(stateMask);
- listModelItems.add(new ListItem(
- desc.getId(), desc.getName(), desc.getDescription(), desc.getTargetId(), target.getName(), target.getDescription(), modifierKeys));
+ listModelItems.add(new ListItem(desc.getId(), desc.getName(), target.getName(), modifierKeys));
}
Comparator comparator= new Comparator() {
diff --git a/org.eclipse.ui.editors/src/org/eclipse/ui/internal/editors/text/LinkedModeConfigurationBlock.java b/org.eclipse.ui.editors/src/org/eclipse/ui/internal/editors/text/LinkedModeConfigurationBlock.java
index 2bd1a2e61..8297bfdaa 100755
--- a/org.eclipse.ui.editors/src/org/eclipse/ui/internal/editors/text/LinkedModeConfigurationBlock.java
+++ b/org.eclipse.ui.editors/src/org/eclipse/ui/internal/editors/text/LinkedModeConfigurationBlock.java
@@ -25,7 +25,6 @@ import org.eclipse.swt.events.SelectionEvent;
import org.eclipse.swt.events.SelectionListener;
import org.eclipse.swt.graphics.FontMetrics;
import org.eclipse.swt.graphics.GC;
-import org.eclipse.swt.graphics.Image;
import org.eclipse.swt.graphics.RGB;
import org.eclipse.swt.layout.GridData;
import org.eclipse.swt.layout.GridLayout;
@@ -76,24 +75,18 @@ class LinkedModeConfigurationBlock implements IPreferenceConfigurationBlock {
private static final class ListItem {
final String label;
- final Image image;
final String colorKey;
final String highlightKey;
- final String overviewRulerKey;
final String textStyleKey;
final String textKey;
- final String verticalRulerKey;
final List validStyles;
- ListItem(String label, Image image, String colorKey, String textKey, String overviewRulerKey, String highlightKey, String verticalRulerKey, String textStyleKey, List validStyles) {
+ ListItem(String label, String colorKey, String textKey, String highlightKey, String textStyleKey, List validStyles) {
this.label= label;
- this.image= image;
this.colorKey= colorKey;
this.highlightKey= highlightKey;
- this.overviewRulerKey= overviewRulerKey;
this.textKey= textKey;
this.textStyleKey= textStyleKey;
- this.verticalRulerKey= verticalRulerKey;
this.validStyles= validStyles;
}
}
@@ -193,7 +186,7 @@ class LinkedModeConfigurationBlock implements IPreferenceConfigurationBlock {
if (isLinkedModeAnnotation(info)) {
String label= info.getPreferenceLabel();
List styles= getStyles(info.getAnnotationType());
- listModelItems.add(new ListItem(label, null, info.getColorPreferenceKey(), info.getTextPreferenceKey(), info.getOverviewRulerPreferenceKey(), info.getHighlightPreferenceKey(), info.getVerticalRulerPreferenceKey(), info.getTextStylePreferenceKey(), styles));
+ listModelItems.add(new ListItem(label, info.getColorPreferenceKey(), info.getTextPreferenceKey(), info.getHighlightPreferenceKey(), info.getTextStylePreferenceKey(), styles));
}
}

Back to the top