本文整理汇总了Java中org.eclipse.e4.ui.di.Focus类的典型用法代码示例。如果您正苦于以下问题:Java Focus类的具体用法?Java Focus怎么用?Java Focus使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
Focus类属于org.eclipse.e4.ui.di包,在下文中一共展示了Focus类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: onFocus
import org.eclipse.e4.ui.di.Focus; //导入依赖的package包/类
@Focus
public void onFocus() {
if (!loaded && selectionCached) // not yet loaded but has cached selection
{
delayedSetSeletction(corpusObject);
}
if (!tabFolder.isDisposed()) {
tabFolder.setFocus();
if (tabFolder.getItemCount() >= selectionIndex) {
tabFolder.setSelection(selectionIndex);
} else {
tabFolder.setSelection(0);
}
}
evaluationController
.activateDBCollectionContext(BTSPluginIDs.PREF_MAIN_CORPUS_KEY);
}
示例2: setFocus
import org.eclipse.e4.ui.di.Focus; //导入依赖的package包/类
@Focus
public void setFocus() {
if (model == null) {
return;
}
if (!initialized) {
initialized = true;
setModelToFinder(browserManager.getCenterModel());
try {
selected = finderCenter.getSelected(model.getCenter());
} catch (final VException exc) {
log.error(exc, exc.getMessage());
}
}
focusPane.setFocus();
}
示例3: onFocus
import org.eclipse.e4.ui.di.Focus; //导入依赖的package包/类
@Focus
public void onFocus() {
if (!loaded)
{
loaded = true;
loadInput(mainTabItemComp, mainTreeViewer, mainRootNode, false);
}
permissionController
.activateDBCollectionContext("corpus");
}
示例4: onFocus
import org.eclipse.e4.ui.di.Focus; //导入依赖的package包/类
@Focus
public void onFocus() {
if (!loaded && selectionCached) // not yet loaded but has cached
// selection
{
setSelectionInternal(currentWord, 0);
}
evaluationController
.activateDBCollectionContext(BTSPluginIDs.PREF_MAIN_CORPUS_KEY);
}
示例5: setFocus
import org.eclipse.e4.ui.di.Focus; //导入依赖的package包/类
@Focus
public void setFocus()
{
if (hierotw_text != null) {
hierotw_text.setFocus();
}
// contextService.activateContext(HTW_CONTEXT_ID);
evaluationController
.activateDBCollectionContext(BTSPluginIDs.PREF_MAIN_CORPUS_KEY);
}
示例6: setFocus
import org.eclipse.e4.ui.di.Focus; //导入依赖的package包/类
/**
* Sets the focus.
*/
@Focus
public void setFocus() {
if (!loaded) {
if (selectionCached) // not yet loaded but has cached selection
{
loadInput(text);
textViewer.refresh();
} else {
eventBroker.post(BTSUIConstants.EVENT_EGY_TEXT_EDITOR_INPUT_REQUESTED+"translation_part", text);
}
}
}
示例7: setFocus
import org.eclipse.e4.ui.di.Focus; //导入依赖的package包/类
/**
* Sets the focus.
*/
@Focus
public void setFocus() {
if (!loaded && selectionCached) // not yet loaded but has cached selection
{
loadInput(text);
}
// now set focus on specific editor pane
if (tabFolder != null && text != null) {
switch (tabFolder.getSelectionIndex()) {
case 0: {
embeddedEditor.getViewer().getControl().setFocus();
break;
}
case 1: {
signTextEditor.setFocus();
break;
}
case 2: {
break;
}
}
}
permissionsController
.activateDBCollectionContext(BTSPluginIDs.PREF_MAIN_CORPUS_KEY);
}
示例8: onFocus
import org.eclipse.e4.ui.di.Focus; //导入依赖的package包/类
@Focus
public void onFocus() {
if (!loaded && selectionCached) // not yet loaded but has cached selection
{
loadInput(selectedLemmaEntry);
}
}
示例9: setFocus
import org.eclipse.e4.ui.di.Focus; //导入依赖的package包/类
@Override
@Focus
public void setFocus() {
if (table != null && !table.isDisposed()) {
if (table.setFocus()) {
if (log.isDebugEnabled()) {
log.debug("set focus for table"); //$NON-NLS-1$
}
}
}
}
示例10: focus
import org.eclipse.e4.ui.di.Focus; //导入依赖的package包/类
@Focus
public void focus(){
for(Control control : parentComposite.getChildren()){
if(control instanceof ISelectable){
((ISelectable)control).onSelect();
}
}
// parentComposite.forceFocus();
}
示例11: setFocus
import org.eclipse.e4.ui.di.Focus; //导入依赖的package包/类
@Focus
public void setFocus() {
if (model == null) {
return;
}
if (viewer != null) {
viewer.getControl().setFocus();
}
}
示例12: onFocus
import org.eclipse.e4.ui.di.Focus; //导入依赖的package包/类
@Focus
public void onFocus() {
final Table lTable = (Table) viewer.getControl();
lTable.setFocus();
if (viewer.getSelection().isEmpty()) {
lTable.select(0);
}
}
示例13: setFocus
import org.eclipse.e4.ui.di.Focus; //导入依赖的package包/类
@Focus
void setFocus() {
bookmarksView.setInput(bookmarksController.getBookmarks());
final Table lTable = bookmarksView.getTable();
lTable.setFocus();
if (bookmarksView.getSelection().isEmpty()) {
lTable.select(0);
}
}
示例14: setFocus
import org.eclipse.e4.ui.di.Focus; //导入依赖的package包/类
@Focus
public void setFocus() {
update("reload"); //$NON-NLS-1$
final Table lTable = lastChangesView.getTable();
lTable.setFocus();
if (lastChangesView.getSelection().isEmpty()) {
lTable.select(0);
}
}
示例15: setFocus
import org.eclipse.e4.ui.di.Focus; //导入依赖的package包/类
@Focus
public void setFocus() {
// TODO Set the focus to control
}