update URL and keymap reference

This commit is contained in:
Dmitry Jemerov
2009-10-15 15:53:03 +04:00
parent 719c0163cb
commit 5ba0ca7ba0
2 changed files with 15 additions and 4 deletions

View File

@@ -11,13 +11,14 @@
<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"/>

View 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) {