diff options
author | Dani Megert | 2007-12-04 15:55:46 +0000 |
---|---|---|
committer | Dani Megert | 2007-12-04 15:55:46 +0000 |
commit | e3c3fd04960d3d805781b20f5a63bafff0037623 (patch) | |
tree | 385fdcef9e53d9a3a170e64dffcb89e979205001 | |
parent | b5d7c45d0c28c6d57b792b565c46824c9d9b59c0 (diff) | |
download | eclipse.platform.text-e3c3fd04960d3d805781b20f5a63bafff0037623.tar.gz eclipse.platform.text-e3c3fd04960d3d805781b20f5a63bafff0037623.tar.xz eclipse.platform.text-e3c3fd04960d3d805781b20f5a63bafff0037623.zip |
Formatting.
3 files changed, 7 insertions, 7 deletions
diff --git a/org.eclipse.jface.text/src/org/eclipse/jface/text/DefaultDocumentAdapter.java b/org.eclipse.jface.text/src/org/eclipse/jface/text/DefaultDocumentAdapter.java index 6226885be20..38764f7be03 100644 --- a/org.eclipse.jface.text/src/org/eclipse/jface/text/DefaultDocumentAdapter.java +++ b/org.eclipse.jface.text/src/org/eclipse/jface/text/DefaultDocumentAdapter.java @@ -110,7 +110,7 @@ class DefaultDocumentAdapter implements IDocumentAdapter, IDocumentListener, IDo */ public void addTextChangeListener(TextChangeListener listener) { Assert.isNotNull(listener); - if (! fTextChangeListeners.contains(listener)) + if (!fTextChangeListeners.contains(listener)) fTextChangeListeners.add(listener); } 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 6605362faca..177bd4528c3 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 @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2000, 2006 IBM Corporation and others. + * Copyright (c) 2000, 2007 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 @@ -118,7 +118,7 @@ public class DocumentCommand { private boolean isEqual(Object object) { if (object == this) return true; - if (! (object instanceof Command)) + if (!(object instanceof Command)) return false; final Command command= (Command) object; return command.fOffset == fOffset && command.fLength == fLength; @@ -206,7 +206,7 @@ public class DocumentCommand { */ public Object next() { - if (! hasNext()) + if (!hasNext()) throw new NoSuchElementException(); if (fCommand == null) @@ -221,10 +221,10 @@ public class DocumentCommand { final Command command= (Command) fIterator.next(); final int compareValue= command.compareTo(fCommand); - if ((compareValue < 0) ^ ! fForward) { + if ((compareValue < 0) ^ !fForward) { return command; - } else if ((compareValue > 0) ^ ! fForward) { + } else if ((compareValue > 0) ^ !fForward) { final Command tempCommand= fCommand; fCommand= command; return tempCommand; diff --git a/org.eclipse.jface.text/src/org/eclipse/jface/text/information/InformationPresenter.java b/org.eclipse.jface.text/src/org/eclipse/jface/text/information/InformationPresenter.java index 52c6cf9a4f0..3d09082d81a 100644 --- a/org.eclipse.jface.text/src/org/eclipse/jface/text/information/InformationPresenter.java +++ b/org.eclipse.jface.text/src/org/eclipse/jface/text/information/InformationPresenter.java @@ -111,7 +111,7 @@ public class InformationPresenter extends AbstractInformationControlManager impl return; fIsActive= true; - if (fSubjectControl != null && ! fSubjectControl.isDisposed()) { + if (fSubjectControl != null && !fSubjectControl.isDisposed()) { fSubjectControl.addControlListener(this); fSubjectControl.addMouseListener(this); fSubjectControl.addFocusListener(this); |