~berthold-daum/zora/trunk

« back to all changes in this revision

Viewing changes to com.bdaum.zoom.rcp/src/com/bdaum/zoom/rcp/internal/intro/Intro.java

  • Committer: bdaum
  • Date: 2015-12-26 10:21:51 UTC
  • Revision ID: berthold.daum@bdaum.de-20151226102151-44f1j5113167thb9
VersionĀ 2.4.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
101
101
                formColors
102
102
                                .createColor(IFormColors.TB_TOGGLE_HOVER, new RGB(255, 64, 0));
103
103
                FormToolkit toolkit = new FormToolkit(formColors);
104
 
                titleImage64 = RcpActivator.getImageDescriptor("icons/intro/zora64t.gif") //$NON-NLS-1$
 
104
                titleImage64 = RcpActivator.getImageDescriptor(
 
105
                                "icons/intro/zora64t.gif") //$NON-NLS-1$
105
106
                                .createImage();
106
 
                titleImage32 = RcpActivator.getImageDescriptor("icons/intro/zora32t.gif") //$NON-NLS-1$
 
107
                titleImage32 = RcpActivator.getImageDescriptor(
 
108
                                "icons/intro/zora32t.gif") //$NON-NLS-1$
107
109
                                .createImage();
108
110
                startImage = RcpActivator.getImageDescriptor("icons/intro/START.png") //$NON-NLS-1$
109
111
                                .createImage();
128
130
                sectionGroupLayout = new ColumnLayout();
129
131
                sectionGroup.setLayout(sectionGroupLayout);
130
132
                createFeatureSection(toolkit, sectionGroup, 0);
131
 
                createWhatsnewSection(toolkit, sectionGroup, expansionState != null || isNew ? 0
 
133
                createWhatsnewSection(toolkit, sectionGroup, expansionState != null
 
134
                                || isNew ? 0 : Section.EXPANDED, version);
 
135
                createUpdateSection(toolkit, sectionGroup, expansionState != null ? 0
132
136
                                : Section.EXPANDED);
133
 
                createUpdateSection(toolkit, sectionGroup, expansionState != null ? 0 : Section.EXPANDED);
134
137
                createConfigurationSection(toolkit, sectionGroup,
135
138
                                expansionState == null && isNew ? Section.EXPANDED : 0);
136
139
                createHelpSection(toolkit, sectionGroup, 0);
223
226
        }
224
227
 
225
228
        private void createWhatsnewSection(FormToolkit toolkit, Composite parent,
226
 
                        int style) {
227
 
                createSection(toolkit, parent, Messages.Intro_whats_new_title,
228
 
                                Messages.Intro_whats_new_tooltip, NLS.bind(
229
 
                                                Messages.Intro_whats_new_text,
 
229
                        int style, Version version) {
 
230
                createSection(toolkit, parent, NLS.bind(Messages.Intro_whats_new_title,
 
231
                                version), NLS.bind(Messages.Intro_whats_new_tooltip, version),
 
232
                                NLS.bind(Messages.Intro_whats_new_text,
230
233
                                                Constants.APPLICATION_NAME, Platform
231
234
                                                                .getInstallLocation().getURL().toString()),
232
235
                                style);
382
385
                form.setImage(sb ? titleImage32 : titleImage64);
383
386
                form.setSeparatorVisible(!sb);
384
387
                form.setHeadClient(sb ? null : subtitle);
385
 
                ((TableWrapLayout) form.getBody().getLayout()).topMargin = sb ? 3
386
 
                                : 10;
 
388
                ((TableWrapLayout) form.getBody().getLayout()).topMargin = sb ? 3 : 10;
387
389
                form.getBody().layout();
388
390
                form.redraw();
389
391
        }