diff options
Diffstat (limited to 'odk/examples/DevelopersGuide/Forms/ComponentTreeTraversal.java')
-rw-r--r-- | odk/examples/DevelopersGuide/Forms/ComponentTreeTraversal.java | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/odk/examples/DevelopersGuide/Forms/ComponentTreeTraversal.java b/odk/examples/DevelopersGuide/Forms/ComponentTreeTraversal.java index 60f46b54eca1..6501120d82f2 100644 --- a/odk/examples/DevelopersGuide/Forms/ComponentTreeTraversal.java +++ b/odk/examples/DevelopersGuide/Forms/ComponentTreeTraversal.java @@ -2,7 +2,7 @@ * * The Contents of this file are made available subject to the terms of * the BSD license. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * All rights reserved. * @@ -29,7 +29,7 @@ * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR * TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - * + * *************************************************************************/ import com.sun.star.uno.*; @@ -60,9 +60,9 @@ class ComponentTreeTraversal implements IFormComponentAction { // step down the tree, if possible XServiceInfo xSI = UNO.queryServiceInfo( xContainer ); - if ( null != xSI - && ( xSI.supportsService( "com.sun.star.form.FormComponents" ) - || xSI.supportsService( "com.sun.star.form.component.GridControl" ) + if ( null != xSI + && ( xSI.supportsService( "com.sun.star.form.FormComponents" ) + || xSI.supportsService( "com.sun.star.form.component.GridControl" ) ) ) { @@ -77,8 +77,8 @@ class ComponentTreeTraversal implements IFormComponentAction public void handle( Object aFormComponent ) throws com.sun.star.uno.Exception { XIndexContainer xCont = UNO.queryIndexContainer( aFormComponent ); - if ( ( null != xCont ) - && shouldStepInto( xCont ) + if ( ( null != xCont ) + && shouldStepInto( xCont ) ) { for ( int i=0; i<xCont.getCount(); ++i ) |