Package org.locationtech.udig.project.ui

Examples of org.locationtech.udig.project.ui.IFeatureSite


            return;
        }
        // pass the selection to the page
       
        IMap activeMap = ApplicationGIS.getActiveMap();
        IFeatureSite site = featurePage.getFeatureSite();
        if( site == null ){
            site = new FeatureSiteImpl(activeMap);
            featurePage.setFeatureSite(site);      
        }
        else {
View Full Code Here


    /**
     * Filters out the tab descriptors that do not have any sections for the given input.
     */
    protected List<FeaturePanelTabDescriptor> filterTabDescriptors(
            List<FeaturePanelTabDescriptor> descriptors, IWorkbenchPart part, ISelection selection ) {
        IFeatureSite site = toFeatureSite(selection);
        if (site == null && part.getAdapter(IMap.class) != null) {
            IMap map = (IMap) part.getAdapter(IMap.class);
            site = new FeatureSiteImpl(map);
        } else {
            site = new FeatureSiteImpl(); // represents whatever is current?
View Full Code Here

     */
    protected void clearErrorMessage() {
        if (page == null || page.getSite() == null) {
            return;
        }
        IFeatureSite site = page.getSite();
        if (site.getActionBars() == null || site.getActionBars().getStatusLineManager() == null) {
            return;
        }
        site.getActionBars().getStatusLineManager().setErrorMessage(null);
    }
View Full Code Here

     */
    protected void clearMessage() {
        if (page == null || page.getSite() == null) {
            return;
        }
        IFeatureSite site = page.getSite();
        if (site.getActionBars() == null || site.getActionBars().getStatusLineManager() == null) {
            return;
        }
        site.getActionBars().getStatusLineManager().setMessage(null);
    }
View Full Code Here

     */
    protected void showErrorMessage( String msg ) {
        if (page == null || page.getSite() == null) {
            return;
        }
        IFeatureSite site = page.getSite();
        if (site.getActionBars() == null || site.getActionBars().getStatusLineManager() == null) {
            return;
        }
        site.getActionBars().getStatusLineManager().setErrorMessage(msg);
    }
View Full Code Here

     */
    protected void showMessage( String msg ) {
        if (page == null && page.getSite() == null) {
            return;
        }
        IFeatureSite site = page.getSite();
        if (site.getActionBars() == null || site.getActionBars().getStatusLineManager() == null) {
            return;
        }
        site.getActionBars().getStatusLineManager().setMessage(msg);
    }
View Full Code Here

     */
    public CountryFeaturePanel() {
    }

    protected void persistChanges() {
        IFeatureSite site = getSite();
        if( site == null ){
            return;
        }
        EditFeature feature = site.getEditFeature();
       
        if (name != null && !name.isDisposed() && Boolean.TRUE.equals(name.getData(DIRTY))) {
            feature.setAttribute(this.NAME, name.getText());
        }
        if (gmiCntry != null && !gmiCntry.isDisposed()
View Full Code Here

    }
   
    @Override
    public void refresh() {
        SimpleFeature feature = null;
        IFeatureSite site = getSite();       
        if( site != null ){
            IEditManager editManager = site.getEditManager();
            if( editManager != null ){
                feature = editManager.getEditFeature();
            }
        }
       
View Full Code Here

TOP

Related Classes of org.locationtech.udig.project.ui.IFeatureSite

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.