本文整理汇总了Java中org.eclipse.jface.dialogs.PageChangedEvent类的典型用法代码示例。如果您正苦于以下问题:Java PageChangedEvent类的具体用法?Java PageChangedEvent怎么用?Java PageChangedEvent使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
PageChangedEvent类属于org.eclipse.jface.dialogs包,在下文中一共展示了PageChangedEvent类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: pageChanged
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);
}
}
}
示例2: firePageChanged
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 );
}
} );
}
}
示例3: firePageChanged
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 );
}
} );
}
}
示例4: openDialogBox
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();
}
示例5: openDialogBox
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();
}
示例6: openDialogBox
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();
}
示例7: pageChanged
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
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);
}
});
}
}
示例9: createGraphicalEditor
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();
}
}
示例10: pageChanged
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());
}
}
示例11: firePageChanged
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);
}
});
}
}
示例12: createPage0
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);
}
示例13: pageChanged
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);
}
}
示例14: pageChanged
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));
}
}
示例15: pageChanged
import org.eclipse.jface.dialogs.PageChangedEvent; //导入依赖的package包/类
@Override
public void pageChanged(PageChangedEvent event) {
Object page = event.getSelectedPage();
if (page instanceof IWorkbenchPart) {
updateHandler((IWorkbenchPart) page);
}
}