Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNitin Dahyabhai2019-05-20 17:25:35 -0400
committerNitin Dahyabhai2019-05-20 17:25:35 -0400
commit7355475a97cd6d959641da06328d0c15b478fe6b (patch)
treeba66b7dff911ce35f9f47ad24d5e315303177fcb
parent935188c385be98636c9cde110bf090066923fb14 (diff)
downloadwebtools.sourceediting-7355475a97cd6d959641da06328d0c15b478fe6b.tar.gz
webtools.sourceediting-7355475a97cd6d959641da06328d0c15b478fe6b.tar.xz
webtools.sourceediting-7355475a97cd6d959641da06328d0c15b478fe6b.zip
[495132] performance optimizations, no more magic 0 value
-rw-r--r--web/bundles/org.eclipse.wst.html.ui/src/org/eclipse/wst/html/ui/internal/contentassist/resources/CSSWebResourcesCompletionProposalComputer.java4
-rw-r--r--web/bundles/org.eclipse.wst.html.ui/src/org/eclipse/wst/html/ui/internal/contentassist/resources/HrefWebResourcesCompletionProposalComputer.java4
-rw-r--r--web/bundles/org.eclipse.wst.html.ui/src/org/eclipse/wst/html/ui/internal/contentassist/resources/ImageWebResourcesCompletionProposalComputer.java4
-rw-r--r--web/bundles/org.eclipse.wst.html.ui/src/org/eclipse/wst/html/ui/internal/contentassist/resources/ScriptWebResourcesCompletionProposalComputer.java4
4 files changed, 8 insertions, 8 deletions
diff --git a/web/bundles/org.eclipse.wst.html.ui/src/org/eclipse/wst/html/ui/internal/contentassist/resources/CSSWebResourcesCompletionProposalComputer.java b/web/bundles/org.eclipse.wst.html.ui/src/org/eclipse/wst/html/ui/internal/contentassist/resources/CSSWebResourcesCompletionProposalComputer.java
index bccbf8f68..9c9e634f4 100644
--- a/web/bundles/org.eclipse.wst.html.ui/src/org/eclipse/wst/html/ui/internal/contentassist/resources/CSSWebResourcesCompletionProposalComputer.java
+++ b/web/bundles/org.eclipse.wst.html.ui/src/org/eclipse/wst/html/ui/internal/contentassist/resources/CSSWebResourcesCompletionProposalComputer.java
@@ -43,9 +43,9 @@ public class CSSWebResourcesCompletionProposalComputer extends
if (proxy.getType() == IResource.FILE && fileMatcher.matches(proxy.getName())) {
res.add(proxy.requestFullPath());
}
- return true;
+ return !proxy.isDerived();
}
- }, 0);
+ }, IResource.NONE);
} catch (CoreException ex) {
HTMLUIPlugin.getDefault().getLog().log(new Status(IStatus.ERROR, HTMLUIPlugin.ID, ex.getMessage(), ex));
}
diff --git a/web/bundles/org.eclipse.wst.html.ui/src/org/eclipse/wst/html/ui/internal/contentassist/resources/HrefWebResourcesCompletionProposalComputer.java b/web/bundles/org.eclipse.wst.html.ui/src/org/eclipse/wst/html/ui/internal/contentassist/resources/HrefWebResourcesCompletionProposalComputer.java
index 687433922..1e6ffc9bd 100644
--- a/web/bundles/org.eclipse.wst.html.ui/src/org/eclipse/wst/html/ui/internal/contentassist/resources/HrefWebResourcesCompletionProposalComputer.java
+++ b/web/bundles/org.eclipse.wst.html.ui/src/org/eclipse/wst/html/ui/internal/contentassist/resources/HrefWebResourcesCompletionProposalComputer.java
@@ -44,9 +44,9 @@ public class HrefWebResourcesCompletionProposalComputer extends AbstractWebResou
if (proxy.getType() == IResource.FILE && (proxy.getName().endsWith(".txt") || fileMatcher.matches(proxy.getName()))) {
res.add(proxy.requestFullPath());
}
- return true;
+ return !proxy.isDerived();
}
- }, 0);
+ }, IResource.NONE);
}
catch (CoreException ex) {
HTMLUIPlugin.getDefault().getLog().log(new Status(IStatus.ERROR, HTMLUIPlugin.ID, ex.getMessage(), ex));
diff --git a/web/bundles/org.eclipse.wst.html.ui/src/org/eclipse/wst/html/ui/internal/contentassist/resources/ImageWebResourcesCompletionProposalComputer.java b/web/bundles/org.eclipse.wst.html.ui/src/org/eclipse/wst/html/ui/internal/contentassist/resources/ImageWebResourcesCompletionProposalComputer.java
index 78c614708..238656962 100644
--- a/web/bundles/org.eclipse.wst.html.ui/src/org/eclipse/wst/html/ui/internal/contentassist/resources/ImageWebResourcesCompletionProposalComputer.java
+++ b/web/bundles/org.eclipse.wst.html.ui/src/org/eclipse/wst/html/ui/internal/contentassist/resources/ImageWebResourcesCompletionProposalComputer.java
@@ -75,9 +75,9 @@ public class ImageWebResourcesCompletionProposalComputer extends
if (proxy.getType() == IResource.FILE && fileMatcher.matches(proxy.getName())) {
res.add(proxy.requestFullPath());
}
- return true;
+ return !proxy.isDerived();
}
- }, 0);
+ }, IResource.NONE);
} catch (CoreException ex) {
HTMLUIPlugin.getDefault().getLog().log(new Status(IStatus.ERROR, HTMLUIPlugin.ID, ex.getMessage(), ex));
}
diff --git a/web/bundles/org.eclipse.wst.html.ui/src/org/eclipse/wst/html/ui/internal/contentassist/resources/ScriptWebResourcesCompletionProposalComputer.java b/web/bundles/org.eclipse.wst.html.ui/src/org/eclipse/wst/html/ui/internal/contentassist/resources/ScriptWebResourcesCompletionProposalComputer.java
index eca7f6b40..6f45a3fa2 100644
--- a/web/bundles/org.eclipse.wst.html.ui/src/org/eclipse/wst/html/ui/internal/contentassist/resources/ScriptWebResourcesCompletionProposalComputer.java
+++ b/web/bundles/org.eclipse.wst.html.ui/src/org/eclipse/wst/html/ui/internal/contentassist/resources/ScriptWebResourcesCompletionProposalComputer.java
@@ -43,9 +43,9 @@ public class ScriptWebResourcesCompletionProposalComputer extends
if (proxy.getType() == IResource.FILE && fileMatcher.matches(proxy.getName())) {
res.add(proxy.requestFullPath());
}
- return true;
+ return !proxy.isDerived();
}
- }, 0);
+ }, IResource.NONE);
} catch (CoreException ex) {
HTMLUIPlugin.getDefault().getLog().log(new Status(IStatus.ERROR, HTMLUIPlugin.ID, ex.getMessage(), ex));
}

Back to the top