Commit 487b32fa authored by Ubbo Veentjer's avatar Ubbo Veentjer
Browse files

set username and password

parent 9ae94319
......@@ -51,7 +51,6 @@ public class SadePublishView extends ViewPart {
return;
}
String url = Platform.getPreferencesService().getString(Activator.PLUGIN_ID, PluginPreferencePage.sadeUrl_id, "", null);
if(url.equals("")) {
......@@ -63,9 +62,15 @@ public class SadePublishView extends ViewPart {
spBrowser.addProgressListener(new ProgressListener() {
public void changed(ProgressEvent arg0) {}
public void completed(ProgressEvent arg0) {
String sid = RBACSession.getInstance().getSID(false);
System.out.println("set sid to: " + sid);
//System.out.println("set sid to: " + sid);
spBrowser.execute("setSid('"+sid+"')");
String user = Platform.getPreferencesService().getString(Activator.PLUGIN_ID, PluginPreferencePage.sadeUser_id, "", null);
String pw = Platform.getPreferencesService().getString(Activator.PLUGIN_ID, PluginPreferencePage.sadePW_id, "", null);
spBrowser.execute("setAuth('"+user+"','"+pw+"')");
browserReady = true;
}
});
......@@ -89,4 +94,4 @@ public class SadePublishView extends ViewPart {
public void setFocus() {
//viewer.getControl().setFocus();
}
}
\ No newline at end of file
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment