List of usage examples for org.eclipse.jface.dialogs IPageChangeProvider addPageChangedListener
void addPageChangedListener(IPageChangedListener listener);
From source file:generic.ImportWizard.java
License:Open Source License
@Override public void addPages() { addPage(new ImportDataPage()); addPage(new SpecifyDataPage()); IWizardContainer wizardContainer = getContainer(); if (wizardContainer instanceof IPageChangeProvider) { IPageChangeProvider pageChangeProvider = (IPageChangeProvider) wizardContainer; for (IWizardPage page : getPages()) { if (page instanceof IPageChangedListener) { pageChangeProvider.addPageChangedListener((IPageChangedListener) page); }// w w w . j a v a 2 s. c o m } } }
From source file:net.sf.eclipsensis.wizard.AbstractNSISWizardPage.java
License:Open Source License
@Override public void setWizard(IWizard newWizard) { if (mWizard != null) { IPageChangeProvider pageChangeProvider = (IPageChangeProvider) mWizard .getAdapter(IPageChangeProvider.class); if (pageChangeProvider != null) { pageChangeProvider.removePageChangedListener(this); }//from ww w . ja v a 2 s. c om } super.setWizard(newWizard); mWizard = (NSISWizard) newWizard; if (mWizard != null) { IPageChangeProvider pageChangeProvider = (IPageChangeProvider) mWizard .getAdapter(IPageChangeProvider.class); if (pageChangeProvider != null) { pageChangeProvider.addPageChangedListener(this); } } }
From source file:net.sf.eclipsensis.wizard.NSISWizard.java
License:Open Source License
@Override public void setContainer(IWizardContainer wizardContainer) { if (getContainer() == mPageChangeProvider) { mPageChangeProvider = null;/*w w w . ja v a 2s . co m*/ } super.setContainer(wizardContainer); if (getContainer() instanceof IPageChangeProvider) { IPageChangeProvider pageChangeProvider = (IPageChangeProvider) getContainer(); if (mPageChangeProvider instanceof PageChangeProvider) { List<IPageChangedListener> list = ((PageChangeProvider) mPageChangeProvider).getListeners(); IPageChangedListener[] listeners = list.toArray(new IPageChangedListener[list.size()]); for (int i = 0; i < listeners.length; i++) { pageChangeProvider.addPageChangedListener(listeners[i]); list.remove(listeners[i]); } mPageChangeProvider = null; } mPageChangeProvider = pageChangeProvider; } }
From source file:org.caleydo.core.io.gui.dataimport.wizard.DataImportWizard.java
License:Open Source License
@Override public void addPages() { loadDataSetPage = new LoadDataSetPage(dataSetDescription); dataSetTypePage = new DataSetTypePage(dataSetDescription); numericalDataPage = new NumericalDataPropertiesPage(dataSetDescription); categoricalDataPage = new CategoricalDataPropertiesPage(dataSetDescription); inhomogeneousDataPropertiesPage = new InhomogeneousDataPropertiesPage(dataSetDescription); addGroupingsPage = new AddGroupingsPage(dataSetDescription); IWizardContainer wizardContainer = getContainer(); if (wizardContainer instanceof IPageChangeProvider) { IPageChangeProvider pageChangeProvider = (IPageChangeProvider) wizardContainer; pageChangeProvider.addPageChangedListener(loadDataSetPage); pageChangeProvider.addPageChangedListener(dataSetTypePage); pageChangeProvider.addPageChangedListener(numericalDataPage); pageChangeProvider.addPageChangedListener(categoricalDataPage); pageChangeProvider.addPageChangedListener(inhomogeneousDataPropertiesPage); pageChangeProvider.addPageChangedListener(addGroupingsPage); }//from w w w . ja v a 2 s . c om addPage(loadDataSetPage); addPage(dataSetTypePage); addPage(categoricalDataPage); addPage(numericalDataPage); addPage(inhomogeneousDataPropertiesPage); addPage(addGroupingsPage); }
From source file:org.caleydo.datadomain.image.wizard.ImageImportWizard.java
License:Open Source License
@Override public void addPages() { selectImageSetPage = new SelectImageSetPage(); loadImageSetPage = new LoadImageSetPage(); IWizardContainer wizardContainer = getContainer(); if (wizardContainer instanceof IPageChangeProvider) { IPageChangeProvider pageChangeProvider = (IPageChangeProvider) wizardContainer; pageChangeProvider.addPageChangedListener(selectImageSetPage); pageChangeProvider.addPageChangedListener(loadImageSetPage); }//w ww . j av a 2 s .co m addPage(selectImageSetPage); addPage(loadImageSetPage); }
From source file:org.caleydo.view.enroute.correlation.fisher.FishersExactTestWizard.java
License:Open Source License
@Override public void addPages() { // List<Color> allColors = ColorBrewer.Set3.get(5); List<Color> seq1 = ColorBrewer.Oranges.get(3); List<Color> seq2 = ColorBrewer.Blues.get(3); firstDataCellPage = new FishersSelectDataCellPage("FirstBlock", "Select First Data Block", null, Lists.newArrayList(seq1.get(0), seq1.get(2)), "With Fisher's Exact Test you can evaluate the statistical significance of a association based on a contingency table. You will divide the data by selecting two data blocks in enRoute that you want to compare, and by classifying the data in these blocks.\n\n" + "To start, click on the first data block that you want to compare now.", "");// w w w.j a v a 2s . co m // firstDataCellPage // .setDescription("With Fisher's Exact Test you can evaluate the statistical significance of a correlation based on a contingency table. You will divide the data by selecting two data blocks in enRoute that you want to compare, and by setting thresholds in these blocks.\n\n" // + "To start, click on the first data block that you want to compare now."); secondDataCellPage = new FishersSelectDataCellPage("SecondBlock", "Select Second Data Block", null, Lists.newArrayList(seq2.get(0), seq2.get(2)), "Select the second data block.", "Restriction: Make sure to select data blocks that have common samples with the first data block."); FishersExactTestResultPage resultPage = new FishersExactTestResultPage("Result", "Resulting Contingency Table and P-Values", null); IWizardContainer wizardContainer = getContainer(); if (wizardContainer instanceof IPageChangeProvider) { IPageChangeProvider pageChangeProvider = (IPageChangeProvider) wizardContainer; pageChangeProvider.addPageChangedListener(firstDataCellPage); pageChangeProvider.addPageChangedListener(secondDataCellPage); pageChangeProvider.addPageChangedListener(resultPage); } addPage(firstDataCellPage); addPage(secondDataCellPage); addPage(resultPage); }
From source file:org.caleydo.view.enroute.correlation.wilcoxon.WilcoxonRankSumTestWizard.java
License:Open Source License
@Override public void addPages() { // List<Color> allColors = ColorBrewer.Set3.get(5); methodSelectionPage = new WilcoxonMethodSelectionPage("Method", "Select the method for applying the test", null);//from w w w. j a va 2s . c o m manualSourceDataCellPage = new WilcoxonManualSourceDataCellPage("FirstBlock", "Select First Data Block", null, Lists.newArrayList(CLASSIFICATION_COLORS_1.getFirst(), CLASSIFICATION_COLORS_1.getSecond())); manualTargetDataCellPage = new WilcoxonManualTargetDataCellPage("SecondBlock", "Select Second Data Block", null); manualResultPage = new WilcoxonManualResultPage("Results", "Summary and Results", null); autoSourceDataCellPage = new WilcoxonAutoSourceDataCellPage("FirstAutoBlock", "Select First Data Block", null, CLASSIFICATION_COLORS_1.getFirst()); autoTargetDataCellPage = new WilcoxonAutoTargetDataCellPage("SecondAutoBlock", "Select Second Data Block", null, CLASSIFICATION_COLORS_2.getFirst()); autoResultPage = new WilcoxonAutoResultPage("AutoResults", "Summary and Results", null); IWizardContainer wizardContainer = getContainer(); if (wizardContainer instanceof IPageChangeProvider) { IPageChangeProvider pageChangeProvider = (IPageChangeProvider) wizardContainer; pageChangeProvider.addPageChangedListener(methodSelectionPage); pageChangeProvider.addPageChangedListener(manualSourceDataCellPage); pageChangeProvider.addPageChangedListener(manualTargetDataCellPage); pageChangeProvider.addPageChangedListener(manualResultPage); pageChangeProvider.addPageChangedListener(autoSourceDataCellPage); pageChangeProvider.addPageChangedListener(autoTargetDataCellPage); pageChangeProvider.addPageChangedListener(autoResultPage); } addPage(methodSelectionPage); addPage(manualSourceDataCellPage); addPage(manualTargetDataCellPage); addPage(manualResultPage); addPage(autoSourceDataCellPage); addPage(autoTargetDataCellPage); addPage(autoResultPage); }
From source file:org.caleydo.view.relationshipexplorer.ui.dialog.columnconfig.ConfigureColumnTypeWizard.java
License:Open Source License
@Override public void addPages() { dataTypePage = new DataTypePage("Data Type", "Specify the data the column is based on", null); itemRendererPage = new ItemRendererPage("Item Representation", "Select the representations for individual items in the column", null); summaryRendererPage = new SummaryRendererPage("Summary Representation", "Select the summary representations for multiple items in the column", null); detailViewPage = new DetailViewPage("Detail View", "Select the detail view for this column", null); addPage(dataTypePage);/*from w ww. j av a2 s .c o m*/ addPage(itemRendererPage); addPage(summaryRendererPage); addPage(detailViewPage); IWizardContainer wizardContainer = getContainer(); if (wizardContainer instanceof IPageChangeProvider) { IPageChangeProvider pageChangeProvider = (IPageChangeProvider) wizardContainer; pageChangeProvider.addPageChangedListener(dataTypePage); pageChangeProvider.addPageChangedListener(itemRendererPage); pageChangeProvider.addPageChangedListener(summaryRendererPage); pageChangeProvider.addPageChangedListener(detailViewPage); } }
From source file:org.eclipse.birt.integration.wtp.ui.internal.wizards.BirtWebProjectWizardConfigurationPage.java
License:Open Source License
/** * Create Configuration Page/*w w w . j av a 2s . co m*/ * * @see org.eclipse.ui.dialogs.WizardNewProjectCreationPage#createControl(org.eclipse.swt.widgets.Composite) */ public void createControl(Composite parent) { Composite composite = new Composite(parent, SWT.NULL); composite.setFont(parent.getFont()); initializeDialogUnits(parent); composite.setLayout(new GridLayout()); composite.setLayoutData(new GridData(GridData.FILL_BOTH)); // create folder configuration group Group paths = new Group(composite, SWT.NULL); paths.setLayout(new GridLayout()); paths.setLayoutData(new GridData(GridData.FILL_HORIZONTAL)); paths.setText(BirtWTPMessages.BIRTConfiguration_group_paths); paths.setEnabled(true); // Initialize UI Utility UIUtil uit = new UIUtil(properties); // create resource folder setting group this.txtResourceFolder = uit.createResourceFolderGroup(paths); // create working folder setting group this.txtWorkingFolder = uit.createWorkingFolderGroup(paths); // create document folder setting group this.txtDocumentFolder = uit.createDocumentFolderGroup(paths); // create image folder setting group this.txtImageFolder = uit.createImageFolderGroup(paths); // create scriptlib folder setting group this.txtScriptlibFolder = uit.createScriptLibFolderGroup(paths); // create log folder setting group this.txtLogFolder = uit.createLogFolderGroup(paths); // create other configuration group Group others = new Group(composite, SWT.NULL); others.setLayout(new GridLayout()); others.setLayoutData(new GridData(GridData.FILL_HORIZONTAL)); others.setText(BirtWTPMessages.BIRTConfiguration_group_others); others.setEnabled(true); // create ifaccess only setting group this.btAccessOnly = uit.createAccessOnlyGroup(others); // create log level setting group this.cbLogLevel = uit.createLogLevelGroup(others); // create print server setting group this.cbPrintServer = uit.createPrintServerGroup(others); // create max rows setting group this.txtMaxRows = uit.createMaxRowsGroup(others); // create max cube fetching row levels setting group this.txtMaxRowLevels = uit.createMaxRowLevelsGroup(others); // create max cube fetching column levels setting group this.txtMaxColumnLevels = uit.createMaxColumnLevelsGroup(others); // create max cube memory size setting group this.txtCubeMemorySize = uit.createCubeMemorySizeGroup(others); // initialize page properties map initializeProperties(); setControl(composite); IWizardContainer container = getContainer(); if (container instanceof IPageChangeProvider) { IPageChangeProvider pageChangeProvider = (IPageChangeProvider) container; pageChangeProvider.addPageChangedListener(new WizardPageChangedListener(this)); } }
From source file:org.eclipse.buildship.ui.wizard.project.ProjectCreationWizard.java
License:Open Source License
@Override public void setContainer(IWizardContainer wizardContainer) { if (wizardContainer instanceof IPageChangeProvider) { IPageChangeProvider pageChangeProvider = (IPageChangeProvider) wizardContainer; pageChangeProvider.addPageChangedListener(this.pageChangeListener); }/* w w w . j a v a2 s.co m*/ super.setContainer(wizardContainer); }