Author: rob.stryker(a)jboss.com
Date: 2008-10-20 14:24:50 -0400 (Mon, 20 Oct 2008)
New Revision: 11009
Modified:
trunk/archives/plugins/org.jboss.ide.eclipse.archives.ui/src/main/org/jboss/ide/eclipse/archives/ui/ArchivesUIBuildListener.java
trunk/archives/plugins/org.jboss.ide.eclipse.archives.ui/src/main/org/jboss/ide/eclipse/archives/ui/ArchivesUIMessages.java
trunk/archives/plugins/org.jboss.ide.eclipse.archives.ui/src/main/org/jboss/ide/eclipse/archives/ui/ArchivesUIMessages.properties
Log:
JBIDE-2932 - error dialog shows node
Modified:
trunk/archives/plugins/org.jboss.ide.eclipse.archives.ui/src/main/org/jboss/ide/eclipse/archives/ui/ArchivesUIBuildListener.java
===================================================================
---
trunk/archives/plugins/org.jboss.ide.eclipse.archives.ui/src/main/org/jboss/ide/eclipse/archives/ui/ArchivesUIBuildListener.java 2008-10-20
18:09:23 UTC (rev 11008)
+++
trunk/archives/plugins/org.jboss.ide.eclipse.archives.ui/src/main/org/jboss/ide/eclipse/archives/ui/ArchivesUIBuildListener.java 2008-10-20
18:24:50 UTC (rev 11009)
@@ -15,6 +15,7 @@
import org.eclipse.jface.dialogs.ErrorDialog;
import org.eclipse.jface.dialogs.IDialogConstants;
import org.eclipse.jface.resource.JFaceResources;
+import org.eclipse.osgi.util.NLS;
import org.eclipse.swt.SWT;
import org.eclipse.swt.accessibility.AccessibleAdapter;
import org.eclipse.swt.accessibility.AccessibleEvent;
@@ -40,7 +41,7 @@
*/
public class ArchivesUIBuildListener extends AbstractBuildListener {
- public void error(IArchiveNode node, final IStatus[] multi) {
+ public void error(final IArchiveNode node, final IStatus[] multi) {
final MultiStatus ms = new MultiStatus(ArchivesCore.PLUGIN_ID, 0,
ArchivesUIMessages.BuildError, null);
for( int i = 0; i < multi.length; i++ ) {
ms.add(multi[i]);
@@ -48,7 +49,10 @@
if( PrefsInitializer.getBoolean(PrefsInitializer.PREF_SHOW_BUILD_ERROR_DIALOG)) {
Display.getDefault().asyncExec(new Runnable() {
public void run() {
- ErrorDialog ed = new ErrorDialogWithPreference(new Shell(),
ArchivesUIMessages.BuildError, ArchivesUIMessages.BuildError, ms, IStatus.ERROR );
+ ErrorDialog ed = new ErrorDialogWithPreference(
+ new Shell(), ArchivesUIMessages.BuildError,
+ NLS.bind(ArchivesUIMessages.BuildError2, node.toString()),
+ ms, IStatus.ERROR );
ed.open();
}
} );
Modified:
trunk/archives/plugins/org.jboss.ide.eclipse.archives.ui/src/main/org/jboss/ide/eclipse/archives/ui/ArchivesUIMessages.java
===================================================================
---
trunk/archives/plugins/org.jboss.ide.eclipse.archives.ui/src/main/org/jboss/ide/eclipse/archives/ui/ArchivesUIMessages.java 2008-10-20
18:09:23 UTC (rev 11008)
+++
trunk/archives/plugins/org.jboss.ide.eclipse.archives.ui/src/main/org/jboss/ide/eclipse/archives/ui/ArchivesUIMessages.java 2008-10-20
18:24:50 UTC (rev 11009)
@@ -14,6 +14,7 @@
public class ArchivesUIMessages extends NLS {
public static String BuildError;
+ public static String BuildError2;
public static String DoNotShowThisAgain;
public static String BuildArchivesNode;
public static String SelectAProject;
Modified:
trunk/archives/plugins/org.jboss.ide.eclipse.archives.ui/src/main/org/jboss/ide/eclipse/archives/ui/ArchivesUIMessages.properties
===================================================================
---
trunk/archives/plugins/org.jboss.ide.eclipse.archives.ui/src/main/org/jboss/ide/eclipse/archives/ui/ArchivesUIMessages.properties 2008-10-20
18:09:23 UTC (rev 11008)
+++
trunk/archives/plugins/org.jboss.ide.eclipse.archives.ui/src/main/org/jboss/ide/eclipse/archives/ui/ArchivesUIMessages.properties 2008-10-20
18:24:50 UTC (rev 11009)
@@ -1,4 +1,5 @@
BuildError=Error building project archives
+BuildError2=Error building project archives node {0}
DoNotShowThisAgain=Do not show this message again.
BuildArchivesNode=Build Archive Node
SelectAProject=Please select a project
Show replies by date