Changeset 88 for trunk/org.modelica.mdt/src/org/modelica/mdt/MdtPlugin.java
- Timestamp:
- 10/25/05 11:49:11 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/org.modelica.mdt/src/org/modelica/mdt/MdtPlugin.java
r72 r88 41 41 42 42 package org.modelica.mdt; 43 43 44 import org.eclipse.core.resources.IProject; 44 45 import org.eclipse.core.resources.IProjectDescription; … … 166 167 "Internal Error", e)); 167 168 } 169 170 /** 171 * Note: This method is for internal use only. Clients should not call this method. 172 */ 173 public static Object[] concatenate(Object[] a1, Object[] a2) 174 { 175 int a1Len = 0; 176 int a2Len = 0; 177 if (a1 != null) 178 { 179 a1Len= a1.length; 180 } 181 if (a2 != null) 182 { 183 a2Len= a2.length; 184 } 185 186 Object[] res= new Object[a1Len + a2Len]; 187 System.out.println(res.getClass()); 188 189 if (a1 != null) 190 { 191 System.arraycopy(a1, 0, res, 0, a1Len); 192 } 193 if (a2 != null) 194 { 195 System.arraycopy(a2, 0, res, a1Len, a2Len); 196 } 197 return res; 198 } 168 199 }
Note: See TracChangeset
for help on using the changeset viewer.