Java tutorial
/******************************************************************************* * Copyright (c) 2008 Sybase, Inc. * * All rights reserved. This program and the accompanying materials are made * available under the terms of the Eclipse Public License v1.0 which * accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html * * Contributors: Sybase - initial API and implementation ******************************************************************************/ package org.eclipse.datatools.enablement.sybase.ui; import org.eclipse.datatools.connectivity.sqm.core.internal.ui.explorer.providers.decorators.impl.AbstractDecorationService; import org.eclipse.datatools.enablement.sybase.models.sybasesqlmodel.SybaseBaseTable; import org.eclipse.jface.viewers.IDecoration; /** * * @author Hao wang */ public class SystemTableDecorationService extends AbstractDecorationService { public void decorate(Object element, IDecoration decoration) { if (element instanceof SybaseBaseTable && (((SybaseBaseTable) element).isSystem())) { decoration.addOverlay(SybaseImages.DESC_SYSTEMTABLE); } } }