Changeset 202


Ignore:
Timestamp:
3/19/2009 2:50:41 AM (4 years ago)
Author:
gerhardt_f
Message:

Fixed steps according to slides

Location:
trunk/projects/steps
Files:
1 added
1 deleted
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/projects/steps/rcpmail-03/src/rcpmail/CreateServerPage.java

    r194 r202  
    146146                dbc.bindValue(SWTObservables.observeText(portText, SWT.Modify), 
    147147                                BeansObservables.observeValue(server, "port"), null, null); 
    148  
    149                 final AggregateValidationStatus aggregateValidationStatus = new AggregateValidationStatus( 
    150                                 dbc.getValidationStatusProviders(), 
    151                                 AggregateValidationStatus.MAX_SEVERITY); 
    152  
    153                 aggregateValidationStatus 
    154                                 .addValueChangeListener(new IValueChangeListener() { 
    155                                         public void handleValueChange(ValueChangeEvent event) { 
    156                                                 // the invocation of the getValue method is necessary 
    157                                                 // the further changes will be fired 
    158                                                 aggregateValidationStatus.getValue(); 
    159                                                 for (Object o : dbc.getBindings()) { 
    160                                                         Binding binding = (Binding) o; 
    161                                                         IStatus status = (IStatus) binding 
    162                                                                         .getValidationStatus().getValue(); 
    163                                                         Control control = null; 
    164                                                         if (binding.getTarget() instanceof ISWTObservable) { 
    165                                                                 ISWTObservable swtObservable = (ISWTObservable) binding 
    166                                                                                 .getTarget(); 
    167                                                                 control = (Control) swtObservable.getWidget(); 
    168                                                         } 
    169                                                         ControlDecoration decoration = decoratorMap 
    170                                                                         .get(control); 
    171                                                         if (decoration != null) { 
    172                                                                 if (status.isOK()) { 
    173                                                                         decoration.hide(); 
    174                                                                 } else { 
    175                                                                         decoration.setDescriptionText(status 
    176                                                                                         .getMessage()); 
    177                                                                         decoration.show(); 
    178                                                                 } 
    179         } 
    180                                                 } 
    181                                         } 
    182                                 }); 
    183  
    184                 // create this after binding the observables to avoid displaying an 
    185                 // error when the wizard page is shown: 
    186                 WizardPageSupport.create(this, dbc); 
    187148        } 
    188149} 
  • trunk/projects/steps/rcpmail-04/src/rcpmail/CreateServerPage.java

    r198 r202  
    107107                hostnameText.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, 
    108108                                false)); 
    109                 createControlDecoration(hostnameText); 
    110109 
    111110                final Label usernameLabel = new Label(container, SWT.NONE); 
     
    115114                usernameText.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, 
    116115                                false)); 
    117                 createControlDecoration(usernameText); 
    118116 
    119117                final Label passwordLabel = new Label(container, SWT.NONE); 
     
    124122                passwordText.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, 
    125123                                false)); 
    126                 createControlDecoration(passwordText); 
    127124 
    128125                final Label portLabel = new Label(container, SWT.NONE); 
     
    131128                portText = new Text(container, SWT.BORDER); 
    132129                portText.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false)); 
    133                 createControlDecoration(portText); 
    134130 
    135131                final DataBindingContext dbc = new DataBindingContext(); 
     
    192188                WizardPageSupport.create(this, dbc); 
    193189        } 
    194  
    195         private void createControlDecoration(Control control) { 
    196                 ControlDecoration controlDecoration = new ControlDecoration(control, 
    197                                 SWT.LEFT | SWT.TOP); 
    198                 FieldDecoration fieldDecoration = FieldDecorationRegistry.getDefault() 
    199                                 .getFieldDecoration(FieldDecorationRegistry.DEC_ERROR); 
    200                 controlDecoration.setImage(fieldDecoration.getImage()); 
    201                 controlDecoration.hide(); 
    202                 decoratorMap.put(control, controlDecoration); 
    203         } 
    204190} 
  • trunk/projects/steps/rcpmail-05/META-INF/MANIFEST.MF

    r195 r202  
    22Bundle-ManifestVersion: 2 
    33Bundle-Name: RCP Mail 
    4 Bundle-SymbolicName: rcpmail-04;singleton:=true 
     4Bundle-SymbolicName: rcpmail-05;singleton:=true 
    55Bundle-Version: 2.0.0 
    66Bundle-Activator: rcpmail.Activator 
  • trunk/projects/steps/rcpmail-05/plugin.xml

    r197 r202  
    7878         point="org.eclipse.core.runtime.products"> 
    7979      <product 
    80             application="rcpmail-04.application" 
     80            application="rcpmail-05.application" 
    8181            name="RCP Product"> 
    8282         <property 
  • trunk/projects/steps/rcpmail-05/rcpmail-05.launch

    r175 r202  
    22<launchConfiguration type="org.eclipse.pde.ui.RuntimeWorkbench"> 
    33<booleanAttribute key="append.args" value="true"/> 
    4 <stringAttribute key="application" value="rcpmail-02.application"/> 
    54<booleanAttribute key="askclear" value="false"/> 
    65<booleanAttribute key="automaticAdd" value="false"/> 
     
    1211<booleanAttribute key="clearws" value="true"/> 
    1312<booleanAttribute key="clearwslog" value="false"/> 
    14 <stringAttribute key="configLocation" value="${workspace_loc}/.metadata/.plugins/org.eclipse.pde.core/rcpmail-03 (1)"/> 
     13<stringAttribute key="configLocation" value="${workspace_loc}/.metadata/.plugins/org.eclipse.pde.core/rcpmail-05"/> 
    1514<booleanAttribute key="default" value="false"/> 
    1615<booleanAttribute key="includeOptional" value="true"/> 
    17 <stringAttribute key="location" value="${workspace_loc}/../runtime-rcpmail-04"/> 
     16<stringAttribute key="location" value="${workspace_loc}/../runtime-rcpmail-05"/> 
    1817<listAttribute key="org.eclipse.debug.ui.favoriteGroups"> 
    1918<listEntry value="org.eclipse.debug.ui.launchGroup.debug"/> 
     
    2423<booleanAttribute key="pde.generated.config" value="false"/> 
    2524<stringAttribute key="pde.version" value="3.3"/> 
    26 <stringAttribute key="product" value="rcpmail-04.product"/> 
    27 <stringAttribute key="selected_target_plugins" value="com.ibm.icu,javax.servlet,org.eclipse.core.commands,org.eclipse.core.contenttype,org.eclipse.core.databinding,org.eclipse.core.databinding.observable,org.eclipse.core.databinding.property,org.eclipse.core.expressions,org.eclipse.core.jobs,org.eclipse.core.runtime,org.eclipse.core.runtime.compatibility.auth,org.eclipse.core.runtime.compatibility.registry,org.eclipse.equinox.app,org.eclipse.equinox.common,org.eclipse.equinox.preferences,org.eclipse.equinox.registry,org.eclipse.help,org.eclipse.jface,org.eclipse.jface.databinding,org.eclipse.osgi,org.eclipse.osgi.services,org.eclipse.swt,org.eclipse.swt.win32.win32.x86,org.eclipse.ui,org.eclipse.ui.workbench"/> 
    28 <stringAttribute key="selected_workspace_plugins" value="rcpmail-04"/> 
     25<stringAttribute key="product" value="rcpmail-05.product"/> 
     26<stringAttribute key="selected_target_plugins" value="com.ibm.icu,javax.servlet,org.eclipse.ant.core,org.eclipse.core.commands,org.eclipse.core.contenttype,org.eclipse.core.databinding,org.eclipse.core.databinding.beans,org.eclipse.core.databinding.observable,org.eclipse.core.databinding.property,org.eclipse.core.expressions,org.eclipse.core.jobs,org.eclipse.core.runtime,org.eclipse.core.runtime.compatibility.auth,org.eclipse.core.runtime.compatibility.registry,org.eclipse.core.variables,org.eclipse.ecf,org.eclipse.ecf.filetransfer,org.eclipse.ecf.identity,org.eclipse.ecf.ssl,org.eclipse.equinox.app,org.eclipse.equinox.common,org.eclipse.equinox.concurrent,org.eclipse.equinox.p2.artifact.repository,org.eclipse.equinox.p2.console,org.eclipse.equinox.p2.core,org.eclipse.equinox.p2.director,org.eclipse.equinox.p2.director.app,org.eclipse.equinox.p2.engine,org.eclipse.equinox.p2.jarprocessor,org.eclipse.equinox.p2.metadata,org.eclipse.equinox.p2.metadata.repository,org.eclipse.equinox.preferences,org.eclipse.equinox.registry,org.eclipse.equinox.security,org.eclipse.equinox.security.win32.x86,org.eclipse.equinox.simpleconfigurator,org.eclipse.help,org.eclipse.jface,org.eclipse.jface.databinding,org.eclipse.osgi,org.eclipse.osgi.services,org.eclipse.swt,org.eclipse.swt.win32.win32.x86,org.eclipse.ui,org.eclipse.ui.workbench,org.sat4j.core,org.sat4j.pb"/> 
     27<stringAttribute key="selected_workspace_plugins" value="rcpmail-05"/> 
    2928<booleanAttribute key="show_selected_only" value="false"/> 
    3029<booleanAttribute key="tracing" value="false"/> 
Note: See TracChangeset for help on using the changeset viewer.