File tree Expand file tree Collapse file tree
src/main/java/edu/utah/ece/async/sboldesigner/sbol/editor Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -140,19 +140,12 @@ protected void perform() {
140140 "newFolder.png" ) {
141141 @ Override
142142 protected void perform () {
143- JOptionPane .showMessageDialog (SBOLDesignerPanel .this ,
144- "Please select a file to save the new SBOL Document into." );
145- int returnVal = fc .showSaveDialog (SBOLDesignerPanel .this );
146- if (returnVal == JFileChooser .APPROVE_OPTION ) {
147- File file = fc .getSelectedFile ();
148- Preferences .userRoot ().node ("path" ).put ("path" , file .getPath ());
149- try {
150- new FileDocumentIO (false ).write (new SBOLDocument ());
151- openDocument (new FileDocumentIO (false ));
152- } catch (SBOLValidationException | IOException | SBOLConversionException e ) {
153- MessageDialog .showMessage (null , "There was a problem creating this document: " , e .getMessage ());
154- e .printStackTrace ();
155- }
143+ try {
144+ newPart (SBOLEditorPreferences .INSTANCE .getUserInfo ().getURI ().toString ().equals ("http://www.dummy.org" ),
145+ true );
146+ } catch (SBOLValidationException e ) {
147+ MessageDialog .showMessage (null , "There was a problem creating this document: " , e .getMessage ());
148+ e .printStackTrace ();
156149 }
157150 }
158151 }.precondition (CONFIRM_SAVE );
You can’t perform that action at this time.
0 commit comments