mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-09 10:46:02 +02:00
Merge "Fix preference category and remove debugging"
This commit is contained in:
commit
6ee3aff83b
2 changed files with 2 additions and 10 deletions
|
@ -17,7 +17,7 @@
|
||||||
<extension
|
<extension
|
||||||
point="org.eclipse.ui.preferencePages">
|
point="org.eclipse.ui.preferencePages">
|
||||||
<page
|
<page
|
||||||
category="org.eclipse.remote.terminal.TerminalPreferencePage"
|
category="org.eclipse.remote.ui.RemoteDevelopmentPreferencePage"
|
||||||
class="org.eclipse.remote.internal.terminal.preferences.RemoteTerminalPreferencePage"
|
class="org.eclipse.remote.internal.terminal.preferences.RemoteTerminalPreferencePage"
|
||||||
id="org.eclipse.remote.terminal.page"
|
id="org.eclipse.remote.terminal.page"
|
||||||
name="%RemoteTerminalPage.name">
|
name="%RemoteTerminalPage.name">
|
||||||
|
|
|
@ -194,7 +194,6 @@ public class TerminalView extends ViewPart implements ITerminalView, ITerminalVi
|
||||||
}
|
}
|
||||||
|
|
||||||
public TerminalView() {
|
public TerminalView() {
|
||||||
TerminalViewPlugin.log("==============================================================="); //$NON-NLS-1$
|
|
||||||
fMultiConnectionManager.addListener(this);
|
fMultiConnectionManager.addListener(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -235,7 +234,6 @@ public class TerminalView extends ViewPart implements ITerminalView, ITerminalVi
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public void onTerminalNewTerminal() {
|
public void onTerminalNewTerminal() {
|
||||||
TerminalViewPlugin.log("creating new Terminal instance."); //$NON-NLS-1$
|
|
||||||
setupControls();
|
setupControls();
|
||||||
if (newConnection(ViewMessages.NEW_TERMINAL_CONNECTION) == null) {
|
if (newConnection(ViewMessages.NEW_TERMINAL_CONNECTION) == null) {
|
||||||
fMultiConnectionManager.removeActive();
|
fMultiConnectionManager.removeActive();
|
||||||
|
@ -269,7 +267,7 @@ public class TerminalView extends ViewPart implements ITerminalView, ITerminalVi
|
||||||
// unique. This code runs only when the user clicks the New Terminal
|
// unique. This code runs only when the user clicks the New Terminal
|
||||||
// button, so there is no risk that this code will run twice in a single
|
// button, so there is no risk that this code will run twice in a single
|
||||||
// millisecond.
|
// millisecond.
|
||||||
IViewPart newTerminalView = getSite().getPage().showView("org.eclipse.tm.terminal.view.TerminalView",//$NON-NLS-1$
|
IViewPart newTerminalView = getSite().getPage().showView("org.eclipse.tm.terminal.view.TerminalView", //$NON-NLS-1$
|
||||||
"SecondaryTerminal" + System.currentTimeMillis(), //$NON-NLS-1$
|
"SecondaryTerminal" + System.currentTimeMillis(), //$NON-NLS-1$
|
||||||
IWorkbenchPage.VIEW_ACTIVATE);
|
IWorkbenchPage.VIEW_ACTIVATE);
|
||||||
if (newTerminalView instanceof ITerminalView) {
|
if (newTerminalView instanceof ITerminalView) {
|
||||||
|
@ -362,15 +360,11 @@ public class TerminalView extends ViewPart implements ITerminalView, ITerminalVi
|
||||||
if (title != null) {
|
if (title != null) {
|
||||||
dlgTerminalSettings.setTitle(title);
|
dlgTerminalSettings.setTitle(title);
|
||||||
}
|
}
|
||||||
TerminalViewPlugin.log("opening Settings dialog."); //$NON-NLS-1$
|
|
||||||
|
|
||||||
if (dlgTerminalSettings.open() == Window.CANCEL) {
|
if (dlgTerminalSettings.open() == Window.CANCEL) {
|
||||||
TerminalViewPlugin.log("Settings dialog cancelled."); //$NON-NLS-1$
|
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
TerminalViewPlugin.log("Settings dialog OK'ed."); //$NON-NLS-1$
|
|
||||||
|
|
||||||
// When the settings dialog is closed, we persist the Terminal settings.
|
// When the settings dialog is closed, we persist the Terminal settings.
|
||||||
saveSettings(fStore, dlgTerminalSettings.getConnector());
|
saveSettings(fStore, dlgTerminalSettings.getConnector());
|
||||||
// we also save it in the preferences. This will keep the last change
|
// we also save it in the preferences. This will keep the last change
|
||||||
|
@ -462,8 +456,6 @@ public class TerminalView extends ViewPart implements ITerminalView, ITerminalVi
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void dispose() {
|
public void dispose() {
|
||||||
TerminalViewPlugin.log("entered."); //$NON-NLS-1$
|
|
||||||
|
|
||||||
JFaceResources.getFontRegistry().removeListener(fPropertyChangeHandler);
|
JFaceResources.getFontRegistry().removeListener(fPropertyChangeHandler);
|
||||||
|
|
||||||
// dispose all connections
|
// dispose all connections
|
||||||
|
|
Loading…
Add table
Reference in a new issue