Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » initial palette width(how to set initial palette width)
initial palette width [message #625602] Wed, 22 September 2010 09:26 Go to next message
emil salageanu is currently offline emil salageanuFriend
Messages: 94
Registered: June 2010
Location: Nice, France
Member
Hello,
Does anybody know how to set the initial width of the palette?

Have anybody had problems when trying to resize the palette by simply resizing the eclipse widow containing the palette (resizing the palette using the "resize" action works well but resizing the eclipse window containing the palette by dragging it has a strange behavior).


Thanks,
emil.
Re: initial palette width [message #1071119 is a reply to message #625602] Fri, 19 July 2013 11:38 Go to previous message
Susinda Perera is currently offline Susinda PereraFriend
Messages: 8
Registered: July 2013
Junior Member
use getInitialPaletteSize method in your document editor

public class YourDocumentEditor extends DiagramDocumentEditor{

        ///// other methods ////

	protected int getInitialPaletteSize() {
			return 240;
	}
}

Previous Topic:Custom XML output
Next Topic:Creating metamodel object instances without graphical view
Goto Forum:
  


Current Time: Fri Apr 19 05:02:33 GMT 2024

Powered by FUDForum. Page generated in 0.01937 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top