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

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


        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


    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
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.