Example #1
0
  protected void createTabs(TabFolder folder, IDialogSettings settings) {
    createDestinationTab(folder);
    createOptionsTab(folder);

    fDestinationTab.initialize(settings);
    fOptionsTab.initialize(settings);
    if (fOptionsTab.useJARFormat()) {
      createJARSigningTab(folder);
      fJARSiginingTab.initialize(settings);
    }
  }
Example #2
0
 protected void pageChanged() {
   if (getMessage() != null) setMessage(null);
   if (fOptionsTab != null) {
     String path = fOptionsTab.getAntBuildFileName();
     String warningMessage = null;
     if (path != null
         && path.length() > 0
         && "build.xml".equals(new Path(path).lastSegment())) // $NON-NLS-1$
     warningMessage = PDEUIMessages.ExportOptionsTab_antReservedMessage;
     setMessage(warningMessage, IMessageProvider.WARNING);
   }
   String error =
       fExportPart.getSelectionCount() > 0 ? null : PDEUIMessages.ExportWizard_status_noselection;
   if (error == null) error = validateTabs();
   setErrorMessage(error);
   setPageComplete(error == null);
 }
Example #3
0
 protected String getQualifier() {
   return fOptionsTab.getQualifier();
 }
Example #4
0
 protected String getAntBuildFileName() {
   return fOptionsTab.getAntBuildFileName();
 }
Example #5
0
 protected boolean doGenerateAntFile() {
   return fOptionsTab.doGenerateAntFile();
 }
Example #6
0
 protected boolean useWorkspaceCompiledClasses() {
   return fOptionsTab.useWorkspaceCompiledClasses();
 }
Example #7
0
 protected boolean allowBinaryCycles() {
   return fOptionsTab.doBinaryCycles();
 }
Example #8
0
 protected boolean useJARFormat() {
   return fOptionsTab.useJARFormat();
 }
Example #9
0
 protected boolean doExportSourceBundles() {
   return fOptionsTab.doExportSourceBundles();
 }
Example #10
0
 protected void saveSettings(IDialogSettings settings) {
   fDestinationTab.saveSettings(settings);
   fOptionsTab.saveSettings(settings);
   if (fJARSiginingTab != null) fJARSiginingTab.saveSettings(settings);
 }
Example #11
0
 protected String validateTabs() {
   String message = fDestinationTab.validate();
   if (message == null) message = fOptionsTab.validate();
   if (message == null && fTabFolder.getItemCount() > 2) message = fJARSiginingTab.validate();
   return message;
 }
Example #12
0
 protected void createOptionsTab(TabFolder folder) {
   fOptionsTab = new ExportOptionsTab(this);
   TabItem item = new TabItem(folder, SWT.NONE);
   item.setControl(fOptionsTab.createControl(folder));
   item.setText(PDEUIMessages.ExportWizard_options);
 }