Package org.objectstyle.wolips.eomodeler.utils

Examples of org.objectstyle.wolips.eomodeler.utils.StringLabelProvider


    } catch (JavaModelException e) {
      // JTourBusPlugin.log(e);
      e.printStackTrace();
    }

    ElementListSelectionDialog dialog = new ElementListSelectionDialog(getShell(), new StringLabelProvider());
    dialog.setIgnoreCase(true);
    dialog.setTitle(NewWizardMessages.NewTypeWizardPage_SuperClassDialog_title);
    dialog.setMessage(NewWizardMessages.NewTypeWizardPage_SuperClassDialog_message);
    // dialog.setEmptyListMessage(NewWizardMessages.NewTypeWiz);
    dialog.setFilter(_superclassDialogField.getText());
View Full Code Here


    UglyFocusHackWorkaroundListener.addListener(_attributeSuffix);

    getWidgetFactory().createCLabel(topForm, Messages.getString("EOModel." + EOModel.ATTRIBUTE_NAMING_CONVENTION + ".case"), SWT.NONE);
    Combo attributeCaseCombo = new Combo(topForm, SWT.BORDER | SWT.FLAT | SWT.READ_ONLY);
    _attributeCase = new ComboViewer(attributeCaseCombo);
    _attributeCase.setLabelProvider(new StringLabelProvider());
    _attributeCase.setContentProvider(new ArrayContentProvider());
    _attributeCase.setInput(NamingConvention.Case.values());
    attributeCaseCombo.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));

    getWidgetFactory().createCLabel(topForm, Messages.getString("EOModel." + EOModel.ATTRIBUTE_NAMING_CONVENTION + ".separator"), SWT.NONE);
    Combo attributeSeparatorCombo = new Combo(topForm, SWT.BORDER | SWT.FLAT | SWT.READ_ONLY);
    _attributeSeparator = new ComboViewer(attributeSeparatorCombo);
    _attributeSeparator.setLabelProvider(new StringLabelProvider());
    _attributeSeparator.setContentProvider(new ArrayContentProvider());
    _attributeSeparator.setInput(NamingConvention.Separator.values());
    attributeSeparatorCombo.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));

    getWidgetFactory().createCLabel(topForm, Messages.getString("EOModel." + EOModel.ENTITY_NAMING_CONVENTION + ".prefix"), SWT.NONE);
    _entityPrefix = new Text(topForm, SWT.BORDER);
    _entityPrefix.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
    UglyFocusHackWorkaroundListener.addListener(_entityPrefix);

    getWidgetFactory().createCLabel(topForm, Messages.getString("EOModel." + EOModel.ENTITY_NAMING_CONVENTION + ".suffix"), SWT.NONE);
    _entitySuffix = new Text(topForm, SWT.BORDER);
    _entitySuffix.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
    UglyFocusHackWorkaroundListener.addListener(_entitySuffix);

    getWidgetFactory().createCLabel(topForm, Messages.getString("EOModel." + EOModel.ENTITY_NAMING_CONVENTION + ".case"), SWT.NONE);
    Combo entityCaseCombo = new Combo(topForm, SWT.BORDER | SWT.FLAT | SWT.READ_ONLY);
    _entityCase = new ComboViewer(entityCaseCombo);
    _entityCase.setLabelProvider(new StringLabelProvider());
    _entityCase.setContentProvider(new ArrayContentProvider());
    _entityCase.setInput(NamingConvention.Case.values());
    entityCaseCombo.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));

    getWidgetFactory().createCLabel(topForm, Messages.getString("EOModel." + EOModel.ENTITY_NAMING_CONVENTION + ".separator"), SWT.NONE);
    Combo entitySeparatorCombo = new Combo(topForm, SWT.BORDER | SWT.FLAT | SWT.READ_ONLY);
    _entitySeparator = new ComboViewer(entitySeparatorCombo);
    _entitySeparator.setLabelProvider(new StringLabelProvider());
    _entitySeparator.setContentProvider(new ArrayContentProvider());
    _entitySeparator.setInput(NamingConvention.Separator.values());
    entitySeparatorCombo.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
   
    getWidgetFactory().createCLabel(topForm, "", SWT.NONE);
