Sign in
Kirk Evans Blog
.NET From a Markup Perspective
Visio - Abstract Method
MSDN Blogs
>
Kirk Evans Blog
>
Visio - Abstract Method
Visio - Abstract Method
Kirk Evans[MSFT]
27 Feb 2003 2:02 PM
Comments
8
This is definitely a glaring case of
RTFM syndrome
, but I hadn't found how to create abstract methods in Visio's UML Sequence Diagram template. Classes in Visio have an IsAbstract checkbox to indicate if the class is abstract, but there is no "IsAbstract" checkbox for methods. For others who haven't discovered the less-than-obvious setting and hadn't bothered to read the help file yet (quoted from the Visio help file):
In the UML Model Explorer, right-click a package icon, point to New, and then click Class.
In the UML Class Properties dialog box, type a name for the class, and then click the IsAbstract check box.
Under Categories, click Operations, click New, and then click the Methods button.
In the UML Method Properties dialog box,
clear the Has method check box
, and then click OK.
In the UML Class Properties dialog box, click the Properties button, set any of the options in the UML Operations Properties dialog box, and then click OK.
Note: The IsPolymorphic check box is selected by default.
In the UML Class Properties dialog box, click OK.
<Kirk />
8 Comments
.NET Programming
Comments
TrackBack
27 Feb 2003 2:02 PM
Abstract methods in Visio : Jeff Key's .net blog
TrackBack
27 Feb 2003 2:02 PM
Jeff Key's .net blog
James Higgs
14 Mar 2003 10:12 AM
Good tip. You can also use this to specify an override in a sub class. You can even enter the method body. But there are two other constructs I can't get working: marking classes and methods as internal, and indicating that a constructor should call a base class constructor. Like this:
class Foo {
public Foo() {}
}
class Bar : Foo {
public Foo () : base () {}
}
Any idea how you achieve either of these?
Kirk Allen Evans
18 Mar 2003 11:03 PM
I honestly don't think that the construct of constructor chaining is supported by Visio. I tried reverse engineering the same class you posted, but Visio didn't catch the ctor chain. Specifying this in the method body produces the following generated code for Foo:
public Bar()
{
: foo
}
Of course, that isn't the correct syntax... I wager that ctor chaining is not a supported construct.
--Kirk
James Higgs
20 Mar 2003 6:31 AM
That's how it looks, yeah. Any idea on marking classes and/or operations as internal and decorating them with attributes?
Tabrez
7 Dec 2003 6:22 PM
Hi,
I am trying to find out how to view the operations properties in status window in visio tool, without having to open the property dialog box. I am trying to do this from the uml navigator.
I am putting the question here as this is the only discussion thread I could find that probably has some similarity to my issue.
Gary
2 Jul 2004 7:05 PM
I'm going nuts trying to override a method in my UML document. I reversed engineered a simple 2-class project and the override works fine. But when I try a new UML document and add a polymorphic operation I cannot find how to override it in an inheriting class? can you help? Wow thanks if so.
Adding C++ virtual methods in Visio » Ruben’s blog
1 Apr 2009 3:47 AM
PingBack from
http://rubenlaguna.com/wp/2009/03/31/adding-c-virtual-methods-in-visio/
Page 1 of 1 (8 items)
Translate This Page
Translate this page
Powered by
Microsoft® Translator
Options
Blog Home
About
Email Blog Author
Share this
RSS for posts
Atom
RSS for comments
Search
Tags
.NET Programming
AJAX
Architecture
ASP.NET
Atlanta Microsoft Events
Cloud Services
Interoperability
Life at Microsoft
LINQ
Microsoft Office
Personal
PowerShell
Security
SharePoint
Silverlight
Telecommunications
UGA Football
Visual Studio 2008
Visual Studio 2010
VSTS
WCF
Web 2.0
Windows Workflow Foundation
XML
XML Web Services
Archive
Archives
June 2013
(2)
May 2013
(4)
April 2013
(5)
February 2013
(1)
January 2013
(2)
November 2012
(1)
August 2012
(2)
June 2012
(2)
April 2012
(1)
March 2012
(1)
February 2012
(4)
January 2012
(2)
December 2011
(2)
November 2011
(4)
October 2011
(1)
September 2011
(1)
July 2011
(5)
April 2011
(10)
March 2011
(1)
February 2011
(1)
December 2010
(1)
November 2010
(1)
October 2010
(2)
September 2010
(2)
August 2010
(4)
July 2010
(8)
June 2010
(4)
May 2010
(1)
April 2010
(6)
March 2010
(9)
February 2010
(5)
January 2010
(1)
November 2009
(1)
October 2009
(4)
August 2009
(1)
July 2009
(9)
June 2009
(8)
May 2009
(5)
April 2009
(11)
March 2009
(20)
February 2009
(13)
January 2009
(7)
December 2008
(6)
November 2008
(4)
October 2008
(5)
September 2008
(2)
August 2008
(11)
July 2008
(10)
June 2008
(17)
May 2008
(7)
April 2008
(11)
March 2008
(15)
February 2008
(3)
January 2008
(8)
December 2007
(5)
November 2007
(4)
October 2007
(9)
September 2007
(19)
August 2007
(8)
July 2007
(5)
June 2007
(11)
May 2007
(10)
April 2007
(8)
March 2007
(6)
February 2007
(5)
January 2007
(1)
December 2006
(1)
November 2006
(3)
October 2006
(12)
September 2006
(3)
August 2006
(2)
June 2006
(14)
May 2006
(20)
April 2006
(11)
March 2006
(12)
February 2006
(16)
January 2006
(14)
December 2005
(4)
November 2005
(20)
October 2005
(5)
September 2005
(23)
August 2005
(4)
July 2005
(13)
June 2005
(9)
May 2005
(6)
April 2005
(13)
March 2005
(10)
February 2005
(16)
January 2005
(4)
December 2004
(13)
November 2004
(6)
October 2004
(12)
September 2004
(9)
August 2004
(11)
July 2004
(9)
June 2004
(10)
May 2004
(11)
April 2004
(16)
March 2004
(6)
February 2004
(3)
January 2004
(1)
December 2003
(4)
November 2003
(11)
October 2003
(18)
September 2003
(2)
August 2003
(3)
July 2003
(10)
June 2003
(11)
May 2003
(6)
April 2003
(32)
March 2003
(17)
February 2003
(16)