aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorzzhongwei2013-01-21 04:29:06 (EST)
committerzzhongwei2013-01-21 04:29:06 (EST)
commit423a0aeceedee4f3abc30bc83442ccd520291ddb (patch)
tree0f1401aee1df936bfb9b1a584f0f7dfb544a0645
parentaafe067647fd4e1a27632dfff4293ba845fd1e5b (diff)
downloadorg.eclipse.pdt-423a0aeceedee4f3abc30bc83442ccd520291ddb.zip
org.eclipse.pdt-423a0aeceedee4f3abc30bc83442ccd520291ddb.tar.gz
org.eclipse.pdt-423a0aeceedee4f3abc30bc83442ccd520291ddb.tar.bz2
revert code for performance reason
-rw-r--r--plugins/org.eclipse.php.ui/src/org/eclipse/php/internal/ui/editor/highlighters/FieldHighlighting.java21
-rw-r--r--plugins/org.eclipse.php.ui/src/org/eclipse/php/internal/ui/editor/highlighters/MethodHighlighting.java22
2 files changed, 2 insertions, 41 deletions
diff --git a/plugins/org.eclipse.php.ui/src/org/eclipse/php/internal/ui/editor/highlighters/FieldHighlighting.java b/plugins/org.eclipse.php.ui/src/org/eclipse/php/internal/ui/editor/highlighters/FieldHighlighting.java
index 891e588..e052f99 100644
--- a/plugins/org.eclipse.php.ui/src/org/eclipse/php/internal/ui/editor/highlighters/FieldHighlighting.java
+++ b/plugins/org.eclipse.php.ui/src/org/eclipse/php/internal/ui/editor/highlighters/FieldHighlighting.java
@@ -64,26 +64,7 @@ public class FieldHighlighting extends AbstractSemanticHighlighting {
public boolean visit(Variable var) {
if (visitField > 0 && !var.isDollared()) {
-
- IModelElement[] elements = null;
- boolean processed = false;
- try {
- elements = (getSourceModule()).codeSelect(var.getStart(),
- var.getLength());
- if (elements != null && elements.length > 0) {
- processed = true;
- for (IModelElement iModelElement : elements) {
- if ((iModelElement instanceof SourceField)) {
- highlight(var);
- break;
- }
- }
- }
- } catch (ModelException e) {
- }
- if (!processed) {
- highlight(var);
- }
+ highlight(var);
}
return true;
}
diff --git a/plugins/org.eclipse.php.ui/src/org/eclipse/php/internal/ui/editor/highlighters/MethodHighlighting.java b/plugins/org.eclipse.php.ui/src/org/eclipse/php/internal/ui/editor/highlighters/MethodHighlighting.java
index e26ba49..d3f7074 100644
--- a/plugins/org.eclipse.php.ui/src/org/eclipse/php/internal/ui/editor/highlighters/MethodHighlighting.java
+++ b/plugins/org.eclipse.php.ui/src/org/eclipse/php/internal/ui/editor/highlighters/MethodHighlighting.java
@@ -50,27 +50,7 @@ public class MethodHighlighting extends AbstractSemanticHighlighting {
*/
private void checkDispatch(ASTNode node) {
if (node.getType() == ASTNode.IDENTIFIER) {
- // ((Identifier)node).resolveBinding()
- IModelElement[] elements = null;
- boolean processed = false;
- try {
- elements = (getSourceModule()).codeSelect(node.getStart(),
- node.getLength());
- if (elements != null && elements.length > 0) {
- processed = true;
- for (IModelElement iModelElement : elements) {
- if (iModelElement instanceof SourceMethod) {
- highlight(node);
- break;
- }
- }
- }
- } catch (ModelException e) {
- }
- if (!processed) {
- highlight(node);
- }
-
+ highlight(node);
}
if (node.getType() == ASTNode.VARIABLE) {
Variable id = (Variable) node;