update URL and keymap reference
authorDmitry Jemerov <yole@jetbrains.com>
Thu, 15 Oct 2009 11:53:03 +0000 (15:53 +0400)
committerDmitry Jemerov <yole@jetbrains.com>
Thu, 15 Oct 2009 11:53:03 +0000 (15:53 +0400)
community-resources/src/idea/IdeaApplicationInfo.xml
platform/platform-impl/src/com/intellij/ide/actions/RefCardAction.java

index df77fa875eb7fd2375e33885c57e08a83c072763..f5734a273fa66353d92629936a604ca35ec4e60a 100644 (file)
 
   <welcome-screen caption-url="/welcomeCaption_community.png" slogan-url="/developSlogan_community.png"/>
 
-  <update-urls check="http://www.jetbrains.com/updates/update.xml" patches="http://download.jetbrains.com/idea/" download="http://www.jetbrains.com/idea/download/"/>
-  <eap-update-urls check="http://www.jetbrains.com/updates/eap-update.xml" patches="http://download.jetbrains.com/idea/" download="http://www.jetbrains.net/confluence/display/IDEADEV/Maia+EAP"/>
+  <update-urls check="http://www.jetbrains.com/updates/updates.xml"
+               patches="http://download.jetbrains.com/idea/"/>
   <help file="ideahelp.jar" root="idea"/>
   <documentation url="http://www.jetbrains.com/idea/documentation"/>
   <support url="http://www.jetbrains.com/support/idea/index.html"/>
   <feedback eap-url="http://jetbrains.net/jira" release-url="http://www.jetbrains.com/feedback/feedback.jsp?product=IDEA&amp;build=$BUILD&amp;timezone=$TIMEZONE&amp;eval=$EVAL"/>
   <plugins url="http://plugins.intellij.net"/>
+  <whatsnew url="http://www.jetbrains.com/idea/nextversion/index.html"/>
 
   <plugins-page category="VCS Integration" title="Select VCS Integration Plugins"/>
   <plugins-page title="Select Other Plugins"/>
index f3d8ec5ef8c1a28fb73364af38e8d2a0abc72f26..a4ddf760e27063a16cbf89f738b0046de5cb8dc8 100644 (file)
@@ -20,10 +20,12 @@ import com.intellij.openapi.actionSystem.ActionPlaces;
 import com.intellij.openapi.actionSystem.AnAction;
 import com.intellij.openapi.actionSystem.AnActionEvent;
 import com.intellij.openapi.application.PathManager;
-import com.intellij.openapi.util.SystemInfo;
 import com.intellij.openapi.project.DumbAware;
+import com.intellij.openapi.util.SystemInfo;
 import org.jetbrains.annotations.NonNls;
 
+import java.io.File;
+
 /**
  * @author Vladimir Kondratyev
  */
@@ -31,7 +33,15 @@ public class RefCardAction extends AnAction implements DumbAware {
   @NonNls private static final String KEYMAP_URL = PathManager.getHomePath() + "/help/" + (SystemInfo.isMac ? "ReferenceCardForMac.pdf" : "ReferenceCard.pdf");
 
   public void actionPerformed(AnActionEvent e) {
-    BrowserUtil.launchBrowser(KEYMAP_URL);
+    final String url = KEYMAP_URL;
+    if (new File(url).isFile()) {
+      BrowserUtil.launchBrowser(url);
+    }
+    else {
+      BrowserUtil.launchBrowser(SystemInfo.isMac
+                                ? "http://www.jetbrains.com/idea/docs/IntelliJIDEA8_ReferenceCard_Mac.pdf"
+                                : "http://www.jetbrains.com/idea/docs/IntelliJIDEA8_ReferenceCard.pdf");
+    }
   }
 
   public void update(AnActionEvent e) {