action.setEnabled(resource.isManaged());
if (resource != null) action.setEnabled(resource.isManaged()); else action.setEnabled(false);
	private void fillTableMenu(IMenuManager manager) {		manager.add(getRefreshAction());		Action action = getAddPropertyAction();		try { 					action.setEnabled(resource.isManaged());		} catch (SVNException e) {			action.setEnabled(false);		}		manager.add(action);		manager.add(new Separator(IWorkbenchActionConstants.MB_ADDITIONS));	}