本文整理汇总了Java中org.eclipse.ui.IEditorSite.setSelectionProvider方法的典型用法代码示例。如果您正苦于以下问题:Java IEditorSite.setSelectionProvider方法的具体用法?Java IEditorSite.setSelectionProvider怎么用?Java IEditorSite.setSelectionProvider使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.eclipse.ui.IEditorSite
的用法示例。
在下文中一共展示了IEditorSite.setSelectionProvider方法的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: init
import org.eclipse.ui.IEditorSite; //导入方法依赖的package包/类
/**
* This is called during startup.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void init(IEditorSite site, IEditorInput editorInput) {
setSite(site);
setInputWithNotify(editorInput);
setPartName(editorInput.getName());
site.setSelectionProvider(this);
site.getPage().addPartListener(partListener);
ResourcesPlugin.getWorkspace().addResourceChangeListener(resourceChangeListener, IResourceChangeEvent.POST_CHANGE);
}
示例2: init
import org.eclipse.ui.IEditorSite; //导入方法依赖的package包/类
/**
* This is called during startup.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void init ( IEditorSite site, IEditorInput editorInput )
{
setSite ( site );
setInputWithNotify ( editorInput );
setPartName ( editorInput.getName () );
site.setSelectionProvider ( this );
site.getPage ().addPartListener ( partListener );
ResourcesPlugin.getWorkspace ().addResourceChangeListener ( resourceChangeListener, IResourceChangeEvent.POST_CHANGE );
}
示例3: init
import org.eclipse.ui.IEditorSite; //导入方法依赖的package包/类
/**
* This is called during startup.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
*
* @generated
*/
@Override
public void init(IEditorSite site, IEditorInput editorInput) {
setSite(site);
setInputWithNotify(editorInput);
setPartName(editorInput.getName());
site.setSelectionProvider(this);
site.getPage().addPartListener(partListener);
ResourcesPlugin.getWorkspace().addResourceChangeListener(resourceChangeListener,
IResourceChangeEvent.POST_CHANGE);
}
示例4: init
import org.eclipse.ui.IEditorSite; //导入方法依赖的package包/类
/**
* This is called during startup. <!-- begin-user-doc --> <!-- end-user-doc -->
*
* @generated
*/
@Override
public void init(IEditorSite site, IEditorInput editorInput) {
setSite(site);
setInputWithNotify(editorInput);
setPartName(editorInput.getName());
site.setSelectionProvider(this);
site.getPage().addPartListener(partListener);
}
示例5: init
import org.eclipse.ui.IEditorSite; //导入方法依赖的package包/类
/**
* This is called during startup.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void init(IEditorSite site, IEditorInput editorInput)
{
setSite(site);
setInputWithNotify(editorInput);
setPartName(editorInput.getName());
site.setSelectionProvider(this);
site.getPage().addPartListener(partListener);
ResourcesPlugin.getWorkspace().addResourceChangeListener(resourceChangeListener, IResourceChangeEvent.POST_CHANGE);
}
示例6: init
import org.eclipse.ui.IEditorSite; //导入方法依赖的package包/类
/**
* This is called during startup.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
*
* @param site the site
* @param editorInput the editor input
* @generated
*/
@Override
public void init(IEditorSite site, IEditorInput editorInput) {
setSite(site);
setInputWithNotify(editorInput);
setPartName(editorInput.getName());
site.setSelectionProvider(this);
site.getPage().addPartListener(partListener);
ResourcesPlugin.getWorkspace().addResourceChangeListener(resourceChangeListener, IResourceChangeEvent.POST_CHANGE);
}
示例7: init
import org.eclipse.ui.IEditorSite; //导入方法依赖的package包/类
/**
* This is called during startup. <!-- begin-user-doc --> <!-- end-user-doc
* -->
*
* @generated
*/
@Override
public void init(IEditorSite site, IEditorInput editorInput) {
setSite(site);
setInputWithNotify(editorInput);
setPartName(editorInput.getName());
site.setSelectionProvider(this);
site.getPage().addPartListener(partListener);
}
示例8: init
import org.eclipse.ui.IEditorSite; //导入方法依赖的package包/类
/**
* This is called during startup.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void init(IEditorSite site, IEditorInput editorInput) {
setSite(site);
setInputWithNotify(editorInput);
setPartName(editorInput.getName());
site.setSelectionProvider(this);
site.getPage().addPartListener(partListener);
ResourcesPlugin.getWorkspace().addResourceChangeListener(
resourceChangeListener, IResourceChangeEvent.POST_CHANGE);
}
示例9: init
import org.eclipse.ui.IEditorSite; //导入方法依赖的package包/类
/**
* This is called during startup.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void init(IEditorSite site, IEditorInput editorInput) {
setSite(site);
setInputWithNotify(editorInput);
setPartName(editorInput.getName());
site.setSelectionProvider(this);
site.getPage().addPartListener(partListener);
ResourcesPlugin.getWorkspace().addResourceChangeListener(resourceChangeListener, IResourceChangeEvent.POST_CHANGE);
}
示例10: init
import org.eclipse.ui.IEditorSite; //导入方法依赖的package包/类
/**
* This is called during startup.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void init(IEditorSite site, IEditorInput editorInput) {
setSite(site);
setInputWithNotify(editorInput);
setPartName(editorInput.getName());
site.setSelectionProvider(this);
site.getPage().addPartListener(partListener);
ResourcesPlugin.getWorkspace().addResourceChangeListener(resourceChangeListener, IResourceChangeEvent.POST_CHANGE);
}
示例11: init
import org.eclipse.ui.IEditorSite; //导入方法依赖的package包/类
public void init(IEditorSite site, IEditorInput input) throws PartInitException {
setSite(site);
setInput(input);
site.setSelectionProvider(new MultiPageToolbarSelectionProvider(this));
}