Examples of createSection()


Examples of org.bukkit.configuration.ConfigurationSection.createSection()

          for (Map.Entry<String, Object> entry : section.getValues(false).entrySet()) {
            final String lowerString = entry.getKey().toLowerCase();
            if (!lowerString.equals(entry.getKey())) {
              section.set(entry.getKey(), null);
              if (entry.getValue() instanceof  ConfigurationSection) {
                section.createSection(lowerString, ((ConfigurationSection) entry.getValue()).getValues(false));
              } else {
                section.set(lowerString, entry.getValue());
              }
            }
          }
View Full Code Here

Examples of org.bukkit.configuration.file.FileConfiguration.createSection()

    if (config.isConfigurationSection(worldname))
      section = config.getConfigurationSection(worldname);
   
    // if not then create it
    if (section == null)
      section = config.createSection(worldname);
   
    /* Create a config in the world's folder
     * Find the generation section
     * Does the global config contain a world section?
     *   Load from that world section
View Full Code Here

Examples of org.bukkit.configuration.file.YamlConfiguration.createSection()

    }
  }
 
  public static void save() {
    YamlConfiguration warYmlConfig = new YamlConfiguration();
    ConfigurationSection warRootSection = warYmlConfig.createSection("set");
    (new File(War.war.getDataFolder().getPath())).mkdir();
    (new File(War.war.getDataFolder().getPath() + "/dat")).mkdir();

    // War settings
    ConfigurationSection warConfigSection = warRootSection.createSection("war.config");
View Full Code Here

Examples of org.eclipse.ui.forms.widgets.FormToolkit.createSection()

    ColumnLayout layout = new ColumnLayout();
    layout.maxNumColumns = 2;
    form.getBody().setLayout(layout);
       
    // encoder section
    Section section = toolkit.createSection(form.getBody(), Section.DESCRIPTION|Section.TITLE_BAR|Section.TWISTIE|Section.EXPANDED);
    section.setText("ACL Roles");

        Composite sectionClient = toolkit.createComposite(section);
        section.setClient(sectionClient);
        GridLayout sectionLayout = new GridLayout();
View Full Code Here

Examples of org.eclipse.ui.forms.widgets.FormToolkit.createSection()

          handleCreatePluginConfig();
        }
      });
    } else {         
      // registration section
      Section section = toolkit.createSection(form.getBody(), Section.DESCRIPTION|Section.TITLE_BAR|Section.TWISTIE|Section.EXPANDED);
      section.setText("Registration");
 
          Composite sectionClient = toolkit.createComposite(section);
          section.setClient(sectionClient);
          GridLayout sectionLayout = new GridLayout();
View Full Code Here

Examples of org.eclipse.ui.forms.widgets.FormToolkit.createSection()

          _txtMinJavaVersion.setLayoutData(prefSize);
          registerField("pluginJavaVersion", _txtMinJavaVersion);
          factory.addFiller(sectionClient, 3);
       
        // information section
        section = toolkit.createSection(form.getBody(), Section.DESCRIPTION|Section.TITLE_BAR|Section.TWISTIE|Section.EXPANDED);
      section.setText("Information and Functionality");
 
          sectionClient = toolkit.createComposite(section);
          section.setClient(sectionClient);
          sectionLayout = new GridLayout();       
View Full Code Here

Examples of org.eclipse.ui.forms.widgets.FormToolkit.createSection()

         
          _chkDisableInit = factory.createCheckBox(sectionClient, "", "Do not execute init/ connect functionalities on plugin itself", "pluginDisableInit");
          registerField("pluginDisableInit", _chkDisableInit);
         
          // dependencies section
      section = toolkit.createSection(form.getBody(), Section.DESCRIPTION|Section.TITLE_BAR|Section.TWISTIE|Section.COMPACT);
      section.setText("Dependencies");
 
          sectionClient = toolkit.createComposite(section);
          section.setClient(sectionClient);
          sectionLayout = new GridLayout();                                     
View Full Code Here

Examples of org.eclipse.ui.forms.widgets.FormToolkit.createSection()

        ColumnLayout layout = new ColumnLayout();
        layout.maxNumColumns = 2;
        form.getBody().setLayout(layout);

        Section section = toolkit.createSection(form.getBody(), Section.DESCRIPTION | Section.TITLE_BAR | Section.TWISTIE | Section.EXPANDED);
        section.setText("Modules");

        Composite sectionClient = toolkit.createComposite(section);
        section.setClient(sectionClient);
        GridLayout sectionLayout = new GridLayout();
View Full Code Here

Examples of org.eclipse.ui.forms.widgets.FormToolkit.createSection()

    ColumnLayout layout = new ColumnLayout();
    layout.maxNumColumns = 2;
    form.getBody().setLayout(layout);
       
    // encoder section
    Section section = toolkit.createSection(form.getBody(), Section.DESCRIPTION|Section.TITLE_BAR|Section.TWISTIE|Section.EXPANDED);
    section.setText("Design Shortcuts");

        Composite sectionClient = toolkit.createComposite(section);
        section.setClient(sectionClient);
        GridLayout sectionLayout = new GridLayout();
View Full Code Here

Examples of org.eclipse.ui.forms.widgets.FormToolkit.createSection()

      tblLayoutData.minimumHeight = 200;
       
      GridData btnLayout = new GridData(GridData.HORIZONTAL_ALIGN_FILL, GridData.VERTICAL_ALIGN_FILL, true, false);
     
        // mediakeys section
    Section section = toolkit.createSection(form.getBody(), Section.DESCRIPTION|Section.TITLE_BAR|Section.TWISTIE|Section.EXPANDED);
    section.setText("Media Keys");

        Composite sectionClient = toolkit.createComposite(section);
        section.setClient(sectionClient);     
        sectionClient.setLayout(sectionLayout);   
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.