Révision 3814
TXM/trunk/bundles/org.txm.ahc.rcp/src/org/txm/ahc/rcp/editors/AHCEditor.java (revision 3814) | ||
---|---|---|
160 | 160 |
|
161 | 161 |
|
162 | 162 |
// 2D/3D rendering |
163 |
TXMParameterCombo renderingParameterCombo = new TXMParameterCombo(this.getFirstLineComposite(), this, new String[] {"2D", "3D"}); |
|
163 |
TXMParameterCombo renderingParameterCombo = new TXMParameterCombo(this.getFirstLineComposite(), this, new String[] {"2D", "3D"}); //$NON-NLS-1$ //$NON-NLS-2$
|
|
164 | 164 |
//renderingParameterCombo.getComputingSelectionListener().setAutoCompute(true); |
165 | 165 |
this.rendering = renderingParameterCombo.getControl(); |
166 | 166 |
if(this.getResult().isRendering2D()) { |
TXM/trunk/bundles/org.txm.ahc.core/src/org/txm/ahc/core/preferences/AHCPreferences.java (revision 3814) | ||
---|---|---|
58 | 58 |
super.initializeDefaultPreferences(); |
59 | 59 |
Preferences preferences = this.getDefaultPreferencesNode(); |
60 | 60 |
|
61 |
preferences.put(RENDERING, "2D"); |
|
61 |
preferences.put(RENDERING, "2D"); //$NON-NLS-1$
|
|
62 | 62 |
preferences.putInt(N_CLUSTERS, 2); |
63 | 63 |
preferences.put(METHOD, "ward"); //$NON-NLS-1$ |
64 | 64 |
preferences.put(METRIC, "euclidean"); //$NON-NLS-1$ |
TXM/trunk/bundles/org.txm.ahc.core/src/org/txm/ahc/core/functions/AHC.java (revision 3814) | ||
---|---|---|
745 | 745 |
* @return the rendering2D |
746 | 746 |
*/ |
747 | 747 |
public boolean isRendering2D() { |
748 |
return this.rendering.equals("2D"); |
|
748 |
return this.rendering.equals("2D"); //$NON-NLS-1$
|
|
749 | 749 |
} |
750 | 750 |
|
751 | 751 |
/** |
... | ... | |
756 | 756 |
*/ |
757 | 757 |
public void setRendering2D(boolean rendering2d) { |
758 | 758 |
if(rendering2d) { |
759 |
this.rendering = "2D"; |
|
759 |
this.rendering = "2D"; //$NON-NLS-1$
|
|
760 | 760 |
} |
761 | 761 |
else { |
762 |
this.rendering = "3D"; |
|
762 |
this.rendering = "3D"; //$NON-NLS-1$
|
|
763 | 763 |
} |
764 | 764 |
} |
765 | 765 |
|
Formats disponibles : Unified diff