Changeset 1298

Show
Ignore:
Timestamp:
11/09/07 17:14:02 (1 year ago)
Author:
koshi
Message:

improved icon path.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • org.jalcedo.tools/trunk/org.jalcedo.tools.icon.manager.ui/src/org/jalcedo/tools/icon/manager/ui/internal/wizard/EditIconWizardPage.java

    r1297 r1298  
    7676 */ 
    7777public class EditIconWizardPage extends WizardPage { 
     78    private static String ICON_DIR_NAME = "icons/"; //$NON-NLS-1$ 
    7879    private static String FILE_FILTER = ".svn"; //$NON-NLS-1$ 
    7980    private int AREA_SIZE_HEIGHT = 300; 
     
    578579                Icon icon = (Icon) element; 
    579580                if(icon.getWidth()*icon.getHeight() != 0){ 
    580                     return Messages.getString("EditIconWizardPage.path")+icon.getPath().substring(0, icon.getPath().lastIndexOf(File.separator))+"\n" //$NON-NLS-1$ 
     581                    return Messages.getString("EditIconWizardPage.path")+icon.getPath().substring(ICON_DIR_NAME.length(), icon.getPath().lastIndexOf("/"))+"\n" //$NON-NLS-1$ 
    581582                        + Messages.getString("EditIconWizardPage.size")+icon.getWidth()+"*"+icon.getHeight()+"\n" //$NON-NLS-1$ 
    582583                        + Messages.getString("EditIconWizardPage.type")+(icon.getName().substring(icon.getName().lastIndexOf('.')+1)).toUpperCase(); //$NON-NLS-1$