Package org.eclipse.jst.jsf.common.ui.internal.dialogs

Examples of org.eclipse.jst.jsf.common.ui.internal.dialogs.ResourceOnClasspathDialog


      if (field instanceof ClasspathResourceButtonDialogField)
      {
        ClasspathResourceButtonDialogField classPathField =
          (ClasspathResourceButtonDialogField) field;
        Shell shell = field.getShell();
        ResourceOnClasspathDialog dialog =
          new ResourceOnClasspathDialog(shell, getJavaProject());
        dialog.setTitle(JSFUICommonPlugin
            .getResourceString("DialogField.ResourceButton.SelectFile"));//$NON-NLS-1$
        dialog.setSuffixs(PROPERTIES_FILES_SUFFIXS);
        if (dialog.open() == Window.OK) {
          String oldValue = classPathField.getText();
 
          String newValue = (String) dialog.getResult()[0];
          if (oldValue != newValue) {
            classPathField.setText(newValue);
          }
        }
      }
View Full Code Here


   * (non-Javadoc)
   *
   * @see org.eclipse.jface.viewers.DialogCellEditor#openDialogBox(org.eclipse.swt.widgets.Control)
   */
  protected Object openDialogBox(Control cellEditorWindow) {
    ResourceOnClasspathDialog dialog = new ResourceOnClasspathDialog(
        cellEditorWindow.getShell(), DesignerPropertyTool
            .getJavaProject(_project));
    dialog.setTitle(ResourceBoundle.getString("FileCellEditor.Title")); //$NON-NLS-1$
    dialog.setSuffixs(PROPERTIES_FILES_SUFFIXS);
    dialog.open();
    if (dialog.getResult() != null) {
      _value = (String) dialog.getResult()[0];
    }
    return _value;
  }
View Full Code Here

TOP

Related Classes of org.eclipse.jst.jsf.common.ui.internal.dialogs.ResourceOnClasspathDialog

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.