View Full Code Here

    UglyFocusHackWorkaroundListener.addListener(_passwordText);

    widgetFactory.createCLabel(this, Messages.getString("EOModel." + EODatabaseConfig.AUTHENTICATION_METHOD), SWT.NONE);
    _authenticationMethodComboViewer = new ComboViewer(this, SWT.READ_ONLY);
    _authenticationMethodComboViewer.setContentProvider(new AuthenticationMethodContentProvider());
    _authenticationMethodComboViewer.setLabelProvider(new StringLabelProvider());
    _authenticationMethodComboViewer.getCombo().setLayoutData(new GridData(GridData.FILL_HORIZONTAL));

    widgetFactory.createCLabel(this, Messages.getString("EOModel." + EODatabaseConfig.TIMEOUT), SWT.NONE);
    _timeoutText = new Text(this, SWT.BORDER);
    _timeoutText.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
    UglyFocusHackWorkaroundListener.addListener(_timeoutText);

    widgetFactory.createCLabel(this, Messages.getString("EOModel." + EODatabaseConfig.SCOPE), SWT.NONE);
    _scopeComboViewer = new ComboViewer(this, SWT.READ_ONLY);
    _scopeComboViewer.setContentProvider(new ScopeContentProvider());
    _scopeComboViewer.setLabelProvider(new StringLabelProvider());
    _scopeComboViewer.getCombo().setLayoutData(new GridData(GridData.FILL_HORIZONTAL));

    widgetFactory.createCLabel(this, Messages.getString("EOModel." + EODatabaseConfig.PLUGIN), SWT.NONE);
    _plugInClassNameText = new Text(this, SWT.BORDER);
    _plugInClassNameText.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
View Full Code Here

    _prototypeComboViewer.getCombo().setLayoutData(new GridData(GridData.FILL_HORIZONTAL));

    getWidgetFactory().createCLabel(topForm, Messages.getString("EODatabaseConfig." + EODatabaseConfig.ADAPTOR_NAME), SWT.NONE);
    _adaptorNameComboViewer = new ComboViewer(topForm, SWT.READ_ONLY);
    _adaptorNameComboViewer.setContentProvider(new AdaptorNameContentProvider());
    _adaptorNameComboViewer.setLabelProvider(new StringLabelProvider());
    _adaptorNameComboViewer.getCombo().setLayoutData(new GridData(GridData.FILL_HORIZONTAL));

    _connectionDictionaryContainer = new Composite(topForm, SWT.NONE);
    _connectionDictionaryContainer.setBackground(topForm.getBackground());
    GridLayout connectionDictionaryLayout = new GridLayout();
View Full Code Here

        EODatabaseConfig activeDatabaseConfig = model.getActiveDatabaseConfig();
        ClassLoader eomodelClassLoader = IEOClassLoaderFactory.Utility.createClassLoader(model);
        IEOSQLReverseEngineer reverseEngineer = IEOSQLReverseEngineerFactory.Utility.reverseEngineerFactory().reverseEngineer(activeDatabaseConfig, eomodelClassLoader);
        List<String> tableNames = reverseEngineer.reverseEngineerTableNames();

        ListSelectionDialog dlg = new ListSelectionDialog(getWindow().getShell(), tableNames, new StringContentProvider(), new StringLabelProvider(), "Select the tables to reverse engineer:");
        dlg.setInitialSelections(tableNames.toArray());
        dlg.setTitle("Reverse Engineer");
        if (dlg.open() == Window.OK) {
          Object[] selectedTableNameObjs = dlg.getResult();
          String[] selectedTableNames = new String[selectedTableNameObjs.length];
View Full Code Here

TOP

Related Classes of org.objectstyle.wolips.eomodeler.utils.StringLabelProvider

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.