Changeset 202
- Timestamp:
- 3/19/2009 2:50:41 AM (4 years ago)
- Location:
- trunk/projects/steps
- Files:
-
- 1 added
- 1 deleted
- 5 edited
-
rcpmail-03/src/rcpmail/CreateServerPage.java (modified) (1 diff)
-
rcpmail-04/rcpmail-04.launch (deleted)
-
rcpmail-04/src/rcpmail/CreateServerPage.java (modified) (5 diffs)
-
rcpmail-05/META-INF/MANIFEST.MF (modified) (1 diff)
-
rcpmail-05/plugin.xml (modified) (1 diff)
-
rcpmail-05/rcpmail-04.launch (added)
-
rcpmail-05/rcpmail-05.launch (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/projects/steps/rcpmail-03/src/rcpmail/CreateServerPage.java
r194 r202 146 146 dbc.bindValue(SWTObservables.observeText(portText, SWT.Modify), 147 147 BeansObservables.observeValue(server, "port"), null, null); 148 149 final AggregateValidationStatus aggregateValidationStatus = new AggregateValidationStatus(150 dbc.getValidationStatusProviders(),151 AggregateValidationStatus.MAX_SEVERITY);152 153 aggregateValidationStatus154 .addValueChangeListener(new IValueChangeListener() {155 public void handleValueChange(ValueChangeEvent event) {156 // the invocation of the getValue method is necessary157 // the further changes will be fired158 aggregateValidationStatus.getValue();159 for (Object o : dbc.getBindings()) {160 Binding binding = (Binding) o;161 IStatus status = (IStatus) binding162 .getValidationStatus().getValue();163 Control control = null;164 if (binding.getTarget() instanceof ISWTObservable) {165 ISWTObservable swtObservable = (ISWTObservable) binding166 .getTarget();167 control = (Control) swtObservable.getWidget();168 }169 ControlDecoration decoration = decoratorMap170 .get(control);171 if (decoration != null) {172 if (status.isOK()) {173 decoration.hide();174 } else {175 decoration.setDescriptionText(status176 .getMessage());177 decoration.show();178 }179 }180 }181 }182 });183 184 // create this after binding the observables to avoid displaying an185 // error when the wizard page is shown:186 WizardPageSupport.create(this, dbc);187 148 } 188 149 } -
trunk/projects/steps/rcpmail-04/src/rcpmail/CreateServerPage.java
r198 r202 107 107 hostnameText.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, 108 108 false)); 109 createControlDecoration(hostnameText);110 109 111 110 final Label usernameLabel = new Label(container, SWT.NONE); … … 115 114 usernameText.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, 116 115 false)); 117 createControlDecoration(usernameText);118 116 119 117 final Label passwordLabel = new Label(container, SWT.NONE); … … 124 122 passwordText.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, 125 123 false)); 126 createControlDecoration(passwordText);127 124 128 125 final Label portLabel = new Label(container, SWT.NONE); … … 131 128 portText = new Text(container, SWT.BORDER); 132 129 portText.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false)); 133 createControlDecoration(portText);134 130 135 131 final DataBindingContext dbc = new DataBindingContext(); … … 192 188 WizardPageSupport.create(this, dbc); 193 189 } 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 }204 190 } -
trunk/projects/steps/rcpmail-05/META-INF/MANIFEST.MF
r195 r202 2 2 Bundle-ManifestVersion: 2 3 3 Bundle-Name: RCP Mail 4 Bundle-SymbolicName: rcpmail-0 4;singleton:=true4 Bundle-SymbolicName: rcpmail-05;singleton:=true 5 5 Bundle-Version: 2.0.0 6 6 Bundle-Activator: rcpmail.Activator -
trunk/projects/steps/rcpmail-05/plugin.xml
r197 r202 78 78 point="org.eclipse.core.runtime.products"> 79 79 <product 80 application="rcpmail-0 4.application"80 application="rcpmail-05.application" 81 81 name="RCP Product"> 82 82 <property -
trunk/projects/steps/rcpmail-05/rcpmail-05.launch
r175 r202 2 2 <launchConfiguration type="org.eclipse.pde.ui.RuntimeWorkbench"> 3 3 <booleanAttribute key="append.args" value="true"/> 4 <stringAttribute key="application" value="rcpmail-02.application"/>5 4 <booleanAttribute key="askclear" value="false"/> 6 5 <booleanAttribute key="automaticAdd" value="false"/> … … 12 11 <booleanAttribute key="clearws" value="true"/> 13 12 <booleanAttribute key="clearwslog" value="false"/> 14 <stringAttribute key="configLocation" value="${workspace_loc}/.metadata/.plugins/org.eclipse.pde.core/rcpmail-0 3 (1)"/>13 <stringAttribute key="configLocation" value="${workspace_loc}/.metadata/.plugins/org.eclipse.pde.core/rcpmail-05"/> 15 14 <booleanAttribute key="default" value="false"/> 16 15 <booleanAttribute key="includeOptional" value="true"/> 17 <stringAttribute key="location" value="${workspace_loc}/../runtime-rcpmail-0 4"/>16 <stringAttribute key="location" value="${workspace_loc}/../runtime-rcpmail-05"/> 18 17 <listAttribute key="org.eclipse.debug.ui.favoriteGroups"> 19 18 <listEntry value="org.eclipse.debug.ui.launchGroup.debug"/> … … 24 23 <booleanAttribute key="pde.generated.config" value="false"/> 25 24 <stringAttribute key="pde.version" value="3.3"/> 26 <stringAttribute key="product" value="rcpmail-0 4.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-0 4"/>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"/> 29 28 <booleanAttribute key="show_selected_only" value="false"/> 30 29 <booleanAttribute key="tracing" value="false"/>
Note: See TracChangeset
for help on using the changeset viewer.
