Lines 16-21
Link Here
|
16 |
import java.awt.event.ActionEvent; |
16 |
import java.awt.event.ActionEvent; |
17 |
import java.io.File; |
17 |
import java.io.File; |
18 |
import java.io.IOException; |
18 |
import java.io.IOException; |
|
|
19 |
import java.text.MessageFormat; |
19 |
import java.util.ArrayList; |
20 |
import java.util.ArrayList; |
20 |
import java.util.Arrays; |
21 |
import java.util.Arrays; |
21 |
import java.util.Collection; |
22 |
import java.util.Collection; |
Lines 39-44
Link Here
|
39 |
import org.netbeans.spi.project.support.ant.AntProjectHelper; |
40 |
import org.netbeans.spi.project.support.ant.AntProjectHelper; |
40 |
import org.netbeans.spi.project.ui.support.CommonProjectActions; |
41 |
import org.netbeans.spi.project.ui.support.CommonProjectActions; |
41 |
import org.netbeans.spi.project.ui.support.ProjectSensitiveActions; |
42 |
import org.netbeans.spi.project.ui.support.ProjectSensitiveActions; |
|
|
43 |
import org.openide.DialogDescriptor; |
44 |
import org.openide.DialogDisplayer; |
42 |
import org.openide.ErrorManager; |
45 |
import org.openide.ErrorManager; |
43 |
import org.openide.actions.FindAction; |
46 |
import org.openide.actions.FindAction; |
44 |
import org.openide.actions.ToolsAction; |
47 |
import org.openide.actions.ToolsAction; |
Lines 260-265
Link Here
|
260 |
String scriptLocation = project.evaluator().evaluate(script); |
263 |
String scriptLocation = project.evaluator().evaluate(script); |
261 |
FileObject scriptFile = project.helper().resolveFileObject(scriptLocation); |
264 |
FileObject scriptFile = project.helper().resolveFileObject(scriptLocation); |
262 |
if (scriptFile == null) { |
265 |
if (scriptFile == null) { |
|
|
266 |
//#57011: if the script does not exist, show a warning: |
267 |
Exception noScriptFile = new Exception("No script file: " + scriptLocation); // NOI18N |
268 |
|
269 |
ErrorManager.getDefault().annotate(noScriptFile, MessageFormat.format(NbBundle.getMessage(Actions.class, "LBL_ScriptFileNotFoundError"), new Object[] {scriptLocation})); |
270 |
ErrorManager.getDefault().notify(ErrorManager.USER, noScriptFile); |
263 |
return; |
271 |
return; |
264 |
} |
272 |
} |
265 |
List/*<Element>*/ targets = Util.findSubElements(actionEl); |
273 |
List/*<Element>*/ targets = Util.findSubElements(actionEl); |