• 如果您觉得本站非常有看点,那么赶紧使用Ctrl+D 收藏吧

Java PageChangedEvent类的典型用法和代码示例

未分类 5次浏览

本文整理汇总了Java中org.eclipse.jface.dialogs.PageChangedEvent的典型用法代码示例。如果您正苦于以下问题:Java PageChangedEvent类的具体用法?Java PageChangedEvent怎么用?Java PageChangedEvent使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。

PageChangedEvent类属于org.eclipse.jface.dialogs包,在下文中一共展示了PageChangedEvent类的33个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: pageChanged

点赞 3

import org.eclipse.jface.dialogs.PageChangedEvent; //导入依赖的package包/类
@Override
public void pageChanged(PageChangedEvent event) {
    Object selectedPage = event.getSelectedPage();

    vpmAnalysisWizard.updateConfiguration();

    if (selectedPage instanceof VPMAnalyzerConfigurationPage) {
        VPMAnalyzerConfigurationPage configPage = (VPMAnalyzerConfigurationPage) selectedPage;
        analyzers = configPage.getAnalyzers();

    } else if (selectedPage instanceof ResultHandlingConfigurationPage) {
        ResultHandlingConfigurationPage resultPage = (ResultHandlingConfigurationPage) selectedPage;
        if (analyzers != null) {
            resultPage.setSelectedAnalyzers(analyzers);
        }
    }
}
 

开发者ID:kopl,
项目名称:SPLevo,
代码行数:18,
代码来源:VPMAnalysisWizardPageChangeListener.java

示例2: firePageChanged

点赞 3

import org.eclipse.jface.dialogs.PageChangedEvent; //导入依赖的package包/类
/**
 * 
 * @param event
 */
protected void firePageChanged( final PageChangedEvent event )
{
	Object[] listeners = pageChangedListeners.getListeners( );
	for ( int i = 0; i < listeners.length; i++ )
	{
		final IPageChangedListener l = (IPageChangedListener) listeners[i];
		SafeRunnable.run( new SafeRunnable( ) {

			public void run( )
			{
				l.pageChanged( event );
			}
		} );
	}
}
 

开发者ID:eclipse,
项目名称:birt,
代码行数:20,
代码来源:AbstractPropertyDialog.java

示例3: firePageChanged

点赞 3

import org.eclipse.jface.dialogs.PageChangedEvent; //导入依赖的package包/类
/**
 * Notifies any selection changed listeners that the selected page has
 * changed. Only listeners registered at the time this method is called
 * are notified.
 * 
 * @param event
 *            a selection changed event
 * 
 * @see IPageChangedListener#pageChanged
 * 
 * @since 2.1
 */
void firePageChanged( final PageChangedEvent event )
{
	Object[] listeners = pageChangedListeners.getListeners( );
	for ( int i = 0; i < listeners.length; i++ )
	{
		final IPageChangedListener l = (IPageChangedListener) listeners[i];
		SafeRunnable.run( new SafeRunnable( ) {

			public void run( )
			{
				l.pageChanged( event );
			}
		} );
	}
}
 

开发者ID:eclipse,
项目名称:birt,
代码行数:28,
代码来源:WizardBaseDialog.java

示例4: openDialogBox

点赞 3

import org.eclipse.jface.dialogs.PageChangedEvent; //导入依赖的package包/类
@Override
protected Object openDialogBox(Control cellEditorWindow)
{
	this.setInjectModel((InjectModel) this.getValue());
	CreateInjectWizard wizard = new CreateInjectWizard(this);
	final WizardDialog dialog = new WizardDialog(cellEditorWindow.getShell(), wizard);
	if (getInjectModel() != null) {
		final IPageChangedListener pageChangedListener = new IPageChangedListener() {
			@Override
			public void pageChanged(PageChangedEvent event)
			{
				if (event.getSelectedPage() instanceof CreateCTablePage) {
					((CreateCTablePage) dialog.getCurrentPage())
							.setData((InjectModel) getInjectModel());
					dialog.removePageChangedListener(this);
				}
			}
		};
		dialog.addPageChangedListener(pageChangedListener);
	}
	dialog.open();
	return this.getInjectModel();
}
 

开发者ID:winture,
项目名称:wt-studio,
代码行数:24,
代码来源:CTableDialogCellEditor.java

示例5: openDialogBox

点赞 3

