Example usage for org.eclipse.jface.viewers TreeSelection toString

List of usage examples for org.eclipse.jface.viewers TreeSelection toString

Introduction

In this page you can find the example usage for org.eclipse.jface.viewers TreeSelection toString.

Prototype

@Override
public String toString() 

Source Link

Document

Internal method which returns a string representation of this selection suitable for debug purposes only.

Usage

From source file:org.isoe.diagraph.adapter.impl.DiagraphAdapter.java

License:Open Source License

private void handlePackageExplorerPart(TreeSelection ts) {
    if (ts != null && LOG)
        clog(ts.toString());
    Diagram d = controler.getCurrentDiagram();
    if (d == null)
        controler.setCurrentEcoreDiagram(null, null);
    else if (controler.isLanguageConfiguration()) {
        EcoreDiagramEditor ecoreDiagramEditor = controler.getEcoreDiagramEditor();
        if (ecoreDiagramEditor != null) {

            if ((EPackage) ecoreDiagramEditor.getDiagram().getElement() != null
                    && !controler.isUnderProject(ecoreDiagramEditor)) // FP130618
                controler.setCurrentEcoreDiagram(null, null);
        }/*from  w w w .j  a  v a  2  s  .  co  m*/
    }
}