Lines 127-139
Link Here
|
127 |
return org.openide.util.NbBundle.getMessage(BasicProjectInfoPanel.class, "LBL_BasicProjectInfoPanel_Error_8"); |
127 |
return org.openide.util.NbBundle.getMessage(BasicProjectInfoPanel.class, "LBL_BasicProjectInfoPanel_Error_8"); |
128 |
} |
128 |
} |
129 |
Project p; |
129 |
Project p; |
130 |
if ((p=FileOwnerQuery.getOwner(getProjectFolder().toURI()))!=null) { |
130 |
File projectFolder = getProjectFolder(); |
|
|
131 |
if ((p=FileOwnerQuery.getOwner(projectFolder.toURI()))!=null && projectFolder != null && projectFolder.equals(FileUtil.toFile(p.getProjectDirectory()))) { |
131 |
ProjectInformation pi = (ProjectInformation) p.getLookup().lookup(ProjectInformation.class); |
132 |
ProjectInformation pi = (ProjectInformation) p.getLookup().lookup(ProjectInformation.class); |
132 |
String displayName = (pi == null ? "" : pi.getDisplayName()); //NOI18N |
133 |
String displayName = (pi == null ? "" : pi.getDisplayName()); //NOI18N |
133 |
return MessageFormat.format(org.openide.util.NbBundle.getMessage(BasicProjectInfoPanel.class, "LBL_BasicProjectInfoPanel_Error_9"), |
134 |
return MessageFormat.format(org.openide.util.NbBundle.getMessage(BasicProjectInfoPanel.class, "LBL_BasicProjectInfoPanel_Error_9"), |
134 |
new Object[] {displayName}); |
135 |
new Object[] {displayName}); |
135 |
} |
136 |
} |
136 |
if ((p=FileOwnerQuery.getOwner(getProjectLocation().toURI()))!=null) { |
137 |
File projectLocation = getProjectFolder(); |
|
|
138 |
if ((p=FileOwnerQuery.getOwner(projectLocation.toURI()))!=null && projectLocation != null && projectLocation.equals(FileUtil.toFile(p.getProjectDirectory()))) { |
137 |
ProjectInformation pi = (ProjectInformation) p.getLookup().lookup(ProjectInformation.class); |
139 |
ProjectInformation pi = (ProjectInformation) p.getLookup().lookup(ProjectInformation.class); |
138 |
String displayName = (pi == null ? "" : pi.getDisplayName()); //NOI18N |
140 |
String displayName = (pi == null ? "" : pi.getDisplayName()); //NOI18N |
139 |
return MessageFormat.format(org.openide.util.NbBundle.getMessage(BasicProjectInfoPanel.class, "LBL_BasicProjectInfoPanel_Error_10"), |
141 |
return MessageFormat.format(org.openide.util.NbBundle.getMessage(BasicProjectInfoPanel.class, "LBL_BasicProjectInfoPanel_Error_10"), |