Author: sflanigan
Date: 2009-04-02 23:31:29 -0400 (Thu, 02 Apr 2009)
New Revision: 14476
Modified:
trunk/archives/plugins/org.jboss.ide.eclipse.archives.ui/src/main/org/jboss/ide/eclipse/archives/ui/providers/ArchivesActionProvider.java
trunk/archives/plugins/org.jboss.ide.eclipse.archives.ui/src/main/org/jboss/ide/eclipse/archives/ui/wizards/pages/ArchiveInfoWizardPage.java
Log:
JBIDE-3557 Eliminate false positives from "Find broken externalized strings" by
referencing NLS.bind() directly.
Modified:
trunk/archives/plugins/org.jboss.ide.eclipse.archives.ui/src/main/org/jboss/ide/eclipse/archives/ui/providers/ArchivesActionProvider.java
===================================================================
---
trunk/archives/plugins/org.jboss.ide.eclipse.archives.ui/src/main/org/jboss/ide/eclipse/archives/ui/providers/ArchivesActionProvider.java 2009-04-03
03:16:32 UTC (rev 14475)
+++
trunk/archives/plugins/org.jboss.ide.eclipse.archives.ui/src/main/org/jboss/ide/eclipse/archives/ui/providers/ArchivesActionProvider.java 2009-04-03
03:31:29 UTC (rev 14476)
@@ -27,6 +27,7 @@
import org.eclipse.jface.resource.ImageDescriptor;
import org.eclipse.jface.viewers.IStructuredSelection;
import org.eclipse.jface.wizard.WizardDialog;
+import org.eclipse.osgi.util.NLS;
import org.eclipse.swt.widgets.Shell;
import org.eclipse.ui.ISharedImages;
import org.eclipse.ui.IWorkbenchActionConstants;
@@ -259,7 +260,7 @@
}
if (folderExists) {
- return ArchivesUIMessages.bind(
+ return NLS.bind(
ArchivesUIMessages.ProjectPackagesView_createFolderDialog_warnFolderExists,
newText);
}
Modified:
trunk/archives/plugins/org.jboss.ide.eclipse.archives.ui/src/main/org/jboss/ide/eclipse/archives/ui/wizards/pages/ArchiveInfoWizardPage.java
===================================================================
---
trunk/archives/plugins/org.jboss.ide.eclipse.archives.ui/src/main/org/jboss/ide/eclipse/archives/ui/wizards/pages/ArchiveInfoWizardPage.java 2009-04-03
03:16:32 UTC (rev 14475)
+++
trunk/archives/plugins/org.jboss.ide.eclipse.archives.ui/src/main/org/jboss/ide/eclipse/archives/ui/wizards/pages/ArchiveInfoWizardPage.java 2009-04-03
03:31:29 UTC (rev 14476)
@@ -18,6 +18,7 @@
import org.eclipse.core.runtime.IPath;
import org.eclipse.core.runtime.IStatus;
import org.eclipse.core.runtime.Path;
+import org.eclipse.osgi.util.NLS;
import org.eclipse.swt.SWT;
import org.eclipse.swt.events.ModifyEvent;
import org.eclipse.swt.events.ModifyListener;
@@ -196,7 +197,7 @@
IArchive subPackage = (IArchive) subPackages[i];
if (subPackage.getName().equals(packageNameText.getText())
&& (!subPackage.equals(this.archive))) {
- message = ArchivesUIMessages.bind(
+ message = NLS.bind(
ArchivesUIMessages.PackageInfoWizardPage_error_packageAlreadyExists,
packageNameText.getText());
messageType = IStatus.ERROR;
@@ -221,7 +222,7 @@
if (pkg.getName().equals(packageNameText.getText())
&& (PathUtils.getGlobalLocation(pkg)!= null &&
PathUtils.getGlobalLocation(pkg).equals(destinationLocation))
&& (!pkg.equals(this.archive))) {
- message = ArchivesUIMessages.bind(
+ message = NLS.bind(
ArchivesUIMessages.PackageInfoWizardPage_error_packageAlreadyExists,
packageNameText.getText());
messageType = IStatus.ERROR;
}
Show replies by date