當前位置: 首頁>>代碼示例>>Java>>正文


Java IEditorSite.setSelectionProvider方法代碼示例

本文整理匯總了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);
}
 
開發者ID:occiware,項目名稱:OCCI-Studio,代碼行數:16,代碼來源:CrtpEditor.java

示例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 );
}
 
開發者ID:eclipse,項目名稱:neoscada,代碼行數:17,代碼來源:ProtocolEditor.java

示例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);
}
 
開發者ID:ObeoNetwork,項目名稱:M2Doc,代碼行數:18,代碼來源:GenconfEditor.java

示例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);
}
 
開發者ID:eclipse,項目名稱:triquetrum,代碼行數:14,代碼來源:TriqEditor.java

示例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);
}
 
開發者ID:cplutte,項目名稱:bts,代碼行數:17,代碼來源:BtsmodelEditor.java

示例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);
}
 
開發者ID:germanattanasio,項目名稱:traceability-assistant-eclipse-plugins,代碼行數:19,代碼來源:CarchaEditor.java

示例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);
}
 
開發者ID:mondo-project,項目名稱:mondo-demo-wt,代碼行數:15,代碼來源:WTSpec4MEditor.java

示例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);
}
 
開發者ID:logicalhacking,項目名稱:SecureBPMN,代碼行數:17,代碼來源:Securebpmn2Editor.java

示例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);
}
 
開發者ID:Cooperate-Project,項目名稱:CooperateModelingEnvironment,代碼行數:16,代碼來源:TextualCommonsEditor.java

示例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);
  }
 
開發者ID:lbroudoux,項目名稱:eip-designer,代碼行數:16,代碼來源:EipEditor.java

示例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));
}
 
開發者ID:OpenSoftwareSolutions,項目名稱:PDFReporter-Studio,代碼行數:6,代碼來源:MultiPageToolbarEditorPart.java


注:本文中的org.eclipse.ui.IEditorSite.setSelectionProvider方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。