[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
|
[news.eclipse.tools.gef] Re: how to invoke propertysheetpage change according to Model's change
|
The propertysheet should update any time the commandstack fires
notification. So, you need to modify your model within the context of a
command.
"heima" <tmxk2008@xxxxxxxxx> wrote in message
news:8874e8ccc0d544246271815a738bfc20$1@xxxxxxxxxxxxxxxxxx
> code in editpart is in below:
>
>
> public void performRequest(Request req){
>
> if(req.getType()==RequestConstants.REQ_OPEN){//when doubleClick will
> invoke it
>
> Column column = (Column) getModel();
> column.setName("ColumnName");
> }
> }
>
> Column is GEF's Model , and Column had added IPropertySource Correctly .
>
> when I double-click the Model's figure will change correctly ,but the
> propertySheetPage will not change ,and the eclipse's save-button will not
> be usable.
>
> welcome anyone's suggestion.
>
>