Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'bundles/org.eclipse.wst.xsd.ui/src-adt/org/eclipse/wst/xsd/ui/internal/adt/design/ADTFloatingToolbar.java')
-rw-r--r--bundles/org.eclipse.wst.xsd.ui/src-adt/org/eclipse/wst/xsd/ui/internal/adt/design/ADTFloatingToolbar.java73
1 files changed, 0 insertions, 73 deletions
diff --git a/bundles/org.eclipse.wst.xsd.ui/src-adt/org/eclipse/wst/xsd/ui/internal/adt/design/ADTFloatingToolbar.java b/bundles/org.eclipse.wst.xsd.ui/src-adt/org/eclipse/wst/xsd/ui/internal/adt/design/ADTFloatingToolbar.java
deleted file mode 100644
index 190bc0531c..0000000000
--- a/bundles/org.eclipse.wst.xsd.ui/src-adt/org/eclipse/wst/xsd/ui/internal/adt/design/ADTFloatingToolbar.java
+++ /dev/null
@@ -1,73 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 IBM Corporation and others.
- * 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:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.wst.xsd.ui.internal.adt.design;
-
-import org.eclipse.draw2d.ColorConstants;
-import org.eclipse.gef.ui.parts.GraphicalViewerImpl;
-import org.eclipse.swt.SWT;
-import org.eclipse.swt.widgets.Canvas;
-import org.eclipse.swt.widgets.Composite;
-import org.eclipse.swt.widgets.Control;
-import org.eclipse.wst.xsd.ui.internal.adt.design.editparts.ADTFloatingToolbarEditPart;
-import org.eclipse.wst.xsd.ui.internal.adt.facade.IModel;
-
-public class ADTFloatingToolbar extends GraphicalViewerImpl
-{
- protected IModel model;
- protected boolean isDrilledDown;
- protected ADTFloatingToolbarEditPart editPart;
-
- public ADTFloatingToolbar(IModel model)
- {
- this.model = model;
- }
-
- public void setModel(IModel model)
- {
- this.model = model;
- editPart = (ADTFloatingToolbarEditPart)getEditPartFactory().createEditPart(null, new ADTFloatingToolbarModel(model));
- if (editPart == null)
- {
- editPart = new ADTFloatingToolbarEditPart(model);
- }
- editPart.setModel(model);
- setContents(editPart);
- }
-
- public Control createControl(Composite composite)
- {
- Canvas canvas = new Canvas(composite, SWT.NONE);
- canvas.setBackground(ColorConstants.white);
- setControl(canvas);
- return getControl();
- }
-
- public void refresh(boolean isDrilledDown)
- {
- this.isDrilledDown = isDrilledDown;
- editPart.setIsDrilledDown(isDrilledDown);
- getContents().refresh();
- }
-
- public class ADTFloatingToolbarModel
- {
- IModel model;
- public ADTFloatingToolbarModel(IModel model)
- {
- this.model = model;
- }
-
- public IModel getModel()
- {
- return model;
- }
- }
-}

Back to the top