Code example for File

Methods: equals, exists

0
                updateLocationPathField(null); 
            } 
        } else if (source == mLocationText) {
            mValues.projectLocationModifiedByUser = true;
            if (!mValues.useDefaultLocation) {
                File f = new File(mLocationText.getText().trim());
                if (f.exists() && f.isDirectory() && !f.equals(mValues.projectLocation)) {
                    mValues.projectLocation = f;
                    updateLocationPathField(mValues.projectLocation.getPath());
                } 
            } 
        } 
 
        validatePage(); 
    } 
 
    private void onProjectFieldModified() { 
        mValues.projectName = mProjectNameText.getText().trim();
        mValues.projectNameModifiedByUser = true;
 
        if (!mValues.applicationNameModifiedByUser) {