本文整理汇总了Java中org.eclipse.ui.part.WorkbenchPart类的典型用法代码示例。如果您正苦于以下问题:Java WorkbenchPart类的具体用法?Java WorkbenchPart怎么用?Java WorkbenchPart使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
WorkbenchPart类属于org.eclipse.ui.part包,在下文中一共展示了WorkbenchPart类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: getActions
import org.eclipse.ui.part.WorkbenchPart; //导入依赖的package包/类
public List<Action> getActions(WorkbenchPart part) {
List<Action> lst = new ArrayList<Action>();
lst.add(new CreateChartAxisAction(part));
lst.add(new CreateCategorySeriesAction(part));
lst.add(new CreateGanttAction(part));
lst.add(new CreatePieAction(part));
lst.add(new CreateTimePeriodAction(part));
lst.add(new CreateTimeAction(part));
lst.add(new CreateXYAction(part));
lst.add(new CreateXYZAction(part));
lst.add(new ChartWizardAction(part));
return lst;
}
开发者ID:OpenSoftwareSolutions,项目名称:PDFReporter-Studio,代码行数:14,代码来源:ChartComponentFactory.java
示例2: getActions
import org.eclipse.ui.part.WorkbenchPart; //导入依赖的package包/类
public List<Action> getActions(WorkbenchPart part) {
List<Action> lst = new ArrayList<Action>();
// lst.add(new CreateMeasureAction(part));
// lst.add(new CreateColumnGroupAction(part));
// lst.add(new CreateRowGroupAction(part));
// lst.add(new CreateCrosstabHeaderAction(part));
// lst.add(new CreateCrosstabWhenNoDataAction(part));
lst.add(new EditCrosstabStyleAction(part));
lst.add(new RemoveCrosstabStylesAction(part));
return lst;
}
开发者ID:OpenSoftwareSolutions,项目名称:PDFReporter-Studio,代码行数:12,代码来源:CrosstabComponentFactory.java
示例3: getActions
import org.eclipse.ui.part.WorkbenchPart; //导入依赖的package包/类
public List<Action> getActions(WorkbenchPart part) {
List<Action> lst = new ArrayList<Action>();
// lst.add(new CreateColumnAction(part));
// lst.add(new CreateColumnGroupAction(part));
// lst.add(new CreateColumnCellAction(part));
lst.add(new EditTableStyleAction(part));
lst.add(new RemoveTableStylesAction(part));
return lst;
}
开发者ID:OpenSoftwareSolutions,项目名称:PDFReporter-Studio,代码行数:10,代码来源:TableComponentFactory.java
示例4: getActions
import org.eclipse.ui.part.WorkbenchPart; //导入依赖的package包/类
public List<Action> getActions(WorkbenchPart part) {
List<Action> lst = new ArrayList<Action>();
for (IComponentFactory f : nodeFactory) {
List<Action> l = f.getActions(part);
if (l != null && !l.isEmpty())
lst.addAll(l);
}
return lst;
}
开发者ID:OpenSoftwareSolutions,项目名称:PDFReporter-Studio,代码行数:10,代码来源:ExtensionManager.java
示例5: registerListener
import org.eclipse.ui.part.WorkbenchPart; //导入依赖的package包/类
protected void registerListener(IEditorPart editorPart) {
Validate.notNull(editorPart);
disposeListener = createDisposeListener(editorPart);
disposeListener.ifPresent(editorPart.getSite().getPage()::addPartListener);
Optional.of(editorPart).filter(WorkbenchPart.class::isInstance).map(WorkbenchPart.class::cast)
.ifPresent(e -> e.addPartPropertyListener(this::propertyChanged));
}
开发者ID:Cooperate-Project,项目名称:CooperateModelingEnvironment,代码行数:10,代码来源:EditorLauncherBase.java
示例6: setTitle
import org.eclipse.ui.part.WorkbenchPart; //导入依赖的package包/类
private void setTitle(IEditorPart key, String value)
{
try
{
Method m = WorkbenchPart.class.getDeclaredMethod("setPartName", String.class); //$NON-NLS-1$
m.setAccessible(true);
m.invoke(key, value);
}
catch (Exception e)
{
IdeLog.logError(CommonEditorPlugin.getDefault(), e);
}
}
开发者ID:apicloudcom,项目名称:APICloud-Studio,代码行数:14,代码来源:FilenameDifferentiator.java
示例7: partActivated
import org.eclipse.ui.part.WorkbenchPart; //导入依赖的package包/类
@Override
protected void partActivated(IWorkbenchPart part) {
if (part instanceof MultiPagePlanEditor) {
part = ((MultiPagePlanEditor) part).getCurrentEditor();
}
Object adapter = ((WorkbenchPart) part).getAdapter(MergeRowHighlightDecorator.class);
MergeRowHighlightDecorator decorator = (MergeRowHighlightDecorator) adapter;
updateState(decorator);
}
开发者ID:nasa,项目名称:OpenSPIFe,代码行数:10,代码来源:ShowRowHighlightHandler.java
示例8: pageChanged
import org.eclipse.ui.part.WorkbenchPart; //导入依赖的package包/类
@Override
public void pageChanged(PageChangedEvent event) {
Object page = event.getSelectedPage();
if (page instanceof IWorkbenchPart) {
Object adapter = ((WorkbenchPart) page).getAdapter(MergeRowHighlightDecorator.class);
MergeRowHighlightDecorator decorator = (MergeRowHighlightDecorator) adapter;
updateState(decorator);
}
}
开发者ID:nasa,项目名称:OpenSPIFe,代码行数:10,代码来源:ShowRowHighlightHandler.java
示例9: getWorkbenchPart
import org.eclipse.ui.part.WorkbenchPart; //导入依赖的package包/类
public WorkbenchPart getWorkbenchPart() {
return viewPart;
}
开发者ID:Microsoft,项目名称:team-explorer-everywhere,代码行数:4,代码来源:TeamExplorerContext.java
示例10: getActions
import org.eclipse.ui.part.WorkbenchPart; //导入依赖的package包/类
public List<Action> getActions(WorkbenchPart part) {
return null;
}
开发者ID:OpenSoftwareSolutions,项目名称:PDFReporter-Studio,代码行数:4,代码来源:HtmlComponentFactory.java
示例11: getActions
import org.eclipse.ui.part.WorkbenchPart; //导入依赖的package包/类
@Override
public List<Action> getActions(WorkbenchPart part) {
return null;
}
开发者ID:OpenSoftwareSolutions,项目名称:PDFReporter-Studio,代码行数:5,代码来源:CVComponentFactory.java
示例12: getActions
import org.eclipse.ui.part.WorkbenchPart; //导入依赖的package包/类
public List<Action> getActions(WorkbenchPart part) {
List<Action> lst = new ArrayList<Action>();
lst.add(new ChartSpiderWizardAction(part));
return lst;
}
开发者ID:OpenSoftwareSolutions,项目名称:PDFReporter-Studio,代码行数:6,代码来源:SpiderChartComponentFactory.java
示例13: execute
import org.eclipse.ui.part.WorkbenchPart; //导入依赖的package包/类
@Override
public Object execute(ExecutionEvent event) throws ExecutionException {
Optional.ofNullable(HandlerUtil.getActivePartChecked(event)).filter(WorkbenchPart.class::isInstance)
.map(WorkbenchPart.class::cast).ifPresent(this::notifyEditorAboutRequest);
return null;
}
开发者ID:Cooperate-Project,项目名称:CooperateModelingEnvironment,代码行数:7,代码来源:EditorNotifierHandlerBase.java
示例14: notifyEditorAboutRequest
import org.eclipse.ui.part.WorkbenchPart; //导入依赖的package包/类
private void notifyEditorAboutRequest(WorkbenchPart part) {
part.setPartProperty(key, null);
part.setPartProperty(key, Boolean.TRUE.toString());
}
开发者ID:Cooperate-Project,项目名称:CooperateModelingEnvironment,代码行数:5,代码来源:EditorNotifierHandlerBase.java
示例15: getActions
import org.eclipse.ui.part.WorkbenchPart; //导入依赖的package包/类
public List<Action> getActions(WorkbenchPart part);
开发者ID:OpenSoftwareSolutions,项目名称:PDFReporter-Studio,代码行数:2,代码来源:IComponentFactory.java
注:本文中的org.eclipse.ui.part.WorkbenchPart类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论