File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -158,14 +158,15 @@ private static TreeItem<Path> getTreeForPath(final Path base) throws IOException
158
158
}
159
159
160
160
public void handleNewDocumentClicked (MouseEvent event ){
161
- TextInputDialog dialog = new TextInputDialog ();
161
+ TextInputDialog dialog = new TextInputDialog ("http://url.example.com/spdx/builder" );
162
162
((Stage )dialog .getDialogPane ().getScene ().getWindow ()).getIcons ().addAll (UiUtils .ICON_IMAGE_VIEW .getImage ());
163
163
dialog .setTitle ("New SPDX Document" );
164
164
dialog .setHeaderText ("Enter document namespace" );
165
- dialog . setResult ( "http://url.example.com/spdx/builder" );
165
+
166
166
Optional <String > result = dialog .showAndWait ();
167
167
while (result .isPresent () && !SpdxLogic .validateDocumentNamespace (result .orElse ("" ))){
168
- dialog .setContentText (result .orElse ("" )+ "is not a valid document namespace. Please enter a valid document namespace." );
168
+
169
+ dialog .setHeaderText ("Invalid document namespace. Enter new document namespace." );
169
170
result = dialog .showAndWait ();
170
171
}
171
172
if (result .isPresent ()){
You can’t perform that action at this time.
0 commit comments