Cool.... the fix was included in the patch I sent you.
On 31/03/2008, at 8:07 AM, Mike Schrag wrote:
> bug
>
> On Mar 30, 2008, at 1:33 AM, Lachlan Deck wrote:
>
>> Just perusing things, and noticed this...
>>
>> Any reason why this method returns the file using the first index
>> of '.' rather than the last? Or why does it not just use
>> _resource.getFileExtension?
>>
>> package org.objectstyle.wolips.eomodeler.core.utils;
>>
>> import org.eclipse.core.resources.IResource;
>>
>> public class MiscUtils {
>> public static String getFileNameWithoutExtension(IResource
>> _resource) {
>> String fileName = _resource.getName();
>> String fileExtension = _resource.getFileExtension();
>> if (fileExtension != null) {
>> fileName = fileName.substring(0, fileName.indexOf('.'));
>> }
>> return fileName;
>> }
>> }
>>
>> with regards,
>> --
>>
>> Lachlan Deck
>>
>>
>>
>
>
with regards,
--Lachlan Deck
This archive was generated by hypermail 2.0.0 : Sun Mar 30 2008 - 18:44:03 EDT