M dist/build.xml
M dist/netbeans/build.xml M dist/netbeans/nbproject/project.properties - prepare for alpha 6 release M webclient/src_moz/AjaxListener.cpp M webclient/src_moz/AjaxListener.h M webclient/src_moz/EmbedProgress.cpp M webclient/src_moz/EmbedProgress.h - the AjaxListener no longer keeps the jobject EventRegistrationImpl as an ivar. Instead, it lazily uses an accessor on EmbedProgress M webclient/test/manual/src/classes/org/mozilla/webclient/test/TestBrowser.java - Take a url from commandline. git-svn-id: svn://10.0.0.236/trunk@221608 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -114,7 +114,8 @@ public class TestBrowser extends JPanel {
|
||||
Container contentPane = frame.getContentPane();
|
||||
|
||||
contentPane.setLayout(new GridLayout(1, 1));
|
||||
contentPane.add(new TestBrowser());
|
||||
TestBrowser testBrowser = null;
|
||||
contentPane.add(testBrowser = new TestBrowser());
|
||||
|
||||
frame.addWindowListener(new WindowAdapter() {
|
||||
public void windowClosing(WindowEvent e) {
|
||||
@@ -124,6 +125,9 @@ public class TestBrowser extends JPanel {
|
||||
|
||||
frame.pack();
|
||||
frame.setVisible(true);
|
||||
if (1 == args.length) {
|
||||
testBrowser.loadURL(args[0]);
|
||||
}
|
||||
}
|
||||
|
||||
private void jbInit() throws Exception {
|
||||
@@ -410,13 +414,7 @@ public class TestBrowser extends JPanel {
|
||||
statusBar.lblStatus.setText(statusMessage);
|
||||
}
|
||||
|
||||
/**
|
||||
* Check the current input URL string in the address text field, load it,
|
||||
* and update the status info and toolbar info.
|
||||
*/
|
||||
void loadURL() {
|
||||
String inputValue = jAddressTextField.getText();
|
||||
|
||||
void loadURL(String inputValue) {
|
||||
if (inputValue == null) {
|
||||
JOptionPane.showMessageDialog(this, "The given URL is NULL:",
|
||||
"Warning", JOptionPane.WARNING_MESSAGE);
|
||||
@@ -466,6 +464,14 @@ public class TestBrowser extends JPanel {
|
||||
}
|
||||
}
|
||||
}
|
||||
/**
|
||||
* Check the current input URL string in the address text field, load it,
|
||||
* and update the status info and toolbar info.
|
||||
*/
|
||||
void loadURL() {
|
||||
String inputValue = jAddressTextField.getText();
|
||||
loadURL(inputValue);
|
||||
}
|
||||
|
||||
void jGoButton_actionPerformed(ActionEvent e) {
|
||||
loadURL();
|
||||
|
||||
Reference in New Issue
Block a user