|
|
@ -6,6 +6,7 @@ import com.fr.design.menu.MenuKeySet; |
|
|
|
import com.fr.design.utils.BrowseUtils; |
|
|
|
import com.fr.design.utils.BrowseUtils; |
|
|
|
import com.fr.general.CloudCenter; |
|
|
|
import com.fr.general.CloudCenter; |
|
|
|
import com.fr.general.GeneralContext; |
|
|
|
import com.fr.general.GeneralContext; |
|
|
|
|
|
|
|
import com.fr.general.IOUtils; |
|
|
|
|
|
|
|
|
|
|
|
import javax.swing.*; |
|
|
|
import javax.swing.*; |
|
|
|
import java.awt.event.ActionEvent; |
|
|
|
import java.awt.event.ActionEvent; |
|
|
@ -19,7 +20,7 @@ public class VideoAction extends UpdateAction |
|
|
|
this.setMenuKeySet(VIDEO); |
|
|
|
this.setMenuKeySet(VIDEO); |
|
|
|
this.setName(getMenuKeySet().getMenuName()); |
|
|
|
this.setName(getMenuKeySet().getMenuName()); |
|
|
|
this.setMnemonic(getMenuKeySet().getMnemonic()); |
|
|
|
this.setMnemonic(getMenuKeySet().getMnemonic()); |
|
|
|
this.setSmallIcon(BaseUtils.readIcon("/com/fr/design/images/bbs/video.png")); |
|
|
|
this.setSmallIcon(IOUtils.readIcon("/com/fr/design/images/bbs/video.png")); |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -30,7 +31,7 @@ public class VideoAction extends UpdateAction |
|
|
|
if (GeneralContext.getLocale().equals(Locale.US)) { |
|
|
|
if (GeneralContext.getLocale().equals(Locale.US)) { |
|
|
|
url = CloudCenter.getInstance().acquireUrlByKind("bbs.video.en"); |
|
|
|
url = CloudCenter.getInstance().acquireUrlByKind("bbs.video.en"); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
url = CloudCenter.getInstance().acquireUrlByKind("bbs.video"); |
|
|
|
url = CloudCenter.getInstance().acquireUrlByKind("bbs.video"); |
|
|
|
} |
|
|
|
} |
|
|
|
BrowseUtils.browser(url); |
|
|
|
BrowseUtils.browser(url); |
|
|
|
|
|
|
|
|
|
|
|