本文整理匯總了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));
}