Beispiel #1
0
        public override bool CanCreateContentForUri(string fileName)
        {
            Project       project = IdeApp.Workspace.GetProjectContainingFile(fileName);
            GtkDesignInfo info    = GtkDesignInfo.FromProject((DotNetProject)project);

            if (excludeThis)
            {
                return(false);
            }

            if (fileName.Contains(info.BuildFileExtension))
            {
                return(false);
            }

            if (!IdeApp.Workspace.IsOpen)
            {
                return(false);
            }

            if (GetActionGroup(fileName) == null)
            {
                return(false);
            }


            excludeThis = true;
            var db = DisplayBindingService.GetDefaultBindingForUri(fileName);

            excludeThis = false;
            return(db != null);
        }
Beispiel #2
0
        public override IViewContent CreateContentForUri(string fileName)
        {
            excludeThis = true;
            var            db   = DisplayBindingService.GetDefaultBindingForUri(fileName);
            GuiBuilderView view = new GuiBuilderView(db.CreateContentForUri(fileName), GetWindow(fileName));

            excludeThis = false;
            return(view);
        }
Beispiel #3
0
        public override IViewContent CreateContentForUri(string fileName)
        {
            excludeThis = true;
            var db = DisplayBindingService.GetDefaultBindingForUri(fileName);

            Project       project = IdeApp.Workspace.GetProjectContainingFile(fileName);
            GtkDesignInfo info    = GtkDesignInfo.FromProject((DotNetProject)project);

            ActionGroupView view = new ActionGroupView(db.CreateContentForUri(fileName), GetActionGroup(fileName), info.GuiBuilderProject);

            excludeThis = false;
            return(view);
        }
Beispiel #4
0
        public override bool CanCreateContentForUri(string fileName)
        {
            if (excludeThis)
            {
                return(false);
            }

            if (GetWindow(fileName) == null)
            {
                return(false);
            }

            excludeThis = true;
            var db = DisplayBindingService.GetDefaultBindingForUri(fileName);

            excludeThis = false;
            return(db != null);
        }
        public override bool CanCreateContentForUri(string fileName)
        {
            if (excludeThis)
            {
                return(false);
            }
            if (!IdeApp.Workspace.IsOpen)
            {
                return(false);
            }

            if (GetActionGroup(fileName) == null)
            {
                return(false);
            }

            excludeThis = true;
            var db = DisplayBindingService.GetDefaultBindingForUri(fileName);

            excludeThis = false;
            return(db != null);
        }