当前位置: 首页>>代码示例>>Java>>正文


Java Focus类代码示例

本文整理汇总了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);
}
 
开发者ID:cplutte,项目名称:bts,代码行数:19,代码来源:PassportEditorPart.java

示例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();
}
 
开发者ID:aktion-hip,项目名称:relations,代码行数:17,代码来源:FinderBrowserPart.java

示例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");
}
 
开发者ID:cplutte,项目名称:bts,代码行数:11,代码来源:CorpusNavigatorPart.java

示例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);
}
 
开发者ID:cplutte,项目名称:bts,代码行数:11,代码来源:EgyLemmatizerPart.java

示例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);
	}
 
开发者ID:cplutte,项目名称:bts,代码行数:11,代码来源:EgyHieroglyphenTypeWriter.java

示例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);
		}
	}
}
 
开发者ID:cplutte,项目名称:bts,代码行数:16,代码来源:EgyTextTranslationPart.java

示例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);
}
 
开发者ID:cplutte,项目名称:bts,代码行数:31,代码来源:EgyTextEditorPart.java

示例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);
	}
	

}
 
开发者ID:cplutte,项目名称:bts,代码行数:10,代码来源:EgyLemmaEditorPart.java

示例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$
            }
        }
    }
}
 
开发者ID:e4c,项目名称:EclipseCommander,代码行数:12,代码来源:DynamicTab.java

示例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();
}
 
开发者ID:CloudScale-Project,项目名称:Environment,代码行数:12,代码来源:AlternativeEditor.java

示例11: setFocus

import org.eclipse.e4.ui.di.Focus; //导入依赖的package包/类
@Focus
public void setFocus() {
	if (model == null) {
		return;
	}
	if (viewer != null) {
		viewer.getControl().setFocus();
	}
}
 
开发者ID:aktion-hip,项目名称:relations,代码行数:10,代码来源:DefaultBrowserPart.java

示例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);
	}
}
 
开发者ID:aktion-hip,项目名称:relations,代码行数:9,代码来源:AbstractSelectionView.java

示例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);
	}
}
 
开发者ID:aktion-hip,项目名称:relations,代码行数:10,代码来源:BookmarksView.java

示例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);
	}
}
 
开发者ID:aktion-hip,项目名称:relations,代码行数:11,代码来源:LastChangesView.java

示例15: setFocus

import org.eclipse.e4.ui.di.Focus; //导入依赖的package包/类
@Focus
public void setFocus() {
	// TODO	Set the focus to control
}
 
开发者ID:EnFlexIT,项目名称:AgentWorkbench,代码行数:5,代码来源:ConsoleView.java


注:本文中的org.eclipse.e4.ui.di.Focus类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。