コード例 #1
0
  public final void saveProjectTo(java.io.File file) throws java.io.IOException {
    if (StudyConfiguration.INSTANCE.shouldPromptToSaveProjects()) {
      this.saveCopyOfProjectTo(file);
    } else {
      this.saveCopyOfProjectTo(StudyConfiguration.INSTANCE.getFileToSaveUsersProject());
    }
    org.alice.ide.recentprojects.RecentProjectsListData.getInstance().handleSave(file);

    //		edu.cmu.cs.dennisc.java.util.logging.Logger.errln( "todo: better handling of file project
    // loader", file );

    this.uriProjectLoader = new org.alice.ide.uricontent.FileProjectLoader(file);
    this.updateHistoryIndexFileSync();

    // Upon save we should sync our projects
    LookingGlassIDE.getCommunityController().syncProjectsRepository();
  }
コード例 #2
0
 private static String getSpec() {
   // <lg>
   StringBuilder sb = new StringBuilder();
   sb.append("/help/");
   if (edu.cmu.cs.dennisc.java.lang.SystemUtilities.isWindows()) {
     sb.append("graphics?platform=windows");
   } else if (edu.cmu.cs.dennisc.java.lang.SystemUtilities.isMac()) {
     sb.append("graphics?platform=macintosh");
   } else if (edu.cmu.cs.dennisc.java.lang.SystemUtilities.isLinux()) {
     sb.append("graphics?platform=linux");
   } else {
     sb.append("graphics");
   }
   return edu.wustl.lookingglass.ide.LookingGlassIDE.getCommunityController()
       .getAbsoluteUrl(sb.toString())
       .toString();
   // </lg>
 }