import org.eclipse.jface.dialogs.PageChangedEvent; //导入依赖的package包/类
protected Object openDialogBox(Control cellEditorWindow)
{
	this.setSqlAreaModel((TableSqlAreaModel) this.getValue());
	CreateTableSqlWizard wizard = new CreateTableSqlWizard(this);
	final WizardDialog dialog = new WizardDialog(cellEditorWindow.getShell(), wizard);
	if (getSqlAreaModel() != null) {
		final IPageChangedListener pageChangedListener = new IPageChangedListener() {
			@Override
			public void pageChanged(PageChangedEvent event)
			{
				if (event.getSelectedPage() instanceof CreateTableSqlPageOne) {
					((CreateTableSqlPageOne) dialog.getCurrentPage())
							.setData((TableSqlAreaModel) getSqlAreaModel());
					dialog.removePageChangedListener(this);
				}
			}
		};
		dialog.addPageChangedListener(pageChangedListener);
	}
	dialog.open();
	return this.getSqlAreaModel();
}
 

开发者ID:winture,
项目名称:wt-studio,
代码行数:23,
代码来源:SqlAreaDialogCellEditor.java

示例6: openDialogBox

点赞 3

import org.eclipse.jface.dialogs.PageChangedEvent; //导入依赖的package包/类
@Override
protected Object openDialogBox(Control cellEditorWindow)
{

	this.setSqlSet((SqlSet) this.getValue());
	CreateChartSqlWizard wizard = new CreateChartSqlWizard(this);
	final WizardDialog dialog = new WizardDialog(cellEditorWindow.getShell(), wizard);
	if (getSqlSet() != null) {
		final IPageChangedListener pageChangedListener = new IPageChangedListener() {
			@Override
			public void pageChanged(PageChangedEvent event)
			{
				if (event.getSelectedPage() instanceof CreateSelectChartPage) {
					((CreateSelectChartPage) dialog.getCurrentPage()).setData(getSqlSet());
					dialog.removePageChangedListener(this);
				}
			}
		};
		dialog.addPageChangedListener(pageChangedListener);
	}
	dialog.open();
	return this.getSqlSet();

}
 

开发者ID:winture,
项目名称:wt-studio,
代码行数:25,
代码来源:SqlSetDialogCellEditor.java

示例7: pageChanged

点赞 3

import org.eclipse.jface.dialogs.PageChangedEvent; //导入依赖的package包/类
@Override
public void pageChanged(PageChangedEvent event) {
	Object selectedPage = event.getSelectedPage();
	if (seenPages.contains(selectedPage))
		return;
	
	seenPages.add(selectedPage);
	if (selectedPage instanceof AbstractTextEditor) {
		IEditorPart editorPart = (IEditorPart) selectedPage;
		IProject project = plugin.getProjectForEditor(editorPart.getEditorInput());
		if (plugin.getIgnoreProjectsList().contains(project.getName()))
			return;
		ISourceViewer sourceViewer = (ISourceViewer) editorPart.getAdapter(ITextOperationTarget.class);
		sourceViewer.getDocument().addDocumentListener(new DocumentListener());
	}
}
 

开发者ID:ChangeOrientedProgrammingEnvironment,
项目名称:eclipseRecorder,
代码行数:17,
代码来源:MultiEditorPageChangedListener.java

示例8: firePageChanged

点赞 3

import org.eclipse.jface.dialogs.PageChangedEvent; //导入依赖的package包/类
/**
 * Notifies any selection changed listeners that the selected page has
 * changed. Only listeners registered at the time this method is called are
 * notified.
 * 
 * @param event
 *          a selection changed event
 * 
 * @see IPageChangedListener#pageChanged
 * 
 * @since 3.1
 */
protected void firePageChanged(final PageChangedEvent event)
{
  Object[] listeners = pageChangedListeners.getListeners();
  for (int i = 0; i < listeners.length; ++i)
  {
    final IPageChangedListener l = (IPageChangedListener) listeners[i];
    SafeRunnable.run(new SafeRunnable()
    {
      public void run()
      {
        l.pageChanged(event);
      }
    });
  }
}
 

开发者ID:terraframe,
项目名称:geoprism,
代码行数:28,
代码来源:LocalizedWizardDialog.java

示例9: createGraphicalEditor

点赞 3

import org.eclipse.jface.dialogs.PageChangedEvent; //导入依赖的package包/类
/**
 * Creates page 1 of the multi-page editor, which allows you to change the
 * font used in page 2.
 */
