forked from eclipse-birt/birt
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace deprecated Navigator with Project Explorer in Report Design
perspective eclipse-birt#710 Removed the handlers calculated enablement state. We are now relying on the visibility of the menu items instead. Also switch back to contentId tests in places where it was previously used.
- Loading branch information
1 parent
8a19df6
commit 991743c
Showing
8 changed files
with
241 additions
and
257 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
386 changes: 192 additions & 194 deletions
386
UI/org.eclipse.birt.report.designer.ui.preview.web/plugin.xml
Large diffs are not rendered by default.
Oops, something went wrong.
53 changes: 0 additions & 53 deletions
53
...preview.web/src/org/eclipse/birt/report/designer/ui/ide/explorer/AbstractViewHandler.java
This file was deleted.
Oops, something went wrong.
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
31 changes: 31 additions & 0 deletions
31
....ui.preview.web/src/org/eclipse/birt/report/designer/ui/ide/explorer/ViewHandlerUtil.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,31 @@ | ||
/******************************************************************************* | ||
* Copyright (c) 2021 Solme AB 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: | ||
* Claes Rosell - initial API and implementation | ||
*******************************************************************************/ | ||
package org.eclipse.birt.report.designer.ui.ide.explorer; | ||
|
||
import org.eclipse.core.resources.IFile; | ||
import org.eclipse.jface.viewers.IStructuredSelection; | ||
|
||
/** | ||
* | ||
* Abstract handler used for all handlers in the explorer | ||
* | ||
*/ | ||
class ViewHandlerUtil { | ||
|
||
public static IFile getSelectedFile(IStructuredSelection selection) { | ||
IFile selectedFile = null; | ||
if (selection.size() == 1 && selection.getFirstElement() instanceof IFile) { | ||
selectedFile = (IFile) selection.getFirstElement(); | ||
} | ||
|
||
return selectedFile; | ||
} | ||
} |