本文整理汇总了Java中org.eclipse.jface.internal.text.html.BrowserInput类的典型用法代码示例。如果您正苦于以下问题:Java BrowserInput类的具体用法?Java BrowserInput怎么用?Java BrowserInput使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
BrowserInput类属于org.eclipse.jface.internal.text.html包,在下文中一共展示了BrowserInput类的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: setInput
import org.eclipse.jface.internal.text.html.BrowserInput; //导入依赖的package包/类
/**
* Set input to the given input.
*
* @param input the input for the view
* @since 3.4
*/
public void setInput(BrowserInput input) {
fCurrent= input;
Object inputElement= input.getInputElement();
if (inputElement instanceof IJavaElement) {
setInput((IJavaElement) inputElement);
} else if (inputElement instanceof URL) {
fBrowser.setUrl(((URL) inputElement).toExternalForm());
if (fInputSelectionProvider != null)
fInputSelectionProvider.setSelection(new StructuredSelection(inputElement));
}
fForthAction.update();
fBackAction.update();
}
示例2: update
import org.eclipse.jface.internal.text.html.BrowserInput; //导入依赖的package包/类
public void update() {
BrowserInformationControlInput current = fInfoControl.getInput();
if (current != null && current.getPrevious() != null) {
BrowserInput previous = current.getPrevious();
setToolTipText(MessageFormat.format(XtextUIMessages.XtextBrowserInformationControlInput_BackTo,
new Object[] { previous.getInputName() }));
setEnabled(true);
} else {
setToolTipText(XtextUIMessages.XtextBrowserInformationControlInput_Back);
setEnabled(false);
}
}
示例3: update
import org.eclipse.jface.internal.text.html.BrowserInput; //导入依赖的package包/类
public void update() {
if (fCurrent != null && fCurrent.getNext() != null) {
BrowserInput element= fCurrent.getNext();
setToolTipText(Messages.format(InfoViewMessages.JavadocView_action_forward_enabledTooltip, BasicElementLabels.getJavaElementName(element.getInputName())));
setEnabled(true);
} else {
setToolTipText(InfoViewMessages.JavadocView_action_forward_disabledTooltip);
setEnabled(false);
}
}
示例4: update
import org.eclipse.jface.internal.text.html.BrowserInput; //导入依赖的package包/类
public void update() {
BrowserInformationControlInput current= fInfoControl.getInput();
if (current != null && current.getPrevious() != null) {
BrowserInput previous= current.getPrevious();
setToolTipText(Messages.format(JavaHoverMessages.JavadocHover_back_toElement_toolTip, BasicElementLabels.getJavaElementName(previous.getInputName())));
setEnabled(true);
} else {
setToolTipText(JavaHoverMessages.JavadocHover_back);
setEnabled(false);
}
}
示例5: JavaElementBrowserInput
import org.eclipse.jface.internal.text.html.BrowserInput; //导入依赖的package包/类
public JavaElementBrowserInput(BrowserInput previous, IJavaElement inputElement) {
super(previous);
Assert.isNotNull(inputElement);
fInput= inputElement;
}
示例6: URLBrowserInput
import org.eclipse.jface.internal.text.html.BrowserInput; //导入依赖的package包/类
public URLBrowserInput(BrowserInput previous, URL url) {
super(previous);
Assert.isNotNull(url);
fURL= url;
}