Commit 6d3a7713 authored by Simon Barner's avatar Simon Barner
Browse files

Remove unused class

refs 2950
parent 7d88b53e
/*--------------------------------------------------------------------------+
$Id$
| |
| Copyright 2017 fortiss GmbH |
| |
| Licensed under the Apache License, Version 2.0 (the "License"); |
| you may not use this file except in compliance with the License. |
| You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, software |
| distributed under the License is distributed on an "AS IS" BASIS, |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| See the License for the specific language governing permissions and |
| limitations under the License. |
+--------------------------------------------------------------------------*/
package org.fortiss.af3.allocation.ui.editor;
import static org.fortiss.tooling.kernel.service.IPersistencyService.getInstance;
import org.eclipse.swt.events.SelectionAdapter;
import org.eclipse.swt.events.SelectionEvent;
import org.eclipse.swt.widgets.Button;
import org.fortiss.tooling.base.model.element.IModelElement;
import org.fortiss.tooling.kernel.extension.data.ITopLevelElement;
/**
*
* @author zverlov
* @author $Author$
* @version $Rev$
* @ConQAT.Rating RED Hash:
*/
public class SourceDestinationSelectionAdapter extends SelectionAdapter {
private IModelElement source;
private IModelElement destination;
public SourceDestinationSelectionAdapter(IModelElement source, IModelElement destination) {
this.source = source;
this.destination = destination;
}
/** {@inheritDoc} */
@Override
public void widgetSelected(SelectionEvent e) {
ITopLevelElement topLevelElement = getInstance().getTopLevelElementFor(source);
topLevelElement.runAsCommand(() -> {
if(((Button)e.getSource()).getSelection()) {
// check!
// createAllocation
} else {
// delete allocation
}
});
}
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment