Skip to content

Replaced IWatch3DView with IWatch3DViewModel interface to expose api's to extensions#5418

Merged
aparajit-pratap merged 5 commits intoDynamoDS:masterfrom
aparajit-pratap:iwatch3dviewmodel
Oct 7, 2015
Merged

Replaced IWatch3DView with IWatch3DViewModel interface to expose api's to extensions#5418
aparajit-pratap merged 5 commits intoDynamoDS:masterfrom
aparajit-pratap:iwatch3dviewmodel

Conversation

@aparajit-pratap
Copy link
Contributor

Purpose

This PR addresses the task to swap IWatch3DView with IWatch3DViewModel as per the design discussed in #5314.

The new BackgroundViewModel property of the new IWatch3DViewModel type is exposed in ViewLoadedParams currently being used by https://git.autodesk.com/Dynamo/DynamoPro/pull/179.

Declarations

  • The code base is in a better state after this PR
  • Is documented according to the standards
  • The level of testing this PR includes is appropriate
  • User facing strings, if any, are extracted into *.resx files

Reviewers

@benglin Reviewer 1

FYIs

@ikeough

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm okay with this file being under Watch3D instead of Interfaces folder, but I guess we should really start documenting our public contracts. A role model of API documentation can be found for IViewExtension, which explains the purposes, the acceptable argument values, and the expected return values. I was thinking about adding a new YT task to track this but since this is new/small, we might as well just add some here and be done with it. Does that make sense?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The interfaces folder is most likely going away, BTW, when we do the namespace reorganization next sprint. I agree that we need to document every one of our public contracts. See http://adsk-oss.myjetbrains.com/youtrack/issue/MAGN-8392.

@benglin
Copy link
Contributor

benglin commented Oct 6, 2015

Some minor comments, and we'll be good to go!

@aparajit-pratap aparajit-pratap added PTAL Please Take A Look 👀 and removed Requires Changes labels Oct 6, 2015
@aparajit-pratap
Copy link
Contributor Author

@benglin done.

@benglin benglin added LGTM and removed PTAL Please Take A Look 👀 labels Oct 7, 2015
aparajit-pratap added a commit that referenced this pull request Oct 7, 2015
Replaced IWatch3DView with IWatch3DViewModel interface to expose api's to extensions
@aparajit-pratap aparajit-pratap merged commit 4a67a8e into DynamoDS:master Oct 7, 2015
@aparajit-pratap aparajit-pratap deleted the iwatch3dviewmodel branch October 7, 2015 07:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants