本文整理了Java中org.eclipse.swt.browser.Browser.setData()
方法的一些代码示例,展示了Browser.setData()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Browser.setData()
方法的具体详情如下:
包路径:org.eclipse.swt.browser.Browser
类名称:Browser
方法名:setData
暂无
代码示例来源:origin: BiglySoftware/BiglyBT
@Override
public void
setData(
String key,
Object value )
{
browser.setData(key, value);
}
代码示例来源:origin: org.eclipse/org.eclipse.help.ui
private boolean processQuery(String text) {
if (text.startsWith(QUERY)) {
browser.setData("query", text.substring(QUERY.length())); //$NON-NLS-1$
return true;
}
return false;
}
代码示例来源:origin: org.eclipse/org.eclipse.ltk.ui.refactoring
/**
* Creates a new refactoring descriptor compare viewer.
*
* @param parent
* the parent control
* @param configuration
* the compare configuration
* @param style
* the viewer style
*/
public RefactoringDescriptorCompareViewer(final Composite parent, final CompareConfiguration configuration, final int style) {
super(parent, style);
Assert.isNotNull(configuration);
fConfiguration= configuration;
fBrowser.setData(CompareUI.COMPARE_VIEWER_TITLE, RefactoringUIMessages.RefactoringWizard_refactoring);
}
代码示例来源:origin: BiglySoftware/BiglyBT
protected
BrowserWrapperSWT(
Composite composite,
int style )
{
browser = new Browser( composite, style );
browser.setData( BrowserWrapperSWTFactory.BROWSER_KEY, true );
}
代码示例来源:origin: org.eclipse.platform/org.eclipse.ui.intro
public void flagRemovedTempUrl() {
implementation.getBrowser().setData("tempUrl", null); //$NON-NLS-1$
}
代码示例来源:origin: org.xworker/xworker_swt
@Override
public void changed(StatusTextEvent event) {
//if(event instanceof LocationEvent){
// return;
//}
Browser browser = (Browser) event.getSource();
//System.out.println(event.text);
if(event.text.startsWith("html_edit_content")){
//取编辑器内容的值
String content = event.text.substring(17, event.text.length());
//System.out.println(content);
browser.setData("query", content);
}
}
代码示例来源:origin: org.eclipse.platform/org.eclipse.ui.intro
public void flagEndOfNavigation() {
implementation.getBrowser().setData("navigation", null); //$NON-NLS-1$
}
代码示例来源:origin: org.eclipse.platform/org.eclipse.ui.intro
public void flagEndOfFrameNavigation() {
implementation.getBrowser().setData("frameNavigation", null); //$NON-NLS-1$
}
代码示例来源:origin: org.xworker/xworker_swt
public static void init(ActionContext actionContext){
//browser.setUrl(webUrl + "do?sc=xworker.swt.xworker.HtmlEditorHttp/@showEditorHtml&toolbarSet=${toolbarSet}");
String value = (String) actionContext.get("value");
if(value == null) value = "";
Browser browser = (Browser) actionContext.get("browser");
browser.setData(value);
String html = value.replaceAll("(\")", "&_quot_;");
html = html.replaceAll("(\n)", "&_n_;");
html = html.replaceAll("(\r)", "&_r_;");
//browser.execute("setContents(\"" + html + "\");");
HtmlEditorCreator.executeScript(browser, "setContents(\"" + html + "\");", actionContext);
}
代码示例来源:origin: org.eclipse/org.eclipse.ltk.ui.refactoring
/**
* {@inheritDoc}
*/
public void setInput(final Object element) {
if (element instanceof RefactoringDescriptorCompareInput) {
final RefactoringDescriptorCompareInput input= (RefactoringDescriptorCompareInput) element;
final RefactoringDescriptorProxy descriptor= input.getDescriptor();
if (descriptor instanceof RefactoringDescriptorSynchronizationProxy) {
final RefactoringDescriptorSynchronizationProxy proxy= (RefactoringDescriptorSynchronizationProxy) descriptor;
if (proxy.getDirection() == IThreeWayDiff.INCOMING)
fBrowser.setData(CompareUI.COMPARE_VIEWER_TITLE, ModelMessages.RefactoringDescriptorCompareInput_pending_refactoring);
else
fBrowser.setData(CompareUI.COMPARE_VIEWER_TITLE, ModelMessages.RefactoringDescriptorCompareInput_performed_refactoring);
}
super.setInput(descriptor);
}
super.setInput(element);
}
}
代码示例来源:origin: org.eclipse.platform/org.eclipse.ui.intro
public void flagStoredTempUrl() {
if (implementation.getBrowser().getData("tempUrl") == null) //$NON-NLS-1$
implementation.getBrowser().setData("tempUrl", "true"); //$NON-NLS-1$ //$NON-NLS-2$
}
代码示例来源:origin: org.eclipse.platform/org.eclipse.ui.intro
public void flagStartOfFrameNavigation() {
if (implementation.getBrowser().getData("frameNavigation") == null) //$NON-NLS-1$
implementation.getBrowser().setData("frameNavigation", "true"); //$NON-NLS-1$ //$NON-NLS-2$
}
代码示例来源:origin: org.eclipse.platform/org.eclipse.ui.intro
public void flagStartOfNavigation() {
if (implementation.getBrowser().getData("navigation") == null) //$NON-NLS-1$
implementation.getBrowser().setData("navigation", "true"); //$NON-NLS-1$ //$NON-NLS-2$
}
代码示例来源:origin: org.xworker/xworker_swt
browser.setData("html",html);
代码示例来源:origin: org.xworker/xworker_swt
browser.setData("html",html);
代码示例来源:origin: org.xworker/xworker_swt
browser.setData("listener", progressListener);
if(webUrl != null){
browser.setUrl(webUrl + "do?sc=xworker.swt.xworker.HtmlEditorHttp/@showHtml");
browser.setData(value);
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.examples
browser.setData("org.eclipse.swt.examples.browserexample.BrowserApplication", this);
browser.addOpenWindowListener(event -> {
Shell shell = new Shell(display);
代码示例来源:origin: org.xworker/xworker_swt
actionContext.getScope(0).put(self.getString("name") + "Action", action);
actionContext.getScope(0).put(self.getString("name"), browse);
browse.setData("action", action);
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.aix.ppc
browser.setData (KEY_CHECK_SUBWINDOW, Boolean.FALSE);
代码示例来源:origin: org.eclipse.swt.cocoa.macosx/x86_64
browser.setData(WEBKIT_EVENTS_FIX_KEY);
内容来源于网络,如有侵权,请联系作者删除!