-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[492935] Ensure IPropertySheetPage can be injected.
- Changed contract of UndoablePropertySheetPage to obtain reference to related IWorkbenchPart rather then UndoRedoActionGroup (which can be maintained locally, and is not necessarily shared with the workbench part). - Created IUndoablePropertySheetPageFactory that supports assisted injection of an UndoablePropertySheetPage. - Changed AbstractFXEditor and AbstractFXView to have IPropertySheetPageFactory injected. - Enabled assisted inject as extra classpath dependency within releng/pom.xml - Provided dependencies to assisted inject for MVC.UI manifest and feature.xml.
- Loading branch information
Showing
8 changed files
with
187 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 34 additions & 0 deletions
34
...eclipse.gef4.mvc.ui/src/org/eclipse/gef4/mvc/ui/properties/IPropertySheetPageFactory.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
/******************************************************************************* | ||
* Copyright (c) 2016 itemis AG and others. | ||
* All rights reserved. This program and the accompanying materials | ||
* are made available under the terms of the Eclipse Public License v1.0 | ||
* which accompanies this distribution, and is available at | ||
* http://www.eclipse.org/legal/epl-v10.html | ||
* | ||
* Contributors: | ||
* Alexander Nyßen (itemis AG) - initial API and implementation | ||
* | ||
*******************************************************************************/ | ||
package org.eclipse.gef4.mvc.ui.properties; | ||
|
||
import org.eclipse.ui.IWorkbenchPart; | ||
import org.eclipse.ui.views.properties.IPropertySheetPage; | ||
|
||
/** | ||
* A factory to create a new {@link IPropertySheetPage}. | ||
* | ||
* @author anyssen | ||
*/ | ||
public interface IPropertySheetPageFactory { | ||
|
||
/** | ||
* Creates a new {@link IPropertySheetPage} for the given | ||
* {@link IWorkbenchPart}. | ||
* | ||
* @param workbenchPart | ||
* The {@link IWorkbenchPart} this {@link IPropertySheetPage} is | ||
* related to. | ||
* @return A new {@link IPropertySheetPage} instance. | ||
*/ | ||
public IPropertySheetPage create(IWorkbenchPart workbenchPart); | ||
} |
Oops, something went wrong.