public void actionPerformed(ActionEvent event) { if (event instanceof JMRUMenu.MRUActionEvent) { Common.openMIDletUrlSafe(((MidletURLReference) ((JMRUMenu.MRUActionEvent) event).getSourceMRU()) .getUrl()); if (recordStoreManagerDialog != null) { recordStoreManagerDialog.refresh(); } } } });
public void actionPerformed(ActionEvent ev) { if (fileChooser == null) { ExtensionFileFilter fileFilter = new ExtensionFileFilter("MIDlet files"); fileFilter.addExtension("jad"); fileFilter.addExtension("jar"); fileChooser = new JFileChooser(); fileChooser.setFileFilter(fileFilter); fileChooser.setDialogTitle("Open MIDlet File..."); fileChooser.setCurrentDirectory(new File(Config.getRecentDirectory("recentJadDirectory"))); } int returnVal = fileChooser.showOpenDialog(Main.this); if (returnVal == JFileChooser.APPROVE_OPTION) { Config.setRecentDirectory("recentJadDirectory", fileChooser.getCurrentDirectory().getAbsolutePath()); String url = IOUtils.getCanonicalFileURL(fileChooser.getSelectedFile()); Common.openMIDletUrlSafe(url); if (recordStoreManagerDialog != null) { recordStoreManagerDialog.refresh(); } } } };
public void actionPerformed(ActionEvent ev) { if (midletUrlPanel == null) { midletUrlPanel = new MIDletUrlPanel(); } if (SwingDialogWindow.show(Main.this, "Enter MIDlet URL:", midletUrlPanel, true)) { Common.openMIDletUrlSafe(midletUrlPanel.getText()); if (recordStoreManagerDialog != null) { recordStoreManagerDialog.refresh(); } } } };
File f = (File) fileList.get(0); if (Common.isMIDletUrlExtension(f.getName())) { Common.openMIDletUrlSafe(IOUtils.getCanonicalFileURL(f)); } else { Message.warn("Unable to open " + f.getAbsolutePath() + ", Only JAD files are acepted"); String path = getPathString((String) data); if (Common.isMIDletUrlExtension(path)) { Common.openMIDletUrlSafe(path); } else { Message.warn("Unable to open " + path + ", Only JAD files are acepted"); String path = getPathString((String) data); if (Common.isMIDletUrlExtension(path)) { Common.openMIDletUrlSafe(path); } else { Message.warn("Unable to open " + path + ", Only JAD files are acepted"); String urlString = jadUrl.toExternalForm(); if (Common.isMIDletUrlExtension(urlString)) { Common.openMIDletUrlSafe(urlString); } else { Message.warn("Unable to open " + urlString + ", Only JAD url are acepted");