Пример #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);
 }