int index = model.getSelectedTabbedIndex(); if (index == EditorUI.PROPERTIES_INDEX) { int subIndex = model.getSelectedSubPane(); if (model.isAnnotatable() && subIndex == EditorUI.ANNOTATION_SUB_INDEX) { retrieveAnnotations(); } else if (model.isClassified() && subIndex == EditorUI.CLASSIFICATION_SUB_INDEX) loadClassifications(); } else model.setState(READY);
switch (model.getSelectedTabbedIndex()) { case EditorUI.PROPERTIES_INDEX: int subIndex = model.getSelectedSubPane(); if (model.isAnnotatable() && subIndex == EditorUI.ANNOTATION_SUB_INDEX) { retrieveAnnotations(); } else if (model.isClassified() && subIndex == EditorUI.CLASSIFICATION_SUB_INDEX) loadClassifications(); break; case EditorUI.PERMISSIONS_INDEX: retrieveThumbnail(); break; default: model.setState(READY); }
    public void activate()    {        switch (model.getState()) {            case NEW:                if (model.getEditorType() == PROPERTIES_EDITOR) {                	int index = model.getSelectedTabbedIndex();                	if (index == EditorUI.PROPERTIES_INDEX) {                		int subIndex = model.getSelectedSubPane();                		if (model.isAnnotatable() &&                 				subIndex == EditorUI.ANNOTATION_SUB_INDEX) {                			retrieveAnnotations();                		} else if (model.isClassified() &&                 				subIndex == EditorUI.CLASSIFICATION_SUB_INDEX)                			loadClassifications();                	} else model.setState(READY);                    fireStateChange();                }                break;            case DISCARDED:                throw new IllegalStateException(                        "This method can't be invoked in the DISCARDED state.");        }       }