mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-03 07:05:24 +02:00
[244637] Got rid of dealing with properties.
This commit is contained in:
parent
e4d9d880b3
commit
708ff23446
1 changed files with 2 additions and 3 deletions
|
@ -16,6 +16,7 @@
|
|||
* David McKnight (IBM) - [216252] [api][nls] Resource Strings specific to subsystems should be moved from rse.ui into files.ui / shells.ui / processes.ui where possible
|
||||
* Yu-Fen Kuo (MontaVista) - Adapted from SystemCommandAction
|
||||
* Anna Dushistova (MontaVista) - [227535] Adapted from LaunchTerminalAction to remove dependency from files.core
|
||||
* Anna Dushistova (MontaVista) - [244637] [rseterminal] Launch Terminal with selected directory doesn't work
|
||||
********************************************************************************/
|
||||
package org.eclipse.rse.internal.terminals.ui.handlers;
|
||||
|
||||
|
@ -39,7 +40,6 @@ import org.eclipse.rse.services.clientserver.archiveutils.ArchiveHandlerManager;
|
|||
import org.eclipse.rse.subsystems.terminals.core.ITerminalServiceSubSystem;
|
||||
import org.eclipse.rse.subsystems.terminals.core.elements.TerminalElement;
|
||||
import org.eclipse.rse.ui.SystemBasePlugin;
|
||||
import org.eclipse.rse.ui.view.ISystemPropertyConstants;
|
||||
import org.eclipse.rse.ui.view.ISystemViewElementAdapter;
|
||||
import org.eclipse.swt.custom.CTabItem;
|
||||
import org.eclipse.ui.handlers.HandlerUtil;
|
||||
|
@ -156,8 +156,7 @@ public class LaunchTerminalCommandHandler extends AbstractHandler {
|
|||
ISystemViewElementAdapter adapter = (ISystemViewElementAdapter) ((IAdaptable) element)
|
||||
.getAdapter(ISystemViewElementAdapter.class);
|
||||
if (adapter != null) {
|
||||
String path = (String) adapter
|
||||
.getPropertyValue(ISystemPropertyConstants.P_FILE_CANONICAL_PATH);
|
||||
String path = (String) adapter.getAbsoluteName(element);
|
||||
// folder -- real or virtual
|
||||
if (ArchiveHandlerManager.isVirtual(path)) {
|
||||
path = path
|
||||
|
|
Loading…
Add table
Reference in a new issue