Examples of CustomPropertyEditorDialog


Examples of org.pentaho.reporting.designer.core.util.table.CustomPropertyEditorDialog

    if("Resource".equals(data.getValueRole()) == false) // NON-NLS
    {
      return;
    }

    final CustomPropertyEditorDialog editorDialog;
    final Component window = getReportDesignerContext().getParent();
   
    if (window instanceof Frame)
    {
      editorDialog = new CustomPropertyEditorDialog((Frame) window);
    }
    else if (window instanceof Dialog)
    {
      editorDialog = new CustomPropertyEditorDialog((Dialog) window);
    }
    else
    {
      editorDialog = new CustomPropertyEditorDialog();
    }
    editorDialog.setTitle(ActionMessages.getString("EditContentRefAction.Text"));
    final ResourcePropertyEditor propertyEditor = new ResourcePropertyEditor(getActiveContext());
    propertyEditor.setValue
            (element.getAttribute(AttributeNames.Core.NAMESPACE, AttributeNames.Core.VALUE));
    if (editorDialog.performEdit(propertyEditor))
    {
      element.setAttribute
              (AttributeNames.Core.NAMESPACE, AttributeNames.Core.VALUE, propertyEditor.getValue());
    }
View Full Code Here

Examples of org.pentaho.reporting.libraries.designtime.swing.propertyeditors.CustomPropertyEditorDialog

    if("Resource".equals(data.getValueRole()) == false) // NON-NLS
    {
      return;
    }

    final CustomPropertyEditorDialog editorDialog;
    final Component window = getReportDesignerContext().getView().getParent();
   
    if (window instanceof Frame)
    {
      editorDialog = new CustomPropertyEditorDialog((Frame) window);
    }
    else if (window instanceof Dialog)
    {
      editorDialog = new CustomPropertyEditorDialog((Dialog) window);
    }
    else
    {
      editorDialog = new CustomPropertyEditorDialog();
    }
    editorDialog.setTitle(ActionMessages.getString("EditContentRefAction.Text"));
    final ResourcePropertyEditor propertyEditor = new ResourcePropertyEditor(getActiveContext());
    propertyEditor.setValue
            (element.getAttribute(AttributeNames.Core.NAMESPACE, AttributeNames.Core.VALUE));
    if (editorDialog.performEdit(propertyEditor))
    {
      element.setAttribute
              (AttributeNames.Core.NAMESPACE, AttributeNames.Core.VALUE, propertyEditor.getValue());
    }
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.