Package org.springframework.ide.eclipse.beans.ui.properties.model

Examples of org.springframework.ide.eclipse.beans.ui.properties.model.PropertiesConfigSet


        editButtonsEnabled = ((PropertiesConfigSet) selectedElement).getType()
          == IBeansConfigSet.Type.MANUAL;
      }
      else if (selected instanceof PropertiesConfig) {
        PropertiesConfig config = (PropertiesConfig) selected;
        PropertiesConfigSet configSet = (PropertiesConfigSet) config.getElementParent();
        if (configSet != null && configSet.getConfigs().size() > 1) {
          selectedElement = config;
          moveButtonsEnabled = true;
        }
      }
      else {
View Full Code Here


   * The user has pressed the up button. Move the selected config up.
   */
  private void handleUpButtonPressed() {
    if (selectedElement != null && selectedElement instanceof PropertiesConfig) {
      PropertiesConfig config = (PropertiesConfig) selectedElement;
      PropertiesConfigSet configSet = (PropertiesConfigSet) config.getElementParent();
      configSet.moveConfigUp(config);
      configSetsViewer.refresh(false);
      hasUserMadeChanges = true;
    }
  }
View Full Code Here

    @Override
    public void run() {
      IBeansProject beansProject = BeansModelUtils.getProject(config);
      if (beansProject != null) {
        PropertiesProject modelProject = new PropertiesProject(new PropertiesModel(), beansProject);
        PropertiesConfigSet propSet = (PropertiesConfigSet) modelProject.getConfigSet(configSet.getElementName());
        propSet.addConfig(config.getElementName());
        modelProject.saveDescription();
        BeansModelLabelDecorator.update();
      }
    }
View Full Code Here

  public ConfigSetDialog(Shell parent, PropertiesProject project,
      String configSetName, IBeansConfigSet.Type type) {
    super(parent);
    this.project = project;
    if (configSetName == null) {
      configSet = new PropertiesConfigSet(project, (String) null, type);
      title = BeansUIPlugin.getResourceString(TITLE_NEW);
      mode = Mode.NEW;
    } else {
      configSet = (PropertiesConfigSet) project.getConfigSet(configSetName);
      title = BeansUIPlugin.getResourceString(TITLE_EDIT);
View Full Code Here

   * The user has pressed the down button. Move the selected config down.
   */
  private void handleDownButtonPressed() {
    if (selectedElement != null && selectedElement instanceof PropertiesConfig) {
      PropertiesConfig config = (PropertiesConfig) selectedElement;
      PropertiesConfigSet configSet = (PropertiesConfigSet) config.getElementParent();
      configSet.moveConfigDown(config);
      configSetsViewer.refresh(false);
      hasUserMadeChanges = true;
    }
  }
View Full Code Here

    @Override
    public void run() {
      IBeansProject beansProject = BeansModelUtils.getProject(config);
      if (beansProject != null) {
        PropertiesProject modelProject = new PropertiesProject(new PropertiesModel(), beansProject);
        PropertiesConfigSet propSet = (PropertiesConfigSet) modelProject.getConfigSet(configSet.getElementName());
        propSet.removeConfig(config.getElementName());
        modelProject.saveDescription();
        BeansModelLabelDecorator.update();
      }
    }
View Full Code Here

TOP

Related Classes of org.springframework.ide.eclipse.beans.ui.properties.model.PropertiesConfigSet

Copyright © 2018 www.massapicom. 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.