_XFramesSupplier.java (ef39d40d) | _XFramesSupplier.java (bb6af6bc) |
---|---|
1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 70 unchanged lines hidden (view full) --- 79 fr = null; 80 try { 81 fr = (XFrame) AnyConverter.toObject( 82 new Type(XFrame.class),frames.getByIndex(i)); 83 } catch (com.sun.star.lang.IllegalArgumentException iae) { 84 log.println("Can't convert any"); 85 } 86 } catch (com.sun.star.lang.WrappedTargetException e) { | 1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 70 unchanged lines hidden (view full) --- 79 fr = null; 80 try { 81 fr = (XFrame) AnyConverter.toObject( 82 new Type(XFrame.class),frames.getByIndex(i)); 83 } catch (com.sun.star.lang.IllegalArgumentException iae) { 84 log.println("Can't convert any"); 85 } 86 } catch (com.sun.star.lang.WrappedTargetException e) { |
87 log.println("Exception occured while calling getByIndex() method :") ; | 87 log.println("Exception occurred while calling getByIndex() method :") ; |
88 e.printStackTrace(log) ; 89 return; 90 } catch (com.sun.star.lang.IndexOutOfBoundsException e) { | 88 e.printStackTrace(log) ; 89 return; 90 } catch (com.sun.star.lang.IndexOutOfBoundsException e) { |
91 log.println("Exception occured while calling getByIndex() method :") ; | 91 log.println("Exception occurred while calling getByIndex() method :") ; |
92 e.printStackTrace(log) ; 93 return; 94 } 95 if (active.equals(fr)) { 96 hasActiveFrame = true ; 97 activeIdx = i ; 98 } 99 } --- 27 unchanged lines hidden (view full) --- 127 } 128 for (int i = 0; i < cnt; i++) { 129 try { 130 if (frames.getByIndex(i) == null) { 131 log.println("Frame(" + i + ") == null") ; 132 result = false ; 133 } 134 } catch (com.sun.star.lang.WrappedTargetException e) { | 92 e.printStackTrace(log) ; 93 return; 94 } 95 if (active.equals(fr)) { 96 hasActiveFrame = true ; 97 activeIdx = i ; 98 } 99 } --- 27 unchanged lines hidden (view full) --- 127 } 128 for (int i = 0; i < cnt; i++) { 129 try { 130 if (frames.getByIndex(i) == null) { 131 log.println("Frame(" + i + ") == null") ; 132 result = false ; 133 } 134 } catch (com.sun.star.lang.WrappedTargetException e) { |
135 log.println("Exception occured while calling getByIndex() method :") ; | 135 log.println("Exception occurred while calling getByIndex() method :") ; |
136 e.printStackTrace(log) ; 137 return; 138 } catch (com.sun.star.lang.IndexOutOfBoundsException e) { | 136 e.printStackTrace(log) ; 137 return; 138 } catch (com.sun.star.lang.IndexOutOfBoundsException e) { |
139 log.println("Exception occured while calling getByIndex() method :") ; | 139 log.println("Exception occurred while calling getByIndex() method :") ; |
140 e.printStackTrace(log) ; 141 return; 142 } 143 } 144 145 tRes.tested("getFrames()", result) ; 146 } 147 --- 24 unchanged lines hidden (view full) --- 172 else 173 try { 174 sFrame = (XFrame) AnyConverter.toObject( 175 new Type(XFrame.class),frames.getByIndex(1)); 176 } catch (com.sun.star.lang.IllegalArgumentException iae) { 177 log.println("Can't convert any"); 178 } 179 } catch (com.sun.star.lang.WrappedTargetException e) { | 140 e.printStackTrace(log) ; 141 return; 142 } 143 } 144 145 tRes.tested("getFrames()", result) ; 146 } 147 --- 24 unchanged lines hidden (view full) --- 172 else 173 try { 174 sFrame = (XFrame) AnyConverter.toObject( 175 new Type(XFrame.class),frames.getByIndex(1)); 176 } catch (com.sun.star.lang.IllegalArgumentException iae) { 177 log.println("Can't convert any"); 178 } 179 } catch (com.sun.star.lang.WrappedTargetException e) { |
180 log.println("Exception occured while calling getByIndex() method :") ; | 180 log.println("Exception occurred while calling getByIndex() method :") ; |
181 e.printStackTrace(log) ; 182 return; 183 } catch (com.sun.star.lang.IndexOutOfBoundsException e) { | 181 e.printStackTrace(log) ; 182 return; 183 } catch (com.sun.star.lang.IndexOutOfBoundsException e) { |
184 log.println("Exception occured while calling getByIndex() method :") ; | 184 log.println("Exception occurred while calling getByIndex() method :") ; |
185 e.printStackTrace(log) ; 186 return; 187 } 188 } else if (frames.getCount() > 0) { 189 sFrame = active ; 190 } else { 191 sFrame = null; 192 } --- 15 unchanged lines hidden --- | 185 e.printStackTrace(log) ; 186 return; 187 } 188 } else if (frames.getCount() > 0) { 189 sFrame = active ; 190 } else { 191 sFrame = null; 192 } --- 15 unchanged lines hidden --- |