4849505152535455565758
initializeTreeModeAdapter(); } private void initializeTreeModeAdapter() { TreeMode treeMode = null; try { treeMode = TreeMode.valueOf(getPreferenceValue(PreferenceConstants.TREE_MODE)); } catch (Exception e) { treeMode = TreeMode.FLAT_MODE; }
1617181920212223242526
public ToggleTreeModeAction(IRunnerView runnerView, TreeMode mode) { this.mode = mode; this.runnerView = runnerView; TreeMode currentTreeMode = RunnerModelProvider.getInstance().getCurrentTreeMode(); if (mode.equals(currentTreeMode)) { setChecked(true); } else { setChecked(false); }