Revision 1058
tmp/org.txm.partition.rcp/src/org/txm/partition/rcp/adapters/PartitionDimensionsAdapterFactory.java (revision 1058) | ||
---|---|---|
21 | 21 |
|
22 | 22 |
public static final ImageDescriptor ICON = |
23 | 23 |
AbstractUIPlugin.imageDescriptorFromPlugin(FrameworkUtil.getBundle(PartitionDimensionsAdapterFactory.class).getSymbolicName(), |
24 |
"platform:/plugin/"+ FrameworkUtil.getBundle(PartitionDimensionsAdapterFactory.class).getSymbolicName() + "/icons/dimensions.png"); //$NON-NLS-1$ |
|
24 |
"platform:/plugin/"+ FrameworkUtil.getBundle(PartitionDimensionsAdapterFactory.class).getSymbolicName() + "/icons/dimensions.png"); //$NON-NLS-1$ //$NON-NLS-2$
|
|
25 | 25 |
|
26 | 26 |
|
27 | 27 |
@Override |
tmp/org.txm.partition.rcp/src/org/txm/partition/rcp/adapters/PartitionAdapterFactory.java (revision 1058) | ||
---|---|---|
21 | 21 |
|
22 | 22 |
public static final ImageDescriptor ICON = |
23 | 23 |
AbstractUIPlugin.imageDescriptorFromPlugin(FrameworkUtil.getBundle(PartitionAdapterFactory.class).getSymbolicName(), |
24 |
"platform:/plugin/"+ FrameworkUtil.getBundle(PartitionAdapterFactory.class).getSymbolicName() + "/icons/partition.png"); //$NON-NLS-1$ |
|
24 |
"platform:/plugin/"+ FrameworkUtil.getBundle(PartitionAdapterFactory.class).getSymbolicName() + "/icons/partition.png"); //$NON-NLS-1$ //$NON-NLS-2$
|
|
25 | 25 |
|
26 | 26 |
|
27 | 27 |
@Override |
tmp/org.txm.partition.rcp/src/org/txm/partition/rcp/messages/PartitionUIMessages.java (revision 1058) | ||
---|---|---|
15 | 15 |
|
16 | 16 |
public static String PreferencesPage_DIMENSIONS_DISPLAY_PARTS_COUNT_IN_TITLE; |
17 | 17 |
public static String PreferencesPage_DIMENSIONS_SORT_BY_PARTS_SIZE; |
18 |
|
|
19 |
public static String preferences_charts_tabfolder_title; // "Dimensions chart rendering" |
|
18 | 20 |
|
19 | 21 |
static { |
20 | 22 |
// initialize resource bundle |
tmp/org.txm.partition.rcp/src/org/txm/partition/rcp/messages/messages.properties (revision 1058) | ||
---|---|---|
1 | 1 |
PreferencesPage_DIMENSIONS_DISPLAY_PARTS_COUNT_IN_TITLE=Display parts count in chart title |
2 |
PreferencesPage_DIMENSIONS_SORT_BY_PARTS_SIZE=Sort by part size |
|
2 |
PreferencesPage_DIMENSIONS_SORT_BY_PARTS_SIZE=Sort by part size |
|
3 |
preferences_charts_tabfolder_title=Dimensions chart rendering |
tmp/org.txm.partition.rcp/src/org/txm/partition/rcp/editors/PartitionDimensionsEditor.java (revision 1058) | ||
---|---|---|
35 | 35 |
// extend the tool bar |
36 | 36 |
new ToolItem(this.getToolBar(), SWT.SEPARATOR); |
37 | 37 |
this.sortByPartSize = new ToolItem(this.getToolBar(), SWT.CHECK); |
38 |
this.sortByPartSize.setImage(IImageKeys.getImage(this.getClass(), "icons/silk_sort_by_size.png")); |
|
38 |
this.sortByPartSize.setImage(IImageKeys.getImage(this.getClass(), "icons/silk_sort_by_size.png")); //$NON-NLS-1$
|
|
39 | 39 |
this.sortByPartSize.setToolTipText(PartitionUIMessages.PreferencesPage_DIMENSIONS_SORT_BY_PARTS_SIZE); |
40 | 40 |
|
41 | 41 |
this.sortByPartSize.addSelectionListener(new ComputeSelectionListener(this)); |
tmp/org.txm.partition.rcp/src/org/txm/partition/rcp/preferences/PartitionPreferencePage.java (revision 1058) | ||
---|---|---|
54 | 54 |
public void createFieldEditors() { |
55 | 55 |
|
56 | 56 |
// Charts rendering |
57 |
Composite chartsTab = SWTChartsComponentsProvider.createChartsRenderingPreferencesTabFolderComposite(this.getFieldEditorParent(), "Dimensions chart rendering");
|
|
57 |
Composite chartsTab = SWTChartsComponentsProvider.createChartsRenderingPreferencesTabFolderComposite(this.getFieldEditorParent(), PartitionUIMessages.preferences_charts_tabfolder_title);
|
|
58 | 58 |
|
59 | 59 |
this.addField(new BooleanFieldEditor(PartitionDimensionsPreferences.CHART_DIMENSIONS_SORT_BY_SIZE, PartitionUIMessages.PreferencesPage_DIMENSIONS_SORT_BY_PARTS_SIZE, chartsTab)); |
60 | 60 |
this.addField(new BooleanFieldEditor(PartitionDimensionsPreferences.CHART_DIMENSIONS_DISPLAY_PARTS_COUNT_IN_TITLE, PartitionUIMessages.PreferencesPage_DIMENSIONS_DISPLAY_PARTS_COUNT_IN_TITLE, chartsTab)); |
Also available in: Unified diff