void createGraphicalEditor() {
	graphicalEditor = new GraphicalMulePropertiesEditor();
	addPageChangedListener(new IPageChangedListener() {
		
		@Override
		public void pageChanged(PageChangedEvent event) {
			if (event.getSelectedPage().equals(textEditor) && graphicalEditor.isDirty()){
				textEditor.getPropertiesDocument().set(graphicalEditor.getContent());
			} else if(textEditor.isDirty()) {
				graphicalEditor.setContent(textEditor.getPropertiesDocument().get());
			}
		}
	});
	
	try {
		graphicalEditorIndex = addPage(graphicalEditor, getEditorInput());
		setPageText(graphicalEditorIndex, graphicalEditor.getTitle());
	} catch (PartInitException e) {
		e.printStackTrace();
	}
	
	
}
 

开发者ID:mulesoft,
项目名称:mule-tooling-incubator,
代码行数:28,
代码来源:MultiPagePropertiesEditor.java

示例10: pageChanged

点赞 2

import org.eclipse.jface.dialogs.PageChangedEvent; //导入依赖的package包/类
/**
 * @see org.eclipse.jface.dialogs.IPageChangedListener#pageChanged(org.eclipse.jface.dialogs.PageChangedEvent)
 */
@Override
public void pageChanged(final PageChangedEvent event) {
	if (two.equals(event.getSelectedPage())) {
		two.updateOrderInfo(one.getOrderForUpdate());
	}
}
 

开发者ID:scenarioo,
项目名称:scenarioo-example-swtbot-e4,
代码行数:10,
代码来源:NewOrderWizard.java

示例11: firePageChanged

点赞 2

import org.eclipse.jface.dialogs.PageChangedEvent; //导入依赖的package包/类
public void firePageChanged(final PageChangedEvent event) {
	Object[] listeners = pageChangeListeners.getListeners();
	for (int i = 0; i < listeners.length; ++i) {
		final IPageChangedListener l = (IPageChangedListener) listeners[i];
		SafeRunnable.run(new SafeRunnable() {
			public void run() {
				l.pageChanged(event);
			}
		});
	}
}
 

开发者ID:OpenSoftwareSolutions,
项目名称:PDFReporter-Studio,
代码行数:12,
代码来源:MultiPageToolbarEditorPart.java

示例12: createPage0

点赞 2

import org.eclipse.jface.dialogs.PageChangedEvent; //导入依赖的package包/类
/**
 * Creates page 1 of the multi-page editor, which allows you to change the font used in page 2.
 */
void createPage0() throws PartInitException {
	reportContainer = new ReportContainer(this, jrContext);
	reportContainer.addPageChangedListener(new IPageChangedListener() {

		public void pageChanged(PageChangedEvent event) {
			updateContentOutline(getActivePage());
		}
	});

	int index = addPage(reportContainer, getEditorInput());
	setPageText(index, Messages.JrxmlEditor_design);
}
 

开发者ID:OpenSoftwareSolutions,
项目名称:PDFReporter-Studio,
代码行数:16,
代码来源:JrxmlEditor.java

示例13: pageChanged

点赞 2

import org.eclipse.jface.dialogs.PageChangedEvent; //导入依赖的package包/类
@Override
protected void pageChanged(PageChangedEvent event) {
	Object page = event.getSelectedPage();
	if (page instanceof IWorkbenchPart) {
		setBaseEnabled(page != null && ((IWorkbenchPart) page).getAdapter(Timeline.class) != null);
	}
}
 

开发者ID:nasa,
项目名称:OpenSPIFe,
代码行数:8,
代码来源:SnapToTimelineHandler.java

示例14: pageChanged

点赞 2

import org.eclipse.jface.dialogs.PageChangedEvent; //导入依赖的package包/类
@Override
protected void pageChanged(PageChangedEvent event) {
	Object selectedPage = event.getSelectedPage();
	if (selectedPage instanceof IWorkbenchPart) {
		setBaseEnabled(isDecorable((IWorkbenchPart) selectedPage));
	}
}
 

开发者ID:nasa,
项目名称:OpenSPIFe,
代码行数:8,
代码来源:OneOfEachRowDecoratorParameter.java

示例15: pageChanged

点赞 2

import org.eclipse.jface.dialogs.PageChangedEvent; //导入依赖的package包/类
@Override
public void pageChanged(PageChangedEvent event) {
	Object page = event.getSelectedPage();
	if (page instanceof IWorkbenchPart) {
		updateHandler((IWorkbenchPart) page);
	}
}
 

开发者ID:nasa,
项目名称:OpenSPIFe,
代码行数:8,
代码来源:FlattenHierarchyHandler.java

示例16: pageChanged

点赞 2

import org.eclipse.jface.dialogs.PageChangedEvent; //导入依赖的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,
代码来源:版权声明:本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系管理员进行删除。

喜欢 (0)