示例#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);
    }
  }
示例#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);
 }
示例#3
0
 protected String getQualifier() {
   return fOptionsTab.getQualifier();
 }
示例#4
0
 protected String getAntBuildFileName() {
   return fOptionsTab.getAntBuildFileName();
 }
示例#5
0
 protected boolean doGenerateAntFile() {
   return fOptionsTab.doGenerateAntFile();
 }
示例#6
0
 protected boolean useWorkspaceCompiledClasses() {
   return fOptionsTab.useWorkspaceCompiledClasses();
 }
示例#7
0
 protected boolean allowBinaryCycles() {
   return fOptionsTab.doBinaryCycles();
 }
示例#8
0
 protected boolean useJARFormat() {
   return fOptionsTab.useJARFormat();
 }
示例#9
0
 protected boolean doExportSourceBundles() {
   return fOptionsTab.doExportSourceBundles();
 }
示例#10
0
 protected void saveSettings(IDialogSettings settings) {
   fDestinationTab.saveSettings(settings);
   fOptionsTab.saveSettings(settings);
   if (fJARSiginingTab != null) fJARSiginingTab.saveSettings(settings);
 }
示例#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;
 }
示例#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);
 }